code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LevelEditor.Extensibility.ReadOnlyViewModels;
namespace LevelEditor.ViewModels
{
public class ElementToolBoxViewModel : RootedViewModel, IReadOn... | bitcraftCoLtd/level-editor | LevelEditor/ViewModels/ElementToolBoxViewModel.cs | C# | mit | 2,511 |
package com.fragmobile;
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
public... | Pinablink/FragMobile | FragMobile/app/src/test/java/com/fragmobile/ExampleUnitTest.java | Java | mit | 408 |
#include "log/logger.h"
#include "log/stdoutlog.h"
//#include <windows.h>
//void SetColor(unsigned short forecolor = 4, unsigned short backgroudcolor = 0)
//{
// HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); //»ñÈ¡»º³åÇø¾ä±ú
// SetConsoleTextAttribute(hCon, forecolor | backgroudcolor); //ÉèÖÃÎı¾¼°±³¾°É«
//}
... | tamzr/code-snippet | code_cpp/common/main.cc | C++ | mit | 572 |
<?php
namespace InfinityGames\InfinityBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ReponseTopicForumType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, ... | thomaschvt/Infinity-Games | src/InfinityGames/InfinityBundle/Form/ReponseTopicForumType.php | PHP | mit | 955 |
using System;
using System.Collections.Generic;
using AssemblyLine.DAL.Entities;
namespace AssemblyLine.Models
{
public class ProjectModel
{
public int Id { get; set; }
public string Name { get; set; }
public ProjectStatus Status { get; set; }
public DateTime Created { get; ... | alexey-ernest/assembly-line | AssemblyLine/Models/ProjectModel.cs | C# | mit | 407 |
class LinkedList {
public static void main(String[] a) {
System.out.println(new LL().Start());
}
}
class Element {
int Age;
int Salary;
boolean Married;
public boolean Init(int v_Age, int v_Salary, boolean v_Married) {
Age = v_Age;
Salary = v_Salary;
Married = v_... | team-compilers/compilers | MiniJava/results/SamplesCorrect/LinkedList/code.java | Java | mit | 6,548 |
class CreateRoles < ActiveRecord::Migration
def change
create_table :roles do |t|
t.string :name
t.text :comment
t.boolean :is_active
t.timestamps
end
end
end
| hex337/quantum-attendance | db/migrate/20150321222054_create_roles.rb | Ruby | mit | 196 |
<?php
namespace Rotor\DB;
class DbSchema {
public static function Update($table,$definition) {
//_gc($table, 'Schema Update');
$definition = static::flattenDefinition($definition);
if (!self::Table_exists($table)) {
self::Create_Table($table,$definition);
} else {
... | andrixh/rotor | Rotor/DB/DbSchema.php | PHP | mit | 4,044 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WaveVR_Log;
using wvr;
public class WaveVR_PointerCameraTracker : MonoBehaviour
{
private const string LOG_TAG = "WaveVR_PointerCameraTracker";
public GameObject reticleObject = null;
public WVR_DeviceType type;
priva... | demonixis/TESUnity | Assets/Vendors/WaveVR/Scripts/WaveVR_PointerCameraTracker.cs | C# | mit | 1,377 |
<?php
namespace Kunstmaan\MediaBundle\Helper\RemoteSlide;
use Kunstmaan\MediaBundle\Form\RemoteSlide\RemoteSlideType;
use Kunstmaan\MediaBundle\Helper\Media\AbstractMediaHandler;
use Kunstmaan\MediaBundle\Entity\Media;
/**
* RemoteSlideStrategy
*/
class RemoteSlideHandler extends AbstractMediaHandler
{
/**
... | WouterJ/KunstmaanBundlesCMS | src/Kunstmaan/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php | PHP | mit | 4,857 |
'use strict';
$(function() {
$.material.init();
$('#libraries').btsListFilter('#searcher', {
itemChild: 'h3',
resetOnBlur: false
});
$('#searcher').focus();
});
| jerone/PackageSize | public/js/script.js | JavaScript | mit | 171 |
package com.binaryedu.web.controllers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframew... | parambirs/binaryedu | src/main/java/com/binaryedu/web/controllers/SignUpSuccessController.java | Java | mit | 782 |
/**
* Copyright 2016 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
/**
* Allows to instantiate a mock implementations of {@link AxStorage}, compatible to the "axStorage" injection.
*
* @module widget_services_storage_mock
*/
import { create as createGlobalStorageMock } from './st... | LaxarJS/laxar | lib/testing/widget_services_storage_mock.js | JavaScript | mit | 1,690 |
import {appendHtml, combine} from './../util';
const ELEMENT_NAMES = {
frameName: 'text-frame',
messageName: 'text-message',
indicatorName: 'text-indicator'
};
let createElements = (container, names) => {
const elements = '\
<div class="text-frame" id="' + names.frameName + '">\
<span class="text-me... | Parnswir/tie | src/extensions/TextOutput.js | JavaScript | mit | 2,308 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace ARRO.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View(... | CliXiD/ARRO | Controllers/HomeController.cs | C# | mit | 525 |
<?php
namespace Nutricion\EmpresasBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PermisosRole
*
* @ORM\Table(name="permisos_role", uniqueConstraints={@ORM\UniqueConstraint(name="role", columns={"role", "permiso"})})
* @ORM\Entity
*/
class PermisosRole
{
/**
* @var integer
*
* @ORM\Colu... | cristianangulo/nutricion_sy | src/Nutricion/EmpresasBundle/Entity/PermisosRole.php | PHP | mit | 1,998 |
require "rails_helper"
RSpec.describe AnswersMailer, type: :mailer do
describe "notify_subscriber" do
let!(:subscription) { create(:subscription) }
let(:mail) { AnswersMailer.notify_subscriber(subscription) }
it "renders the headers" do
expect(mail.subject).to eq("Notify subscriber")
... | bdisney/stackoverflow | spec/mailers/answers_mailer_spec.rb | Ruby | mit | 497 |
//= require sencha_touch/sencha-touch
//= require_directory ./sencha_touch/app
//= require_tree ./sencha_touch/app/models
//= require_tree ./sencha_touch/app/stores
//= require_tree ./sencha_touch/app/controllers
//= require_tree ./sencha_touch/app/views
| AlexanderFlatscher/bakk1todo | app/assets/javascripts/sencha_touch.js | JavaScript | mit | 261 |
;(function() {
function ToerismeApp(id, parentContainer) {
this.API_URL = 'https://datatank.stad.gent/4/toerisme/visitgentevents.json';
this.id = id;
this.parentContainer = parentContainer;
this.loadData = function() {
var that = this;
var xhr = new XMLHttpRequest();
xhr.ope... | dwievane/dwievane.github.io | js/events.js | JavaScript | mit | 2,650 |
package raft
import (
"github.com/iketheadore/raft/comm"
"github.com/iketheadore/raft/logic"
)
type Raft struct {
localServ logic.Server
listener comm.Listener
sender comm.Sender
logic *logic.Logic
}
func New(addr string) *Raft {
r := &Raft{localServ: logic.Server{Addr: addr, Role: logic.Follower}, li... | iketheadore/raft | raft.go | GO | mit | 685 |
package main
import "time"
import "fmt"
import "os"
import "io/ioutil"
import "math/rand"
import "github.com/antonholmquist/jason"
var LOADED *jason.Object // global var to hold the entire json object from file
// loads from file into the jason.Object pointer.
func LoadRollTables() (err error) {
fi, err := os.Open(... | jrmiller82/dm-roller | main.go | GO | mit | 3,379 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\CoreBundle\Entity;
use PHPSpec2\ObjectBehavior;
/**
* Cart spec.
*
*... | formapro-forks/Sylius | src/Sylius/Bundle/CoreBundle/spec/Sylius/Bundle/CoreBundle/Entity/Cart.php | PHP | mit | 2,333 |
module.exports = "module-one-A-model";
| sekko27/node-wire-helper | tests/loader/module-one/lib/domain/models/A.js | JavaScript | mit | 39 |
$(function () {
'use strict';
const notificationType = {
success: 'Success',
error: 'Error',
info: 'Info'
},
notificationTypeClass = {
success: 'toast-success',
info: 'toast-info',
error: 'toast-error'
};
function initSignalR... | SuchTeam-NoJoro-MuchSad/Doge-News | DogeNews/Src/Web/DogeNews.Web/Scripts/Common/notificator.js | JavaScript | mit | 1,006 |
/**
* Ensures that the callback pattern is followed properly
* with an Error object (or undefined or null) in the first position.
*/
'use strict'
// ------------------------------------------------------------------------------
// Helpers
// -------------------------------------------------------------------------... | xjamundx/eslint-plugin-standard | rules/no-callback-literal.js | JavaScript | mit | 2,134 |
package com.github.mikhailerofeev.scholarm.local.services;
import android.app.Application;
import com.github.mikhailerofeev.scholarm.api.entities.Question;
import com.github.mikhailerofeev.scholarm.local.entities.QuestionImpl;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.google.inj... | Whoosh/schalarm | localdb/src/main/java/com/github/mikhailerofeev/scholarm/local/services/QuestionsManager.java | Java | mit | 3,530 |
/*
* Copyright (C) 2011-2012 Dr. John Lindsay <jlindsay@uoguelph.ca>
*
* 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 3 of the License, or
* (at your option) any later vers... | jblindsay/jblindsay.github.io | ghrg/Whitebox/WhiteboxGAT-linux/resources/plugins/source_files/AverageSlopeToDivide.java | Java | mit | 16,874 |
#-*- coding: utf-8 -*-
from .grant import Grant
from ..endpoint import AuthorizationEndpoint
class ImplicitGrant(Grant):
"""
The implicit grant type is used to obtain access tokens (it does not
support the issuance of refresh tokens) and is optimized for public
clients known to operate a particular r... | uptown/django-town | django_town/oauth2/grant/implicitgrant.py | Python | mit | 2,061 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class MessagesInABottle
{
static void GetMessage(string input, int start, Dictionary<string, char> cipher, List<string> answers)
{
if (start >= input.Length)
{
answers.Add(input);
retu... | kalinalazarova1/TelerikAcademy | Programming/2. CSharpPartTwo/ExamCS2_07.02.2012/2. MessagesInABottle/MessagesInABottle.cs | C# | mit | 2,116 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About HazeCoin</source>
<translation>बिटकोइन के संबंध में</translation>... | HazeDev/Hazecoin | src/qt/locale/bitcoin_hi_IN.ts | TypeScript | mit | 106,336 |
#include "bond/api/libio.h"
#include "bond/io/outputstream.h"
#include "bond/io/outputstreamadaptor.h"
#include <cstdio>
namespace Bond
{
void OutputStreamAdaptor::Print(const char *str)
{
const char *format = ((mFlags & IO::Left) != 0) ? "%-*s" : "%*s";
mStream->Print(format, mWidth, str);
mWidth = 0;
}
void Ou... | bondscripting/bond | source/outputstreamadaptor.cpp | C++ | mit | 2,600 |
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("Da... | DJBuro/Telerik | C#2/Strings and Text Processing/DateDifference/Properties/AssemblyInfo.cs | C# | mit | 1,404 |
# Include this module in the base class of a class cluster to handle swizzling
# of ::new
module ClusterFactory
def self.included(parent)
class << parent
alias :original_new :new
def inherited(subclass)
class << subclass
alias :new :original_new
end
end
end
end
e... | jrmyward/euclidean | lib/euclidean/cluster_factory.rb | Ruby | mit | 323 |
<?php
namespace Twit\AppBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class WallControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
// C... | villers/PHP_Avance_SymfoTweet | src/Twit/AppBundle/Tests/Controller/WallControllerTest.php | PHP | mit | 1,913 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The Date.prototype.getMinutes property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
es5id: 15.9.5.20_A3_T1
description: Checking ReadOnly attribute
---... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js | JavaScript | mit | 529 |
require 'test_helper'
class RegistrationCustomControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
| IsaiasAntonio/PI | test/controllers/registration_custom_controller_test.rb | Ruby | mit | 150 |
class Beer < ActiveRecord::Base
SORTABLE_COLUMNS = %w(id name created_at updated_at).freeze
include SearchableModel
belongs_to :brewery
belongs_to :user
validates :brewery_id, presence: true
validates :name, presence: true, length: { maximum: 255 }
validates :description, presence: true, length... | openbeerdatabase/openbeerdatabase | app/models/beer.rb | Ruby | mit | 923 |
package nl.rmokveld.wearcast.phone;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v7.app.NotificationCompat;
import nl.rmokveld.wearcast.shared.C;
public class WearCastService ex... | remcomokveld/WearCast | library-app/src/main/java/nl/rmokveld/wearcast/phone/WearCastService.java | Java | mit | 2,916 |
module LogStasher
VERSION = "0.6.1"
end
| rockaBe/logstasher | lib/logstasher/version.rb | Ruby | mit | 42 |
export class NewForm {
update() {
}
}
| sergemazille/gextion | src/AppBundle/Resources/js/New/NewForm.js | JavaScript | mit | 48 |
<?php
namespace Vexilo\Utilities\Models\Traits;
trait SortableTrait
{
/**
* Return an array with the sortable columns
*
* @param array $sort the current sort array
* @return array
*/
public static function getSortableColums($sort = null)
{
$instance = new static;
$... | vexilo/utilities | src/Models/Traits/SortableTrait.php | PHP | mit | 2,500 |
using Radical.Validation;
using System;
using System.Windows.Data;
using System.Windows.Markup;
namespace Radical.Windows.Converters
{
[MarkupExtensionReturnType(typeof(NotConverter))]
[ValueConversion(typeof(bool), typeof(bool))]
public sealed class NotConverter : AbstractSingletonConverter
{
... | RadicalFx/Radical.Windows | src/Radical.Windows/Converters/NotConverter.cs | C# | mit | 1,421 |
require 'ebay_trading/types/shipment'
require 'ebay_trading/types/variation'
module EbayTrading # :nodoc:
module Types # :nodoc:
# == Attributes
# text_node :invoice_number, 'InvoiceNumber', :optional => true
# numeric_node :transaction_id, 'TransactionID', :optional => true
# numeric_node :sale_r... | plzen/ebay | lib/ebay_trading/types/selling_manager_sold_transaction.rb | Ruby | mit | 3,298 |
module TokyoMetro::Modules::ToFactory::Api::Convert::Patch::TrainTimetable::YurakuchoLine::Generate::List
def generate( max = nil )
ary = super( max )
return ::TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::Generate::List.updated( ary )
end
end
| osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/modules/to_factory/api/convert/patch/train_timetable/yurakucho_line/generate/list.rb | Ruby | mit | 285 |
module DeviseSslSessionVerifiable
VERSION = "3.0.4".freeze
end
| mobalean/devise_ssl_session_verifiable | lib/devise_ssl_session_verifiable/version.rb | Ruby | mit | 65 |
package org.github.sriki77.edgesh.command;
public class CommandException extends RuntimeException {
public CommandException(String message) {
super(message);
}
}
| sriki77/edgesh | src/main/java/org/github/sriki77/edgesh/command/CommandException.java | Java | mit | 180 |
<?php
include ('clases/User.php');
include ('clases/Rss.php');
session_start();
if(!isset($_SESSION['user']))
{
header ("location: index.php");
exit;
}
$usuarios = USER::TraerTodosLosUsersSP();
?>
<!DOCTYPE html>
<html>
<head>
<?php include('modules/headContent.html'); ?>
<title>Casita</title>
<?php ... | AlvarezElias/Consuministisismo | home.php | PHP | mit | 1,712 |
var sourceFolder = 'src',
destFolder = 'public',
configFolder = 'config';
module.exports = {
folders: {
source: sourceFolder,
dest: destFolder
},
files: {
scripts: [
`${sourceFolder}/js/utils.js`,
`${sourceFolder}/js/sprites/weapon.js`,
... | themadknights/wellofeternity | config/gulp.config.js | JavaScript | mit | 1,714 |
using Newtonsoft.Json.Linq;
using Skybrud.Essentials.Json.Extensions;
using Skybrud.Essentials.Time;
namespace Skybrud.Social.Slack.Models.Conversations {
/// <summary>
/// Class representing the topic a Slack conversation.
/// </summary>
public class SlackConversationTopic : SlackObject {
#... | abjerner/Skybrud.Social.Slack | src/Skybrud.Social.Slack/Models/Conversations/SlackConversationTopic.cs | C# | mit | 1,870 |
package storageapi
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenera... | Azure/azure-sdk-for-go | services/storage/mgmt/2021-08-01/storage/storageapi/interfaces.go | GO | mit | 19,150 |
module.exports = {
server: {
host: '0.0.0.0',
port: 3000
},
database: {
host: '158.85.190.240',
port: 27017,
db: 'hackathon',
username: 'administrator',
password: 'hunenokGaribaldi9'
}
}; | esmoreit-hack/hackathon | src/server/config.js | JavaScript | mit | 259 |
'use strict';
/* istanbul ignore next */
/* eslint-disable no-console */
/**
* Handle failures in the application by terminating.
* @param {Exception} err - Exception to handle.
*/
module.exports = (err) => {
console.log(err);
console.log(err.stack);
process.exit(-1);
};
| steve-gray/swagger-codegen | src/failure-handler.js | JavaScript | mit | 290 |
<?php namespace Bostick\Stocker;
/**
* The plugin.php file (called the plugin initialization script) defines the plugin information class.
*/
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Stocker',
... | billbostick/Stocker | Plugin.php | PHP | mit | 629 |
import Omi from 'omi/dist/omi'
import { CellsTitle, Cells, CellHeader, CellBody, CellFooter } from '../cell'
Omi.makeHTML('CellsTitle', CellsTitle);
Omi.makeHTML('Cells', Cells);
Omi.makeHTML('CellHeader', CellHeader);
Omi.makeHTML('CellBody', CellBody);
Omi.makeHTML('CellFooter', CellFooter);
export default class Li... | omijs/omi-weui | src/components/list/list.js | JavaScript | mit | 1,425 |
package spaceinvaders.command.client;
import static spaceinvaders.command.ProtocolEnum.UDP;
import spaceinvaders.client.mvc.Controller;
import spaceinvaders.client.mvc.View;
import spaceinvaders.command.Command;
/** Flush the screen. */
public class FlushScreenCommand extends Command {
private transient Controller... | apetenchea/SpaceInvaders | src/main/java/spaceinvaders/command/client/FlushScreenCommand.java | Java | mit | 771 |
/**
@module ember-flexberry-gis
*/
import Ember from 'ember';
/**
Class implementing base stylization for markers.
@class BaseMarkerStyle
*/
export default Ember.Object.extend({
/**
Gets default style settings.
@method getDefaultStyleSettings
@return {Object} Hash containing default style settin... | Flexberry/ember-flexberry-gis | addon/markers-styles/-private/base.js | JavaScript | mit | 1,493 |
namespace live.asp.net.Models
{
public enum ShowStatus
{
OffAir = 1,
OnAir = 2,
Standby = 3
}
} | matsprea/live.asp.net | src/live.asp.net/Models/ShowStatus.cs | C# | mit | 131 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Build.Framework
{
public delegate void AnyEventHandler(object sender, Microsoft.Build.Framework.BuildEventArgs e);
[System.Runtime.InteropSer... | rainersigwald/msbuild | ref/Microsoft.Build.Framework/netstandard/Microsoft.Build.Framework.cs | C# | mit | 55,579 |
using System;
using System.Diagnostics.Contracts;
namespace Graph
{
public class Edge<TVertex> : IEdge<TVertex>
{
public Edge (TVertex source, TVertex target)
{
if (source == null)
{
throw new ArgumentNullException(nameof(source));
}
... | EGrun/Grun.Math | src/Graph/Edge.cs | C# | mit | 663 |
import {
NgModule, Component, ElementRef, AfterContentInit, AfterViewInit, AfterViewChecked, OnInit, OnDestroy, DoCheck, Input, ViewContainerRef, ViewChild,
Output, SimpleChange, EventEmitter, ContentChild, ContentChildren, Renderer, IterableDiffers, QueryList, TemplateRef, ChangeDetectorRef, Inject, forwardRef... | rohitsindhu90/Primeng-custom-4.0.0.0-rc3 | components/datatable/datatable.ts | TypeScript | mit | 101,388 |
/* *
* The MIT License
*
* Copyright (c) 2015, Sebastian Sdorra
*
* 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... | AjithVas/ACP | sample/scripts/sample-01.js | JavaScript | mit | 2,096 |
module VirusGame {
export const enum CellState { Empty, Alive, Dead };
export class BoardCell extends Phaser.Image {
state: CellState = CellState.Empty;
player: BoardPlayer;
isPossibleToMoveTo: boolean = false;
constructor(public row: number, public col: number, pub... | asyler/virus-game | game/BoardCell.ts | TypeScript | mit | 3,199 |
#!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 us... | EmanueleCannizzaro/scons | test/Execute.py | Python | mit | 4,013 |
using System;
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: Asse... | davetz/ModelGraph | ModelGraph/ModelGraph/Properties/AssemblyInfo.cs | C# | mit | 1,052 |
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
/... | surreymagpie/club | client/Brocfile.js | JavaScript | mit | 763 |
"use strict";
var CropTouch = (function () {
function CropTouch(x, y, id) {
this.id = id || 0;
this.x = x || 0;
this.y = y || 0;
this.dragHandle = null;
}
return CropTouch;
}());
exports.CropTouch = CropTouch;
//# sourceMappingURL=cropTouch.js.map | ToruHyuga/angular2-img-cropper-v2 | src/model/cropTouch.js | JavaScript | mit | 291 |
(function () {
'use strict';
angular
.module('Debug', ['pullrefresh']);
})();
| stomt/angular-pullrefresh | debug/debug-app.js | JavaScript | mit | 87 |
<?php
namespace Yadakhov;
use mikehaertl\shellcommand\Command;
/**
* A simple wrapper class for Tor
* @package Yadakhov
*/
class Tor
{
public function __construct()
{
if (!$this->isRunning()) {
$this->command('start');
}
}
/**
* Execute tor command
*
* @... | yadakhov/tor | src/Tor.php | PHP | mit | 4,631 |
module.exports = function(knex) {
describe('Transactions', function() {
it('should be able to commit transactions', function(ok) {
var id = null;
return knex.transaction(function(t) {
knex('accounts')
.transacting(t)
.returning('id')
.insert({
f... | viniborges/designizando | node_modules/knex/test/integration/builder/transaction.js | JavaScript | mit | 2,294 |
<?php
namespace PhpParser\Node\Scalar;
use PhpParser\Node\Scalar;
/**
* @property array $parts Encaps list
*/
class Encapsed extends Scalar {
/**
* Constructs an encapsed string node.
*
* @param array $parts Encaps list
* @param array $attributes Additional attributes
*/
publ... | Amaire/filmy | vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php | PHP | mit | 532 |
// Source file for alignment utility functions
// Include files
#include "R3Shapes.h"
// Namespace
namespace gaps {
R3Box
R3BoundingBox(const RNArray<R3Point *>& points)
{
// Compute bounding box
R3Box bbox = R3null_box;
for (int i = 0; i < points.NEntries(); i++) {
bbox.Union(*points[i]);
}
/... | tomfunkhouser/gaps | pkgs/R3Shapes/R3Align.cpp | C++ | mit | 16,484 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/feerate.h>
#include <tinyformat.h>
const std::string CURRENCY_... | Bushstar/UFO-Project | src/policy/feerate.cpp | C++ | mit | 1,149 |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
CreateDeployment
Create a RightScale Deployment.
*/
var CreateDeployment = function(session) {
/*
Create a new instance of the CreateDeployment Choreo. A TembooSession object, containing a valid
set o... | nikmeiser/temboo-geocode | node_modules/temboo/Library/RightScale.js | JavaScript | mit | 67,107 |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "omnicoinamountfield.h"
#include "omnicoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include ... | MeshCollider/Omnicoin | src/qt/omnicoinamountfield.cpp | C++ | mit | 8,247 |
var http = require('http')
var https = require('https')
var corsify = require('corsify')
var collect = require('stream-collector')
var pump = require('pump')
var iterate = require('random-iterate')
var limiter = require('size-limit-stream')
var eos = require('end-of-stream')
var flushHeaders = function (res) {
if (r... | supriyantomaftuh/signalhub | server.js | JavaScript | mit | 2,767 |
<?php
include("../partials/header.php");
include("../inc/database.php");
include("controller.php");
if (strlen($_SERVER["QUERY_STRING"])>0){
$result_response = process_request($_GET["length"],$_GET["width"],$_GET["rent_type"]);
//make this a hash so you can access the values with a string
$db = $result_r... | JordanLittell/bidwell | pricing/index.php | PHP | mit | 2,056 |
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users');
var centers = require('../../app/controllers/centers');
// Centers Routes
app.route('/centers')
.get(centers.list)
app.route('/centers')
.get(centers.create)
app.route('/centers/:centerId')
.get(centers.r... | jiashenwang/LG_report | app/routes/centers.server.routes.js | JavaScript | mit | 561 |
# encoding: utf-8
require "mongoid/criterion/complex"
require "mongoid/criterion/exclusion"
require "mongoid/criterion/inclusion"
require "mongoid/criterion/optional"
module Mongoid #:nodoc:
# The +Criteria+ class is the core object needed in Mongoid to retrieve
# objects from the database. It is a DSL that essent... | adorr/mongoid | lib/mongoid/criteria.rb | Ruby | mit | 7,764 |
//==============================================================================
// TorqueLab ->
// Copyright (c) 2015 All Right Reserved, http://nordiklab.com/
//------------------------------------------------------------------------------
//============================================================================... | NordikLab/TorqueLab | tlab/EditorLab/gui/editorTools/EGlobalInspector.cs | C# | mit | 2,081 |
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("Br... | jspuij/breeze.server.net | Breeze.ContextProvider.EF6/Properties/AssemblyInfo.cs | C# | mit | 1,451 |
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
def store_dir
"vanzeiro/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
version :thumb do
process resize_to_fill: [69, 69]
end
version :thumb2x do
process resize_to_fill: [312, 312]
end
d... | Cabuum/vanzeiro | app/uploaders/image_uploader.rb | Ruby | mit | 438 |
package io.picopalette.apps.event_me.Utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.View;
import com.facebook.drawee.view.SimpleDrawee... | picopalette/event-me | app/src/main/java/io/picopalette/apps/event_me/Utils/ImageBehaviour.java | Java | mit | 4,149 |
require "rubygems"
require "bundler/setup"
require "mini_magick"
require "sample_file/version"
require "sample_file/base"
require "sample_file/image"
require "sample_file/video"
module SampleFile
class << self
def image(type='png', opts={})
Image.new(type, opts).file
end
def image_path(type='png'... | mcls/sample_file | lib/sample_file.rb | Ruby | mit | 553 |
<?php
namespace JoshP\MainBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
/**
* User
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="JoshP\MainBundle\Entity\UserRepository")
*/
class User extends BaseUser
{
/**
* @var integer
*
* @ORM\Column(name="id"... | mushiie/hosting | src/src/JoshP/MainBundle/Entity/User.php | PHP | mit | 555 |
const path = require('path')
const merge = require('webpack-merge')
const webpack = require('webpack')
const baseWebpackConfig = require('./webpack.base.config')
const ExtractTextPlugin = require("extract-text-webpack-plugin")
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
function resolve (di... | jocodev1/mithril-cli | src/build/webpack.prod.config.js | JavaScript | mit | 1,266 |
/**
* db.hpp
*
* Database abstraction part of Disc Data Base.
*
* Copyright (c) 2010-2011 Wincent Balin
*
* Based upon ddb.pl, created years before and serving faithfully until today.
*
* Uses SQLite database version 3.
*
* Published under MIT license. See LICENSE file for further information.
*/
#in... | wincentbalin/DDB | db.cpp | C++ | mit | 11,489 |
package gea.api;
public class Api extends Thread{
}
| acalvoa/GEA-FRAMEWORK | src/gea/api/Api.java | Java | mit | 55 |
<div class="set-area">
<form id="search" action="" method="get" class="searchform">
用户名:<input type="text" value="<?=!empty($search['username']) ? $search['username'] : ''?>" name="username" class="input-txt w100" style="">
真实姓名:<input type="text" value="<?=!empty($search['realname']) ? $search['rea... | zl0314/ruida | bak/application/views/manager/usercp/index.php | PHP | mit | 2,329 |
require 'spec_helper'
module Donaghy
module Middleware
describe Stats do
let(:manager) { man = mock(:manager, name: "test_mock_manager"); man.stub_chain(:async, :event_handler_finished).and_return(true); man }
let(:event_handler) { EventHandler.new(manager) }
let(:event) do
Event.from... | Amicus/donaghy | spec/lib/donaghy/middleware/stats_spec.rb | Ruby | mit | 3,047 |
// extglyde
//
// Glyde Glue Plugin
// (c)2015 by Cylexia, All Rights Reserved
//
// Version: 1.15.0625
//
// MIT License
var ExtGlyde = {
GLUE_STOP_ACTION: -200,
plane: null, // Canvas
resources: null,
styles: null,
buttons: null,
keys: null,
button_sequence: [],
timers: null,
timer_manager:... | cylexia/glyde-chromeapp | glue/extglyde.js | JavaScript | mit | 21,282 |
// Copyright (c) 2014 blinkbox Entertainment Limited. All rights reserved.
package com.blinkboxbooks.android.authentication;
import android.accounts.AbstractAccountAuthenticator;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
import androi... | blinkboxbooks/android-app | app/src/main/java/com/blinkboxbooks/android/authentication/BBBAuthenticator.java | Java | mit | 6,858 |
using Heisenslaught.Infrastructure.MongoDb;
using System.Collections.Generic;
namespace Heisenslaught.Draft
{
public interface IDraftStore : ICrudMongoStore<string, DraftModel>
{
DraftModel FindByDraftToken(string draftToken);
List<DraftModel> FindByUserId(string userId);
}
} | chetjan/heisenslaught | src/Heisenslaught/Context/Draft/Stores/IDraftStore.cs | C# | mit | 309 |
import React, { Component, PropTypes } from 'react';
import { Image } from 'react-bootstrap';
require('./styles.scss');
class SocialBar extends Component {
constructor(props) {
super(props);
}
render() {
const { icon, url } = this.props;
return (
<a href={url} target="_blank">
... | sebacorrea33/todoinstitutos | src/containers/ProfilePage/ProfileHeader/SocialIcon.js | JavaScript | mit | 602 |
<!doctype html>
<html>
<head>
<title>我抢到红包啦</title>
<meta charset="utf-8">
<meta name="keywords" content="倍全,倍全商城,倍全订货,社区O2O,社区便利店,网上超市,济南社区020,便利店O2O,济南社区便利店" />
<meta name="description" content="倍全商城-倍全旗下品牌,济南同城最快速的便利店商品订购派送网站" />
<link rel="icon" href="favicon.ico" ... | guotao2000/ecmall | temp/compiled/wapmall/qhb.success.html.php | PHP | mit | 3,740 |
from django import forms
from django.core.validators import validate_email
from django.db.models import Q
from django.utils.translation import ugettext_lazy as _
from .utils import get_user_model
class PasswordRecoveryForm(forms.Form):
username_or_email = forms.CharField()
error_messages = {
'not_fo... | xsunfeng/cir | password_reset/forms.py | Python | mit | 4,276 |
'use strict';
describe('heroList', function(){
//Load module that contains the heroList component
beforeEach(module('heroList'));
describe('HeroListController', function(){
it('should create a `heroes` model with 6 heroes', inject(function($componentController){
var ctrl = $componentController('heroList');
... | MichaelRandall/heroes-villians | app/hero-list/hero-list.component.spec.js | JavaScript | mit | 377 |
// to be used if new modules are added to MSF.
Mamoru.Sync.allModules = function(){
var moduleFixtures = {
exploit: 'module.exploits',
post: 'module.post',
auxiliary: 'module.auxiliary',
payload: 'module.payloads',
encoder: 'module.encoders',
nop: 'module.nops',
}... | mamoru-vm/mamoru | mamoru/server/lib/sync.js | JavaScript | mit | 9,615 |
<?php
namespace Ds\Component\System\Query;
/**
* Class TenantParameters
*
* @package Ds\Component\System
*/
class TenantParameters implements Parameters
{
use Base;
}
| DigitalState/Core | src/System/Query/TenantParameters.php | PHP | mit | 177 |
require 'childprocess'
require 'tempfile'
require 'shellwords'
require 'aruba/errors'
require 'aruba/processes/basic_process'
require 'aruba/platform'
# Aruba
module Aruba
# Platforms
module Processes
# Spawn a process for command
#
# `SpawnProcess` is not meant for direct use - `SpawnProcess.new` - b... | jasnow/aruba | lib/aruba/processes/spawn_process.rb | Ruby | mit | 7,406 |
package com.github.scaronthesky.eternalwinterwars.view.entities;
public interface IMeasureableEntity {
public float getWidth();
public float getHeight();
}
| hinogi/eternalwinterwars | src/com/github/scaronthesky/eternalwinterwars/view/entities/IMeasureableEntity.java | Java | mit | 160 |