repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
nileshlg2003/koan | server/controllers/signin.js | 5541 | 'use strict';
/**
* Password based signin and OAuth signin functions.
*/
var qs = require('querystring'),
route = require('koa-route'),
parse = require('co-body'),
jwt = require('koa-jwt'),
request = require('co-request'),
config = require('../config/config'),
mongo = require('..... | mit |
joachifm/pwcrypt | src/Crypto.hs | 6792 | {-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-|
Briefly, the encryption scheme is a variant of the PBES2 encryption scheme,
described in RFC 2898 section 6.2.
@
Pass = User-supplied passphrase
Salt = 64 bytes of cryptographic salt
c = PBKDF2 iteration count
DerivedKey ... | mit |
adachenski/JavaScript-Homeworks | OperatorsAndExpressions/InTheCircleOutsideRaectangle/PointInInTheCircleOutsideRaectangle.html | 727 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Raectangle Area</title>
<link href="../styles/js-console.css" rel="stylesheet" />
</head>
<body>
<div id="mainHeader">
<label for="tb-range-start">X = </label>
<input type="text" placeholder="Enter point X" id="tb-ran... | mit |
DenicaAtanasova/02.TechModule | 01. Programming Fundamentals/Lesson2ConditionsAndLoops/Lab2PassedOrFailed/Properties/AssemblyInfo.cs | 1407 | 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("Lab... | mit |
aurelia/i18n | test/unit/nfvalueconverter.spec.ts | 1542 | import { I18N } from "../../src/i18n";
import { BindingSignaler } from "aurelia-templating-resources";
import { NfValueConverter } from "../../src/nf/nf-value-converter";
import { EventAggregator } from "aurelia-event-aggregator";
describe("nfvalueconverter tests", () => {
let sut: I18N;
let nfvc: NfValueConverter... | mit |
megahertz/js-simple-plurals | web/fi.js | 750 | /**
* Plural rules for the fi (Finnish, suomi, suomen kieli) language
*
* This plural file is generated from CLDR-DATA
* (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html)
* using js-simple-plurals and universal-i18n
*
* @param {number} p
* @return {number} 0 - one, 1 - other
*... | mit |
leesnhyun/SE2016 | src/test/java/controller/TabPaneSceneControllerTest.java | 3085 | package controller;
import javafx.scene.Node;
import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseButton;
import javafx.stage.Stage;
import model.FileManager;
import model.FileManagerInterface;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.testfx.api.FxToolkit;
import... | mit |
OneBitSoftware/NetCore.CSOM | Microsoft.SharePoint.Client.NetCore/EventReceiverDefinition.cs | 5375 | using Microsoft.SharePoint.Client.NetCore.Runtime;
using System;
using System.ComponentModel;
namespace Microsoft.SharePoint.Client.NetCore
{
[ScriptType("SP.EventReceiverDefinition", ServerTypeId = "{a8d3515c-1135-4fff-95a6-4e5e5fff4adc}")]
public sealed class EventReceiverDefinition : ClientObject
{
... | mit |
hectorbenitez/flask-heroku | flas/decorators.py | 408 | from functools import wraps
import os
from flask import request
from werkzeug.utils import redirect
ssl_required_flag = os.environ.get('SSL_REQUIRED', False) == 'True'
def ssl_required(fn):
@wraps(fn)
def decorated_view(*args, **kwargs):
if ssl_required_flag and not request.is_secure:
return redirect(request.u... | mit |
dsjomina/RSSFeed | RSSFeed/RSSFeed/RssView.aspx.cs | 2341 | using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Xml;
namespace RSSFeed
{
public partial class RssView : Page
{
protected void Page_Load(object sender, EventArgs e)
{
BindRssRepeater();
}
private void BindRssRepeater()
{
... | mit |
jajmo/Ghetto-IMDB | static/js/movies.js | 6246 | /*global Ghetto*/
(function ($) {
$('div').on('click', '.save-button', function (e) {
var id = $(this).attr('data-id');
//trim genre off the end of id (it was there for uniqueness on the page)
id = id.substring(0, id.indexOf('_'));
$('[id^=save-button-div-' + id + ']').collapse('h... | mit |
Planeshifter/node-wordnetify-sample | lib/annotateRandomSample.js | 1860 | 'use strict';
var fs = require( 'fs' );
var path = require( 'path' );
var readlineSync = require( 'readline-sync' );
require( 'plus_arrays' );
require( 'colors' );
var freqTable = require( './freqTable' );
function annotateRandomSample( inputFile, options ) {
// if path is not absolute, make it absolute with resp... | mit |
lolkedijkstra/xml2j-gen | tutorial/choice/docs/com/xml2j/tutorial/choice/application/package-frame.html | 1053 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="nl">
<head>
<!-- Generated by javadoc (1.8.0_51) on Fri Jan 13 16:45:46 CET 2017 -->
<title>com.xml2j.tutorial.choice.application</title>
<meta name="date" content="2017-01-13">
<link rel=... | mit |
MyController/ucclient | src/uc_client/model/user.php | 9134 | <?php
/*
[UCenter] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: user.php 1078 2011-03-30 02:00:29Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class usermodel
{
var $db;
var $base;
function __construct(&$base)
{
$this->usermodel($bas... | mit |
caseyamcl/Configula | src/Util/LocalDistFileIterator.php | 2452 | <?php
/**
* Configula Library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/caseyamcl/configula
* @version 4
* @package caseyamcl/configula
* @author Casey McLaughlin <caseyamcl@gmail.com>
*
* For the full copyright and license information, - please view the LICENSE.md
* file tha... | mit |
jdhenke/pad | server/pad/paxos.go | 13355 | package pad
//
// Paxos library, to be included in an application.
// Multiple applications will run, each including
// a Paxos peer.
//
// Manages a sequence of agreed-on values.
// The set of peers is fixed.
// Copes with network failures (partition, msg loss, &c).
// Does not store anything persistently, so cannot ... | mit |
jennydjen/NoteDeFrais | src/Jenny/ImportBundle/JennyImportBundle.php | 130 | <?php
namespace Jenny\ImportBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class JennyImportBundle extends Bundle
{
}
| mit |
fbiville/annotation-processing-ftw | doc/java/jdk7/org/omg/CORBA/class-use/ORB.html | 27144 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_18) on Thu Dec 18 17:18:42 PST 2014 -->
<title>Uses of Class org.omg.CORBA.ORB (Java Platform SE 7 )</title>
<meta name="date" content=... | mit |
phisiart/C-Compiler | Scanner/String.cs | 4376 | using System;
namespace LexicalAnalysis {
/// <summary>
/// String literal
/// </summary>
public sealed class TokenString : Token {
public TokenString(String val, String raw) {
if (val == null) {
throw new ArgumentNullException(nameof(val));
}
... | mit |
rebeccamorgan/rebeccamorgan.github.io | _site/projects/index.html | 9398 | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | mit |
GenericDataSource/GenericDataSource | CHANGELOG.md | 2436 | # GenericDataSource
## 3.0.2
* Upgrade to Xcode 9.3.
## 3.0.1
* Fix a crash in `CompositeSupplementaryViewCreator`.
## 3.0.0
* Swift 4.0 Support.
## 2.4.5
* Adding `onItemsUpdated` to basic data sources to monitor changes to `items` property.
* Adding most non-essential APIs to be `DataSourceSelector` so that, it's... | mit |
naffiq/website | README.md | 80 | # naffiq.com website
This repository serves as code base for naffiq.com website | mit |
or-drop-tables-team/sup | common/src/main/java/org/common/Utils.java | 5092 | package org.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.DatatypeConverter;
/**
* Common utilities and code shared for both the client and server.
*
*/
publi... | mit |
joelambert/primer-core | src/Primer/Commands/PatternMake.php | 1788 | <?php namespace Rareloop\Primer\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Rareloop\Primer\Pri... | mit |
netcoreangular2group/Dot-Net-Core-Rest-Api | Modules/Catalog/KPI.Catalog.Domain/Brand.cs | 409 | using System.ComponentModel.DataAnnotations;
using KPI.Infrastructure;
namespace KPI.Catalog.Domain
{
public class Brand : Entity
{
public string Name { get; set; }
public string SeoTitle { get; set; }
[StringLength(5000)]
public string Description { get; set; }
publ... | mit |
gisoftlab/SymfonyCMS | src/App/SettingsBundle/DataFixtures/ORM/SettingsData.php | 1535 | <?php
namespace App\UserBundle\DataFixtures\ORM;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use App\SettingsBundle\Entity\Settings;
class SettingsData extends AbstractFixture implements OrderedFixtureInter... | mit |
Brackets-Themes/StarPlatinumDark | README.md | 480 | Star Platinum Dark Theme for Brackets
=====================================
Inspired by the Stand of Jotaro Kujo; ORAORAORA. A Brackets original.
## HTML

## CSS
 {
ps = GetComponent<ParticleSystem>();
}
// Update is called once per frame
void Update () {
if (!ps.IsAlive())
Destroy(ga... | mit |
lampitosgames/PortfolioWebsite | Work/ShapeClicker/index.html | 12417 | <!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<!--[if IE]><link rel="shortcut icon" href="../../favicon.ico"><![endif]-->
<link rel="icon" href="../../favicon.ico">
<script type="text/javascript" src="../../jquery-2.2.1.min.js"></script>
<script type="text/javascript" sr... | mit |
CS2103JAN2017-W10-B1/main | src/test/java/seedu/address/testutil/TypicalTestEvents.java | 7866 | //@@author A0147996E
package seedu.address.testutil;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.TaskManager;
import seedu.address.model.task.Task;
import seedu.address.model.task.UniqueTaskL... | mit |
Bryukh/datastructures-js | lib/priorityQueue.js | 1632 | /*!
* datastructures-js
* priorityQueue
* Copyright(c) 2015 Eyas Ranjous <eyas@eyasranjous.info>
* MIT Licensed
*/
var queue = require('./queue');
function priorityQueue() {
'use strict';
var prototype = queue(), // queue object as the prototype
self = Object.create(prototype);
// determin... | mit |
Ezpy/BullsandCows | README.md | 778 | # Bulls and Cows
Bulls and Cows game coded in python
Simply by using **random** and GUI **wx** library !
See this game running by **Telegram bot** (telepot)
<https://github.com/Ezpy/telepot/blob/master/examples/chat/bullsandcows.py>
숫자 야구 게임
- 파이썬으로 코딩되어있고 랜덤, GUI, wx 라이브러리를 사용합니다.
Why BestPick function is just ran... | mit |
baweaver/lexigrapher | README.md | 829 | # Lexigrapher
[](https://codeclimate.com/github/baweaver/lexigrapher)
Find the type of a string. In some cases, you have a data type in a string, and you know exactly what it is. Now Ruby can too!
It's as simple as:
```ruby
Lexigrapher::Parser.... | mit |
differentrain/DeletionTool | README.md | 1234 | # DeletionTool
A gadget for file/directory deletion in Windows.
Windows下的删除文件/文件夹的小工具。
[Download](https://github.com/differentrain/DeletionTool/raw/master/src/DeletionTool/bin/Release/DeletionTool.zip)
## Updates 更新
`2017.09.12` New Functionality: drag&drop files or(and) directories on exe, program shoud delete ... | mit |
BuildFire/eventsFeedPlugin | widget/templates/Event_Item_1.html | 2002 | <div class="holder padding-zero">
<div class="events-plugin" ng-if="WidgetEvent.event">
<div class="plugin-banner clearfix border-bottom-grey" >
<img ng-if="WidgetEvent.data.design.eventTitleImage" load-image="239x1"
crop-width="342" crop-height="150" crop-type="crop"
data-final-src="{... | mit |
jscodec/jsvpx | examples/ogv-simple/index.html | 928 | <!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" cont... | mit |
jmthompson2015/runetranscriber | core/src/main/java/org/runetranscriber/core/FontTranscriber.java | 748 | package org.runetranscriber.core;
import java.awt.Font;
/**
* Defines methods required by a rune to font letter transcriber.
*
* @param <R> Rune type parameter.
* @param <F> Font letter type parameter.
*/
public interface FontTranscriber<R extends Rune, F extends FontLetter> extends
Transcriber<RuneList... | mit |
jeremythuff/minderui | app/config/runTime.js | 107 | Minder.run(function($rootScope) {
angular.element("body").fadeIn(300);
// Add runtime tasks here
}); | mit |
jjs5286/angular-unit-1 | unit1/animations/animations1.html | 2701 | <!DOCTYPE html>
<html ng-app="angular-events">
<head>
<style>
.item-block {
min-height: 50px;
min-width: 50px;
background-color: red;
margin: 10px;
}
.ng-enter {
transition:10.4s ease all;
opacity:0;
transform:translateX(-100%);
}
... | mit |
flyte/xbee-helper | setup.py | 1972 | # -*- coding: utf-8 -*-
"""
Setuptools script for the xbee-helper project.
"""
import os
from textwrap import fill, dedent
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def requir... | mit |
HealthAndFitnessBlog/HealthAndFitnessBlog | blog/src/main/java/HealthAndFitnessBlog/bindingModel/UserBindingModel.java | 939 | package HealthAndFitnessBlog.bindingModel;
import javax.validation.constraints.NotNull;
public class UserBindingModel {
@NotNull
private String email;
@NotNull
private String fullName;
@NotNull
private String password;
@NotNull
private String confirmPassword;
public String getE... | mit |
sasedev/acf-expert | src/Acf/AdminBundle/Form/Autoinc/UpdateTForm.php | 1494 | <?php
namespace Acf\AdminBundle\Form\Autoinc;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
*
* @author sasedev <seif.salah@gmail.com>
*/
class UpdateT... | mit |
JangoBrick/scratchlib | src/main/java/scratchlib/objects/ScratchReferenceTable.java | 2833 | package scratchlib.objects;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import scratchlib.project.ScratchProject;
import scratchlib.writer.ScratchOutputStream;
/**
* Maps instances of {@link ScratchObject} to reference IDs, offering insertion,
* lookup... | mit |
lightofanima/Fabula | src/ParseNodes/choice.cpp | 517 | #include "choice.h"
#include "header.h"
#include "destination.h"
#include <cassert>
#include "parse_tree_visitor.h"
namespace fabula
{
namespace parsing
{
namespace node
{
Choice::Choice(const std::shared_ptr<Header>& header, const std::shared_ptr<Destination>& destination)
... | mit |
peterskeide/bones | templates/header.html | 360 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bones</title>
<link rel="stylesheet" type="text/css" href="/assets/stylesheets/main.css">
</head>
<body>
<header>
<h1>Bones - A webapp template for the Go programming language</h1>
<a href="/">Home</a>
<a href="/logout" rel="nofollow">Logout</a>
</h... | mit |
RyperHUN/RenderingExamples | RayMarchingVolumetric_Brain/js/Scene.js | 3266 | var Scene = function(gl) {
this.noiseTexture = new Texture2D(gl, "media/lab4_noise.png");
this.brainTexture = new Texture2D(gl, "media/brain-at_1024.jpg");
this.brainTextureHD = new Texture2D(gl, "media/brain-at_4096.jpg");
this.matcapGreen = new Texture2D(gl, "media/Matcap/matcap4.jpg");
this.skyCubeTexture = new... | mit |
feixiao/nsq-0.3.7 | nsqd/guid.go | 2223 | package nsqd
// the core algorithm here was borrowed from:
// Blake Mizerany's `noeqd` https://github.com/bmizerany/noeqd
// and indirectly:
// Twitter's `snowflake` https://github.com/twitter/snowflake
// only minor cleanup and changes to introduce a type, combine the concept
// of workerID + datacenterId into a sin... | mit |
paulpires/bddTraining | README.md | 87 | # Shouty
Original project can be found at: https://github.com/cucumber-ltd/shouty.rb
| mit |
polltooh/FineGrainedAction | nn/kaffe/__init__.py | 111 | from .base import KaffeError
from .core import GraphBuilder, DataReshaper, NodeMapper
from . import tensorflow
| mit |
ordinarygithubuser/chat-es7 | server/model/message.js | 4285 | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('va... | mit |
looloobs/FRGCMS | test/functional/platoons_controller_test.rb | 1040 | require 'test_helper'
class PlatoonsControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:platoons)
end
test "should get new" do
get :new
assert_response :success
end
test "should create platoon" do
assert_... | mit |
pip-services/pip-services-commons-node | obj/src/random/RandomFloat.js | 892 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RandomFloat = /** @class */ (function () {
function RandomFloat() {
}
RandomFloat.nextFloat = function (min, max) {
if (max === void 0) { max = null; }
if (max == null) {
max = min;
min =... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.1/poltac/0.8.11.html | 6467 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>poltac: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | mit |
kecho/Pegasus | Source/Pegasus/Render/DX11/DXGpuDataDefs.h | 6531 | /****************************************************************************************/
/* */
/* Pegasus */
/* ... | mit |
camsys/transam_transit | db/migrate/20180124192034_add_fleet_name_asset_fleets.rb | 160 | class AddFleetNameAssetFleets < ActiveRecord::Migration[4.2]
def change
add_column :asset_fleets, :fleet_name, :string, after: :agency_fleet_id
end
end
| mit |
ufcg-lsd/python-hpOneView | examples/scripts/define-network-set.py | 6316 | #!/usr/bin/env python
###
# (C) Copyright (2012-2015) Hewlett Packard Enterprise Development LP
#
# 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 limita... | mit |
wingyu/rbattlenet | spec/lib/d3/act_spec.rb | 758 | require 'spec_helper'
describe RBattlenet::D3::Act, type: :community do
describe "#find_act" do
it "fetches act data" do
with_connection("d3_act") do
result = RBattlenet::D3::Act.find(1)
expect(result.name).to eq "Act I"
end
end
end
describe "#find_multiple_acts" do
it "... | mit |
KlishGroup/prose-pogs | pogs/L/LPLJLHX/G5A/index.md | 3113 | ---
layout: page
title: Gray 5th Anniversary
date: 2016-05-24
author: Katherine Pope
tags: weekly links, java
status: published
summary: Nam mollis maximus libero et rutrum.
banner: images/banner/wedding.jpg
booking:
startDate: 03/25/2016
endDate: 03/28/2016
ctyhocn: LPLJLHX
groupCode: G5A
published: true
---
D... | mit |
KlishGroup/prose-pogs | pogs/B/BNAEAHX/CITF/index.md | 2519 | ---
layout: page
title: Cardenas International Trade Fair
date: 2016-05-24
author: Kathleen Charles
tags: weekly links, java
status: published
summary: Phasellus ac gravida mauris. Nam.
banner: images/banner/meeting-01.jpg
booking:
startDate: 11/27/2019
endDate: 12/01/2019
ctyhocn: BNAEAHX
groupCode: CITF
publi... | mit |
denghongcai/GyBook | login.php | 2757 | <?php
session_start();
require_once ('conn.php');
$action = $_GET['action'];
if ($action == 'login') {
$user = stripslashes(trim($_POST['usrname']));
$pass = stripslashes(trim($_POST['password']));
if (empty ($user)) {
echo '用户名不能为空';
exit;
}
if (empty ($pass)) {
echo '密码不能为空';
exit;
}
$sha1pass = sha1(... | mit |
aelassas/Wexflow | src/tests/net/Wexflow.Tests/MessageCorrect.cs | 602 | using System.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Wexflow.Tests
{
[TestClass]
public class MessageCorrect
{
[TestInitialize]
public void TestInitialize()
{
}
[TestCleanup]
public void TestCleanup()
{
}
... | mit |
teacher144123/npo_map | server/js/dict/rating.min.js | 1615 | ! function() {
"use strict";
function t(t, i, n, e) {
function r(t, i) {
for (var n = 0; n < t.length; n++) {
var e = t[n];
i(e, n)
}
}
function a(t) {
s(t), o(t), u(t)
}
function s(t) {
t.addEventListener("mouseover", function(i) {
r(f, function(i, n) {
document.getElementBy... | mit |
niskyRobotics/javadeck | src/main/java/ftc/team6460/javadeck/api/planner/ObstacleSensor.java | 1706 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 FTC team 6460 et. al.
*
* 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
... | mit |
EvolSoft/ServerAuth | ServerAuth/src/ServerAuth/Importers/Importer.php | 726 | <?php
/*
* ServerAuth v3.0 by EvolSoft
* Developer: Flavius12
* Website: https://www.evolsoft.tk
* Copyright (C) 2015-2018 EvolSoft
* Licensed under MIT (https://github.com/EvolSoft/ServerAuth/blob/master/LICENSE)
*/
namespace ServerAuth\Importers;
use pocketmine\command\CommandSender;
use Serve... | mit |
ptesavol/webjsonrpc | websocketserver.js | 4196 | "use strict";
// INCLUDES
if (typeof exports !== "undefined")
{
global.URL = require("url");
global.fs = require("fs");
global.http = require("http");
global.https = require("https");
global.WSServer = require("websocket").server;
global.WebSocketConnection = require("./websocketconnection");
global.logger ... | mit |
noelevans/sandpit | poolratings/templates/500.html | 2594 | <html>
<head>
<script type="text/javascript" src="http://www.artstent.com/media/js/jquery.js"></script>
<script type="text/javascript" src="http://www.artstent.com/media/js/jquery-ui.js"></script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl... | mit |
ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/system/input.hpp | 757 | struct Input {
enum class Device : unsigned {
None,
Joypad,
Multitap,
Mouse,
SuperScope,
Justifier,
Justifiers,
USART,
};
enum class JoypadID : unsigned {
B = 0, Y = 1, Select = 2, Start = 3,
Up = 4, Down = 5, Left = 6, Right = 7,
A = 8, X = 9, L ... | mit |
parisminton/james.da.ydrea.ms | src/components/layout.js | 928 | /**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import "./layout.css"
import "./fonts.css"
import "./jame... | mit |
amaiorano/ZeldaDS | Game/ZeldaDS/arm9/source/gslib/Game/GameAnims.cpp | 9026 | #include "GameAnims.h"
#include "gslib/Core/Core.h"
#include "gslib/Game/GameResources.h"
namespace
{
// Helper to easily build an AnimAsset in code
class AnimAssetBuilder
{
public:
typedef AnimAssetBuilder ThisType;
AnimAssetBuilder() : mpAnimAsset(0) { }
ThisType& CreateAndAdd(AnimAssetKey key)
{
/... | mit |
Preffer/learning-opengl | hexagram/main.cpp | 3982 | #include <cmath>
#include <cstring>
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <boost/format.hpp>
#include "../common/util.hpp"
using namespace std;
using namespace boost;
int main(int argc, char* argv[]) {
if (argc < 2) {
cout << format("Usage: %1% <star>") % argv[0]<< endl;
retur... | mit |
nz-andy/electron-test | systemjs.config.js | 1529 | /**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within... | mit |
keeross/yandex.delivery.js | README.md | 1306 | # Yandex.Delivery API JS module
A simple Yandex.Delivery API JS module
# Purpose
It helpes with data preparation before request and saves several hours of time. Basically, it takes the object with params you are going to send to API, sorts all the properties in an alphabetical order and calculates hash in a way, that ... | mit |
team4yf/yf-fpm-admin | src_template/index.js | 107 | import React,{ Component } from 'react'
import { {{ name }}List } from './list'
export { {{ name }}List }
| mit |
guofei99987/guofei99987.github.io | _posts/[8] 数据结构与算法/实现/2018-07-06-python_binary_search.md | 2452 | ---
layout: post
title: 【Python数据结构3】Binary Search
categories:
tags: 8_数据结构与算法
keywords:
description:
order: 553
---
## 我总结的一般写法
```py
class Solution:
def search(self, nums, target):
# step1:定义初始搜索范围
left,right=0,len(nums)-1
if left==right:return None # step1.1 增加鲁棒性,也就是一开始即达到结束条件。需不需要视 ste... | mit |
jdossett/imagemounter | tests/cli_test.py | 3178 | import argparse
import io
import unittest
import mock
import time
from imagemounter.cli import AppendDictAction
class AppendDictActionTest(unittest.TestCase):
def test_with_comma(self):
parser = argparse.ArgumentParser()
parser.add_argument('--test', action=AppendDictAction)
self.assertD... | mit |
RafaSousa/techtalk-node | client/app/directives/main-directive.js | 1844 | angular.module('Techtalk')
.factory('socket', function ($rootScope, config) {
if (typeof (io) != "undefined") {
var socket = io.connect(config.Urls.URLService, { reconnection: false });
return {
on: function (eventName, callback) {
socket.on(eventName, function () {
var a... | mit |
starg09/7541-rw-heap | Makefile | 575 | CFLAGS=-g -std=c99 -Wall -Wconversion -Wtype-limits -pedantic -Werror
EXEC=correr_pruebas
OBJ=testing.o vector_dinamico.o heap.o
CC=gcc
all: $(EXEC)
zip:
rm -f ./Heap\ -\ 98373\ -\ Bianchi\ -\ 96251\ -\ Queirolo\ Dominguez.zip
zip ./Heap\ -\ 98373\ -\ Bianchi\ -\ 96251\ -\ Queirolo\ Dominguez.zip *.c *.h Makefile
... | mit |
mathiasbynens/unicode-data | 7.0.0/properties/IDS_Binary_Operator-regex.js | 140 | // Regular expression that matches all symbols with the `IDS_Binary_Operator` property as per Unicode v7.0.0:
/[\u2FF0\u2FF1\u2FF4-\u2FFB]/; | mit |
vadim-ivlev/STUDY | coding/plot.py | 262 | # Import the necessary packages and modules
import matplotlib.pyplot as plt
import numpy as np
# Prepare the data
x = np.linspace(0, 10, 100)
# Plot the data
plt.plot(x, x, label='linear')
# Add a legend
plt.legend()
# Show the plot
plt.show()
print("done")
| mit |
curvecode/chrome-ext-js | app/helloworld/js/app.js | 46 | (function(){
console.log("Message");
})(); | mit |
George35mk/My-Portfolio-PHP.v | README.md | 121 | # My-Portfolio-PHP.v
This is the Php version with login system and this is the html version https://george35mk.github.io
| mit |
AdrianDiaz81/AzureBootCamp2016 | CompartiMoss.BootCamp/src/CompartiMoss.BootCamp.Web/ViewComponents/ArticulosByAutor.cs | 551 | using CompartiMoss.BootCamp.Web.Services;
using Microsoft.AspNet.Mvc;
namespace CompartiMoss.BootCamp.Web.ViewComponents
{
public class ArticulosByAutor : ViewComponent
{
private IArticulos _service;
public ArticulosByAutor(IArticulos service)
{
_service = servi... | mit |
zidad/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.html | 4160 | <form ng-controller="Umbraco.Dialogs.MediaPickerController" id="fileupload" method="POST" enctype="multipart/form-data"
data-file-upload="options" data-file-upload-progress="" data-ng-class="{'fileupload-processing': processing() || loadingFiles}">
<div class="umb-panel umb-dialogs-mediapicker" ng-if="target">
... | mit |
cyotek/MantisSharp | src/UserCollection.cs | 493 | using System.Collections.ObjectModel;
// Copyright (c) 2017 Cyotek Ltd.
// http://mantissharp.net/
// Licensed under the MIT License. See LICENSE.txt for the full text.
// If you use this control in your applications, attribution, donations or contributions are welcome.
namespace MantisSharp
{
public class UserCo... | mit |
tonimichel/django-modelcrud | modelcrud/templates/modelcrud/list_table.tag.html | 1403 | {% load modelcrud_tags %}
<table class="table table-striped"
data-toggle="table"
data-search="true"
data-sort-name="{{ data_sort_name }}"
data-sort-order="{{data_sort_order }}"
data-pagination="true"
data-page-size="25">
<thead>
<tr>
{% for field in ... | mit |
d-oliveros/isomorphine | examples/barebone/src/server.js | 703 | var express = require('express');
var morphine = require('./api');
var app = express();
// Mounts the rpc layer middleware. This will enable remote function calls
app.use(morphine.router);
// Serve static files in this folder
app.use('/', express.static(__dirname + '/'));
// Listen on port 3000
app.listen(3000, fu... | mit |
dobbydog/webpack-porter | cli.js | 93 | #!/usr/bin/env node
require('yargs')
.commandDir('cmd')
.demand(1)
.strict()
.help()
.argv;
| mit |
xe-public/xe-module-maps | tpl/maps_config.html | 1734 | <include target="./common/header.html" />
<include target="./common/header_tabs.html" />
<h1>{$lang->maps_module_maps_setting}</h1>
<form ruleset="mapsModuleConfig" id="fo_obj" class="x_form-horizontal" action="./" method="post" enctype="multipart/form-data">
<input type="hidden" name="act" value="procMapsAdminCofig" ... | mit |
ryanskidmore/CodeVirtualizer-Go-Example | main.go | 624 | package main
import (
"fmt"
"github.com/oreans/virtualizersdk"
"io/ioutil"
"net/http"
)
func main() {
string1 := "This is string1"
virtualizersdk.Macro(virtualizersdk.TIGER_BLACK_START)
string2 := "This is string2"
string3 := string1 + string2
fmt.Println(string3)
resp, err := http.Get("http://google.com")
... | mit |
Paradem/phoenix_timex | LICENSE.md | 1099 | # The MIT License (MIT)
## Copyright (c) 2016 Kilian Cirera Sant, Paradem
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... | mit |
niuzz/ci | static/cases_data.php | 1585 | <?php
include_once '../application/services/cases/test';
$model = new case_service();
$rs = $model->get_cases_num();
include_once ('global.php'); //调用数据库
include_once ('ofc/open-flash-chart.php'); //调用OFC库文件
//设置图表标题
$title = new title( '各区域单位场所数量分布图'.date('Y-m-d') );
$title->set_style("font-size:12px; font-we... | mit |
reddytkv/Explo_Data_Analysis-Proj2 | README.md | 623 | # Explo_Data_Analysis-Proj2
## Project 2
###Plot 1:
#### plots a graph showing Years vs US Nation wide Emissions.
### Plot 2:
#### Plots a graph showing Years Vs Baltimore.
### Plot 3:
#### Plots a graph showing Years Vs Emisions for types(non-road,point, on-road, non-pint).
### Plot 4:
#### Plots a graph showing ... | mit |
prashantrajan/gitstars-oss | db/migrate/20120813015611_create_repo_users.rb | 282 | class CreateRepoUsers < ActiveRecord::Migration
def change
create_table :repo_users do |t|
t.integer :user_id, :null => false
t.integer :repo_id, :null => false
t.timestamps
end
add_index :repo_users, [:user_id, :repo_id], :unique => true
end
end
| mit |
kaitamkun/frisktol | flow-typed/npm/grunt_vx.x.x.js | 2626 | // flow-typed signature: a4cf0a15120e85fc382b90182181b521
// flow-typed version: <<STUB>>/grunt_v^1.0.1/flow_v0.49.1
/**
* This is an autogenerated libdef stub for:
*
* 'grunt'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* communi... | mit |
ukraine/Vitroff | mad/content/staff/addedit.html | 567 | <form method="post" action="">
<h3 id="first">Name:</h3>
<? GenerateInputTag("firstname","First name") ?>
<br><? GenerateInputTag("lastname","Last name") ?>
<h3>Contact details:</h3>
<? GenerateInputTag("email","Email") ?>
<br><? GenerateInputTag("phone","Home Phone") ?>
... | mit |
Rodrigora/mina-unicorn | lib/mina/unicorn/tasks.rb | 1147 | require 'mina/bundler'
require 'mina/rails'
require 'mina/unicorn/utility'
namespace :unicorn do
include Mina::Unicorn::Utility
# Following recommendations from http://unicorn.bogomips.org/unicorn_1.html#rack-environment
set_default :unicorn_env, -> { fetch(:rails_env) == 'development' ? 'development' : '... | mit |
mickele/DBFlow | dbflow-tests/src/test/java/com/raizlabs/android/dbflow/test/sql/TestModel3.java | 431 | package com.raizlabs.android.dbflow.test.sql;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.test.TestDatabase;
import com.raizlabs.android.dbflow.test.structure.TestModel1;
/**
* Description:
*/
@Table(database = TestDat... | mit |
adrianherrera/jdivisitor | src/main/java/org/jdivisitor/debugger/event/VisitableThreadStartEvent.java | 1378 | /*
* JDIVisitor
* Copyright (C) 2014 Adrian Herrera
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This... | mit |
robert-wallis/docker-intellij-ce | Dockerfile | 863 | FROM java
MAINTAINER Robert Wallis <smilingrob@gmail.com>
RUN apt-get update && \
apt-get install -y sudo && \
rm -rf /var/lib/apt/lists/*
RUN wget https://d1opms6zj7jotq.cloudfront.net/idea/ideaIC-15.0.4.tar.gz -O /tmp/idea.tar.gz -q && \
mkdir -p /usr/share/intellij && \
tar -xf /tmp/idea.tar.gz --strip-c... | mit |
limpoxe/Android-Plugin-Framework | FairyPlugin/src/main/java/com/limpoxe/fairy/core/PluginLoader.java | 8547 | package com.limpoxe.fairy.core;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import com.limpoxe.... | mit |