repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
aomran/micromachinejs
webpack.config.babel.js
1000
const path = require('path'); const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const CompressionPlugin = require('compression-webpack-plugin'); const unminified = { entry: './src/micromachine.js', module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }, ], },...
mit
Tentoe/dotally
src/actions/openDotaAPI.js
865
export const FETCH_OPENDOTAPLAYER = 'FETCH_OPENDOTAPLAYER'; export const fetchOpenDotaPlayer = player => ({ type: FETCH_OPENDOTAPLAYER, payload: { client: 'openDota', request: { url: `/api/players/${player.steamID3}`, }, }, player, } ); export const FETCH_OPENDOTACOUNTS = 'FETCH_OPENDOTACO...
mit
aquatir/remember_java_api
code-sample-java/code-sample-java-algorithms-and-data-structures/src/test/java/queues/QueueOnTwoStacksTest.java
1045
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package queues; import codesample.data_structures.queues.QueueOnTwoStacks; import org.junit.Test; import static org.junit.Assert.asse...
mit
blnz/palomar
src/main/java/com/blnz/xsl/expr/ObjectTypeFunction.java
2718
// $Id: RegexpMatchFunction.java 122 2005-04-05 01:22:51Z blindsey $ package com.blnz.xsl.expr; import com.blnz.xsl.om.*; // import com.blnz.xsl.sax.*; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import java.util.regex.Matcher; import java.net.URL; /** * Represents the EXSL ex...
mit
Ghangseok/dkn
manage_book.php
5430
<?php require "header.php"; $host = "localhost"; $db_username = "root"; $db_password = ""; $dbname = "DKN"; //$username = $_SESSION["username"]; //$name = $_SESSION["name"]; $username = "redeteus"; $name = "Ghang seok Seo"; $is_scheduled = "Y"; ...
mit
hypergroup/hyper.chrome
src/content/search.js
722
/** * Module dependencies */ const dom = require('react').createElement; module.exports = function(id, hasResult) { function onChange(evt) { let val = evt.target.value; if (val && val.charAt(0) !== '/') val = '/' + val; if (val === '/') val = ''; if (val) history.replaceState('', document.title, ...
mit
sabertazimi/hust-lab
operatingSystems/ics2017/navy-apps/apps/nwm/src/events.cpp
3683
#include <nwm.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #define DECL(n, h) {n, sizeof(n) - 1, &WindowManager::evt_##h}, static struct EventHandler { const char *pattern; int length; void (WindowManager::*handler)(const char *); } handlers[] = { FOREACH_EVENT(DECL) }; void WindowManager::...
mit
Stonecoin/stonecoin
src/qt/optionsdialog.cpp
7670
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinamountfield.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include "qvalidatedlineedit.h" #include "qvaluecombobox.h" #include <QCheckBox> #include <QDir> #include <QIntValidator> #...
mit
tcyrus/tjhsst-electron-dayschedule
main.js
458
const {ipcMain} = require('electron') const menubar = require('menubar') const mb = menubar({ width: 300, height: 275, 'preload-window': true }) mb.on('ready', () => console.log('App is Ready')) ipcMain.on('devtools', () => mb.window.openDevTools()) ipcMain.on('title', (event, arg) => mb.tray.setTitle(arg)) ipc...
mit
dynamicreflectance/multicolor
source/Attenuation.hpp
561
#pragma once /* Attenuation.hpp * * Copyright (C) 2017 Dynamic Reflectance * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace multicolor { struct Attenuation { float kc; float kl; float kq; Attenuat...
mit
evillatoro/SnapFix
app/src/main/java/edwinvillatoro/snapfix/objects/ChatMessage.java
965
package edwinvillatoro.snapfix.objects; import java.util.Date; /** * Created by Bryan on 11/7/2017. */ public class ChatMessage { private long msgTime; private String msgText; private String msgUser; public ChatMessage(String messageText, String messageUser) { this.msgText = messageText; ...
mit
mikeckennedy/mongodb_schema_design_mannheim
data/json_examples/book_embedded.js
412
// Books collection x = { "_id": "29832A3792E374", "title": "The great schema debate", "price": 19.00, "reviews": [ { "_id": "374592A379232", "user": "mkennedy", "stars": 4, "comments": "Simple and effective ...
mit
justin-espedal/polydes
Data Structures Extension/src/com/polydes/datastruct/data/types/HaxeTypeConverter.java
3155
package com.polydes.datastruct.data.types; import java.util.HashMap; import org.apache.commons.lang3.StringUtils; import com.polydes.common.data.core.DataList; import com.polydes.common.data.core.DataSet; import com.polydes.common.data.types.DataType; import com.polydes.common.data.types.Types; import com.polydes.co...
mit
3rd-KaTZe/Export_DCS
KTZ_SIOC_UH1.lua
14337
------------------------------------------------------------------------ -- KaTZ-Pit FC3 functions repo -- ------------------------------------------------------------------------ k.export.uh1.slow = function() -- Attention !!!!!!!! pour boucle lente, le nom est différent que boucle rapide : Device(0) ...
mit
alphabetum/autocap
recipes/nginx.rb
578
namespace :deploy do ############################################################################ # Nginx Tasks ############################################################################ namespace :nginx do [ :stop, :start ].each do |t| desc "#{t.to_s.capitalize} nginx" task t, :roles => :a...
mit
dyfvicture/LoopringWallet
common/libs/signing.js
1043
// @flow import EthTx from 'ethereumjs-tx'; import { sha3, ecsign } from 'ethereumjs-util'; import { isValidRawTx } from 'libs/validators'; import type { RawTransaction } from 'libs/transaction'; export function signRawTxWithPrivKey( privKey: Buffer, rawTx: RawTransaction ): string { if (!isValidRawTx(rawTx)) {...
mit
nathanConn/Runner
app/controllers/gears_controller.rb
1976
class GearsController < ApplicationController # before_action :set_gear, only: [:show, :edit, :update, :destroy] # GET /gears # GET /gears.json def index @gears = Gear.all end # GET /gears/1 # GET /gears/1.json def show end # GET /gears/new def new @gear = Gear.new end # GET /gears...
mit
ceph/Diamond
src/collectors/endecadgraph/test/testendecadgraph.py
1913
#!/usr/bin/python # coding=utf-8 ################################################################################ from test import CollectorTestCase from test import get_collector_config from mock import patch from diamond.collector import Collector from endecadgraph import EndecaDgraphCollector class TestEndecaDgr...
mit
itmanagerro/tresting
src/qt/locale/bitcoin_ca.ts
122262
<TS language="ca" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Feu clic dret per a editar l'adreça o l'etiqueta</translation> </message> <message> <source>Create a new address</source> <...
mit
TonnyORG/ScioTest1
generated-classes/Map/CommentTableMap.php
17354
<?php namespace Map; use \Comment; use \CommentQuery; use Propel\Runtime\Propel; use Propel\Runtime\ActiveQuery\Criteria; use Propel\Runtime\ActiveQuery\InstancePoolTrait; use Propel\Runtime\Connection\ConnectionInterface; use Propel\Runtime\DataFetcher\DataFetcherInterface; use Propel\Runtime\Exception\PropelExcepti...
mit
jkogler/StratCon
app/scripts/board.js
3365
// Strategic Conquest // board.js // J Kogler // 10/10/14 // function Board(t, c, u) { this.terrain = t; this.cityManager = c; this.unitManager = u; // a class to manage drag movement. this.dragManager = new DragManager(); } Board.prototype.draw = function () { // draw the terrain var display =...
mit
KingOfDog/MATH
src/handlers/SettingsHandler.java
6787
package handlers; import java.io.IOException; import com.jfoenix.controls.JFXCheckBox; import com.jfoenix.controls.JFXComboBox; import com.jfoenix.controls.JFXSlider; import com.jfoenix.controls.JFXSnackbar; import com.jfoenix.controls.JFXTextField; //import com.sun.org.apache.xpath.internal.operations.Bool; import ...
mit
IgorFachini/Angular-Test
Angular4x/my-app/src/app/app.module.ts
392
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { ModalComponent } from './modal/modal.component'; @NgModule({ declarations: [ AppComponent, ModalComponent ], imports: [ BrowserModule ], p...
mit
ronnyp07/eLap
public/ciudad/services/ciudad.client.services.js
1019
'use strict'; // Crear el service 'patients' angular.module('ciudad') .factory('Ciudad', ['$resource', function($resource) { // Usar el service '$resource' para devolver un objeto '$resource' Patients return $resource('api/ciudad/:ciudadId', { ciudadId: '@_id' }, { update: { method...
mit
davidmogar/quizzer-php
quizzer/domain/Grade.php
527
<?php class Grade { private $studentId; private $grade; function __construct($studentId, $grade) { $this->grade = $grade; $this->studentId = $studentId; } public function getGrade() { return $this->grade; } public function setGrade($grade) { $t...
mit
Diorite/Diorite
diorite-utils/config/src/main/java/org/diorite/config/serialization/snakeyaml/IteratorWrapper.java
1600
/* * The MIT License (MIT) * * Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal)) * * 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 withou...
mit
zhujun1980/fcache
fcache/time_utils.cc
354
// // time_utils.cc // BloomFilter // // Created by zhu jun on 14-8-20. // Copyright (c) 2014年 Weibo. All rights reserved. // #include "time_utils.h" double Now() { struct timeval tp = {0}; if (!gettimeofday(&tp, NULL)) { return (double)(tp.tv_sec + tp.tv_usec / 1000000.00);; } else { ...
mit
viktorkh/elastickit_express
node_modules/searchkit/lib/src/__test__/core/query/query_dsl/compound/FilteredQuerySpec.js
401
"use strict"; var _1 = require("../../../../../"); it("FilteredQuery", function () { var filtered = { filter: { term: { color: "red" } }, query: { match: { keywords: "sky" } } }; expect(_1.FilteredQuery(filtered)) .t...
mit
huailiang/GameEngineen
Assets/uLua/Source/LuaWrap/UIAtlasWrap.cs
9820
using System; using UnityEngine; using System.Collections.Generic; using LuaInterface; using Object = UnityEngine.Object; public class UIAtlasWrap { public static void Register(IntPtr L) { LuaMethod[] regs = new LuaMethod[] { new LuaMethod("GetSprite", GetSprite), new LuaMethod("GetRandomSprite", Get...
mit
mtils/php-ems
src/Ems/Contracts/Core/InputCaster.php
693
<?php namespace Ems\Contracts\Core; /** * Interface InputCaster * * @deprecated Use \Ems\Contracts\Foundation\InputNormalizer or InputProcessor * @package Ems\Contracts\Core */ interface InputCaster extends NamedCallableChain { /** * After the input data is validated perform this method to cast the ...
mit
hoovercj/vscode
src/vs/platform/markers/common/markerService.ts
9253
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
mnsl/Sia
modules/consensus/changelog_test.go
2106
package consensus import ( "testing" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/types" ) // TestIntegrationChangeLog does a general test of the changelog by creating a // subscriber that subscribes partway into startup and checking that the // correct ordering of blocks are provided. func ...
mit
EasyNetQ/EasyNetQ
Source/EasyNetQ.Tests/SerializationTests.cs
655
using FluentAssertions; using Xunit; namespace EasyNetQ.Tests; public class SerializationTests { [Fact] public void Should_Deserialize_Exceptions() { var str1 = Newtonsoft.Json.JsonConvert.SerializeObject(new EasyNetQException("blablabla")); var ex1 = Newtonsoft.Json.JsonConvert.Deserializ...
mit
selvasingh/azure-sdk-for-java
sdk/network/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/network/v2019_11_01/implementation/VpnGatewaysInner.java
73463
/** * 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. */ package com.microsoft.azure.management.network.v2019_11_01.implementation; import com.m...
mit
aidan959/ExamCorrector
bin/number2commaseperated.py
221
def splitstring(thestring): arr = thestring.split(",") returns =[] for i in arr: returns.append(",".join(i)) return returns while True: for i in splitstring(input()): print (i)
mit
d4l3k/go-sct
geoip/geoip.go
695
// geoip returns the lat/lng of the target IP address (or current machine) package geoip import ( "encoding/json" "fmt" "net/http" ) type GeoIP struct { City string `json:"city"` Latitude float64 `json:"lat"` Longitude float64 `json:"lon"` } // LookupIP looks up the geolocation information for the speci...
mit
kervi/kervi
kervi-core/tests/mockup_sensor_device.py
861
from kervi.hal import SensorDeviceDriver class MockupSensorDeviceDriver(SensorDeviceDriver): def __init__(self): SensorDeviceDriver.__init__(self) self.value = 0 def read_value(self): return self.value @property def type(self): return "temperature" @property d...
mit
raphaelrodrigues/tvcalendar
src/main/webapp/scripts/app/admin/metrics/metrics.controller.js
2092
'use strict'; angular.module('tvcalendarApp') .controller('MetricsController', function ($scope, MonitoringService, $modal) { $scope.metrics = {}; $scope.updatingMetrics = true; $scope.refresh = function () { $scope.updatingMetrics = true; MonitoringService.getMetri...
mit
raul75/AlessioCoin
src/qt/locale/bitcoin_bg.ts
116991
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About AlessioCoin</source> <translation type="unfinished"/> </message> <message> <location li...
mit
BancDelTempsDAW/symfony
src/bonavall/BancdeltempsBundle/Entity/Provincia.php
1204
<?php namespace bonavall\BancdeltempsBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Provincia * @ORM\Entity * @ORM\Table(name="provincia") * */ class Provincia { /** * @var integer * * @ORM\Column(name="idprovincia", type="integer", nullable=false) * @ORM\Id * @ORM\Generat...
mit
seryckd/hexmatch
sprite.js
3583
// TODO // -- modify load() so that a default height and width can be specified, // in which case do not need to specify height and width on every line // although can override if want /*globals IMAGE*/ "use strict"; /* SpriteRef = { name : "", height: width: x:, y: , } */ /* // spritesheet // spriteref //...
mit
firebaugh/pympi
test/test_praat.py
10283
#!/bin/env python # -*- coding: utf-8 -*- import unittest import tempfile import os from pympi.Praat import TextGrid class PraatTest(unittest.TestCase): def setUp(self): self.tg = TextGrid(xmax=20) self.maxdiff = None # Test all the Praat.TextGrid functions def test_sort_tiers(self): ...
mit
ashemedai/ProDBG
src/native/ui/bgfx/ui_host.cpp
2068
#include "ui_host.h" #include "dialogs.h" /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #ifdef PRODBG_MAC extern void MacDialog_infoDialog(const char* title, const char* message); extern void MacDialog_errorDialog(const char* title, const char...
mit
aschereT/adaptiveBrightnessFlipper
flipAdaptiveBrightness/flipAdaptiveBrightness.cpp
1473
// flipAdaptiveBrightness.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> #include <memory> #include <cstdio> using namespace std; string exec(const char* cmd) { shared_ptr<FILE> pipe(_popen(cmd, "r"), _pclose); if (!pipe) return "ERROR"; cha...
mit
Silicoin/PC_software
build/moc_bitcoingui.cpp
6418
/**************************************************************************** ** Meta object code from reading C++ file 'bitcoingui.h' ** ** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.6) ** ** WARNING! All changes made in this file will be lost! **********************************************************...
mit
justcarakas/forkcms
src/Modules/Backend/Domain/AjaxAction/AjaxActionNameDBALType.php
317
<?php namespace ForkCMS\Modules\Backend\Domain\AjaxAction; use ForkCMS\Core\Domain\Doctrine\ValueObjectDBALType; use Stringable; class AjaxActionNameDBALType extends ValueObjectDBALType { protected function fromString(string $value): Stringable { return AjaxActionName::fromString($value); } }
mit
huysentruitw/win-beacon
src/WinBeacon.Stack/Hci/DataReceivedEventArgs.cs
934
/* * Copyright 2015-2019 Huysentruit Wouter * * See LICENSE file. */ using System; namespace WinBeacon.Stack.Hci { /// <summary> /// Event arguments for the DataReceived event. /// </summary> internal class DataReceivedEventArgs : EventArgs { /// <summary> /// The received dat...
mit
SickheadGames/Torsion
code/wxWidgets/src/common/tbarbase.cpp
19928
///////////////////////////////////////////////////////////////////////////// // Name: common/tbarbase.cpp // Purpose: wxToolBarBase implementation // Author: Julian Smart // Modified by: VZ at 11.12.99 (wxScrollableToolBar split off) // Created: 04/01/98 // RCS-ID: $Id: tbarbase.cpp,v 1.78.2.1...
mit
fmsouza/wcode
src/common/utils/index.js
27
export * from './keyboard';
mit
Hinny/strange-eons-xwing-plug-in
X-wing/resources/x-wing/components/huge-ship-card/huge-ship-card.js
70038
useLibrary( 'diy' ); useLibrary( 'ui' ); useLibrary( 'imageutils' ); useLibrary( 'markup' ); importClass( java.awt.BasicStroke ); importClass( java.awt.Stroke ); importClass( java.awt.RenderingHints ); importClass( java.awt.Graphics2D ); importClass( arkham.diy.ListItem ); importClass( arkham.component.DefaultPortrai...
mit
movio/apidoc
swagger/src/main/scala/me/apidoc/swagger/translators/Body.scala
667
package me.apidoc.swagger.translators import com.bryzek.apidoc.spec.v0.{ models => apidoc } import io.swagger.models.{ModelImpl, RefModel} import io.swagger.models.{ parameters => swaggerParams } object Body { def apply( resolver: Resolver, param: swaggerParams.BodyParameter ): apidoc.Body = { val bo...
mit
prad-a-RuntimeException/semantic-store
src/main/scala/recipestore/ResourceLoader.scala
1116
package recipestore import java.util.ResourceBundle object AppResource extends Enumeration { type ResourceName = Value val TinkerpopResource = Value("tinkerpop") val TriplestoreResource = Value("triplestore") val GraphResource = Value("graph") val LuceneResource = Value("lucene") } object ResourceLoader { ...
mit
DelBianco/TesteSymfony
app/cache/dev/twig/38/3e/078eb846632500e0f1fc0559e58d12e203c7762ae729838ea02075296959.php
863
<?php /* WebProfilerBundle:Profiler:ajax_layout.html.twig */ class __TwigTemplate_383e078eb846632500e0f1fc0559e58d12e203c7762ae729838ea02075296959 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->bloc...
mit
killyosaur/ag-grid
dist/lib/widgets/touchListener.d.ts
994
// Type definitions for ag-grid v13.1.2 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { IEventEmitter } from "../interfaces/iEventEmitter"; import { AgEvent } from "../events"; export interface TapEvent extends AgEvent { touchStart: Touch; } export interfac...
mit
LudovicRousseau/Lychee
tests/Feature/UsersTest.php
6403
<?php namespace Tests\Feature; use AccessControl; use App\ModelFunctions\SessionFunctions; use App\Models\Configs; use Tests\Feature\Lib\AlbumsUnitTest; use Tests\Feature\Lib\SessionUnitTest; use Tests\Feature\Lib\UsersUnitTest; use Tests\TestCase; class UsersTest extends TestCase { public function testSetLogin() ...
mit
saytam/vela
src/main/java/vela/game/DistanceCalculator.java
520
package vela.game; public class DistanceCalculator { public static boolean canMove(Unit unit, Position from, Position to) { int dX = to.getX() - from.getX(); int dY = to.getY() - from.getY(); return unit.getSpeed() >= Math.max(Math.abs(dX), Math.abs(dY)); } public static boolean c...
mit
Lilaska/test_electric
src/VyatkinaA/ElectricBundle/VyatkinaAElectricBundle.php
142
<?php namespace VyatkinaA\ElectricBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class VyatkinaAElectricBundle extends Bundle { }
mit
satoshi-fapamoto/guzl
app/shared/services/reddit.service.ts
461
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; @Injectable() export class RedditService { constructor( private http: Http ) { } getDetailedRedditPost(permalink) { return this.http.get('https://www.reddit.com'+permalink+'.json') .map((res: Response) => res.json())...
mit
0of/chinesegen
Gruntfile.js
816
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { build: { src: ['dist/'] } }, eslint: { target: { src: ['lib/*.js', 'test/*.js'] } }, ...
mit
ckjk/Team-Tangor
tangorApp/.meteor/local/build/programs/server/npm-rebuild-args.js
900
// Command-line arguments passed to npm when rebuilding binary packages. var args = [ "rebuild", // The --no-bin-links flag tells npm not to create symlinks in the // node_modules/.bin/ directory when rebuilding packages, which helps // avoid problems like https://github.com/meteor/meteor/issues/7401. "--no-...
mit
IgnatBeresnev/Algorithms
src/main/java/me/beresnev/datastructures/HashMap.java
9733
package me.beresnev.datastructures; import java.util.Objects; /** * @author Ignat Beresnev * @version 1.0 * @since 28.02.17. */ public class HashMap<K, V> { private static final float DEFAULT_LOAD_FACTOR = 0.75f; private static final int DEFAULT_CAPACITY = 16; private static final int DEFAULT_THRESHO...
mit
Condors/TunisiaMall
vendor/symfony/symfony/src/Symfony/Component/Routing/Generator/UrlGenerator.php
14509
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Generator; use Symfony\Component...
mit
klpdotorg/dubdubdub
apps/common/managers.py
173
from django.db.models import Manager from django.contrib.gis.db.models import GeoManager class BaseManager(Manager): pass class BaseGeoManager(GeoManager): pass
mit
BrettJaner/csla
Source/Csla.Uwp/Properties/AssemblyInfo.cs
1100
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("CS...
mit
uon-team/uon.gl
shaders/colorid.js
377
module.exports = [ 'precision highp float;', 'uniform float LogDepthBufferFar;', 'uniform vec3 CameraPosition;', 'uniform vec4 ObjectID;', /*'#extension GL_EXT_frag_depth : enable', 'varying float vFragDepth;',*/ 'void main() {', ' gl_FragColor = vec4(ObjectID.xyz, 1.0);', /*' gl_FragDepthEXT = log2(vFr...
mit
ValentinAlexandrovGeorgiev/deal
src/components/add-estate-info/AddEstateInfo.js
16546
import React, { Component } from 'react' import t from 'translations' import * as ACTIONS from 'actions' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import './addestateinfo.scss' const ESTATE_TYPES = { apartament: 'apartament', house: 'house', bussiness: 'bussiness', hotel:...
mit
ansas/php-component
src/Component/Collection/Collection.php
14926
<?php /** * This file is part of the PHP components. * * For the full copyright and license information, please view the LICENSE.md file distributed with this source code. * * @license MIT License * @link https://github.com/ansas/php-component */ namespace Ansas\Component\Collection; use Ansas\Util\Arr; use...
mit
maestroprog/saw-php
bin/cli.php
742
<?php defined('ENV') or define('ENV', 'UNKNOWN'); if (PHP_SAPI !== 'cli') { header('HTTP/1.1 503 Service Unavailable'); die(sprintf('<p style="color:red">%s</p>', 'Saw ' . ENV . ' must be run in cli mode.')); } $configFile = $argv[1] ?? __DIR__ . '/../config/saw.php'; if (!file_exists($configFile)) { ec...
mit
hawkup/github-stars
angularjs/app/data/user.service.js
1085
(function () { 'use strict'; angular .module('app.data') .factory('userService', userService); /* @ngInject */ function userService($q, $auth, $window, githubService) { var userData = null; var service = { checkLoggedIn: checkLoggedIn, getUser: getUser, logout: logout, ...
mit
Etonchev/Telerik_CSharpPart1
05ConditionalStatements/06_BiggestOfFive/Properties/AssemblyInfo.cs
1408
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("06...
mit
rosd89/sam-node-study
step0_1/app/routes/api/v1/connection/index.js
680
const path = '/v1/connection'; const router = require('express').Router(); const {auth} = require('../../../routeMiddleware'); const loginValidation = require('./middleware/loginValidation'); const {validConnection} = require('./validate'); // client salt 가져오기 router.get('/salt', require('./controller/getClientSalt')...
mit
lambirou/babiphp
system/Http/StreamWrapper.php
3159
<?php /** * BabiPHP : The flexible PHP Framework * * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) BabiPHP. * @link https://github.com/lambirou/babiphp BabiPHP Project * @license...
mit
jvanbrug/cs143sim
cs143sim/errors.py
1865
"""This module contains all error definitions. .. autosummary: InputFileSyntaxError InputFileUnknownError MissingAttribute .. moduleauthor:: Samuel Richerd <dondiego152@gmail.com> .. moduleauthor:: Jan Van Bruggen <jancvanbruggen@gmail.com> """ class InputFileSyntaxError(Exception): """InputFileSyn...
mit
qcccs/PhpPalette
src/org/netbeans/modules/filepalette/items/IntegerItem.java
1976
/* *----------------------------------------------------------------------------------------- *---This file was generated using Snip - A Snippets Source Code Generator *---for use with Netbeans Palettes. This project is an expansion of the sample *---Java Palette by Geertjan Wielenga. *---Quinsigamond Community ...
mit
FouadWahabi/medecine-inscription-project
database/seeds/CitySeed.php
1775
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class CitySeed extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('City')->insert([ 'label' => 'Sfax', 'id_Country' => 1 ]...
mit
benjholla/SocialMediaToolkit
SocialMediaToolkit/src/utilities/math/Jaccard.java
447
package utilities.math; import java.util.Collection; import java.util.HashSet; import java.util.Set; public class Jaccard { public static <T> double jaccardIndex(Collection<T> a, Collection<T> b){ Set<T> setA = new HashSet<T>(a); Set<T> setB = new HashSet<T>(b); Set<T> numerator = Sets.intersection(setA, setB...
mit
AllTheMods/CraftTweaker
CraftTweaker2-MC1120-Main/src/main/java/crafttweaker/mc1120/events/ClientEventHandler.java
2088
package crafttweaker.mc1120.events; import crafttweaker.CraftTweakerAPI; import crafttweaker.api.formatting.IFormattedText; import crafttweaker.api.item.IItemStack; import crafttweaker.api.minecraft.CraftTweakerMC; import crafttweaker.api.tooltip.IngredientTooltips; import crafttweaker.mc1120.formatting.IMCFormattedSt...
mit
ratimid/SoftUni
C#/TechnologyFundamentals-September2017/ProgrammingFundamentals/10.CSharpDataTypesAndVariables-Exercises/12.RectangleProperties/Properties/AssemblyInfo.cs
1420
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("12...
mit
Teddy-Zhu/SilentGo
framework/src/main/java/com/silentgo/core/render/support/JsonRender.java
1651
package com.silentgo.core.render.support; import com.silentgo.core.SilentGo; import com.silentgo.core.exception.AppRenderException; import com.silentgo.core.render.Render; import com.silentgo.servlet.http.Request; import com.silentgo.servlet.http.Response; import java.io.IOException; import java.io.PrintWriter; /** ...
mit
jugglinmike/es6draft
src/test/scripts/suite/regress/bug3433.js
425
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame } = Assert; // Are %TypedArray% objects supposed to be Concat-Spreadable? // https://bugs.ecmascript.org/show_bug.cgi?id=3433...
mit
andreasdr/tdmecpp
src/libtdme/network/tcpserver/NIOTCPFramingException.cpp
289
/** * @version $Id: 8e9eb0cd83129e11e3ebd8946dc3d4e4b280f449 $ */ #include <libtdme/network/tcpserver/NIOTCPFramingException.h> using namespace TDMENetwork; using namespace std; NIOTCPFramingException::NIOTCPFramingException(const string &message) throw() : NIOException(message) { }
mit
wp-pwa/wp-pwa
core/client/index.js
4204
/* eslint-disable global-require, no-underscore-dangle, import/no-dynamic-require, no-console */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { types } from 'mobx-state-tree'; import { AppContainer } from 'react-hot-loader'; import request from 'superagent'; import App fr...
mit
InnovateUKGitHub/innovation-funding-service
ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/project/core/repository/ProjectUserRepository.java
2075
package org.innovateuk.ifs.project.core.repository; import org.innovateuk.ifs.project.core.ProjectParticipantRole; import org.innovateuk.ifs.project.core.domain.ProjectUser; import org.springframework.data.repository.PagingAndSortingRepository; import java.util.List; import java.util.Optional; public interface Proje...
mit
reactivesw/customer_server
src/main/java/io/reactivesw/merchant/application/model/action/InternationalUpdateAction.java
947
package io.reactivesw.merchant.application.model.action; /** * Created by Davis on 17/1/9. */ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "action") @JsonSubTy...
mit
longlongwaytogo/Learning.test
vc_cmd/exe/main.cpp
102
#include<stdio.h> int main() { printf("just for fun ,widebright 2007-01-10"); getchar(); return 0; }
mit
gedzubo/gee_data_structures
array/randomized_select.rb
1292
class Array def randomized_select(n_element) array = self.dup #n_element = n_element - 1 randomized_min_select_method(array, 0, array.length - 1, n_element) end protected def randomized_min_select_method(array, beginning, ending, n_element) return array[beginning] if beginning == ending ra...
mit
Duke1/UnrealMedia
UnrealMedia/app/src/androidTest/java/com/qfleng/um/ExampleInstrumentedTest.java
716
package com.qfleng.um; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <...
mit
hal313/chrome-extension-settings-manager
docs/examples/es6/es6-test.js
2007
import { SettingsManager } from '../../scripts/SettingsManager.es6.js'; import { SettingsManagerChromeExtensionAdapter } from '../../scripts/SettingsManagerChromeExtensionAdapter.es6.js'; // Create the adapter var settingsManagerChromeExtensionAdapter = new SettingsManagerChromeExtensionAdapter(); // Create the settin...
mit
dscpinheiro/DSW_III
SGH_Khronos/SGH_Khronos.Data/AppContext.cs
1880
using System.Data.Entity; using SGH_Khronos.Data.Mapping; using SGH_Khronos.Model; namespace SGH_Khronos.Data { public class AppContext : DbContext { public DbSet<Hospital> Hospitais { get; set; } public DbSet<Pessoa> Pessoas { get; set; } public DbSet<Paciente> Pacientes { get; set; }...
mit
BrettJaner/csla
Source/Csla.Analyzers/Csla.Analyzers.Tests/EvaluatePropertiesForSimplicityAnalyzerTests.cs
5969
using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Linq; using System.Threading.Tasks; namespace Csla.Analyzers.Tests { [TestClass] public sealed class EvaluatePropertiesForSimplicityAnalyzerTests { [TestMethod] public void VerifySupportedDiagnostics() { ...
mit
fiber-space/pip
tests/functional/test_install_wheel.py
14911
import os import sys import pytest import glob from tests.lib.path import Path def test_install_from_future_wheel_version(script, data): """ Test installing a future wheel """ from tests.lib import TestFailure package = data.packages.join("futurewheel-3.0-py2.py3-none-any.whl") result = scri...
mit
cloudinary/cloudinary_php
src/Transformation/Layer/LayerStackPosition.php
750
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; /** * Defines the position of a layer - overlay or underlay. *...
mit
fzheng/codejam
lib/python2.7/site-packages/notebook/static/notebook/js/outputarea.js
33201
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. define([ 'jquery-ui', 'base/js/utils', 'base/js/security', 'base/js/keyboard', 'notebook/js/mathjaxutils', 'components/marked/lib/marked', ], function($, utils, security, keyboard, mathjaxutil...
mit
AlexJCross/Cosmos
Cosmos/Lib.Cosmos/Scenes/Views/BlackHoleView.cs
377
namespace Lib.Cosmos.Scenes.Views { using Utils; using ViewControllers; public class BlackHoleView : SceneViewBase { ~BlackHoleView() { MemoryUtils.LogGc<BlackHoleView>(); } protected override ISceneViewController GetController() { retur...
mit
alxbl/DebugDiag.Native
DebugDiag.Native.Test/Fixtures/Generators/Map.cs
3855
using System.Collections.Generic; using System.Text; namespace DebugDiag.Native.Test.Fixtures.Generators { /// <summary> /// Generates an std::Map fixture. /// </summary> public class Map : Generator { private readonly Generator _childGenerator; private readonly int _cou...
mit
maca88/angular-requirejs-typescript-seed
app/js/main.ts
862
/// <reference path='all.ts' /> 'use strict'; require.config({ paths: { angular: '../bower_components/angular/angular', angularRoute: '../bower_components/angular-route/angular-route', angularMocks: '../bower_components/angular-mocks/angular-mocks', text: '../bower_components/requirejs-text/text' }, shim: {...
mit
rockstar3/rails_0133
config/unicorn.rb
1299
# worker_processes 3 # timeout 30 # preload_app true # before_fork do |server, worker| # Signal.trap 'TERM' do # puts 'Unicorn master intercepting TERM and sending myself QUIT instead' # Process.kill 'QUIT', Process.pid # end # defined?(ActiveRecord::Base) and # ActiveRecord::Base.connection.discon...
mit
sundayz/Restriction-Site-Remover
src/controllers/HomeController.php
5324
<?php class HomeController extends BaseController implements IndexedController { public function index() { $rsDropdownData = RestrictionSites::getSites(); $this->putData('pageTitle', 'Home'); $this->putData('rsdata', $rsDropdownData); $this->render('templates/RSR.twig'); } ...
mit
Antione7/Bonnezannonces
app/cache/dev/twig/71/40/f2e94820b2ca10ab1d2b9b8046bbb6740373619766b5ecb8547b7765ad8e.php
3809
<?php /* FOSUserBundle:Security:login.html.twig */ class __TwigTemplate_7140f2e94820b2ca10ab1d2b9b8046bbb6740373619766b5ecb8547b7765ad8e extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 try { $this->parent = $...
mit
maichong/alaska
src/alaska/alaska.js
13019
// @flow /* eslint new-cap:0 */ import fs from 'fs'; import _ from 'lodash'; import mime from 'mime-types'; import Koa from 'koa'; // $Flow import KoaQS from 'koa-qs'; import statuses from 'statuses'; import collie from 'collie'; import Debugger from 'debug'; import depd from 'depd'; import * as utils from './utils';...
mit