code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
const router = require('express').Router()
const { users } = require('./users')
const { todos } = require('./todos')
router.use('/', users)
router.use('/', todos)
module.exports = { routes : router } | dbsimeone/todo-api | routes/api/index.js | JavaScript | mit | 202 |
<HTML><HEAD>
<TITLE>Review for Event Horizon (1997)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0119081">Event Horizon (1997)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Shane+Burri... | xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/9233.html | HTML | mit | 3,856 |
{% extends data.outerLayout %}
{% import 'macros/nav.html' as nav %}
{% import 'global/svg/toolbox.html' as tool %}
{% block beforeMain %}
<div class="demo-modal">
<div class="demo-modal-content">
<img src="/images/demo-computer.svg" alt="ApostropheCMS Demo Site">
<h4>Welcome to the Apostrophe Demo<... | punkave/apostrophe-sandbox | lib/modules/apostrophe-templates/views/layout.html | HTML | mit | 3,560 |
<?php
$targetchargers = [];
array_push($targetchargers,"Roadchef Rownhams South, M27 Motorway Southbound, Jct 3/4, SouthamptonDC & AC fast charge");
include("../../php/rss_template.php");
?> | jivemonkey2000/evhighwaystatus | backup/public/rss/160109/199209.php | PHP | mit | 190 |
<div>
<h2 class="ui header">
<i class="users icon"></i>
<span class="content">
Table Tennis Tournament
<span class="sub header">Scores need to be updated</span>
</span>
</h2>
</div> | balaganesanr/Tournament-Organizer | TournamentOrganizer/TournamentOrganizer/MainApp/app/LoggedIn/users/dashboard/_dashboard.html | HTML | mit | 240 |
// All symbols in the Supplemental Arrows-B block as per Unicode v5.0.0:
[
'\u2900',
'\u2901',
'\u2902',
'\u2903',
'\u2904',
'\u2905',
'\u2906',
'\u2907',
'\u2908',
'\u2909',
'\u290A',
'\u290B',
'\u290C',
'\u290D',
'\u290E',
'\u290F',
'\u2910',
'\u2911',
'\u2912',
'\u2913',
'\u2914',
'\u2915',
'\... | mathiasbynens/unicode-data | 5.0.0/blocks/Supplemental-Arrows-B-symbols.js | JavaScript | mit | 1,484 |
from utils import Base, engine
Base.metadata.create_all(engine)
| MarkWh1te/xueqiu_predict | crawler/init_db.py | Python | mit | 65 |
<?php
namespace Acme\MainBundle\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20141029162225 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migr... | knopa/symfony-demo-project | app/DoctrineMigrations/Version20141029162225.php | PHP | mit | 3,514 |
<!DOCTYPE html>
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie10 lt-ie9" lang="en"><![endif]-->
<!--[if (IE 9)&!(IEMobile)]><html class="no-js lt-ie10" lang="en"><![endif]-->
<!--[if gt IE 9]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" cont... | ganlanyuan/tiny-slider | test/parts/responsive5.html | HTML | mit | 2,840 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.13.1/mathcomp-field/1.6.4.html | HTML | mit | 7,978 |
package io.fnx.backend.util.conf;
import io.fnx.backend.util.EnumerationRepository;
import io.fnx.backend.util.MessageAccessor;
import javax.inject.Inject;
import java.io.IOException;
import java.util.Map;
/**
*
* Use this class for sending configuration to Dart admin client. Enums, settings, flags, enabled modul... | fnx-io/backend | server/src/main/java/io/fnx/backend/util/conf/ClientConfiguration.java | Java | mit | 913 |
---
layout: page
title: Bell Limited Show
date: 2016-05-24
author: Thomas Henry
tags: weekly links, java
status: published
summary: Fusce euismod molestie tortor eget vehicula. Morbi sed varius dui.
banner: images/banner/leisure-02.jpg
booking:
startDate: 02/02/2019
endDate: 02/04/2019
ctyhocn: MIASTHX
groupCod... | KlishGroup/prose-pogs | pogs/M/MIASTHX/BLS/index.md | Markdown | mit | 1,653 |
import React, {Component, PropTypes} from 'react';
import moment from 'moment';
import theme from '../../Item/components/FieldsView.scss';
const tripHelps = {
auto: 'Автомобиль',
plane: 'Самолет',
train: 'Поезд'
};
export default class TripFields extends Component {
static propTypes = {
fields: PropTypes.... | rebiz/requests | frontend/src/routes/Requests/Trip/Fields/TripFields.js | JavaScript | mit | 2,940 |
require 'ffi'
require_relative 'cld2/generated_language'
require_relative 'cld2/name_to_code_mapping'
module CLD2
extend FFI::Library
class << self
def detect_language(text, is_plain_text = true)
is_reliable = FFI::MemoryPointer.new(:int)
detected = ext_detect_language(text.to_s, text.to_s.length,... | craig-day/ruby_cld2 | lib/cld2.rb | Ruby | mit | 2,256 |
# Gmaps autocomplete for Rails
Extracted from [gmaps-autocomplete](https://github.com/rjshade/gmaps-autocomplete) and improved markedly and then packaged for use with Rails as an asset gem :)
## General info
The script is now compiled from Coffeescript and allows you to have multiple fields linked to multiple instan... | brandonhilkert/gmaps-autocomplete-rails | README.md | Markdown | mit | 10,827 |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Henge: _sta</title>
<link rel="stylesheet" href="/vendor/bootstrap-3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/site.css">
</head>
<body>
<div id="staticBody">
<header>
<h... | henge-tech/henge-tech | docs/circles/_sta.html | HTML | mit | 1,122 |
<!doctype html>
<html>
<title>npm-prune</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../../static/style.css">
<link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-prune.html">
<script async=true src="../../static/toc.js"></script>
<b... | gwake1/NSS-Mocha-Test | node_modules/npm/html/doc/cli/npm-prune.html | HTML | mit | 3,515 |
`safe_switch` library
=====================
A small C++ utility class to let `if`-`else` work like `switch`.
*by David Krauss (potatoswatter)*
<!-- language: lang-cxx -->
Summary
=======
This utility provides the strengths of the `switch`-`case`-`break` idiom without the potential to forget a `break` statement.
Fe... | potswa/safe_switch | README.md | Markdown | mit | 9,941 |
#region
/*
Copyright (c) 2002-2012, Bas Geertsema, Xih Solutions
(http://www.xihsolutions.net), Thiago.Sayao, Pang Wu, Ethem Evlice, Andy Phan, Chang Liu.
All rights reserved. http://code.google.com/p/msnp-sharp/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... | mt830813/code | Project/WebMSN/MSNPSharp/Core/NotificationMessage.cs | C# | mit | 19,176 |
using System;
using System.Collections;
using System.Linq;
using System.Net;
using Akka.Interfaced;
using DG.Tweening;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class MainScene : MonoBehaviour
{
public RectTransform LoginPanel;
public RectTransform LoadingPanel;
pu... | SaladbowlCreative/TicTacToe | src/GameClient/Assets/Scripts/Scenes/MainScene.cs | C# | mit | 4,566 |
---
title: ayl6
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: l6
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:
... | pblack/kaldi-hugo-cms-template | site/content/pages2/ayl6.md | Markdown | mit | 337 |
---
title: akd20
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: d20
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | pblack/kaldi-hugo-cms-template | site/content/pages2/akd20.md | Markdown | mit | 339 |
// Copyright 2017 0lento. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class FixedTimestepDemoTarget : TargetRules
{
public FixedTimestepDemoTarget(TargetInfo Target)
{
Type = TargetType.Game;
}
//
// TargetRules interface.
//
public override void SetupBinaries(
Ta... | 0lento/UE4-FixedTimestepDemo | Source/FixedTimestepDemo.Target.cs | C# | mit | 529 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'blog'
| LoveKano/hs_django_blog | blog/apps.py | Python | mit | 156 |
# Static Website Container
Lets create a static website container using **nginx**.
Create a directory **examples/nginx**
```sh
mkdir examples/nginx
cd examples/nginx
touch index.html
```
### index.html
```html
<html>
<head>
<title>Hello from Docker</title>
</head>
<body>
<h1>Hello from Docker!!!</h1>
... | vravishankar/vravishankar.github.io | docker/chapters/Website.md | Markdown | mit | 1,448 |
package com.example.gs.mvpdemo.mvp;
/**
* Created by kyluzoi on 2016/11/26.
* 17:20
*
* @VERSION V1.4
* mvp之v
*/
public interface IView {
}
| HappyImp/BaseMvpOkhttpdemo | app/src/main/java/com/example/gs/mvpdemo/mvp/IView.java | Java | mit | 150 |
{% extends "layout.html" %}
{% block page_title %}
GOV.UK prototyping kit
{% endblock %}
{% block propositionHeader %}
{% include "includes/propositional_navigation.html" %}
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-quarter g... | dwpdigitaltech/ejs-prototype | app/views/latest_c/job_claim_active_one_button.html | HTML | mit | 8,817 |
# Information about filesystem storage
DRAFT not yet finished
## Features
- [ ] compression
- [ ] encryption
## Storage on Filesystem
The key value will be hashed with Blake2b 32 byte
git-like objects folder
Hexadecimal path in the format:
`xx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
... | okard/rust-playground | storage/doc/storage_filesystem.md | Markdown | mit | 1,714 |
import React, { Component } from "react";
class PageHeader extends Component {
render() {
return (
<div>
Page Header
</div>
);
}
}
export default PageHeader;
| TrevorWAdams/cool-news-site | client/src/components/PageHeader.js | JavaScript | mit | 192 |
<?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.c... | shopery/elcodi | src/Elcodi/Bundle/CurrencyBundle/ElcodiCurrencyBundle.php | PHP | mit | 2,200 |
#-------------------------------------------------------------------------------
# Name: Main.py
# Purpose: This script creates chainages from a single or mutile line
#
# Author: smithc5
#
# Created: 10/02/2015
# Copyright: (c) smithc5 2015
# Licence: <your licence>
#------------------------... | smithchristian/arcpy-create-chainages | main.py | Python | mit | 2,746 |
// Code borrowed from:
// https://github.com/DockYard/ember-one-way-controls/blob/v2.0.0/addon/-private/dynamic-attribute-bindings.js
import Mixin from '@ember/object/mixin';
export default Mixin.create({
attributeBindings: [],
NON_ATTRIBUTE_BOUND_PROPS: ['class', 'classNames'],
concatenatedProperties... | Deveo/ember-emojione | addon/-private/mixins/dynamic-attribute-bindings.js | JavaScript | mit | 840 |
# README
## Table of Contents
* [Usage](#usage)
* [Building](#building)
* [Contributing](#contributing)
* [License](#license)
+ [Contribution](#contribution)
## Usage
Since we are using git submodules system, additional steps to work with the
repository are required. To correctly clone the repository you should ad... | iotacommunity/iota-rdb | README.md | Markdown | mit | 3,128 |
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
var WatchMissingNodeModulesPl... | friedow/bpd | config/webpack.config.dev.js | JavaScript | mit | 9,066 |
angular
.module('sectorWeb.ctrl.reports', [])
.controller('reportsCtrl', [
'$scope',
'$location',
'reportsService',
'$routeParams',
function ($scope, $location, reportsService, $routeParams) {
$scope.list = [];
$scope.searchText = $routeParams.par... | imdfana/test-ams-developert | Sectores.Web/Scripts/app/ctrl/reportsCtrl.js | JavaScript | mit | 858 |
<?php
namespace Orm;
/**
* @Entity
* @Table(name="_label_bundle")
**/
class LabelBundle
{
/**
* @Id
* @Column(type="integer")
* @GeneratedValue
**/
protected $id;
/**
* @Column(type="string")
**/
protected $name;
public function getId() { return $this->id;... | ttoth/thesis | WebAlkalmazas/hermes-web/orm/LabelBundle.Orm.php | PHP | mit | 493 |
/** embedded font double rendering issue fix -- https://css-tricks.com/forums/discussion/10449/weird-mobile-safari-font-face-problem-font-doubled-and-offset-to-the-left-/p1 **/
h1, h2, h3, h4, h5, h6 { /*reset for mobile browsers */
font-weight: normal;
}
/* ========================================================... | shylaharild/invitation | css/main-1.6.css | CSS | mit | 19,478 |
var pins={};
module.exports={
setup:function(pin, direction, callback){
pins[pin]={value:0, direction:direction};
callback(null);
},
read:function(pin, callback){
callback(null, pins[pin].value);
},
write:function(pin, value, callback){
pins[pin].value=value;
callback(null);
}
} | nickolanack/rpi-node-gpio-webserver | test/mock-gpio.js | JavaScript | mit | 302 |
package algo.leetcode;
import java.util.*;
public class SmallestRange {
public int[] smallestRange(List<List<Integer>> nums) {
//List<Integer> window = new ArrayList<>();
Queue<int[]> queue = new PriorityQueue<>(new Comparator<int[]>() {
@Override
public int compare(int[] ... | Brucechen13/algocodes | codes/src/algo/leetcode/SmallestRange.java | Java | mit | 3,201 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Li... | Gloor/lma | src/LinkedIN.Application/Properties/AssemblyInfo.cs | C# | mit | 1,376 |
/* -*- Mode: C++; indent-tabs-mode: nil -*- */
#ifndef SCHWA_LEARN_FEATURES_H_
#define SCHWA_LEARN_FEATURES_H_
#include <iosfwd>
#include <string>
#include <type_traits>
#include <unordered_map>
#include <schwa/_base.h>
#include <schwa/learn/feature_transformers.h>
namespace schwa {
namespace learn {
void du... | schwa-lab/libschwa | src/lib/schwa/learn/features.h | C | mit | 2,200 |
cd ~/Code/skype-noisy-circles/
node index.js
| tableflip/noisy-circles | startup.command | Shell | mit | 45 |
0.0.1 - 2014-12-02
=====
Mostly feature complete:
* Vanitygen.network
* Vanitygen.valid?
* Vanitygen.difficulty
* Vanitygen.generate
* Vanitygen.continuous
Options supported:
* case_insensitive
* regex patterns
* that's about it...
| bitvain/vanitygen-wrapper | CHANGELOG.md | Markdown | mit | 233 |
<?php
/**
* PHP Token Reflection
*
* Version 1.3.1
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this library in the file LICENSE.
*
* @author Ondřej Nešpor
* @author Jaroslav Hanslík
*/
namespace TokenReflection;
use TokenReflection\Exception, ... | lekster/md_new | new/libraries/common/TokenReflection/ReflectionFunctionBase.php | PHP | mit | 11,596 |
module BetfairApiNgRails
module Api
module Parsers
class ListEvents < Api::Parsers::ListBase
private
def data_class
Api::Data::EventResult
end
end
end
end
end
| alterego-labs/betfair_api_ng_rails | lib/betfair_api_ng_rails/api/parsers/list_events.rb | Ruby | mit | 218 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>higman-cf: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.10.2/higman-cf/8.6.0.html | HTML | mit | 7,039 |
require 'subexec/notifications'
| customink/subexec-notifications | lib/subexec-notifications.rb | Ruby | mit | 32 |
# Load the rails application.
require File.expand_path('../application', __FILE__)
# Initialize the rails application.
Cookinme::Application.initialize!
| MarsBased/cookinme | config/environment.rb | Ruby | mit | 154 |
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="jquery.fast-reader.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Droid+Sans+Mono" rel="stylesheet" type="text/css">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awes... | frikinside/jquery.fast-reader | demo/demo.html | HTML | mit | 4,035 |
(function() {
$(function() {
$.getHash = function(url) {
if (url) {
return url.substring(url.indexOf("#") + 1);
} else {
return window.location.hash;
}
};
/* ```javascript
unless Modernizr.input.placeholder
$("input").each ->
$(this).placeholder() unles... | Gregcop1/test4u | content/themes/skin/assets/js/base.js | JavaScript | mit | 7,240 |
# Roadmap
## [Unreleased]
### Change createdAt, and updatedAt field names to created_at and updated_at according to doctrine.orm.naming_strategy
### Update PHP to 5.6
* Last LTS version : See http://php.net/supported-versions.php
* Will be useful for Symfony 3 upgrade and depreciation resolution
### Fi... | doydoy44/doydoyPF | ROADMAP.md | Markdown | mit | 1,575 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo... | user-tony/photon-rails | lib/assets/images/photon/plugins/elrte/js/plugins/js/plugins/prettify/css/css_compiled/js/plugins/jquery.mCustomScrollbar.js.html | HTML | mit | 14,468 |
---
layout: post
title: How to set up Google Hangouts on Air for Workshop Streaming
description: "Tips for remote teaching"
modified: 2016-03-29
tags: [teaching]
image:
feature: googlehangout-pic.png
credit:
creditlink:
comments: true
share: true
---
So you want to broadcast and archive a workshop (or something e... | jessicamizzi/jessicamizzi.github.io | _posts/2016-03-29-broadcast-hangouts.md | Markdown | mit | 9,049 |
'use strict';
/**
* @ngdoc function
* @name anyandgoApp.controller:MemosNewCtrl
* @description
* # MemosNewCtrl
* Controller of the anyandgoApp
*/
angular.module('anyandgoApp')
.controller('MemosNewCtrl', function ($scope, $routeParams, PeopleService, $interval) {
if(typeof chatInterval !== 'undef... | cortezcristian/hermes | public/scripts/site/controllers/memosnew.js | JavaScript | mit | 2,890 |
package org.demis.comics.data.jpa;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.P... | demis27/comics-blog | comics-blog-data/src/main/java/org/demis/comics/data/jpa/PersistenceJPAConfiguration.java | Java | mit | 2,844 |
using Mantle.Hosting.Interfaces;
using Mantle.PhotoGallery.Processor.Worker.Workers;
using Ninject.Modules;
namespace Mantle.PhotoGallery.Processor.Console.Mantle.Profiles.Default
{
public class WorkerModule : NinjectModule
{
public override void Load()
{
Bind<IWorker>()
... | caseywatson/Mantle | v1/Mantle/Mantle.PhotoGallery.Processor.Console/Mantle/Profiles/Default/WorkerModule.cs | C# | mit | 405 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Users</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<base href="/users/" />
<link href="/desktop/libs/bootstrap/less/bootstrap.less.css/desktop/libs/bootstrap/theme/cosmo.less.css/d... | mathiasbynens/house | apps/html5os/users/index.html | HTML | mit | 4,341 |
#ifndef GLOBAL_H
#define GLOBAL_H
#include "head.h"
// open file and store the content to a string
string
textToString(string file);
// judge if it is a blank character
bool
isWhite(const char &c);
// show error message
void
error(string msg);
// string = ""
void
clear(string &s);
// int = 0... | luosch/AQL-subset-compiler | src/global.h | C | mit | 431 |
<div class="commune_descr limited">
<p>
Les Autels-Saint-Bazile est
un village
situé dans le département des Calvados en Basse-Normandie. Elle totalisait 45 habitants en 2008.</p>
<p>Le parc de logements, à Les Autels-Saint-Bazile, se décomposait en 2011 en zero appartements et 42 maisons soit... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/14029.html | HTML | mit | 1,432 |
package mcjty.rftools.blocks.builder;
import mcjty.rftools.hud.HudRenderer;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOn... | McJty/RFTools | src/main/java/mcjty/rftools/blocks/builder/BuilderRenderer.java | Java | mit | 902 |
/* CHANGE THESE STYLES TO FURTHER CUSTOMIZE THE DEFAULT APPEARANCE OF YOUR ROBOT*/
#robot
{
display: inline-block;
position: absolute;
bottom: 0;
left: 40px;
width: 40px;
height: 60px;
background-color: blue;
border: solid 2px black;
}
table , tr , td
{
border:1px solid #000000;
border-collapse: col... | JamesBarnesBCX/Portfolios2016-Code4CT | portfolios/american-corner/saarrah/stylesheets/custom.css | CSS | mit | 666 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0036)http://../Darwin/Coral Reefs -->
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Coral Reefs: Title</title>
<meta content="text/html; charset=iso-8859-1" http-equiv=
"Content-Type">
<meta co... | lucashmorais/x-Bench | zip/testes/corals.html | HTML | mit | 585,517 |
package x7c1.wheat.modern.database
import android.database.sqlite.SQLiteDatabase
import x7c1.wheat.macros.database.{Query, TypedCursor, TypedFields}
trait QueryPlanColumn extends TypedFields {
def detail: String
}
case class QueryPlan(detail: String){
def useTempBtree: Boolean = {
detail contains "USE TEMP B... | x7c1/Linen | wheat-modern/src/main/scala/x7c1/wheat/modern/database/Query.scala | Scala | mit | 857 |
package conf
import (
"github.com/sirupsen/logrus"
)
// Logger is a configuration struct to define logger's behaviour
type Logger struct {
Level string `yaml:"level" default:"info"`
Format string `yaml:"format" default:"text"`
}
// Configure takes the configuration for the logger and translats it to
// logrus's ... | Depado/gomonit | conf/logger.go | GO | mit | 1,059 |
//-----------------------------------------------------------------------
// <copyright file="IBusinessObject.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>This is the core interface implemented</summary>
//--... | ronnymgm/csla-light | Source/Csla.Shared/Core/IBusinessObject.cs | C# | mit | 763 |
import cPickle
import numpy as np
import cv2
def unpickle(file):
fo = open(file, 'rb')
dict = cPickle.load(fo)
fo.close()
return dict
files = ['../../datasets/svhn/cifar-10-batches-py/data_batch_1']
dict = unpickle(files[0])
images = dict['data'].reshape(-1, 3, 32, 32)
labels = np.array(dict['label... | penny4860/SVHN-deep-digit-detector | tests/cifar_loader.py | Python | mit | 487 |
MagPi for BlackBerry
--------------------
MagPi client for BlackBerry. Read MagPi issues with your device :)
License
-------
This software is released under MIT License. Copyright (c) 2013 MagPi <emailthemagpi@gmail.com>, Andrea Stagi <stagi.andrea@gmail.com>
| astagi/magpi-bb10 | README.md | Markdown | mit | 263 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* General page setup
*/
#dt_example {
font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
color: #333;
background-color: #fff;
}
#dt_example #demo {
margin: 30px auto 0 auto;
}
#dt_example .... | summea/quiet-content | app/webroot/css/demo_page.css | CSS | mit | 1,134 |
/* Copyright (c) 2015 Connectal Project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publ... | hanw/sonic-lite | hw/tests/test_dma_phy/testdma.cpp | C++ | mit | 7,962 |
# -*- encoding: utf-8 -*-
from supriya.tools.ugentools.UGen import UGen
class TDelay(UGen):
r'''A trigger delay.
::
>>> source = ugentools.Dust.kr()
>>> tdelay = ugentools.TDelay.ar(
... duration=0.1,
... source=source,
... )
>>> tdelay
TDe... | andrewyoung1991/supriya | supriya/tools/ugentools/TDelay.py | Python | mit | 3,463 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TootList.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| gkoehler/TootList | TootList/manage.py | Python | mit | 257 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.1/monae/0.0.1.html | HTML | mit | 6,703 |
package main
import (
"encoding/gob"
"encoding/json"
"log"
"os"
"sort"
"github.com/tsenart/vegeta/lib"
)
func main() {
var res vegeta.Results
if err := gob.NewDecoder(os.Stdin).Decode(&res); err != nil {
log.Fatal(err)
}
sort.Sort(res)
if err := json.NewEncoder(os.Stdout).Encode(res); err != nil {
log... | bgentry/vegeta-encoder | main.go | GO | mit | 337 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Alder.Html.Internal
( -- * Elements
Node(..)
-- * Attributes
, Id
, Handlers
, Attributes(..)
, defaultAttributes
-- * Html
, Html
, HtmlM(..)
, runHtml
, parent
, lea... | ghcjs/ghcjs-sodium | src/Alder/Html/Internal.hs | Haskell | mit | 4,281 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.10.0/quickchick/1.1.0.html | HTML | mit | 7,109 |
require_relative 'global_thread_pool_shared'
shared_examples :executor_service do
after(:each) do
subject.kill
subject.wait_for_termination(0.1)
end
it_should_behave_like :global_thread_pool
context '#post' do
it 'rejects the block while shutting down' do
latch = Concurrent::CountDownLatc... | akihiro17/concurrent-ruby | spec/concurrent/executor/executor_service_shared.rb | Ruby | mit | 5,255 |
package dhbw.object.calisthenics.minesweeper;
import java.io.IOException;
public class Start {
public static void main(String[] args) throws IOException {
UserInput userInput = new UserInput();
FieldGenerator fieldGenerator = new FieldGenerator();
Field field = fieldGenerator.next(null);
... | marc1404/dhbw-object-calisthenics | src/dhbw/object/calisthenics/minesweeper/Start.java | Java | mit | 550 |
/*
* Project: UHC
* Class: gg.uhc.uhc.modules.food.ExtendedSaturationModule
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Graham Howden <graham_howden1 at yahoo.co.uk>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the... | Eluinhost/UHC | src/main/java/gg/uhc/uhc/modules/food/ExtendedSaturationModule.java | Java | mit | 3,657 |
# WHAT'S GOING ON IN HERE!?!?
WELL?
| Bergenfrundt/WHATSGOINGONINHERE | README.md | Markdown | mit | 36 |
package in.ac.iitm.students.activities.treasurehunt;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
... | InstituteWebOps/students_app | app/src/main/java/in/ac/iitm/students/activities/treasurehunt/QuestionsActivity.java | Java | mit | 33,048 |
---
layout: post
title: AutoFac - Dynamic resolution of services multiple levels deep
date: 2017-03-22 20:33
comments: false
categories: []
---
<strong>Problem</strong>
Using the [AutoFac](https://autofac.org/) IOC container, I have a hierarchy of services that are three layers deep.
- A service in each layer is bein... | sethflowers/blog | _posts/2017-03-22-AutoFac-dynamic-resolution-of-service-multiple-levels-deep.md | Markdown | mit | 3,000 |
<?php
namespace ride\cli\command\orm\doctrine;
use Doctrine\ORM\Tools\Console\Command\InfoCommand;
use ride\library\dependency\DependencyInjector;
class InfoDoctrineCommand extends AbstractDoctrineCommand {
/**
* @param \ride\library\dependency\DependencyInjector $di
*/
public function __construct(... | all-ride/ride-app-orm-doctrine | src/ride/cli/command/orm/doctrine/InfoDoctrineCommand.php | PHP | mit | 423 |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// White-box tests for transport.go (in package http instead of http_test).
package req
import (
"bytes"
"context"
"crypto/tls"
"errors"
"github.com/imro... | imroc/req | transport_internal_test.go | GO | mit | 6,328 |
class GovernmentPoliticalFigure < ApplicationRecord
belongs_to :user, optional: true
belongs_to :government
belongs_to :political_figure, class_name: Character.name, optional: true
end
| indentlabs/notebook | app/models/page_groupers/government_political_figure.rb | Ruby | mit | 191 |
package codility_tape_equilibrium;
public class frog_jmp {
public static void main(String[] args) {
// TODO Auto-generated method stub
int X=10;
int Y=85;
int D=30;
System.out.println(solution(X,Y,D));
}
public static int solution(int X, int Y, int D)
{
if(X==Y)
return 0;
int i=0;
while(X<Y)
... | hackendemoniado/retos_codility | frog_jmp.java | Java | mit | 360 |
using System;
using System.Web;
using Raven.Client.Documents.Session;
namespace BrickPile.Core.Infrastructure.Listeners
{
/// <summary>
/// Hook for users to provide additional logic on store operations
/// </summary>
internal class StoreListener
{
private readonly Action<string, IPage... | brickpile/brickpile | BrickPile.Core/Infrastructure/Listeners/StoreListener.cs | C# | mit | 3,638 |
/**
* @file src/Modules/imageProc/DistToOrigin.h
* @date Aug 2018
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2018 Ph. Renaud-Goud / Opticalp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the S... | Opticalp/instrumentall | src/modules/imageProc/DistToOrigin.h | C | mit | 2,981 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-64a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: realloc Allocate data using realloc()
* GoodSource: All... | maurer/tiamat | samples/Juliet/testcases/CWE401_Memory_Leak/s03/CWE401_Memory_Leak__struct_twoIntsStruct_realloc_64a.c | C | mit | 3,392 |
package ir.co.dpq.pluf.saas;
public interface IPConfigurationDao {
}
| phoenix-scholars/JPluf | jpluf-core/src/main/java/ir/co/dpq/pluf/saas/IPConfigurationDao.java | Java | mit | 71 |
<?php
/**
* PublicIpListApi
* PHP version 7.3
*
* @category Class
* @package Fastly
* @author oss@fastly.com
*/
/**
* Fastly API
*
* A PHP client library for interacting with most facets of the Fastly API.
*
*/
/**
* NOTE: This class is auto generated.
* Do not edit the class manually.
*/
namespace... | fastly/fastly-php | lib/Api/PublicIpListApi.php | PHP | mit | 11,838 |
@extends('layouts.indexLayout')
@section('content')
<!-- 轮播图-->
<div class="container">
<div class="row">
<div class="col-md-12 carousel">
<img style="width:100%;" src="{{ asset('images/lunbo.jpg') }}" alt="芝麻小程序市场"/>
<button class="btn btn-issue" data-toggle=... | hotapp8/app_market | resources/views/index.blade.php | PHP | mit | 7,117 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About XDE2</source>
<translation>Tentang XDE2</translation>
</message>
<message>
<location... | CoinProjects/XDE2 | src/qt/locale/bitcoin_id_ID.ts | TypeScript | mit | 116,033 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | toaicntt/base | app/config/routes.php | PHP | mit | 2,360 |
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var __ks_Foobar = {};
__ks_Foobar.__ks_func_foobar_0 = function() {
};
__ks_Foobar._im_foobar = function(that) {
var args = Array.prototype.slice.call(arguments, 1, arguments.length);
if(args.length === 0) {
return __ks_Foobar.__ks_... | kaoscript/kaoscript | test/fixtures/compile/type/type.decl.class.default.js | JavaScript | mit | 835 |
<?php
/*
* This file is part of the Lug package.
*
* (c) Eric GELOEN <geloen.eric@gmail.com>
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Lug\Bundle\ResourceBundle\Tests\Form\Extension;
use Lug\Bundle\ResourceBundle... | php-lug/lug | src/Bundle/ResourceBundle/Tests/Form/Extension/BooleanExtensionTest.php | PHP | mit | 5,333 |
import java.io.{BufferedReader, InputStreamReader, PrintWriter}
import java.net.{InetSocketAddress, Socket}
/*
* Copyright (c) 2016 Markus Mulkahainen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | Klyyssi/ties323 | mail-protocols/pop-client/src/main/scala/POP3Client.scala | Scala | mit | 4,689 |
const int SUBARU_MAX_STEER = 2047; // 1s
// real time torque limit to prevent controls spamming
// the real time limit is 1500/sec
const int SUBARU_MAX_RT_DELTA = 940; // max delta torque allowed for real time checks
const uint32_t SUBARU_RT_INTERVAL = 250000; // 250ms between real time checks
const int SUB... | commaai/panda | board/safety/safety_subaru.h | C | mit | 10,558 |
/* ###################################################################
** This component module is generated by Processor Expert. Do not modify it.
** Filename : BitIoLdd2.c
** Project : eurocodec
** Processor : MK22FN512VLH12
** Component : BitIO_LDD
** Version : Component 01.033... | ThisIsNotRocketScience/Eurorack-KDS | eurocodec/Generated_Code/BitIoLdd2.c | C | mit | 13,150 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
*... | kcsl/immutability-benchmark | benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xalan/xsltc/compiler/Sort.java | Java | mit | 26,373 |
package ch.protonmail.vladyslavbond.quizzing.controllers;
public class OptionsControllerException extends ControllerException
{
/**
*
*/
private static final long serialVersionUID = -5021004022535417076L;
public OptionsControllerException(String message, Throwable cause)
{
super(me... | Wbondar/quizzing | controllers/src/main/java/ch/protonmail/vladyslavbond/quizzing/controllers/OptionsControllerException.java | Java | mit | 523 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.