repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
tongquhq/about
test/config/parser-spec.js
2320
/** * Created by at15 on 2016/9/7. */ 'use strict'; const expect = require('chai').expect; const fsUtil = require('../../lib/util/fs'); const Parser = require('../../lib/config/parser'); describe('Parser', () => { it('can load yaml file', () => { expect(Parser.shallowParse('example/data/sway.yml')).to.e...
mit
QoboLtd/cakephp-utils
src/ModuleConfig/PathFinder/PathFinderInterface.php
1196
<?php /** * Copyright (c) Qobo Ltd. (https://www.qobo.biz) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Qobo Ltd. (https://www.qobo.biz) * @license ...
mit
droath/project-x
tests/Project/DrushCommandTest.php
1135
<?php namespace Droath\ProjectX\Tests\Project; use Droath\ProjectX\Project\Command\DrushCommand; use Droath\ProjectX\Tests\TestBase; class DrushCommandTest extends TestBase { protected $drushCommand; protected $drupalProject; public function setUp() { parent::setUp(); $this->drushComman...
mit
pnhepw/java-lessons-kirylka
homework/lesson_4/src/model/Doctor.java
2654
package model; import java.util.Arrays; public class Doctor extends Human { public static final int DOCTORS = 2; private int experience; //experience (years) private String[] specialization = new String[2]; // Constructor public Doctor(int experience, String[] specialization) { this.exp...
mit
fbazzarella/afiliados
db/migrate/20140904004803_rename_verified_at_to_bounced_at_on_email.rb
143
class RenameVerifiedAtToBouncedAtOnEmail < ActiveRecord::Migration def change rename_column :emails, :verified_at, :bounced_at end end
mit
localvore-today/react-mapbox-autocomplete
index.js
7163
'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
DavidAnson/markdownlint
test/rules/any-blockquote.js
714
// @ts-check "use strict"; const { filterTokens } = require("markdownlint-rule-helpers"); module.exports = { "names": [ "any-blockquote" ], "description": "Rule that reports an error for any blockquote", "information": new URL( "https://github.com/DavidAnson/markdownlint" + "/blob/main/test/rules/any-b...
mit
spokesoftware/zitdunyet
lib/zitdunyet/evaluation.rb
1880
module Zitdunyet module Evaluation def complete? self.class.checklist.each { |item| return false unless item.logic.call(self) } true end def percent_complete # Scale the percentages if they don't add up to 100. When units are part of the mix, scale the units to fit into # the pe...
mit
laribee/mochachino
node_modules/chai/lib/chai.js
814
/*! * chai * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ var exports = module.exports = {}; exports.version = '0.2.1'; exports.Assertion = require('./assertion'); exports.AssertionError = require('./error'); exports.inspect = require('./utils/inspect'); exports.use = function (fn) ...
mit
uspgamedev/demos
cellular_automaton/conf.lua
2805
function love.conf(t) t.window = t.window or t.screen t.identity = nil -- The name of the save directory (string) t.version = "0.10.1" -- The LÖVE version this game was made for (string) t.console = true -- Attach a console (boolean, Windows only) ...
mit
ciervogris/algoritmosII-P2
src/grafoListaAdyacencia/IGrafoL.java
509
package grafoListaAdyacencia; public interface IGrafoL { public void crearGrafoVacio(int maxNodos); public void agregarVertice(int numero); public void agregarArista(int origen, int destino, int peso); public void eliminarVertice(int numero); public void eliminarArista(int origen, int destino);...
mit
danielchalmers/Network-Monitor
Network Monitor/Properties/AssemblyInfo.cs
2214
using System.Reflection; using System.Runtime.InteropServices; using System.Windows; // 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("Network Monitor")]...
mit
anton23/gpanalyser
src-probes/uk/ac/imperial/doc/gpa/probes/IProbe.java
282
package uk.ac.imperial.doc.gpa.probes; import uk.ac.imperial.doc.gpa.fsm.NFAState; public interface IProbe { public String getName (); public void setName (String name); public void setStartingState (NFAState state); public NFAState getStartingState (); }
mit
hughpyle/inguz-DSPUtil
Shuffler.cs
1766
using System; using System.Collections.Generic; using System.Text; namespace DSPUtil { /// <summary> /// Channel-shuffle (LR to MS or vice versa) /// Requires two-channel input. /// </summary> public class Shuffler: SoundObj { public Shuffler() { } /// <summary>...
mit
brh55/go-feeling
feeling.go
1251
// Package feeling provides terminal output of feelings through text emoticons. package feeling import "github.com/fatih/color" // Uncertain appends (,,◕ ⋏ ◕,,) in blue func Uncertain(text string) string { text += color.BlueString(" (,,◕ ⋏ ◕,,)") return text } // Whatever appends ¯\\_(ツ)_/¯ in green func Wha...
mit
krzysztofengineer/pesel
tests/PeselDateTest.php
1459
<?php use KrzysztofEngineer\Pesel\PeselInfo; class PeselDateTest extends PHPUnit_Framework_TestCase { /** * @test * @dataProvider simplePeselInfoProvider */ public function it_fetches_birthday_for_simple_cases($pesel, $year, $month, $day) { $peselInfo = new PeselInfo($pesel); ...
mit
lina9527/easybi
utils.py
19645
"""Utility functions used across Superset""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import decimal import functools import json import logging import numpy import os import parsedatetime import pytz import smt...
mit
utilForever/CppChart
CppChart/ChartTest.cpp
2833
#include <thread> #include "Chart.h" #include "Bar.h" #include "Line.h" void DrawOnScreen(CppChart::Chart*); void ChartTest(); int main() { std::thread t(ChartTest); t.join(); return 0; } void DrawOnScreen(CppChart::Chart* graph) { sf::ContextSettings settings; settings.antialiasingLevel = 8; sf::RenderWindo...
mit
Rokfor/rokfor-php-db
config/generated-classes/FieldpostprocessorQuery.php
456
<?php use Base\FieldpostprocessorQuery as BaseFieldpostprocessorQuery; /** * Skeleton subclass for performing query and update operations on the '_fieldpostprocessor' table. * * * * You should add additional methods to this class to meet the * application requirements. This class will only be generated as * l...
mit
BryceHQ/form-designer
src/lang/zh-cn.js
2957
const lang = { name: '表单设计器', sidebar: '浏览', menu: { "new": '新建', open: '打开', saveAs: '另存为', history: '历史版本', }, button: { newOne: '新建', comfirm: '确认', cancel: '取消', close: '关闭', signin: '登录', signup: '注册', logout: '退出', personCenter: '个人中心', markdown: '使用ma...
mit
howdyai/botkit
packages/testbot/features/test_convo.js
1320
module.exports = function(controller) { // controller.cms.before('tests','default', async function (bot, convo) { // convo.vars.bar = 'foo'; // convo.vars.foo = 'bar'; // await bot.say('A'); // }); // controller.cms.before('tests','default', async function (bot, convo) { // ...
mit
bitzesty/trade-tariff-backend
spec/support/codes_mapping_helper.rb
219
module CodesMappingHelper def stub_codes_mapping_data res = [ %w[10101111 22101122], %w[10101112 22101133] ].to_h allow(SearchService::CodesMapping).to receive(:data).and_return(res) end end
mit
DennisWandschura/vxEngine
source/LevelEditorSharp/EditorForm.Designer.cs
56593
/* The MIT License (MIT) Copyright (c) 2015 Dennis Wandschura Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
mit
impedimentToProgress/UCI-BlueChip
VHDLExpressionEval/src/net/java/dev/eval/Compiler.java
3268
/* * Copyright 2008 Reg Whitton * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
mit
AlexGhiondea/SmugMug.NET
src/SmugMug.NET/Types/Album/AlbumTemplate/AlbumTemplate.manual.cs
668
// Copyright (c) Alex Ghiondea. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Threading.Tasks; using SmugMug.v2.Authentication; namespace SmugMug.v2.Types { public partial class AlbumTemplateEntity : SmugMugEnt...
mit
delian1986/SoftUni-C-Sharp-repo
Programming Basics/06. Drawing with Loops/Drawing with Loops Lekcia/axe/axe.cs
2042
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace axe { class axe { static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); var upRows = n - 1; var col = 5 * n; ...
mit
jmdobry/angular-data-localForage
test/destroyAll.test.js
775
describe('DSLocalForageAdapter.destroyAll', function () { it('should destroy all items', function (done) { var id; DSLocalForageAdapter.create(User, { name: 'John' }) .then(function (user) { id = user.id; return DSLocalForageAdapter.findAll(User, { name: 'John' }); ...
mit
RadishSystems/choiceview-webapi-twilio-demo
CVClassLib/Models/Link.cs
511
namespace WebApiInterface.Models { public class Link { public static string StateNotificationRel = "/rels/statenotification"; public static string MessageNotificationRel = "/rels/messagenotification"; public static string SessionRel = "/rels/session"; public static string Payloa...
mit
ApiGen/ElementReflection
src/Php/Factory/ClassConstantReflectionFactoryInterface.php
622
<?php /** * This file is part of the ApiGen (http://apigen.org) * * For the full copyright and license information, please view * the file license.md that was distributed with this source code. */ namespace ApiGen\ElementReflection\Php\Factory; use ApiGen\ElementReflection\Php\ClassConstantReflection; use ApiGe...
mit
vuthea/schedule
application/libraries/Usage Example.php
915
<?php /** * Usage Examples * * @author Sebastian Borggrewe <me@sebastianborggrewe.de> * @since 2010/01/24 * @package APNP */ error_reporting(E_ALL | E_STRICT); include 'APNSBase.php'; include 'APNotification.php'; include 'APFeedback.php'; try{ # Notification Example $notification = new APNotification('...
mit
havster09/haven-weather
app/src/app.js
1563
"use strict"; // Load libraries import angular from 'angular'; import 'angular-animate'; import 'angular-aria'; import 'angular-material'; import 'ngcomponentrouter'; import 'angular-ui-router'; import AppController from 'src/AppController'; import Charts from 'src/charts/Charts'; import GlobeDataService from "./c...
mit
victorbstan/images-feed
public/app/controllers/image-controller.js
430
'use strict'; App.controller('imageController', function($scope, $http, $location, $anchorScroll) { console.log($location.path()); $http.get($location.path()) .success(function(data, status, headers, config) { console.log('DATA', data); $scope.image = data; $anchorScroll(); }) .error(function(d...
mit
wistityhq/strapi
packages/strapi-plugin-upload/admin/src/components/EditForm/ErrorMessage.js
217
import styled from 'styled-components'; import CardErrorMessage from '../CardErrorMessage'; const ErrorMessage = styled(CardErrorMessage)` margin-top: 11px; margin-bottom: 18px; `; export default ErrorMessage;
mit
ewillman/qbank3api-dotnetwrapper
Exception/ResponseException.php
100
<? php namespace QBNK\QBank\API\Exception; class ResponseException extends QBankApiException { }
mit
codeclimate/codeclimate-duplication
spec/cc/engine/analyzers/javascript/main_spec.rb
10578
require 'spec_helper' require 'cc/engine/analyzers/javascript/main' require 'cc/engine/analyzers/reporter' require 'cc/engine/analyzers/engine_config' RSpec.describe CC::Engine::Analyzers::Javascript::Main, in_tmpdir: true do include AnalyzerSpecHelpers describe "#run" do it "prints an issue for identical cod...
mit
macgyver/dotfiles
slate/scripts/bash_docker.py
297
from subprocess import check_output, call def get_bash_login(container, shell='bash'): obj = check_output(['docker', 'ps']) for line in obj.split('\n'): if container in line: cmd = 'docker exec -it %s %s' % (line.split(' ')[0], shell) call(cmd.split(' '))
mit
adamdawkins/react-mdl-stepper
src/step_actions.js
252
import React from 'react'; class StepActions extends React.Component { render() { const { children } = this.props; return ( <div className="mdl-step__actions"> {children} </div> ); } } export default StepActions;
mit
kafti/pynasl
pynasl/visitors/statistic/statistic.py
10321
#------------------------------------------------------------------------------- # Copyright (c) 2011, Kafti team # # Released under the MIT license. See the LICENSE file for details. #------------------------------------------------------------------------------- """Visitor for collecting nasl functions statistics""...
mit
educreations/python-iap
tests/test_forms.py
13702
import datetime from iap.forms import ( AppleLatestReceiptInfoForm, AppleUnifiedPendingRenewalInfoForm, AppleUnifiedReceiptForm, AppleStatusUpdateForm, ) def test_valid_latest_receipt_info_form(): # An example response from Apple data = { "app_item_id": "000000000", "bid": "co...
mit
Namzar/BasicBlog
src/Functionality/NavbarBundle/Form/Type/NavbarType/NavbarNavbarLinkType.php
1649
<?php namespace Functionality\NavbarBundle\Form\Type\NavbarType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class NavbarNavbarLinkType extends AbstractType { public function buildForm(FormBuilderInterface ...
mit
ChicagoPublicSchools/Map-LSCElections2016
scripts/map.js
28435
// LSC Vacancies Map (Community and Parent vacancies) // web services // 4/2016 var fusionTableId = "142zjKh-oFZIGF8GKTcUrivcwS4U4OzhfJUN7QAxQ" ; // LSCvacancies_2016 as of 3/22/2016 var LSCdistrictsTableId = "1WRXaOoaBmKqjOOqYfd7ltc8pPHbKhMUtQ_gy6joW" ; // LSC Voting Districts SY16/17 var googleAPIkey ...
mit
markbates/split_logger
test/split_logger/split_logger_test.rb
2228
require 'test_helper' require 'logger' describe SplitLogger do let(:sp) {SplitLogger.new} describe 'add' do it 'should add a logger to the list' do sp.list.size.must_equal 0 sp.add(:std, ::Logger.new(STDOUT)) sp.list.size.must_equal 1 end end describe 'list' do it 'should re...
mit
lianggx/mystaging
src/MyStaging/Metadata/TableType.cs
102
namespace MyStaging.Metadata { public enum TableType { Table, View } }
mit
medericDelamare/USCL
app/DoctrineMigrations/Version20170622202214.php
1052
<?php namespace Application\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20170622202214 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema...
mit
BadQuanta/sdl2_ffi
lib/sdl2/audio.rb
3670
require 'sdl2' require 'sdl2/rwops' module SDL2 typedef :uint16, :audio_format module Audio module MASK include EnumerableConstants BITSIZE= (0xFF) DATATYPE= (1<<8) ENDIAN= (1<<12) SIGNED= (1<<15) end def self.bitsize(x) x & Mask.BITSIZE end def s...
mit
hekailiang/cloud-config
cloud-config-ui/index.js
399
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './components/main'; function run() { ReactDOM.render( <Main/>, document.getElementById('app') ); } const loadedStates = ['complete', 'loaded', 'interactive']; if (loadedStates.includes(document.readyState) && document.body) { ...
mit
lurienanofab/labscheduler
LabScheduler/scripts/jquery.dateManager.js
4424
(function ($) { $.fn.dateManager = function (options) { return this.each(function () { var $this = $(this); var opt = $.extend({}, { "onChange": null, "format": "mm/dd/yyyy" }, options); var $datepicker = $('.datepicker', $this).datepicker({ 'autoclose': true, 'format'...
mit
tomp2p/TomP2P.NET
TomP2P/TomP2P.Core/Peers/PeerAddress.cs
25678
using System; using System.Collections; using System.Collections.Generic; using System.Net; using System.Text; using TomP2P.Core.Storage; using TomP2P.Extensions; namespace TomP2P.Core.Peers { /// <summary> /// A peer address contains the node ID and how to contact this node both TCP and UDP. /// <para>Th...
mit
xXBeTaV2Xx/Cubics-Networking
CubicsGamesNetworking/Tools/Logger.cs
2937
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CubicsGamesNetworking.Tools { public static class Logger { private static bool LogInConsole = true; private static bool ErrorInConsole = true; public static void SetLogInConsole...
mit
msvalina/pcl-surface-mesh-reconstruction
mesh-reconstruction/logwindow.cpp
613
#include <logwindow.h> LogWindow::LogWindow(QWidget *parent) : QPlainTextEdit(parent) { appendMessage("Welcome young padawan. \n"); } void LogWindow::appendMessage(const QString& text) { this->appendPlainText(text); // Adds the message to the widget this->verticalScrollBar()->setValue(this->verticalScroll...
mit
Blecki/RMUD
Core/Core/Parser/Matchers/RankGate.cs
1007
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RMUD { public partial class CommandFactory { public static CommandTokenMatcher RequiredRank(int Rank) { return new RankGate(Rank); } } internal class RankGate : CommandT...
mit
JordanMajd/Electronic_Life
src/entities/herbivore.js
139
'use strict'; var Animal = require('../entities/animal'); function Herbivore() { //TODO: implement me } module.exports = Herbivore;
mit
kristenkotkas/moviediary
src/main/java/server/template/ui/RecommenderTemplate.java
91
package server.template.ui; public interface RecommenderTemplate extends BaseTemplate { }
mit
openpprn/opn
config/initializers/merit.rb
3432
# Use this hook to configure merit parameters Merit.setup do |config| # Check rules on each request or in background # config.checks_on_each_request = true # Define ORM. Could be :active_record (default) and :mongoid # config.orm = :active_record # Add application observers to get notifications when reputat...
mit
hfeeki/cmdln
test/cmdln_help1.py
1370
#!/usr/bin/env python """ $ python cmdln_help1.py help HelpShell: blah blah blah $ python cmdln_help1.py help documented documented: blah documented blah $ python cmdln_help1.py help hashelpfunc hashelpfunc: blah hashelpfunc blah $ python cmdln_help1.py help undocumented cmdln_help1....
mit
huyang1532/datamining
src/main/java/me/huyang/ReadLocalFile.java
1007
package me.huyang; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; /** * Created by young on 2015/5/5. */ public class ReadLocalFile { public static void readFile(String hdfsPath, File file) throws Exception { FileReader fileReader = new FileReader(file); Buffere...
mit
CorsoJavaGenesis/Common
src/main/java/corsojavagenesis/common/oop/abstractclass/ClasseConcreta.java
306
package corsojavagenesis.common.oop.abstractclass; public class ClasseConcreta extends ClasseAstratta { public ClasseConcreta(){ super(); System.out.println("Costruttore di ClasseConcreta"); } @Override public int nome(int a) { // TODO Auto-generated method stub return 0; } }
mit
zhenxuan00/mmdgm
conv-mmdgm/layer/BernoulliVisiable.py
2319
import theano.tensor as T import theano.tensor.nnet as Tnn import numpy as np import theano import nonlinearity class BernoulliVisiable(object): """ Stochastic layer: Bernoulli distribution """ def __init__(self, rng, input, data, n_in, n_out, W_mean=None, b_mean=None, activation=None): """...
mit
waldo2188/OpenIdConnectRelyingPartyBundle
DependencyInjection/Security/Factory/OICFactory.php
3371
<?php namespace Waldo\OpenIdConnect\RelyingPartyBundle\DependencyInjection\Security\Factory; use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\DefinitionDecorator; use Symfony\Co...
mit
CS2103AUG2016-T17-C3/main
src/main/java/seedu/task/model/task/Status.java
2864
package seedu.task.model.task; // @@author A0147335E /** * Represents a Task status in the task manager. */ public class Status { private boolean isDone; private boolean isOverdue; private boolean isFavorite; public Status() { this.isDone = false; this.isOverdue = false; t...
mit
jbryant32/webstore
WebStrore/wwwroot/js/formValidation.js
4149
 let app = angular.module("formModule", []); app.controller("registerUserController", ($scope, $http) => { ///create goo auth let GoogleAuth; // Google Auth object. function initClient() { gapi.client.init({ 'clientId': '82884474617-4ij42qcvd3tqr5ln8p7eb6k891f...
mit
superhj1987/awesome-codes
python/progressbar-python.py
718
# -*- coding:utf-8 -*- import sys, time class ProgressBar: def __init__(self, count = 0, total = 0, width = 50): self.count = count self.total = total self.width = width def move(self): self.count += 1 def log(self, s): sys.stdout.write(' ' * (self.width + 9) + '\r'...
mit
rockResolve/dialog
dist/amd/dialog-service.js
3525
define(['exports', 'aurelia-metadata', 'aurelia-dependency-injection', 'aurelia-templating', './dialog-controller', './renderers/renderer', './lifecycle'], function (exports, _aureliaMetadata, _aureliaDependencyInjection, _aureliaTemplating, _dialogController, _renderer, _lifecycle) { 'use strict'; Object.definePr...
mit
ckcks12/Homework
algorithm/hw1/src/Main.java
5529
/** * Created by ckcks12 on 2016. 12. 14.. */ import java.util.*; import java.math.*; import java.util.concurrent.Callable; public class Main { static class Person implements Cloneable{ int dist = 0; int cmp_cnt = 0; boolean done = false; LinkedList<Integer> trace = new LinkedLis...
mit
Rachels-Courses/Course-Common-Files
STUDENT_REFERENCE/EXAMPLE_CODE/Operator Overloading/Words/Phrase.cpp
1547
#include "Phrase.hpp" ostream& operator<<( ostream& out, Phrase& item ) { out << item.m_text; return out; } istream& operator>>( istream& in, Phrase& item ) { in >> item.m_text; return in; } Phrase operator+( const Phrase& item1, const Phrase& item2 ) { return Phrase( item1.m_text + item2.m_text ); } Phrase...
mit
rlugojr/cytoscape.js
test/core-export.js
3391
var expect = require('chai').expect; var cytoscape = require('../src', cytoscape); describe('Core export', function(){ var cy; // test setup beforeEach(function(done){ cytoscape({ styleEnabled: true, elements: { nodes: [ { data: { id: "n1", foo: "bar" }, classes: "odd one" ...
mit
xedoscoin/xedoscoin
src/util.cpp
42177
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef WIN32 // for posix_fallocate #ifdef __linux__ #define _POSIX_C_SOURCE 2001...
mit
gabrielzanoni/SGCAV
packages/users/public/controllers/meanUser.js
4281
'use strict'; angular.module('mean.users') .controller('LoginCtrl', ['$scope', '$rootScope', '$http', '$location', function($scope, $rootScope, $http, $location) { // This object will be filled by the form $scope.user = {}; // Register the login() function $scope.login = function() { ...
mit
trivial-space/renderer
dist/utils/stackgl.d.ts
452
import { Vec } from 'tvs-libs/dist/math/vectors'; import { FormData } from '../painter-types'; export declare const STACK_GL_GEOMETRY_PROP_POSITION = "positions"; export declare const STACK_GL_GEOMETRY_PROP_NORMAL = "normals"; export declare const STACK_GL_GEOMETRY_PROP_UV = "uvs"; export declare const STACK_GL_GEOMETR...
mit
DevlinLiles/VSConsole.PowerPack
VSConsole.PowerPack.Core/IWpfConsole.cs
165
namespace VSConsole.PowerPack.Core { public interface IWpfConsole : IConsole { object Content { get; } object VsTextView { get; } } }
mit
skatsuta/mazes
ruby/cell.rb
1218
require 'distances' class Cell attr_reader :row, :column attr_accessor :north, :south, :east, :west def initialize(row, column) @row, @column = row, column @links = {} end def link(cell, bidi=true) @links[cell] = true cell.link(self, false) if bidi self ...
mit
JOHNYC23/UIP-PROG2
Tareas/Tarea semana 10/src/Excepciones/Principal.java
773
package Excepciones; public class Principal { public static void main(String[] args) { /* try{ System.out.println("Aqui va el error que arrojaria"); } catch (Exception e){ System.out.println("aqui va el codigo si ocurre el error"); } finally{ System.out.println("Esto igual se imprimira"); }*/ int numerador=10;...
mit
MurhafSousli/ng-gallery
projects/gallerize/src/lib/gallerize.directive.ts
5657
import { Directive, Input, OnInit, OnDestroy, Inject, Optional, Self, Host, NgZone, ElementRef, Renderer2, PLATFORM_ID } from '@angular/core'; import { DOCUMENT, isPlatformBrowser } from '@angular/common'; import { Gallery, GalleryRef, ImageItem, GalleryComponent, GalleryState, GalleryItem } fr...
mit
elkdanger/Glimpse.Plugins.Bundling
src/Glimpse.Plugins.Bundling/GlimpseBundlePluginHttpModule.cs
685
using System; using System.Web; using System.Web.Optimization; using Microsoft.Web.Infrastructure.DynamicModuleHelper; namespace Glimpse.Plugins.Bundling { public class GlimpseBundlePluginHttpModule : IHttpModule { public void Init(HttpApplication context) { context.BeginRequest +=...
mit
MattFoy/Dice_and_Data
Dice_and_Data/Dice/RollPattern.cs
12690
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; using System.Diagnostics; using Dice_and_Data.Dice; using Dice_and_Data.Data; namespace Dice_and_Data { class RollPattern { private string patternSt...
mit
NShahri/AtomicClock
projects/AtomicClock/Services/Events/IJobEventModel.cs
897
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="IJobEventModel.cs" company="Nima Shahri"> // Copyright (c) Nima Shahri. All rights reserved. // </copyright> // <summary> // Defines the IJobEventModel type. // </summary> // ---...
mit
timegridio/concierge
migrations/2016_02_01_000000_create_users_table.php
693
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table...
mit
achristoph/angular2-starter
src/app/core/services/constant.ts
587
import { Injectable } from '@angular/core'; /** * This service stores all constants based on environment */ @Injectable() export class Constant { public data: any; constructor() { this.data = {}; } } export interface Project { title: string; description: string; tasks: any; } export interface Task...
mit
swaplicado/siie32
src/erp/mtrn/view/SViewDpsStockReturn.java
30214
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package erp.mtrn.view; import erp.data.SDataConstants; import erp.data.SDataConstantsSys; import erp.data.SDataUtilities; import erp.data.SProcConstants; import erp.gui.SModuleUtilities; import erp.lib.SLibConstants; i...
mit
btcdraft/draftcoin
src/qt/locale/bitcoin_sl_SI.ts
129315
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sl_SI" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DraftCoin</source> <translation>O DraftCoin</translation> </message> <message> <loca...
mit
lucky/pedant
lib/pedant.rb
1254
module Pedant class TypeError < StandardError; end class GuardError < StandardError; end module Dummy def self.included(base) base.extend ClassMethods Class.extend ClassMethods end def self.extended(base) base.extend ClassMethods Class.extend ClassMethods end modu...
mit
daftshady/dropbytes-client
dropbytes/option.py
1435
""" dropbytes.option ~~~~~~~~~~~~~~~~ """ class ParseError(Exception): pass class OptionParser(object): """Command-line option parser. Available options are not implemented yet. """ def __init__(self): self._FILENAME_LIMIT = 128 self._available = [] @property ...
mit
andrisazens/learning-angular
tutorials/tour-of-heroes/src/app/hero-search.component.js
3032
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
mit
malja/cvut-python
cviceni10/01_genealogy.py
3129
import sys def loadFile( filename ): people = [] with open( filename ) as file: for line in file: line = line.replace("\n", "").split(" ") print(line) if len( line ) != 5: return False people.append( line ) return people class Pe...
mit
colinmathews/node-workhorse-aws
dist/lib/services/s3-state-manager.js
6890
"use strict"; require('date-format-lite'); var es6_promise_1 = require('es6-promise'); var aws_sdk_1 = require('aws-sdk'); var S3StateManager = (function () { function S3StateManager(config) { this.config = config; aws_sdk_1.config.update({ credentials: new aws_sdk_1.Credentials(config.a...
mit
DreadLabs/app-migration-migrator-phinx
tests/Fixture/migrations_some_erroneous/42_some_erroneous_life_the_universe_and_everything.php
643
<?php /* * This file is part of the AppMigration\Migrator\Phinx package. * * (c) Thomas Juhnke <dev@van-tomas.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Phinx\Migration\AbstractMigration; /** * SomeErroneousLifeThe...
mit
kpicaza/schooly
src/AppBundle/Document/User/UserGateway.php
1856
<?php namespace AppBundle\Document\User; use AppBundle\Model\User\UserInterface; use AppBundle\Model\User\UserGatewayInterface; use Doctrine\ODM\MongoDB\DocumentRepository; /** * UserGateway. */ class UserGateway extends DocumentRepository implements UserGatewayInterface { /** * @param type $id */ ...
mit
Philip-Bachman/Sequential-Generation
MotionRenderers.py
14522
#!/ysr/bin/env python from __future__ import division import utils as utils import numpy as np import numpy.random as npr import theano import theano.tensor as T import time from HelperFuncs import to_fX def my_batched_dot(A, B): """ Compute: [np.dot(A[i,:,:], B[i,:,:]) for i in range(A.shape[0])] """ ...
mit
MineLib/ProtocolModern_1.7.10
Packets/Client/Play/0x09_HeldItemChangePacket.cs
637
using System; using Aragas.Core.Data; using Aragas.Core.IO; using Aragas.Core.Packets; using ProtocolModern.Enum; namespace ProtocolModern.Packets.Client.Play { public class HeldItemChangePacket : ProtobufPacket { public SByte Slot; public override VarInt ID => ClientPlayPacketTypes.HeldItemChange...
mit
samphippen/srobotickets
config/initializers/secret_token.rb
503
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
mit
5mil/Bolt
src/qt/locale/bitcoin_ca_ES.ts
124762
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="ca_ES"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Paris</source> <translation type="unfinished"></...
mit
gesh123/MyLibrary
src/client/app/poker/connection/protocol/generated/serializers/PokerNetworkInfoDataSerializer.ts
2125
import { ArrayBufferBuilder } from "../../../../utils/ArrayBufferBuilder"; import { BitsReader } from "../../../../utils/BitsReader"; import { SerializerUtils } from "../../../../utils/SerializerUtils"; import { PokerNetworkInfoData } from "../data/PokerNetworkInfoData"; import { PokerServerLocationData } from "../dat...
mit
vamone/Slack-Notification-Desktop-App
Slack.Desktop.Application/SolidColorBrushHelper.cs
1553
using System; using System.Windows.Media; namespace Slack.Desktop.Application { public static class SolidColorBrushHelper { private const string AliceBlueHexColor = "#FFF0F8FF"; private const string SlackIconBlueHexColor = "#FF6ec9dc"; private const string SlackIconGreenHexColor = "#...
mit
jeremyevans/rodauth
lib/rodauth/features/change_password_notify.rb
809
# frozen-string-literal: true module Rodauth Feature.define(:change_password_notify, :ChangePasswordNotify) do depends :change_password, :email_base translatable_method :password_changed_email_subject, 'Password Changed' auth_value_methods( :password_changed_email_body ) auth_methods( ...
mit
crispab/codekvast
product/server/dashboard/src/test/java/io/codekvast/dashboard/dashboard/response/MethodDescriptor1Test.java
4726
package io.codekvast.dashboard.dashboard.response; import static io.codekvast.javaagent.model.v2.SignatureStatus2.EXCLUDED_BY_PACKAGE_NAME; import static io.codekvast.javaagent.model.v2.SignatureStatus2.INVOKED; import static io.codekvast.javaagent.model.v2.SignatureStatus2.NOT_INVOKED; import static org.hamcrest.Matc...
mit
Aliance/Kanchanaburi
source/Error/Exception/UndefinedVariableException.php
182
<?php namespace Aliance\Kanchanaburi\Error\Exception; /** * Exception for PHP "undefined variable" notice errors */ class UndefinedVariableException extends PhpNoticeException {}
mit
Cotidia/cotidia-cms-base
cmsbase/static/admin/js/page.js
2150
$(document).ready(function(){ $('.add-row a').click(function(){ select_language(); setup_redactor(); set_prepopulate(); }); select_language(); set_flag(); set_prepopulate(); related_pages(); }); //Set readactor textarea function setup_redactor(){ var redactor_fields = $('[class*="dynamic-"] .redac...
mit
mangalaman93/nfs
voip/ovsd.go
3024
package voip import ( "crypto/rand" "errors" "fmt" "log" "os/exec" ) const ( OVS_BRIDGE = "ovsbr" INET_PREFIX = "173.16.1." INET = INET_PREFIX + "1" NETMASK = "255.255.255.0" ) var ( ErrOvsNotFound = errors.New("openvswitch is not installed") ) var ( cur_ip = 1 ) func runsh(cmd string) ([]by...
mit
kedarmhaswade/impatiently-j8
src/main/java/practice/ej/ConstantExpression.java
789
package practice.ej; public class ConstantExpression { public static void main(String[] args) { demo1(); } static void demo1() { String s1 = "The integer " + Long.MAX_VALUE + " is mighty big."; String s2 = "The integer " + Long.MAX_VALUE + " is mighty big."; System.out.prin...
mit
seriousbusinessbe/java-brusselnieuws-rss
java/brusselnieuws-rss/brusselnieuws-rss-reader-model/src/test/java/be/seriousbusiness/brusselnieuws/rss/reader/model/impl/CreatorImplTest.java
1204
package be.seriousbusiness.brusselnieuws.rss.reader.model.impl; import org.junit.Assert; import org.junit.Test; import be.seriousbusiness.brusselnieuws.rss.reader.model.impl.factory.CreatorImplFactory; /** * {@link CreatorImpl} test case. * @author Serious Business * @author Stefan Borghys * @version 1.0 * @sin...
mit