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 |
|---|---|---|---|---|---|
var gulp = require('gulp');
var blocksConfig = require('../config').geniblocksRsrc;
var gvConfig = require('../config').geniverseRsrc;
// Copy files directly simple
exports.geniblocksRsrc = function geniblocksRsrc() {
return gulp.src(blocksConfig.src)
.pipe(gulp.dest(blocksConfig.dest)... | concord-consortium/geniblocks | gulp/tasks/geniblocks-rsrc-task.js | JavaScript | mit | 522 |
<?php
$path = '/home3/johangau/orcapilot';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require_once 'framework_0_2/_include.inc';
$session = new Session();
$pa = new PilotArray();
$pa->loadOperationPilots($_GET['operation']);
include 'framework_0_2/_header.php';
?>
<h3>Make a payment</h3>
<p... | johangau/Orca-Pilot | public_html/app/paypilot.php | PHP | mit | 965 |
import express from 'express'
import adminOnly from 'desktop/lib/admin_only'
import { buildServerApp } from 'reaction/Router'
import { routes } from './routes'
import { renderLayout } from '@artsy/stitch'
import { Meta } from './components/Meta'
const app = (module.exports = express())
app.get('/isomorphic-relay-exam... | kanaabe/force | src/desktop/apps/isomorphic-relay-example/server.js | JavaScript | mit | 1,049 |
//
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// LICENSE: Atomic Game Engine Editor and Tools EULA
// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
//
#pragma once
#include <Atomic/Core/Obje... | rsredsq/AtomicGameEngine | Source/ToolCore/JSBind/JSBEnum.h | C | mit | 1,111 |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include <KcCommon.h> | BlackKingCrab/kingcrab | Build/msvc/KcApp/stdafx.h | C | mit | 196 |
# redux-localstorage-debounce
Storage enhancer to debounce persist requests.
To improve performance, debounce allows you to delay consecutive store changes and persist them periodically instead.
[](https://www.npmjs.com/package/... | elgerlambert/redux-localstorage-debounce | README.md | Markdown | mit | 1,568 |
var view = require("ui/core/view");
var proxy = require("ui/core/proxy");
var dependencyObservable = require("ui/core/dependency-observable");
var color = require("color");
var bindable = require("ui/core/bindable");
var types;
function ensureTypes() {
if (!types) {
types = require("utils/types");
}
}
v... | danik121/HAN-MAD-DT-NATIVESCRIPT | node_modules/tns-core-modules/ui/segmented-bar/segmented-bar-common.js | JavaScript | mit | 4,284 |
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace advent.Solutions
{
[UsedImplicitly]
internal class Day1 : Day
{
public Day1()
{
DayNumber = 1;
LoadInput();
}
#region IDay Memb... | rnelson/adventofcode | advent2019/advent/Solutions/Day1.cs | C# | mit | 1,433 |
// This code is part of the Fungus library (https://github.com/snozbot/fungus)
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
namespace Fungus
{
public class GameObjectCollection : GenericCollection<UnityEngine.GameObject>
{
}
} | snozbot/fungus | Assets/Fungus/Scripts/VariableTypes/Collection/GameObjectCollection.cs | C# | mit | 314 |
<?php
require_once __DIR__ . '/fpBaseErrorNotifierDecorator.php';
/**
*
* @package fpErrorNotifier
* @subpackage decorator
*
* @author Maksim Kotlyar <mkotlar@ukr.net>
*/
class fpErrorNotifierDecoratorHtml extends fpBaseErrorNotifierDecorator
{
/**
*
* @return string
*/
public function forma... | CollectorsQuest/cqErrorNotifierPlugin | lib/decorator/fpErrorNotifierDecoratorHtml.php | PHP | mit | 2,031 |
package nineChap5_DP2;
/**
* http://www.lintcode.com/en/problem/regular-expression-matching/
* Created at 9:59 AM on 11/29/15.
*/
public class RegularExpressionMatching {
public static void main(String[] args) {
String s = "aaaab";
String p = "a*b";
boolean ans = new RegularExpressionMatching().isMatc... | vlsi1217/leetlint | src/nineChap5_DP2/RegularExpressionMatching.java | Java | mit | 2,348 |
a = [1,2,3,4,5]
b = [2,3,4,5,6]
to_100=list(range(1,100))
print ("Printing B")
for i in a:
print i
print ("Printing A")
for i in b:
print i
print ("Print 100 elements")
for i in to_100:
print i | davidvillaciscalderon/PythonLab | Session 4/bucles.py | Python | mit | 211 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSeeds</source>
<translation>Sobre BitSeeds</translation>
</message>
<message>
<lo... | BitSeedsFoundation/BitSeeds | src/qt/locale/bitcoin_ca_ES.ts | TypeScript | mit | 132,255 |
'use strict';
module.exports = ({ app, controllers, authentication }) => {
const controller = controllers.auth;
const authRoute = '/api/auth';
app.post(authRoute + '/register', controller.register);
app.post(authRoute + '/login', controller.loginLocal);
app.get(authRoute + '/logout', controller.log... | Team3OfAKind/course-project-back-end | server/routers/auth-router.js | JavaScript | mit | 405 |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ROUTES</title>
<link rel="stylesheet" href="themes/koko2.min.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons... | ans-4175/tripapp | backup/route.html | HTML | mit | 4,335 |
<?php
namespace DF\PHPCoverFish\Common;
/**
* Class CoverFishPHPUnitTest, wrapper for all phpUnit testClass files
*
* @package DF\PHPCoverFish
* @author Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @copyright 2015 Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @license http://www.opensource.org/l... | dunkelfrosch/phpcoverfish | src/PHPCoverFish/Common/CoverFishPHPUnitTest.php | PHP | mit | 5,429 |
# Apache-Virtual-Hosts-Creator
A simple bash script that can automate the process of **creating a virtual host** onto your Linux distribution. Note that I have tested this only on **Debian Jessie** and I hope it will work fine on your configuration as well. You can rise an issue or contribute if you experience any tro... | aduh95/Apache-Virtual-Hosts-Creator | README.md | Markdown | mit | 3,292 |
'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('home', {
url: '/',
temp... | LuisPe/norisk | public/modules/core/config/core.client.routes.js | JavaScript | mit | 514 |
---
published: true
title: Bad Web Design: A Matter of Perspective?
layout: post
---

I read a very interesting (and surprising) article from the [Washington Post](https://www.washingtonpost.com/news/the-intersect/wp/2016/05/09/the-hottest-trend-in-web-design-is-intentionally-... | JeffNevil/JeffNevil.github.io | _posts/2016-06-08-bad-web-design-a-matter-of-perspective.markdown | Markdown | mit | 4,360 |
# Contributing
## Pull Requests Welcome
1. Fork ueberauth_facebook
2. Create a topic branch
3. Make logically-grouped commits with clear commit messages
4. Push commits to your fork
5. Open a pull request against ueberauth_facebook/master
## Issues
If you believe there to be a bug, please provide the maintainers wit... | ueberauth/ueberauth_facebook | CONTRIBUTING.md | Markdown | mit | 445 |
var m2pong = require('./m2pong');
Player = function(connection, name, nr){
this.connection = connection;
this.name = name;
this.nr = nr;
this.x = 0;
this.y = 0;
this.height = 0;
this.width = 0;
this.score = 0;
this.move = function(x, y){
this.x = x;
this.y = y;
m2pong.sendToDisplays('movePlayer',... | sabl0r/m2pong | server/player.js | JavaScript | mit | 547 |
var _ = require("underscore");
var os = require("os");
var path = require("path");
var assert = require("assert");
// All of these functions are attached to files.js for the tool;
// they live here because we need them in boot.js as well to avoid duplicating
// a lot of the code.
//
// Note that this file does NOT con... | mjmasn/meteor | tools/static-assets/server/mini-files.js | JavaScript | mit | 3,947 |
<?php
$hostname_conn = "localhost";
$database_conn = "tcc_interface";
$username_conn = "root";
$password_conn = "senha.123";
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
?>
| giovaniandrerizzardi/tccgiovani | script/conn.php | PHP | mit | 246 |
<?php
/**
* Enable an Item
*/
class fleetManagerOfficeItemEnableProcessor extends modObjectProcessor {
public $objectType = 'fleetManagerItem';
public $classKey = 'fleetManagerItem';
public $languageTopics = array('fleetmanager');
//public $permission = 'save';
/**
* @return array|string
*/
public functi... | ananimals/fleetmanager | core/components/fleetmanager/processors/office/item/enable.class.php | PHP | mit | 957 |
---
layout: page
title: Storm Motors Trade Fair
date: 2016-05-24
author: Jordan Christensen
tags: weekly links, java
status: published
summary: Pellentesque vitae vehicula velit, vitae pharetra.
banner: images/banner/leisure-01.jpg
booking:
startDate: 07/27/2018
endDate: 08/01/2018
ctyhocn: TULHSHX
groupCode: S... | KlishGroup/prose-pogs | pogs/T/TULHSHX/SMTF/index.md | Markdown | mit | 2,882 |
Personal Library
================
Based on Symfony Standard Edition
--------------------------------- | kalitvin/library | README.md | Markdown | mit | 102 |
<?php
/*******************************************************************************
*
* filename : PersonView.php
* last change : 2003-04-14
* description : Displays all the information about a single person
*
* http://www.infocentral.org/
* Copyright 2001-2003 Phillip Hullquist, Deane Barker, Chris G... | focuz07/CRM | churchinfo/PersonView.php | PHP | mit | 35,722 |
# InterClubBadminton
Helper to create and manage teams in Badminton
# License
[![License status] (https://img.shields.io/badge/License-MIT License-blue.svg)] (https://github.com/fredatgithub/InterClubBadminton#License status)
| fredatgithub/InterClubBadminton | README.md | Markdown | mit | 228 |
import DS from 'ember-data';
export default DS.Model.extend({
user: DS.belongsTo('user'),
userUsername: DS.attr('string'),
emailNotifications: DS.attr('boolean')
});
| jbingham94/innovation-week-project | example_app/static/example_app/app/models/user-profile.js | JavaScript | mit | 179 |
angular-form-app
=================
This application demonstrates usage of business rules engine [business-rules-engine](https://github.com/rsamec/business-rules-engine) in AngularJS.
It uses example of [vacation approval business rules] (https://github.com/rsamec/business-rules/blob/master/dist/vacationApproval/README... | rsamec/angular-form-app | README.md | Markdown | mit | 1,524 |
from ga_starters import * | Drob-AI/music-queue-rec | src/playlistsRecomender/gaPlaylistGenerator/__init__.py | Python | mit | 25 |
</div>
<footer>
<p>Copyright 2013 Solidyn Solutions, Inc.</p>
</footer>
</div> <!--! end of #container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<scr... | solidyn/universe.js | utils/jsdoc/templates/universe_web/static/footer.html | HTML | mit | 1,487 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<?php
require_once("../../vendor/autoload.php");
use OpenDataAPI\aggregator\providers\government\BankGovUa;
use OpenDataAPI\aggregator\constants\DataFormat;
use OpenDataAPI\aggregator\constants\Currency;
$response = BankGovUa::... | OpenDataAPI/aggregator | examples/government/bank-gov-ua.php | PHP | mit | 577 |
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("14... | g-yonchev/TelerikAcademy | Homeworks/C# 1/06.LoopsHW/14. DecimalToBinaryNumber/Properties/AssemblyInfo.cs | C# | mit | 1,426 |
#!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from te... | segwit/atbcoin-insight | qa/rpc-tests/p2p-feefilter.py | Python | mit | 4,317 |
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/ps-react-shuki/manifest.json"><link rel="shortcut icon" href="/ps-react-shuki/favicon.ico"><title>React Ap... | Shuki-L/ps-react-shuki | build/index.html | HTML | mit | 608 |
'use strict';
// Tasks controller
angular.module('tasks').controller('TasksController', ['$scope', '$stateParams', '$location', 'Authentication', 'Tasks',
function($scope, $stateParams, $location, Authentication, Tasks) {
$scope.authentication = Authentication;
$scope.bases = [
{name: 'Squat', lift: 'squat'}, ... | kyleaziz/lptrack | public/modules/tasks/controllers/tasks.client.controller.js | JavaScript | mit | 1,862 |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8">
<base href="https://wordbit.com">
<title> Technology </title>
<link rel="canonical" href="https://wordbit.com/categories/technology/">
<link rel="stylesheet" href="/css/poole.css">
<li... | wordbit/wordbit | public/categories/technology/index.html | HTML | mit | 25,027 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/ma/manatee.trello.restsharp.1.2.0.2/Manatee.Trello.RestSharp-net35.html | HTML | mit | 9,663 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.communication.models;
import com.azure.resourcemanager.communication.fluent.models.LinkedNotificationHubInner;
/** An immutable... | Azure/azure-sdk-for-java | sdk/communication/azure-resourcemanager-communication/src/main/java/com/azure/resourcemanager/communication/models/LinkedNotificationHub.java | Java | mit | 796 |
use strict;
use warnings;
use Repo;
use User;
use Lang;
use Result;
use Utils;
use constant {
DEL_N => 5000
};
$|=1;
{
print "$0: loading ..\r";
my $repo = new Repo("./download/repos.txt");
my $lang = new Lang("./download/lang.txt", $repo);
my $user = new User("./download/contest_data.txt", $lang);... | ultraist/github-contest2009 | test_trainset.pl | Perl | mit | 1,197 |
<div class="help">
<h1>Photo Album Help</h1>
<p>
About..
</p>
<p>
Create new...
</p>
<p>
Edit and delete..
</p>
</div>
| olle/baseweb | web/baseweb/modules/galleries/help/help_en.html | HTML | mit | 132 |
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("Pr... | atanas-georgiev/TelerikAcademy | 02.CSharp-Part-2/Homeworks/Homework3/Problem15NumberCalculations/Properties/AssemblyInfo.cs | C# | mit | 1,462 |
<?php
/* MyBlogBundle:Page1:show.html.twig */
class __TwigTemplate_08fcdadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $this-... | ceccy13/myblog-symfony2 | app/cache/dev/twig/08/fc/dadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f.php | PHP | mit | 2,528 |
/*
* Copyright (c) 2014 Nutanix Inc. All rights reserved.
*
* Author: cui@nutanix.com
*
* 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 limitatio... | cuinutanix/2048 | console.h | C | mit | 1,581 |
<extend name="Public:registBase"/>
<block name="content">
<div class="box">
<div class="top">
<a class="tjt" href="__URL__/welcome"><img src="__PUBLIC__/images/tjt_03.png"></a>
<a class="a1">登陆</a>
<a class="a2" href="#">完成</a>
</div>
<div class="z... | kkme/WxShop | Application/Home/View/Regist/login.html | HTML | mit | 1,931 |
scramble-web
============
| sarachour/scramble-web | README.md | Markdown | mit | 26 |
require_relative '../../../spec_helper'
require_relative '../../../../lib/noaa_weather_client/responses/current_observation'
module NoaaWeatherClient
module Responses
describe CurrentObservation do
let(:body) {
VCR.use_cassette(:current_observations, match_requests_on: [:method, :uri]) { |c|
... | tylerdooling/noaa_weather_client | spec/lib/noaa_client/responses/current_observation_spec.rb | Ruby | mit | 4,618 |
//
// DSRHomeTableViewController.h
// 倒数日
//
// Created by 马婷婷 on 15/8/13.
// Copyright © 2015年 Cara. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DSRHomeTableViewController : UITableViewController
@end
| cararila/Reciprocal-day-customTableView | 倒数日/Class/Home/DSRHomeTableViewController.h | C | mit | 239 |
---
published: true
title: How Essay Writing Services Help Students Succeed
layout: post
tags: [Essay, Writing, Service, Essay, Writing, Services, Essay, Writing, Help]
categories: [Essays]
---
It is necessary for students to know that is only the essay writing services that can make the process of writing an es... | AlbertBarkley/AlbertBarkley.github.io | _posts/2016-09-05-how-essay-writing-services-help-students-succeed.markdown | Markdown | mit | 3,357 |
service-solahart-menteng-081284422644
=====================================
cv raffi jaya utama call 081284422644-087820647381 adalah perusahaan yang bergerak dibidang jasa penjualan SOLAHART,HANDAL,& WIKA SWH SOLAR WATER HEATER, KAMI JUGA MELAYANI SERVICE SOLAHART,HANDAL,WIKA SWH,EDWARDS, melayani service segala ... | tanggamasutama/service-solahart-menteng-081284422644 | README.md | Markdown | mit | 942 |
DROP PROCEDURE IF EXISTS selectResetLinks;
DELIMITER $$
CREATE PROCEDURE selectResetLinks(p_timeout_minutes SMALLINT UNSIGNED)
/* By making the parameter unsigned smallint, it has a max value of 65535 */
/* So effectively, the longest expiration that can be generated with this */
/* procedure is 65535 minutes, which ... | Discordanian/mmatch | sql/selectResetLinks.sql | SQL | mit | 1,724 |
angular
.module('eventApp', [
'ngResource',
'ui.bootstrap',
'ui.select',
'ui.bootstrap.datetimepicker',
'global',
'messagingApp',
'datasetApp'
])
.constant('HEK_URL', 'http://www.lmsal.com/hek/her')
.constant('HEK_QUERY_PARAMS', {
'cosec': 2, // ask for json
'cmd': 'search', // search command
'type': 'column'... | bmampaey/SVO | event/module.js | JavaScript | mit | 1,566 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | PhillyNJ/SAMD21 | cryptoauthlib/docs/html/a00961.html | HTML | mit | 6,596 |
table.frontEndTable {
width:100%;
border:solid 1px #CCC;
font-size:11px;
}
table.frontEndTable th {
padding:3px 10px 3px 10px;
text-align:left;
border: solid 1px #000 !important;
font-weight:bold;
background-color:#F2CA58;
color:#000;
}
table.frontEndTable tr {
border-bottom: ... | dertinfo-david/dertinfo-web | Content/styles/Tables.css | CSS | mit | 398 |
<?php
namespace BramR\Stack;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class Heartbeat implements HttpKernelInterface
{
const MESSAGE = 'OK';
protected $app;
protected $handler;
protected $route;... | bramr/stack-heartbeat | src/Heartbeat.php | PHP | mit | 1,394 |
'use strict';
module.exports = {
db: 'mongodb://localhost/qaapp-dev',
//db: 'mongodb://nodejitsu:e0b737c9d532fc27e1e753a25a4f823e@troup.mongohq.com:10001/nodejitsudb3924701379',
mongoose: {
debug: true
},
app: {
name: 'AskOn'
},
facebook: {
clientID: 'DEFAULT_APP_ID',
clientSecret: 'APP_S... | Chien19861128/qa-app | config/env/development.js | JavaScript | mit | 1,201 |
package com.flowpowered.math.imaginary;
import java.io.Serializable;
import com.flowpowered.math.GenericMath;
import com.flowpowered.math.HashFunctions;
import com.flowpowered.math.TrigMath;
import com.flowpowered.math.matrix.Matrix3f;
import com.flowpowered.math.vector.Vector3f;
/**
* Represent a quaternion of the... | DragonSphereZ/DragonSphereZ | src/com/flowpowered/math/imaginary/Quaternionf.java | Java | mit | 29,581 |
//
// kit.cpp
// Neo4j-cpp-driver
//
// Created by skyblue on 2017/7/9.
// Copyright © 2017年 skyblue. All rights reserved.
//
#include "kit.hpp"
#include <sstream>
namespace neo4jDriver
{
//Neo4j工具包
std::string Kit::getStatusCode(std::string httpHeader)
{
size_t begin = httpHeader.find_f... | skybluezx/Neo4j-cpp-driver | kit.cpp | C++ | mit | 4,696 |
package hello;
import static org.hamcrest.Matchers.equalTo;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframewor... | mikoto2000/MiscellaneousStudy | java/SpringBoot/BuildingAnApplicationWithSpringBoot/src/test/java/hello/HelloControllerTest.java | Java | mit | 1,188 |
// Based on original code by Tim Kientzle, March 2009.
#include <util.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boost/filesystem.hpp>
/* Parse an octal number, ignoring leading and trailing nonsense. */
static int
parseoct(const char *p, size_t n)
{
int i = 0;
while ((*p < '0'... | navcoindev/navcoin-core | src/untar.cpp | C++ | mit | 4,450 |
package al.artofsoul.data;
import java.util.concurrent.CopyOnWriteArrayList;
public class TowerIce extends Tower {
public TowerIce(TowerType type, Pllaka filloPllaka, CopyOnWriteArrayList<Armiku> armiqt) {
super(type, filloPllaka, armiqt);
}
@Override
public void shoot (Armiku target) {
super.projectiles.a... | tonikolaba/MrTower | src/al/artofsoul/data/TowerIce.java | Java | mit | 429 |
""" TODO: Add docstring """
import re
import pexpect
class MediaObject(object):
"""Represents an encodable object"""
def __init__(self, input_filename, output_filename):
self.input_filename = input_filename
self.output_filename = output_filename
self.media_duration = self.get_media_d... | thethomaseffect/travers-media-tools | traversme/encoder/media_object.py | Python | mit | 2,000 |
module.exports = function ( grunt ) {
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
banner: '/*!\n' +
'* <%= pkg.name %> v<%= pkg.version %> - <%= pkg.description %>\n' +
'* Copyright (c) <%= grunt.template.today(\'yyyy\') %> <%= pkg.author %>. All rights reserved... | yaohaixiao/AutocJS | Gruntfile.js | JavaScript | mit | 5,753 |
/*BEGIN_LEGAL
Copyright (c) 2004-2014, Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of... | Granary/granary2 | dependencies/xed2-intel64/include/xed-iform-enum.h | C | mit | 296,260 |
package com.iosdevlog.a94staticcalendarview;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... | AndroidDevLog/AndroidDevLog | 94.StaticCalendarView/app/src/test/java/com/iosdevlog/a94staticcalendarview/ExampleUnitTest.java | Java | mit | 413 |
#pragma once
#include "p2List.h"
#include "Globals.h"
#include "Module.h"
#include "Dummy.h"
#include "ModuleWindow.h"
#include "ModuleRender.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleSceneIntro.h"
class Application
{
public:
ModuleRender* renderer;
ModuleWindow* window;
ModuleTexture... | d0n3val/Vertex-Box2D | Application.h | C | mit | 659 |
import random
import musictheory
import filezart
import math
from pydub import AudioSegment
from pydub.playback import play
class Part:
def __init__(self, typ=None, intensity=0, size=0, gen=0, cho=0):
self._type = typ #"n1", "n2", "bg", "ch", "ge"
if intensity<0 or gen<0 or cho<0 or size<0 or inte... | joaoperfig/mikezart | source/markovzart2.py | Python | mit | 8,058 |
/*
setInterval(function() {
console.log(document.activeElement);
}, 1000);
*/
/*
* Notes regarding app state/modes, activeElements, focusing etc.
* ==============================================================
*
* 1) There is always exactly one item selected. All executed commands
* operate on this item.
... | sysuzhang/my-mind | src/app.js | JavaScript | mit | 3,807 |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class MenuSettingController extends MY_Controller {
public function __construct(){
parent ::__construct();
$this->is_logged_in();
$this->load->model('menuDao');
}
publ... | didikhari/sekode | application/controllers/MenuSettingController.php | PHP | mit | 2,837 |
// Data Structures: Maps
// Using tuples, maps are very easy to create.
val numbers = Map(1 -> 2, 3 -> 4)
// numbers: Map[Int,Int] = Map(1 -> 2, 3 -> 4)
// You can think of Maps a set of tuples
// where uniquness is determined by the key
// Moreover...
// Map(1 -> "one", 2 -> "two")
// expands into
// Ma... | agconti/scala-school | 01-intro-to-scala/slides/slide031.scala | Scala | mit | 348 |
'use strict';
// Setting up route
angular.module('publications').config(['$stateProvider',
function ($stateProvider) {
// publications state routing
$stateProvider
.state('publications', {
abstract: true,
url: '/publications',
template: '<ui-view/>'
})
.state('public... | hibernator11/Galatea | modules/publications/client/config/publications.client.routes.js | JavaScript | mit | 1,447 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - materials - displacement map</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background:#000;
color:#fff;
padding:0;
margi... | jimparsley/ThreeExperiments | sierpinski-dodecahedron.html | HTML | mit | 6,504 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no" />
<title>无标题文档</title>
<script>
var html = document.getElementsByTagName("html")[0];
setRem();
window.addEventListener("resize",setRem,false);
window.addEventListener("orientationchange",setRem,fals... | skybjf/MyTestProject | 20160423/2_下拉加载.html | HTML | mit | 3,061 |
define(function() {
var ctor = function () {
};
//Note: This module exports a function. That means that you, the developer, can create multiple instances.
//This pattern is also recognized by Durandal so that it can create instances on demand.
//If you wish to create a singleton, you should export a... | monmamo/Website | app/Misc/home.js | JavaScript | mit | 375 |
package components;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.... | Zippocat/JavaFX-MyVoip | src/components/HttpClientExample.java | Java | mit | 2,204 |
---
layout: post
title: "Výtečná zábava"
date: 2004-09-24 12:40:20
categories: blog
---
Tak jsem včera, jako čerstvý doktorand, byl na své první schůzi katedry. Dorazil jsem v dostatečném časovém předstihu, protože přeci jen pozdní příchod, kdy na mne bude upřen vyčítavý pohled ne jednoho, ale všech pedagogů, bych ... | kuniman/kuniman.github.io | _posts/2004-09-24-vytecna-zabava.markdown | Markdown | mit | 1,075 |
---
title: Info Page
layout: default
layout_type: one-sidebar
display: info-page
---
<article class="main-content">
<div class="content-primary">
{% include components/global/sub-nav.html %}
<header class="article-header">
<h1 class="article-title">A Sample Info Page</h1>
</header> <!-- /.article-h... | Lullabot/namm-wireframes | info-page.html | HTML | mit | 4,952 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Words;
using Aspose.Words.Reporting;
namespace CSharp.LINQ
{
class PieChart
{
public static void Run()
{
// The path to the documents directory.
string dataDir = RunExampl... | assadvirgo/Aspose_Words_NET | Examples/CSharp/LINQ/PieChart.cs | C# | mit | 1,034 |
package demo.java.v2c03network.InetAddressTest;
import java.net.*;
/**
* This program demonstrates the InetAddress class. Supply a host name as command line argument, or
* run without command line arguments to see the address of the local host.
* @version 1.01 2001-06-26
* @author Cay Horstmann
*/
public... | myid999/javademo | core/src/main/java/demo/java/v2c03network/InetAddressTest/InetAddressTest.java | Java | mit | 918 |
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#include <core/os.h>
#include <core/object.h>
#include <core/class.h>
#ifndef ENABLE
#define ENABLE NV_DEVICE_DISABLE_MMIO
#endif
#ifndef DEBUG0
#define DEBUG0 0ULL
#endif
int
main(int argc, char **argv)
{
struct nouveau_object *client;
struct nouveau_obj... | mupuf/pdaemon_trace | nouveau/bin/nv_rdfunc.h | C | mit | 2,625 |
package com.example.kb.clearsky.model.api_specific;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class WeatherDescription {
@SerializedName("id")
@Expose
private Integer weatherID;
@SerializedName("main")
@Expose
private String mainCate... | kolboch/ClearSkyApp | app/src/main/java/com/example/kb/clearsky/model/api_specific/WeatherDescription.java | Java | mit | 1,145 |
// Generated on 2014-07-03 using
// generator-webapp 0.5.0-rc.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long ta... | openchattanooga/chattanooga-bike-parking-locator | Gruntfile.js | JavaScript | mit | 10,821 |
package no.westerdals.eksamen.app2;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.... | Mariusrik/schoolprojects | Mobil utvikling eksamen/hotelapplikasjon/src/main/java/no/westerdals/eksamen/app2/LoginActivity.java | Java | mit | 8,745 |
h1 {
margin-bottom: 1.5rem;
}
.tab-content {
margin: 20px;
}
.btn {
margin-top: 20px;
} | md384/media-reminder | mediadownloader/static/css/download-form.css | CSS | mit | 101 |
import should from 'should';
import Schema from '../../src/schema';
const SIMPEL_OBJECT = {
type: 'object',
properties: {
name: { type: 'string' }
}
};
describe('Schema', () => {
describe('#getType', () => {
it('should return string type for child', () => {
const schema = new Schema(SIMPEL_OBJEC... | surikaterna/formr | test/schema/schema.js | JavaScript | mit | 1,034 |
<?php
namespace CE\UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('CEUserBundle:Default:index.html.twig', array('name' => $name));
}
}
| akraxx/site-ce | src/CE/UserBundle/Controller/DefaultController.php | PHP | mit | 295 |
<?php
namespace siigap\FichasBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use siigap\FichasBundle\Form\ConsultaPersonasType;
use siigap\FichasBundle\Form\ConsultaViviendasType;
use siigap\FichasBundle\Form\ConsultaFichasType;
class Consult... | isabelmonterob/iframe | src/siigap/FichasBundle/Controller/ConsultasController.php | PHP | mit | 7,249 |
# lib/sleeping_king_studios/tasks/apps/bundle.rb
require 'sleeping_king_studios/tasks/apps'
module SleepingKingStudios::Tasks::Apps
# Thor tasks for maintaing gem dependencies in semi-distributed applications.
module Bundle; end
end # module
| sleepingkingstudios/sleeping_king_studios-tasks | lib/sleeping_king_studios/tasks/apps/bundle.rb | Ruby | mit | 248 |
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.9.0.0
// File : DataPoint_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//--... | SoubhagyaDash/ApplicationInsights-Home | Samples/Mistral/src/maestro/src/Contracts/Generated/DataPoint.cs | C# | mit | 1,563 |
#include "../platform.h"
namespace Platform {
void sleep(long seconds, long milliseconds) {} //stub
int createWindow(char *title, int width, int height, int bpp, bool fullscreen) { return 0; }
int closeWindow() { return 0; }
void swapBuffers() {}
void pump() { //do our work here...
}
void grabMouse... | bargle/SympEngine | System/Platform/ios/platform.cpp | C++ | mit | 502 |
/******************************************************************************************
* Data Structures in C++
* ISBN: 7-302-33064-6 & 7-302-33065-3 & 7-302-29652-2 & 7-302-26883-3
* Junhui DENG, deng@tsinghua.edu.cn
* Computer Science & Technology, Tsinghua University
* Copyright (c) 2006-2013. All rig... | 0704681032/Java8InAction | 清华大学邓俊辉老师数据结构资料/dsa/src/_java/dsa/splaytree.java | Java | mit | 8,076 |
namespace _01.Shapes.Common
{
using System;
public static class Validator
{
private const int MIN_RANGE = 0;
private const string MinRangeMessage = "{0} cannot be less or equal to 0";
public static void CheckIfZero(double element, string message = null)
{
... | stoyanov7/TelerikAcademy | ProgrammingWithC#/03.C#ObjectOrientedProgramming/05.OOPPrinciplesPart2/Homework/01.Shapes/01.Shapes/Common/Validator.cs | C# | mit | 491 |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... | Paralideres/clives | app/Http/Kernel.php | PHP | mit | 1,789 |
module QA
module Page
module Project
module Operations
module Kubernetes
class AddExisting < Page::Base
view 'app/views/projects/clusters/user/_form.html.haml' do
element :cluster_name, 'text_field :name'
element :api_url, 'text_field :api_url'
... | jirutka/gitlabhq | qa/qa/page/project/operations/kubernetes/add_existing.rb | Ruby | mit | 1,227 |
import { key, PLAY, PAUSE, MUTE, UNMUTE, UPDATE_VOLUME, UPDATE_TIME, SET_SONG, SET_TIME, updateTime } from './actions'
import { store } from '../store'
let audio = new Audio()
audio.addEventListener('timeupdate', event => store.dispatch(updateTime(event)))
const initialState = {
isPlaying: false,
muted: false,
... | shempignon/podcast-api | app/Resources/js/player/reducer.js | JavaScript | mit | 1,630 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AcademyEcosystem
{
public class EngineExtend : Engine
{
protected override void ExecuteBirthCommand(string[] commandWords)
{
switch (commandWords[1])
... | MystFan/TelerikAcademy | C# OOP/Exam Preparation/AcademyEcosystem/AcademyEcosystem/EngineExtend.cs | C# | mit | 2,108 |
require 'test_helper'
class ContactsControllerTest < ActionController::TestCase
setup do
@contact = contacts(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:contacts)
end
test "should get new" do
get :new
assert_response :success
en... | shaine/squidtree | test/functional/contacts_controller_test.rb | Ruby | mit | 1,150 |
package simpl.typing;
public final class ListType extends Type {
public Type t;
public ListType(Type t) {
this.t = t;
}
@Override
public boolean isEqualityType() {
// TODO Done
return t.isEqualityType();
}
@Override
public Substitution unify(Type t) throws Ty... | MihawkHu/SimPl | src/simpl/typing/ListType.java | Java | mit | 1,105 |
package com.felipecsl.gifimageview.app;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import com.felipecsl.gifimageview.library.GifImageView... | felipecsl/GifImageView | app/src/main/java/com/felipecsl/gifimageview/app/GifGridAdapter.java | Java | mit | 1,665 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.