repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
xijunlee/leetcode
94.py
695
#!/usr/bin/env python # coding=utf-8 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): ret = [] def inorderTraversal(self, root): """ :type ...
mit
memorycoin/memorycoin
src/qt/locale/bitcoin_cs.ts
118217
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Bitcoin</source> <translation>O Bitcoinu</translation> </message...
mit
karunasagark/ps
TopCoder-C#/tchs17/Properties/AssemblyInfo.cs
1388
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("tc...
mit
rpbaltazar/mocker
spec/mocker/name_spec.rb
2156
require "spec_helper" describe Mocker::Name do let(:available_names){ I18n.t 'names.famous_people' } let(:female_names) { I18n.t 'names.first.female' } let(:male_names) { I18n.t 'names.first.male' } let(:first_names){ female_names + male_names } let(:last_names){ I18n.t 'names.last' } describe "famo...
mit
pablobrady/survey_tool
server/app.js
2088
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); // Mongo/Monk Database var mongo = require('mongodb'); var monk = require('monk'); // Remote Mong...
mit
yneves/node-bauer-plugin-glob
lib/worker.js
1086
/*! ** bauer-plugin-glob -- Plugin for bauer-crawler to list files with node-glob. ** Copyright (c) 2015 Yuri Neves Silveira <http://yneves.com> ** Licensed under The MIT License <http://opensource.org/licenses/MIT> ** Distributed on <http://github.com/yneves/node-bauer-plugin-glob> */ // - ------------------------...
mit
Azure/azure-sdk-for-java
sdk/videoanalyzer/azure-media-videoanalyzer-edge/src/main/java/com/azure/media/videoanalyzer/edge/models/SpatialAnalysisOperationEventBase.java
1774
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.media.videoanalyzer.edge.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** Defines the...
mit
maku77/sample_mongoose_restful
memodb.js
742
var mongoose = require('mongoose'); var DB_URL = 'mongodb://localhost/memodb'; // Create models. var MemoSchema = new mongoose.Schema({ title: String, body: String, created: { type: Date, default: Date.now } }); var Memo = mongoose.model('Memo', MemoSchema); // Error handlers. mongoose.connection.on('err...
mit
KleeGroup/focus-components
src/page/mixin/cartridge-behaviour.js
1467
import isFunction from 'lodash/lang/isFunction'; import { setHeader } from 'focus-core/application'; const cartridgeBehaviour = { /** * Updates the cartridge using the cartridgeConfiguration. */ _registerCartridge(props = this.props) { const cartridgeConfiguration = this.cartridgeConfigurati...
mit
robotex82/ecm_cms
app/models/ecm/cms.rb
70
module Ecm::Cms def self.table_name_prefix 'ecm_cms_' end end
mit
charlesmunger/jpregel-aws
src/main/java/edu/ucsb/jpregel/system/Part.java
6122
package edu.ucsb.jpregel.system; import api.Aggregator; import api.Vertex; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Set; import org.infinispan.util.concurrent.jdk8backported.ConcurrentHashMapV8; /** * * @author Peter Cappello */ public final class Part { pr...
mit
vikfroberg/make
db/migrate/20140612222325_create_comments.rb
189
class CreateComments < ActiveRecord::Migration def change create_table :comments do |t| t.text :body t.references :task, index: true t.timestamps end end end
mit
rstacruz/ractive
src/Ractive/prototype/observe/PatternObserver.js
2576
import runloop from 'global/runloop'; import isEqual from 'utils/isEqual'; import getPattern from 'Ractive/prototype/observe/getPattern'; var PatternObserver, wildcard = /\*/, slice = Array.prototype.slice; PatternObserver = function ( ractive, keypath, callback, options ) { this.root = ractive; this.callback = ca...
mit
SLedunois/personal-website
public/src/admin/nav/Nav.react.js
937
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Nav extends Component { render() { return ( <header className="nav"> <ul> <li className={this.props.location.hash === '#/' ? 'active' : null}> <Link to="/">Content<span className="decorati...
mit
tomrijnbeek/utilities
src/SpaceTime/undirected/Unit.cs
6496
using System; using Bearded.Utilities.Math; using OpenTK; namespace Bearded.Utilities.SpaceTime { /// <summary> /// A type-safe representation of an undirected signed distance or length. /// </summary> public struct Unit : IEquatable<Unit>, IComparable<Unit> { private readonly float value;...
mit
pegurnee-edu/cosc211-fa16
source_code/src/edu/emich/cosc211/lab2/EmichPerson.java
526
package edu.emich.cosc211.lab2; /** * Contains information about a given emich person. Base class for both Teacher and Student. * * @author eddie gurnee * */ public class EmichPerson { private static int currentId = 1; private String eid; private String name; public EmichPerson(String name) { this.name =...
mit
therightsol/myshopping
application/models/Setting.php
282
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Setting extends My_Model{ const DB_TablePK = 'id'; const DB_TableName = "settings"; public $key = ""; public $value = ''; public $createdAt = null; public $updatedAt = null; }
mit
micheljansen/locomotive
app/controllers/plugin_properties.rb
2173
module Locomotive class PluginProperties < Locomotive::Application # GET /plugin_properties # GET /plugin_properties.xml def index @plugin_properties = Locomotive::PluginProperty.all display @plugin_properties end # GET /plugin_properties/1 # GET /plugin_properties/1.xml def s...
mit
retailcrm/api-client-php
src/Model/Entity/Integration/Currency.php
739
<?php /** * PHP version 7.3 * * @category Currency * @package RetailCrm\Api\Model\Entity\Integration */ namespace RetailCrm\Api\Model\Entity\Integration; use RetailCrm\Api\Component\Serializer\Annotation as JMS; /** * Class Currency * * @category IntegrationModuleEditInfo * @package RetailCrm\Api\Model\E...
mit
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/tiles/chest/CrystalChestType.java
7880
package alec_wam.CrystalMod.tiles.chest; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import alec_wam.CrystalMod.items.ItemIngot.IngotType; import alec_wam.CrystalMod.items.ModItems; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.invent...
mit
garywong89/food-hub
config/application.rb
1260
require File.expand_path('../boot', __FILE__) require "rails" # Pick the frameworks you want: require "active_model/railtie" require "active_job/railtie" # require "active_record/railtie" require "action_controller/railtie" require "action_mailer/railtie" require "action_view/railtie" require "sprockets/railtie" requi...
mit
yogeshsaroya/new-cdnjs
ajax/libs/openlayers/2.11/lib/OpenLayers/Layer/HTTPRequest.min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:65b14568f3b8ee7923d45684544723fff0400798e6c372df8f3613328c28aa55 size 1517
mit
SuperJMN/OmniXAML
OmniXaml.Tests/Model/TextWrapping.cs
108
namespace OmniXaml.Tests.Model { public enum TextWrapping { Wrap, NoWrap, } }
mit
mdub/console_logger
test/test_helper.rb
107
require "minitest/autorun" require "minitest/pride" $LOAD_PATH << File.expand_path("../../lib", __FILE__)
mit
ninjablocks/ninja-sentinel
yeoman/test/spec/controllers/history.js
487
'use strict'; describe('Controller: HistoryCtrl', function() { // load the controller's module beforeEach(module('yeomanApp')); var HistoryCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function($controller) { scope = {}; HistoryCtrl = $controller('HistoryCtrl', {...
mit
AntoineToubhans/trellearn
main.py
389
#!/usr/bin/env python import sys import src.json_importing as I import src.data_training as T import src.data_cross_validation as V import src.extract_feature_multilabel as EML if __name__ == '__main__': print('Hello, I am Trellearn') jsonFileName = sys.argv[1] cards = I.parseJSON(jsonFileName) X,...
mit
bluebill1049/react-simple-animate
src/useAnimate.test.tsx
957
import * as React from 'react'; import useAnimate from './useAnimate'; import { mount } from 'enzyme'; import { act } from 'react-dom/test-utils'; let UseAnimate; describe('useAnimate', () => { let componentStyle; const TestHook = ({ callback }) => { const { style } = callback(); componentStyle = style; ...
mit
GWTReact/gwt-react
src/gwt/react/client/api/ReactDOM.java
3159
package gwt.react.client.api; /* The MIT License (MIT) Copyright (c) 2016 GWT React 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...
mit
Gozala/fs-reduce
test/exists.js
2067
"use strict"; var fs = require("fs") var exists = require("../exists") var fixtures = require("./fixtures") var fold = require("reducers/fold") var capture = require("reducers/capture") exports["test async dir exists"] = function(assert, done) { var async = false var actual = exists(fixtures.join(".")) fold(act...
mit
rosmantorres/GitHubProject
lib/model/doctrine/Trabajo.class.php
2027
<?php /** * Trabajo * * This class has been auto-generated by the Doctrine ORM Framework * * @package PROYECTO_PRUEBA * @subpackage model * @author ROSMAN_TORRES * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class Trabajo extends BaseTrabajo { /* * Cuand...
mit
cloudtek/dynamodb-odm
lib/Cloudtek/DynamoDM/Expression/Condition/Operator/Between.php
3131
<?php namespace Cloudtek\DynamoDM\Expression\Condition\Operator; use Cloudtek\DynamoDM\Expression\Condition\Condition; use Cloudtek\DynamoDM\Expression\Operand\OperandInterface; use Cloudtek\DynamoDM\Expression\Operand\Value; use Cloudtek\DynamoDM\Schema\Index\CompositeIndex; use Cloudtek\DynamoDM\Schema\Index\Index;...
mit
vmateixeira/vframework-commons
src/test/java/com/vframework/commons/util/DateUtilsTest.java
71
package com.vframework.commons.util; public class DateUtilsTest { }
mit
jugstalt/gViewGisOS
gView.Plugins.Tools/Plugins/ExTools/Dialogs/FormDeleteExObjects.Designer.cs
6580
namespace gView.Plugins.ExTools.Dialogs { partial class FormDeleteExObjects { /// <summary> /// Erforderliche Designervariable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Verwendete Ressourcen bereinigen. ...
mit
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/tiles/tank/BlockTank.java
9331
package alec_wam.CrystalMod.tiles.tank; import java.util.List; import java.util.Locale; import alec_wam.CrystalMod.CrystalMod; import alec_wam.CrystalMod.blocks.EnumBlock; import alec_wam.CrystalMod.blocks.ICustomModel; import alec_wam.CrystalMod.blocks.ModBlocks; import alec_wam.CrystalMod.proxy.ClientProxy...
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/contour/_yperiod.py
469
import _plotly_utils.basevalidators class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name="yperiod", parent_name="contour", **kwargs): super(YperiodValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, e...
mit
51reboot/actual_09_homework
11/jinderui/cmdb/user/ssh.py
662
#coding:utf8 import paramiko import getpass def ssh_command(host,port,username,password,cmd): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: ssh.connect(host,port,username,password) stdin,stdout,stderr = ssh.exec_command(cmd) if not stderr.read(): return stdout...
mit
andyw8/reek
lib/reek/tree_walker.rb
5746
require_relative 'context/method_context' require_relative 'context/module_context' require_relative 'context/root_context' require_relative 'context/singleton_method_context' require_relative 'context/attribute_context' require_relative 'ast/node' module Reek # # Traverses an abstract syntax tree and fires events...
mit
sbalkum/HighIronRanch.Cqrs.EventStore.MongoDb
src/HighIronRanch.Cqrs.EventStore.MongoDb/MongoEventStore.cs
3865
using System; using System.Collections.Generic; using System.Linq; using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Driver; using MongoDB.Driver.Builders; using MongoDB.Driver.Linq; using SimpleCqrs.Eventing; namespace HighIronRanch.Cqrs.EventStore.MongoDb { public class MongoEventStore : IEventSt...
mit
mariuszs/txt2srt
library/src/main/java/net/sf/txt2srt/Subtitles.java
1128
package net.sf.txt2srt; import java.util.Collections; import java.util.Map; import java.util.TreeMap; public class Subtitles { private String sourceFormat; private String sourceFilePath; public Subtitles(String sourceType) { super(); this.sourceFormat = sourceType; } // maps start time in ...
mit
EmiiFont/SaveMe
SaveMe/SaveMeProject/MyScene.cs
4841
#region Using Statements using System; using SaveMeProject.Helpers; using WaveEngine.Common; using WaveEngine.Common.Graphics; using WaveEngine.Common.Math; using WaveEngine.Components.Animation; using WaveEngine.Components.Graphics2D; using WaveEngine.Components.Graphics3D; using WaveEngine.Framework; using WaveEngine...
mit
psiphp/content-type
src/Standard/Field/BirthdayField.php
961
<?php declare(strict_types=1); namespace Psi\Component\ContentType\Standard\Field; use Psi\Component\ContentType\FieldInterface; use Psi\Component\ContentType\OptionsResolver\FieldOptionsResolver; use Psi\Component\ContentType\Standard\Storage as Storage; use Psi\Component\ContentType\Standard\View as View; use Symf...
mit
Oktopost/Aquarium
tests/Aquarium/Resources/DefinitionStrategy/ClassMethodsTest.php
2439
<?php namespace Aquarium\Resources\DefinitionStrategy; use Aquarium\Resources\Package; use Aquarium\Resources\Utils\PackageBuilder; use Aquarium\Resources\Package\IPackageBuilder; class ClassMethodsTestHelper { public function Package_a_b(IPackageBuilder $b) { $b->script('a'); $b->style('b'); $b->package('n...
mit
moonlight2/stuff
src/Flash/Bundle/DefaultBundle/Form/EventType.php
1005
<?php namespace Flash\Bundle\DefaultBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class EventType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $option...
mit
arjanfrans/realtime-multiplayer-in-html5
server/Client.js
1074
'use strict'; const uuid = require('node-uuid'); function Client ({ socket, name }) { const id = uuid.v4(); let currentRoom = null; function emit (event, data) { socket.emit(event, data); } function on (event, listener) { socket.on(event, listener); } function send (mess...
mit
anchorchat/anchor-ui
src/modal/get-styles.js
602
import styles from './styles'; import combineStyles from '../internal/combine-styles'; import colors from '../settings/colors'; const root = overrideStyle => combineStyles(styles.root, overrideStyle); const content = overrideStyle => combineStyles(styles.content, overrideStyle); const footer = (color = colors.theme,...
mit
ministryofjustice/wmt-web
test/integration/services/data/test-get-reduction-by-id.js
2070
const expect = require('chai').expect const moment = require('moment') const getReductionById = require('../../../../app/services/data/get-reduction-by-id') const insertReduction = require('../../../../app/services/data/insert-reduction') const Reduction = require('../../../../app/services/domain/reduction') const data...
mit
cscfa/bartleby
library/logBack/logback-1.1.3/logback-classic/src/main/java/ch/qos/logback/classic/db/DBAppender.java
10733
/** * Logback: the reliable, generic, fast and flexible logging framework. * Copyright (C) 1999-2015, QOS.ch. All rights reserved. * * This program and the accompanying materials are dual-licensed under * either the terms of the Eclipse Public License v1.0 as published by * the Eclipse Foundation * * ...
mit
luiscbr92/algorithmic-challenges
AceptaElReto/Volumen2(200-299)/216/code.cpp
219
#include <iostream> using namespace std; int main(){ int cases, total; cin >> cases; while(cases--){ cin >> total; printf("%02d:%02d:%02d\n", total /3600, total /60 %60, total %60); } return 0; }
mit
aureliano/verbum-domini
verbum-domini-core-mongo/src/main/java/com/github/aureliano/verbum_domini/core/impl/codec/BibleCodec.java
2851
package com.github.aureliano.verbum_domini.core.impl.codec; import org.bson.BsonInt32; import org.bson.BsonReader; import org.bson.BsonValue; import org.bson.BsonWriter; import org.bson.Document; import org.bson.codecs.Codec; import org.bson.codecs.CollectibleCodec; import org.bson.codecs.DecoderContext; import org.bs...
mit
51test2003/composer_vendor
phpoffice/phppowerpoint/src/PhpPowerpoint/Writer/ODPresentation/Content.php
44305
<?php /** * This file is part of PHPPowerPoint - A pure PHP library for reading and writing * presentations documents. * * PHPPowerPoint is free software distributed under the terms of the GNU Lesser * General Public License version 3 as published by the Free Software Foundation. * * For the full copyright and l...
mit
FICTURE7/CoCSharp
src/CoCSharp/Network/MessageDirection.cs
454
using System; namespace CoCSharp.Network { /// <summary> /// Defines the direction of a <see cref="Message"/>. /// </summary> [Flags] public enum MessageDirection : byte { /// <summary> /// <see cref="Message"/> is going to the client. /// </summary> Client = 2,...
mit
gregf/podfetcher
src/database/database.go
6319
package database import ( "fmt" "log" "os" "path/filepath" "github.com/jinzhu/gorm" gohome "gopkg.in/caarlos0/gohome.v1" // required by gorm _ "github.com/jinzhu/gorm/dialects/sqlite" ) // Datastore interface type Datastore interface { FindEpisodesWithPodcastTitle() (map[string][]string, error) FindPodcas...
mit
pixelballoon/pixelboost
tools/editor/source/command/base.cpp
2781
#include <sstream> #include <string> #include "command/base.h" std::string Trim(const std::string& str) { std::string::size_type a = str.find_first_not_of(' '); std::string::size_type b = str.find_last_not_of(' '); return str.substr(a == std::string::npos ? 0 : a, b == std::string::npos ? str.length() - 1...
mit
Adyen/adyen-java-api-library
src/main/java/com/adyen/model/marketpay/UpdateAccountResponse.java
9146
/* * ###### * ###### * ############ ####( ###### #####. ###### ############ ############ * ############# #####( ###### #####. ###### ############# ############# * ###### #####( ###### #####. ###### ##### ###### ##### ###### * ###### ###### ####...
mit
Dubpubber/DManager
src/main/java/com/loneboat/dmanager/misc/ResourceAccessor.java
967
package com.loneboat.dmanager.misc; /* * com.loneboat.dmanager.misc.ResourceAccessor in DManager * Created by Tyler Crowe on 6/14/2017. * Website: https://loneboat.com * GitHub: https://github.com/Dubpubber * Machine Time: 2:52 PM */ import java.net.URL; /** * Helper class for fetching resources from the reso...
mit
highchair/hcd-trunk
models/page.php
11955
<?php class Pages extends ModelBase { function FindAll( $orderby = " id ASC" ) { return MyActiveRecord::FindAll('Pages', NULL, $orderby); } function FindById($id) { return MyActiveRecord::FindById('Pages', $id); } function FindByAreaAndName($area, $name) { $result = array_shift(MyActiveRecord::FindByS...
mit
shunobaka/Negwork
Client/Negwork.Client.App/scripts/app/identity/register-controller.js
1143
(function () { 'use strict'; function RegisterController($location, notifier, auth) { var vm = this; vm.registerUser = function(user, form) { if (form.$valid) { user.gender = user.gender || "1"; auth.register(user) .then(functio...
mit
romanman/ethereumj-obsolete-prototype
src/main/java/org/ethereum/gui/BlockChainTable.java
4949
package org.ethereum.gui; import org.ethereum.core.Block; import org.ethereum.manager.WorldManager; import javax.swing.*; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.TableCellRenderer; import java.awt.*; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.StringSelecti...
mit
mandrive/YAK.Base
Yak.Services/Interfaces/IUserValidationService.cs
187
using Yak.DTO; namespace Yak.Services.Interfaces { public interface IUserValidationService : IService<User> { bool Validate(string username, string password); } }
mit
kedashoe/ramda
source/into.js
2033
import _clone from './internal/_clone'; import _curry3 from './internal/_curry3'; import _isTransformer from './internal/_isTransformer'; import _reduce from './internal/_reduce'; import _stepCat from './internal/_stepCat'; /** * Transforms the items of the list with the transducer and appends the * transformed ite...
mit
fabiolourenzipucrs/scaling-journey
Monopoly3/edu/ncsu/monopoly/RailRoadCellTest.java
1947
package edu.ncsu.monopoly; import junit.framework.TestCase; public class RailRoadCellTest extends TestCase { GameMaster gameMaster; protected void setUp() { gameMaster = GameMaster.instance(); gameMaster.setGameBoard(new GameBoardRailRoad()); gameMaster.setNumberOfPlayers(2); gameMaster.reset()...
mit
ylorant/HedgeBot
Core/Data/Provider.php
4359
<?php namespace HedgeBot\Core\Data; use ReflectionClass; /** * Class Provider * @package HedgeBot\Core\Data */ abstract class Provider { public $readonly = false; ///< Boolean, prevents writing to the data storage. protected static $classCache = []; ///< Storage class cache const STORAGE_NAME = ""; ...
mit
Axodoss/FreeSLW4J
src/main/java/com/lukasheise/freeslw4j/openal/OpenALStaticSound.java
4872
package com.lukasheise.freeslw4j.openal; import com.lukasheise.freeslw4j.AudioFormat; import com.lukasheise.freeslw4j.Group; import com.lukasheise.freeslw4j.Priority; import com.lukasheise.freeslw4j.Sound; import com.lukasheise.freeslw4j.util.Fade; import static org.lwjgl.openal.AL10.*; import static org.lwjgl.openal...
mit
FreeAllMedia/stimpak
es5/lib/stimpak/stimpak.render.js
2251
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = render; var _async = require("async"); var _async2 = _interopRequireDefault(_async); var _globToFileNames = require("../steps/globToFileNames.js"); var _globToFileNames2 = _interopRequireDefault(_globToFileNames); var ...
mit
OpenTl/OpenTl.Schema
src/OpenTl.Schema/_generated/_Entities/MessageAction/TMessageActionPaymentSent.cs
821
// ReSharper disable All namespace OpenTl.Schema { using System; using System.Collections; using System.Text; using OpenTl.Schema; using OpenTl.Schema.Serialization.Attributes; [Serialize(0x40699cd0)] public sealed class TMessageActionPaymentSent : IMessageAction { /// <summary>Binary representation...
mit
GHoning/LevelswitcherIV
js/game.js
2052
/* Game namespace */ var game = { // an object where to store game information data : { // game levelList : ["level1", "level2", "level3"], levelIncrement : 0, score : 0, // menu selectedLevel : 0, }, // Run on page load. "onload" : function () { // Initialize the vid...
mit
revnode/todo
todo-ui/js/todo.js
2127
var todo = r.singleton({ use: [ pages_login, pages_register, pages_todo ], 'private local': { token: null, todos: [], sort: { column: 'priority', order: 'ASC' } }, 'private dom': { content: r.$('div#content'), form: null, messa...
mit
tomitrescak/meteor-boilerplate-typescript
src/lib/libImports.d.ts
390
/// <reference path="../../typescript/meteor/meteor.d.ts" /> /// <reference path="../../typescript/packages/subsManager.d.ts" /> /// <reference path="../../typescript/packages/jquery.d.ts" /> /// <reference path="../../typescript/packages/ironRouter.d.ts" /> /// <reference path="../../typescript/packages/roles.d.ts" />...
mit
jackjoe/laravel-yaml-translation
src/JackJoe/Core/Translation/TranslationServiceProvider.php
517
<?php namespace JackJoe\Core\Translation; use \Illuminate\Translation\TranslationServiceProvider as IlluminateTranslationServiceProvider; class TranslationServiceProvider extends IlluminateTranslationServiceProvider { /** * Register the translation line loader. * Add support for YAML files. * * @return ...
mit
olykken/CMS_VR
Resources/ItemContainer.cs
732
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Xml.Serialization; using System.IO; [XmlRoot("ItemCollection")] public class ItemContainer { [XmlArray("Items")] [XmlArrayItem("Item")] public List<Item> items = new List<Item>(); public static ItemContainer ...
mit
yugui/rubyspec
1.8/core/array/eql_spec.rb
1103
require File.dirname(__FILE__) + '/../../spec_helper' require File.dirname(__FILE__) + '/fixtures/classes' describe "Array#eql?" do it "returns true if other is the same array" do a, b = [1], [2] a.should_not eql(b) a.should eql(a) end it "returns true if other has the same length and elements" d...
mit
Infragistics/zero-blocks
projects/igniteui-angular/src/lib/data-operations/grouping-strategy.ts
700
import { IGroupByRecord } from './groupby-record.interface'; import { IgxSorting } from './sorting-strategy'; import { IGroupingState } from './groupby-state.interface'; import { IGroupByResult } from './grouping-result.interface'; export class IgxGrouping extends IgxSorting { public groupBy(data: any[], state: IG...
mit
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/unsafe/CWE_79__array-GET__no_sanitizing__Use_untrusted_data_script-doublequoted_Event_Handler.php
1350
<!-- Unsafe sample input : get the $_GET['userData'] in an array sanitize : none File : use of untrusted data in a double quoted event handler in a script --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this softw...
mit
bellycard/crud_client
lib/init.rb
93
Kernel::silence_warnings { Imprint::Tracer.const_set('TRACER_HEADER', 'HTTP_X_B3_TRACEID') }
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.0/node-load/node-load-coverage.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:d43b821a7d61860a6cdf1bcdfdd1edc25aa8628e0f937efccfdc3bf76fadd23e size 6811
mit
erikringsmuth/suri
app-built/bower_components/ace/lib/ace/snippets/tcl.js
157
define(["require","exports","module","../requirejs/text!./tcl.snippets"],function(e,t,n){t.snippetText=e("../requirejs/text!./tcl.snippets"),t.scope="tcl"});
mit
pezra/hal-client
spec/hal_client/representation_future_spec.rb
1809
require 'hal-client' RSpec.describe HalClient::RepresentationFuture do describe ".new" do specify { expect( HalClient::RepresentationFuture.new("http://example.com", HalClient.new) ).to behave_like_a HalClient::Representation } end subject { HalClient::RepresentationFuture.new("http:...
mit
louk/prototype
src/prototype/dom/layout.js
58428
(function() { // Converts a CSS percentage value to a decimal. // Ex: toDecimal("30%"); // -> 0.3 function toDecimal(pctString) { var match = pctString.match(/^(\d+)%?$/i); if (!match) return null; return (Number(match[1]) / 100); } // A bare-bones version of Element.getStyle. Needed because...
mit
ssepulveda/ICB_TT
sources/imuMonitor/www/server.py
4750
import sys from twisted.internet.defer import inlineCallbacks from autobahn import wamp from autobahn.twisted.wamp import ApplicationSession from mainProcess import MainProcess ## IMU class to access data # # Defines callbacks and register events for WAMP server # @param ApplicationSession WAMP instance class Imu(A...
mit
exercism/python
exercises/concept/little-sisters-vocab/strings_test.py
5162
import unittest import pytest from strings import (add_prefix_un, make_word_groups, remove_suffix_ness, adjective_to_verb) class LittleSistersVocabTest(unittest.TestCase): @pytest.mark.task(taskno=1) def test_add_prefix_un(self): input_da...
mit
ManuelOverdijk/myonodebluetooth
lib/util/deserialise.js
6504
/** This Source Code is licensed under the MIT license. If a copy of the MIT-license was not distributed with this file, You can obtain one at: http://opensource.org/licenses/mit-license.html. @author: Manuel Overdijk (manueloverdijk) @license MIT @copyright Manuel Overdijk, 2015 */ "use strict" class Deserial...
mit
jjaffeux/MotionJsonApi
test/test_helper.rb
311
require 'pp' require 'minitest/autorun' require './lib/motion-json-api.rb' require 'resources/blog_resource.rb' require 'resources/user_resource.rb' require 'resources/service_resource.rb' require 'resources/contribution_resource.rb' require 'resources/url_resource.rb' require 'resources/activity_resource.rb'
mit
rlindskog/vueniverse
template/backpack.config.js
492
const path = require('path') module.exports = { webpack: (config, options, webpack) => { config.entry.main = path.resolve(__dirname, 'src', 'server', 'index.js') config.output.path = path.resolve(__dirname, 'dist', 'server') config.resolve.alias = { '~/middleware': path.resolve(__dirname, 'src', 's...
mit
smourier/brotli
WinBrotli/WinBrotli/WinBrotli.cpp
2967
/* Copyright 2016 Simon Mourier. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #define NOMINMAX #include "windows.h" #include "objidl.h" // ...
mit
jjuiddong/KarlSims
Common/thread/Task.cpp
42
#include "stdafx.h" #include "Task.h"
mit
joergjo/BookLibrary-NetCore
src/BookLibrary/Models/Keyword.cs
189
using System.Text.Json.Serialization; namespace BookLibrary.Models { public class Keyword { [JsonPropertyName("keyword")] public string? Name { get; set; } } }
mit
mugpet/skkgrav
user/plugins/error/error.php
1664
<?php namespace Grav\Plugin; use Grav\Common\Plugin; use Grav\Common\Grav; use Grav\Common\Page\Page; use Grav\Common\Page\Pages; use Grav\Common\Page\Types; use RocketTheme\Toolbox\Event\Event; class ErrorPlugin extends Plugin { /** * @return array */ public static function getSubscr...
mit
xkoma/restoo
app/src/users/UserController.js
2764
(function () { angular .module('users') .controller('UserController', [ 'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q', UserController ]); /** * Controleur des users * @param userService * @param $mdSidenav * @param $mdBottomShee...
mit
gheeres/Ricoh.NET
Models/DeviceObject.cs
3859
using System; using System.Collections.Generic; using System.Linq; using Ricoh.ricoh.deviceManagement; namespace Ricoh.Models { /// <summary> /// Represents the base type of an object retrieved from the external device. /// </summary> public abstract class DeviceObject { private static object _mutex = n...
mit
JustinWomack/worg
src/reducers/eventCreate.js
741
import {combineReducers} from 'redux'; import { EVENT_CREATE, EVENT_CREATE_SUCCESS, EVENT_CREATE_ERROR } from '../actions'; // @FIXME Enable eslint rules /*eslint-disable no-unused-vars */ function loading(state = false, action) { switch(action.type) { //Define any action types I want to listen for. /...
mit
sim1hill/volunteer-app
db/migrate/20150603150012_create_projects.rb
271
class CreateProjects < ActiveRecord::Migration def change create_table :projects do |t| t.string :name t.string :neighborhood t.text :description t.belongs_to :user t.belongs_to :topic t.timestamps null: false end end end
mit
timothyb89/deconstruction-engine
src/main/java/net/asrex/dx/api/zone/chat/ChatZoneMessage.java
442
package net.asrex.dx.api.zone.chat; import lombok.Data; import net.asrex.dx.api.entity.Entity; /** * Defines the basic properties for a ChatMessage. * @author timothyb89 */ @Data public class ChatZoneMessage { public static final String TYPE_ACTION = "action"; public static final String TYPE_NORMAL = "shout"; ...
mit
kaidenho/spellcaster
app/src/main/java/com/kaidenho/gamelooptest/BaseObject.java
671
package com.kaidenho.gamelooptest; import android.content.Context; import android.media.SoundPool; /** * BaseObjects are updatable objects. * * Created by Kaiden Ho on 2016-09-26. */ public abstract class BaseObject { // TODO: should these be getter and setterized? static RenderSystem renderSystem = new R...
mit
cskiwi/angular-seed
app/services/searchService.js
197
/* global define */ define(['app'], function (app) { 'use strict'; app.factory('searchService', function ($resource) { return $resource('api/search'); }); });
mit
miaoxing/member
src/Job/MemberUpdateLevel.php
354
<?php namespace Miaoxing\Member\Job; use Miaoxing\Queue\Job; use Miaoxing\Queue\Service\BaseJob; class MemberUpdateLevel extends Job { public function __invoke(BaseJob $job, $data) { $member = wei()->member()->findById($data['id']); wei()->event->trigger('asyncMemberUpdateLevel', [$member]);...
mit
policygenius/athenaeum
src/atoms/Img/index.js
5223
/* eslint-disable complexity */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import styles from './img.module.scss'; const checkLS = () => typeof window === 'undefined' || !!window.lazySizes; const strParams = '?fit=max&auto=format&ch=Width,DPR&w={width}'; const imgixSrc...
mit
mniizuma/c5test
concrete/core/models/attribute/type.php
10396
<?php defined('C5_EXECUTE') or die("Access Denied."); class Concrete5_Model_AttributeType extends Object { public function getAttributeTypeID() {return $this->atID;} public function getAttributeTypeHandle() {return $this->atHandle;} public function getAttributeTypeName() {return t($this->atName);} public function...
mit
Jorka7a13/SoftUni_CSharpBasics
03. Operators-Expressions-Statements-Homework/Problem 18. OddEvenSum/OddEvenSum.cs
820
using System; class OddEvenSum { static void Main() { int evenSum = 0, oddSum = 0; int n = int.Parse(Console.ReadLine()); for (int i = 1; i < 2 * n + 1; i++) { int number = int.Parse(Console.ReadLine()); if (i % 2 == 0) { e...
mit
it-workshop/caroline
core/ply_saver.cc
1846
// Copyright (c) 2014 The Caroline authors. All rights reserved. // Use of this source file is governed by a MIT license that can be found in the // LICENSE file. /// @author Glazachev Vladimir <glazachev.vladimir@gmail.com> #include <fstream> // NOLINT #include <vector> #include "core/ply_saver.h" namespace core { ...
mit
emanuelespies/alura
Python/01/cadastro_perfis.py
204
def cadastrar(nomes): print 'Digite o nome:' nome = raw_input() nomes.append(nome) def remover(nomes): print 'Qual nome você gostaria de remover?' nome = raw_input() nomes.remove(nome) nomes = []
mit