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
class AddOauthGithubToUsers < ActiveRecord::Migration[5.1] def change add_column :users, :provider, :string add_column :users, :uid, :string end end
Jacaa/todo_list
db/migrate/20170828093906_add_oauth_github_to_users.rb
Ruby
mit
161
<?php if(!isset($_SESSION)){ session_start(); } session_destroy(); header("Location: ../../../login.php"); exit;
rubenalmeida/AdminLTE
administrador/cadastros/usuarios/Logout.php
PHP
mit
117
<?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 Sylius\Bundle\PromotionBundle\Form\Type\Rule; use Symfony\Component\Form\Abstr...
songecko/legem-ecommerce
src/Sylius/Bundle/PromotionBundle/Form/Type/Rule/ItemCountConfigurationType.php
PHP
mit
2,036
//----------------------------------------------------------------------- // <copyright file="SingleInstance.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary> // This class checks to make sure that only one instance of // this application i...
ihtfw/Logazmic
src/Logazmic/Utils/SingleInstance.cs
C#
mit
15,765
using System; using System.Collections.Generic; /// <summary> /// Calculate sequence with queue. /// 100/100 /// https://judge.softuni.bg/Contests/Practice/Index/184#4 /// </summary> namespace _05._Sequence_With_Queue { class SequenceWithQueue { static void Main() { decimal n = de...
delian1986/SoftUni-C-Sharp-repo
Old Courses/C# Advanced Old/01. Stacks Queues/StackQueueExercises/05. Sequence With Queue/SequenceWithQueue.cs
C#
mit
1,329
from math import sqrt def is_prime(x): for i in xrange(2, int(sqrt(x) + 1)): if x % i == 0: return False return True def rotate(v): res = [] u = str(v) while True: u = u[1:] + u[0] w = int(u) if w == v: break res.append(w) ret...
neutronest/eulerproject-douby
e35/35.py
Python
mit
586
package main import ( "encoding/json" "errors" "fmt" "os" "github.com/idahobean/npm-resource/check" "github.com/idahobean/npm-resource/npm" ) func main() { NPM := npm.NewNPM() command := check.NewCommand(NPM) var request check.Request if err := json.NewDecoder(os.Stdin).Decode(&request); err != nil { f...
idahobean/npm-resource
check/cmd/check/main.go
GO
mit
832
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum.js 33082 2013-04-18 11:13:53Z zhengqingpeng $ */ function saveData(ignoreempty) { var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty; var obj = $('postform') && (($('fwin_newthread') && $(...
zekewang918/QuitSmoking
bbs/static/js/forum.js
JavaScript
mit
22,328
<?php namespace InoOicClient\Oic\Exception; class InvalidErrorCodeException extends \RuntimeException { }
Yusuke-KOMIYAMA/aiv
binder/app/Vendor/ivan-novakov/php-openid-connect-client/src/InoOicClient/Oic/Exception/InvalidErrorCodeException.php
PHP
mit
115
/*jslint node: true */ 'use strict'; var npm = require('npm'); module.exports = Npm; function Npm (callback) { var conf = { jobs: 1 }; npm.load(conf, callback); } Npm.prototype.search = function (searchTerms, callback) { npm.commands.search(searchTerms, true, callback); }; Npm.prototype.view = function...
webjay/npm-search-store
lib/npm-api.js
JavaScript
mit
382
import { EmailTemplate } from 'email-templates' import Promise from 'bluebird' const sendgrid = require('sendgrid')(process.env.SENDGRID_MAILER_KEY) const sendEmail = Promise.promisify(sendgrid.send, { context: sendgrid }) const DEVELOPMENT = process.env.NODE_ENV === 'development' const sanitize = DEVELOPMENT ? require...
LeadGrabr/api
src/services/email/mailers/helpers.js
JavaScript
mit
1,611
import React, { useState } from 'react'; import { StyleSheet, ImageStyle, LayoutChangeEvent } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, } from 'react-native-reanimated'; import {...
kmagiera/react-native-gesture-handler
example/src/new_api/chat_heads/index.tsx
TypeScript
mit
5,897
<?php namespace Extraload\Extractor; interface ExtractorInterface extends \Iterator { public function extract(); }
umpirsky/Extraload
src/Extraload/Extractor/ExtractorInterface.php
PHP
mit
121
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstabl...
coinkeeper/2015-06-22_19-13_florincoin
src/qt/sendcoinsdialog.cpp
C++
mit
18,849
""" Copyright (c) 2016 Genome Research Ltd. 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, merge, publish, distr...
jeremymcrae/denovoFilter
denovoFilter/missing_symbols.py
Python
mit
5,967
MD.Keyboard = function(){ const keys = { "v": { name: "Select tool", cb: ()=> state.set("canvasMode", "select") }, "q": { name: "Freehand tool", cb: ()=> state.set("canvasMode", "fhpath") }, "l": { name: "Line tool", cb: ()=> state.set("canvasMode", "fhplineath")}, "r": { name...
duopixel/Method-Draw
src/js/Keyboard.js
JavaScript
mit
7,291
using System; using System.Linq; using System.Windows.Media; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Rendering; using SolutionsUtilities.UI.WPF.Highlighting; namespace Barings.Controls.WPF.CodeEditors.Highlighting { public class HighlightMatchingWords : DocumentColorizingTransformer ...
Barings/Barings.Controls.WPF
Barings.Controls.WPF/CodeEditors/Highlighting/HighlightMatchingWords.cs
C#
mit
2,681
<!-- Map --> <section id="contact" class="map"> <div class="container"> <div class="row text-left"> <div class="col-lg-12 "> <div class="row"> <div class="col-lg-12"> <h4 style="color:#006e89"><?php echo $kelas[0]['TRAINING']?></h4> <div ...
dodolangus/rep_bnv_app
application/views/event/eval_ins_nps.php
PHP
mit
2,357
<?php /** * SalesChannel * * PHP version 5 * * @category Class * @package BrightpearlApiClient * @author http://github.com/swagger-api/swagger-codegen * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2 * @link https://github.com/swagger-api/swagger-codegen */ /** * Copyright 2016...
annex-apps/tenant-bundle
BrightpearlApiClient/lib/Model/SalesChannel.php
PHP
mit
9,169
<div class="row"> <div id="base_url" data-base="<?php echo base_url(); ?>"></div> <div class="col-lg-4 col-md-6"> <div class="x_panel"> <div class="x_title"> <h2><i class="fa fa-file"></i> Edit Form</h2> <div class="clearfix"></div> </div> ...
bworkman1/lapp
application/views/forms/edit-form.php
PHP
mit
24,529
<?php class dmFrontWebController extends sfFrontWebController { /** * @see sfFrontWebController */ public function redirect($url, $delay = 0, $statusCode = 302) { $this->dispatcher->notify(new sfEvent($this, 'dm.controller.redirect')); return parent::redirect($url, $delay, $statusCode); } }
Symfony-Plugins/diemPlugin
dmCorePlugin/lib/controller/dmFrontWebController.php
PHP
mit
319
// React app import React from 'react' import {render} from 'react-dom' import App from './components/base_layout/App.jsx' // Redux state manager import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers from './state_manager/reducers' // Electron IPC communication events import ipcRe...
pastahito/remus
src/renderer_process/app/entry.js
JavaScript
mit
1,603
var mongoose = require('mongoose'), bcrypt = require('bcrypt'), userSchema = mongoose.Schema({ fullName: { type: String }, email: { type: String, required: true, unique: true, lowercase: true }, password: { type: String, required: true }, user_avatar...
goodheads/yourtube
server/models/user.server.model.js
JavaScript
mit
984
try: from calais import Calais except ImportError: # pragma: no cover Calais = None # NOQA if Calais is not None: def process_calais(content, key): calais = Calais(key) response = calais.analyze(content) people = [entity["name"] for entity in getattr(response, "entities", []) if...
prologic/spyda
spyda/processors.py
Python
mit
385
import datetime day = datetime.datetime.now().weekday() def get_sunday(): return "Today it's Sunday" def get_monday(): return "Today it's Monday" def get_tuesday(): return "Today it's Tuesday" def get_wednesday(): return "Today it's Wednesday" def get_thursday(): return "Today it's Thursday" def g...
vickyi/scoala
pachong/pythonClass/switch.py
Python
mit
685
<?php /** * DropColumnSpecificationStatement class file. * * @author Anastaszor */ class DropColumnSpecificationStatement extends CachalotObject implements IDropColumnSpecificationStatement { /** * The name of the column to drop * * @var string */ private $_column_name = null; /** * Sets the ...
Anastaszor/Cachalot
classes/statements/parts/specifications/DropColumnSpecificationStatement.php
PHP
mit
961
Ext.define('sisprod.view.MobileUnit.UpdateMobileUnit', { extend: 'sisprod.view.base.BaseDataWindow', alias: 'widget.updateMobileUnit', messages: { basicDataTitle: 'Basic Data', componentsTitle: 'Allocation of Components', featuresTitle: 'Additional Features', equipment...
jgin/testphp
web/bundles/hrmpayroll/app/view/MobileUnit/UpdateMobileUnit.js
JavaScript
mit
15,982
from django.conf.urls import url from timeline import views urlpatterns = [ url(r'^$', views.timelines, name='timelines'), ]
fredwulei/fredsneverland
fredsneverland/timeline/urls.py
Python
mit
130
<svg version="1.1" class="o-icon__camera" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 277.3 203" style="enable-background:new 0 0 277.3 203;" xml:space="preserve"> <style type="text/css"> .st0{fill:#302D33;} .st1{fill:none;stroke:#302D33;st...
kfriedgen/friedgen-starter
templates/icons/camera.php
PHP
mit
2,037
// 对字符串头尾进行空格字符的去除、包括全角半角空格、Tab等,返回一个字符串 function trim(str) { var regex1 = /^\s*/; var regex2 = /\s*$/; return (str.replace(regex1, "")).replace(regex2, ""); } // 给一个element绑定一个针对event事件的响应,响应函数为listener function addEvent(element, event, listener, isCorrect) { if (element.addEventListener) { el...
hellozts4120/IFE-2016
task2/serial5/task32-zts/task.js
JavaScript
mit
6,127
/* 125.valid_palindrome */ public class Solution { public int[] twoSum(int[] nums, int target) { for (int i = 0; i < nums.length; i++) { int ni = nums[i]; for (int j = i + 1; j < nums.length; j++) { int nj = nums[j]; if (ni + nj == target) { return new int[] {i, j...
aenon/OnlineJudge
leetcode/1.Array_String/125.valid_palindrome.java
Java
mit
423
import * as React from 'react'; import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util'; import { Button, LinearProgress, CircleProgress } from '@bizfe/biz-mobile-ui'; const styles = { progress: { width: '90%', margin: '20px auto 0', }, } export default class Progress extends Re...
tangjinzhou/biz-mobile-ui
examples/App/temp/Progress.js
JavaScript
mit
1,718
/* Copyright (C) 2012 Kory Nunn 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, merge, publish, distribute, subli...
cdnjs/cdnjs
ajax/libs/crel/4.1.0/crel.js
JavaScript
mit
4,862
const fs = require('fs'); const dns = require('dns'); const argv = require('yargs').argv; const Seismometer = require('./seismometer'); const Communicator = require('./communicator'); function assertOnline() { return new Promise((fulfill, reject) => { dns.resolve('www.google.com', err => { if (err) { ...
jmptable/earthquake-converter
src/index.js
JavaScript
mit
1,275
export class Item { constructor(public title: string) { } }
ritzau/end-of-stuff
src/app/item.ts
TypeScript
mit
69
module SharedAnalysisFetch extend ActiveSupport::Concern def analysis inventory_id = params[:inventory_id] id = params[:analysis_id] || params[:id] @analysis = Analysis.where('inventory_id = ? AND (analyses.id = ? OR analyses.share_token = ?)', inventory_id.to_i, id.to_i, id).first unless @analysis...
MobilityLabs/pdredesign-server
app/controllers/concerns/shared_analysis_fetch.rb
Ruby
mit
527
namespace Conejo { partial class Asociado { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param na...
EduardAl/Proyectos-Visual-Studio
Editando/Conejo/Conejo/Asociado.Designer.cs
C#
mit
28,967
package in.iamkelv.balances.alarms; import android.app.IntentService; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v4.app.Notificati...
kz/balances-android
app/src/main/java/in/iamkelv/balances/alarms/SchedulingService.java
Java
mit
5,935
<?php /** * @package axy\fs\ifs * @author Oleg Grigoriev <go.vasac@gmail.com> */ namespace axy\fs\ifs; /** * The file stream meta data * * @SuppressWarnings(PHPMD.CamelCasePropertyName) */ class MetaData { /** * The file name * * @var string */ public $filename; /** * TRUE...
axypro/fs-ifs
MetaData.php
PHP
mit
1,647
package com.thecodeinside.easyfactory.core; /** * A factory's attribute. * * @author Wellington Pinheiro <wellington.pinheiro@gmail.com> * * @param <T> type of the attribute */ public class Attribute<T> { private String id; private T value; public String getId() { return this.id; } ...
wrpinheiro/easy-factory
core/src/main/java/com/thecodeinside/easyfactory/core/Attribute.java
Java
mit
795
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import IncredibleOffersContainer from './IncredibleOffers/IncredibleOfferContainer'; export default ( <Route path="/" component={App}> <IndexRoute component={IncredibleOffersContainer} /> <Route path="/spec...
mamal72/dgkala-web
src/routes.js
JavaScript
mit
470
using System; using Csla; namespace ParentLoadROSoftDelete.Business.ERLevel { public partial class E05_SubContinent_ReChild { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is comple...
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/ParentLoadROSoftDelete.Business/ERLevel/E05_SubContinent_ReChild.cs
C#
mit
904
package com.syntacticsugar.vooga.gameplayer.objects.items.bullets; import com.syntacticsugar.vooga.gameplayer.event.implementations.SlowEvent; import com.syntacticsugar.vooga.gameplayer.objects.GameObjectType; public class SlowBullet extends AbstractBullet { public SlowBullet(BulletParams params, double speedDecrea...
nbv3/voogasalad_CS308
src/com/syntacticsugar/vooga/gameplayer/objects/items/bullets/SlowBullet.java
Java
mit
465
<?php use Illuminate\Auth\Reminders\RemindableInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\UserTrait; /** * User * * @property-write mixed $password * @property-read \Illuminate\Database\Eloquent\Collection|\Role[] $roles * @property-read \Ill...
matrixdevelopments/laravelVentas
app/models/User.php
PHP
mit
904
from contextlib import contextmanager from functools import wraps from werkzeug.local import LocalProxy, LocalStack _additional_ctx_stack = LocalStack() __all__ = ("current_additions", "Additional", "AdditionalManager") @LocalProxy def current_additions(): """ Proxy to the currently added requirements ...
justanr/flask-allows
src/flask_allows/additional.py
Python
mit
5,469
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: koubei.marketing.data.customreport.delete /// </summary> public class KoubeiMarketingDataCustomreportDeleteRequest : IAopRequest<KoubeiMarketingDataCustom...
erikzhouxin/CSharpSolution
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/KoubeiMarketingDataCustomreportDeleteRequest.cs
C#
mit
2,427
function normalizePort(val) { var port = parseInt(val, 10); if (isNaN(port)) { // named pipe return val; } if (port >= 0) { // port number return port; } return false; } var port = normalizePort(process.env.PORT || '3000'); module.exports = { port: port, db: 'mongodb://'+proce...
Mohamed-Abo-El-Soud/NexusJS
config/env/development.js
JavaScript
mit
341
/* * Copyright (c) 2018 Algolia * http://www.algolia.com/ * * 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...
algolia/algoliasearch-client-csharp
src/Algolia.Search/Models/Rules/Rule.cs
C#
mit
3,092
// The MIT License (MIT) // Copyright (c) 2014 Ben Abelshausen // 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, co...
Smartrak/GTFS
GTFS.IO.Desktop/GTFSDirectorySource.cs
C#
mit
5,420
using System; using System.Runtime.CompilerServices; namespace DotJEM.AspNetCore.FluentRouting.Invoker.MSInternal { /* This class originates from the https://github.com/aspnet/Common project, as it is * internal a slightly modified version of the code has been copied into this source, * the license of t...
dotJEM/aspnetcore-fluentrouting
src/DotJEM.AspNetCore.FluentRouting/Invoker/MSInternal/LambdaExecutorAwaitable.cs
C#
mit
3,756
<?php namespace Almendra\Http\Psr\Messages; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * Represents a response * * @package Almendra\Http */ class Response extends Message implements ResponseInterface { /** * HTTP Response codes. * */ const HTTP_CONTINUE...
RickyNRoses87/almendra-psr7
src/Psr/Messages/Response.php
PHP
mit
8,925
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _180117_Lectures { class Program { static void Main(string[] args) { int numbersToAdd = int.Parse(Console.ReadLine()); decimal totalNumbers = 0M...
Koceto/SoftUni
Old Code/Programming Fundamentals/Data Types and Variables/Exact Sum of Real Numbers/Exact Sum of Real Numbers/Program.cs
C#
mit
552
var express = require('express'); var http = require('http'); var path = require('path'); var app = express(); app.use(express.bodyParser()); app.use(app.router); app.use(express.static(__dirname + '/public')); // Simple REST server. var users = []; app.post('/user', function(req, res) { users[req.body.name] = ...
rla/xhr-json
tests/server.js
JavaScript
mit
1,686
package com.tommytony.war.job; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import com.tommytony.war.War; import com.tommytony.war.volume.BlockInfo; public class ResetCursorJob implements Runnable { private final Block cornerBlock; private final BlockInfo[] originalCursorBlocks; private fina...
grinning/war-tommybranch
war/src/main/java/com/tommytony/war/job/ResetCursorJob.java
Java
mit
2,006
=begin Copyright (c) 2011-2012 VMware, Inc. All Rights Reserved. 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,...
socialcast/glyph_filter
spec/views/glyph_filter/_glyph.html_spec.rb
Ruby
mit
1,535
using System.Web.Mvc; using System.Web.Routing; namespace Microsoft.Azure.Blast.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapMvcAttributeRoutes(); r...
smith1511/AzureBlast
AzureBlast.Web/App_Start/RouteConfig.cs
C#
mit
555
using FlatBuffers; using FlatBuffers.Schema; using Synchronica.Examples.Schema; using Synchronica.Replayers; using Synchronica.Schema; using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; using System.Threading; using UnityEngine; namespace Synchronica.Unity.Examples { class ...
wuyuntao/Synchronica
SynchronicaUnityExamples/Assets/Scripts/SynchronicaUnityExamples/SimpleClient.cs
C#
mit
5,149
'use strict'; function getBetterUpgradeMessage(foundVersion) { let version = (foundVersion && foundVersion[1]) ? `(${foundVersion[1]}) ` : ''; return `A new version of Ghost Core ${version}is available! Hot Damn. \ <a href="http://support.ghost.org/how-to-upgrade/" target="_blank">Click here</a> \ to learn mor...
felixrieseberg/Ghost-Desktop
main/preload/upgrade-notification.js
JavaScript
mit
1,100
using System.Threading; using MonoTouch.Foundation; using MonoTouch.UIKit; using iOS.Client.Screens; using iOS.Client.MonoTouch.Dialog; using MonoTouch.Dialog; using System.Drawing; namespace iOS.Client { // The UIApplicationDelegate for the application. This class is responsible for launching the // User In...
claudiosanchez/QBank
iOS.Client/AppDelegate.cs
C#
mit
2,075
import { Component } from '@angular/core'; @Component({ selector: 'formly-demo-home', template: ` <div class="container markdown github"> <div [innerHtml]="contnent"></div> </div> `, }) export class HomeComponent { contnent = require('!!raw-loader!!highlight-loader!markdown-loader!./../../../READ...
formly-js/ng-formly
demo/src/app/home.component.ts
TypeScript
mit
331
require "route_cow/version" module RouteCow # Your code goes here... end
killthekitten/route_cow
lib/route_cow.rb
Ruby
mit
76
namespace RemindMe { partial class MaterialPopup { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
Stefangansevles/RemindMe
RemindMe/Forms/MaterialForms/MaterialPopup.Designer.cs
C#
mit
13,938
require 'test_helper' class NotificationTest < ActionMailer::TestCase # replace this with your real tests test "the truth" do assert true end end
pugnusferreus/wamlibrary
test/functional/notification_test.rb
Ruby
mit
157
'use strict' var PassThrough = require('stream').PassThrough var statistics = require('vfile-statistics') var fileSetPipeline = require('./file-set-pipeline') module.exports = run // Run the file set pipeline once. // `callback` is invoked with a fatal error, or with a status code (`0` on // success, `1` on failure)...
wooorm/unified-engine
lib/index.js
JavaScript
mit
4,229
'use strict'; import {should as should_} from 'chai'; const should = should_(); import {spy, stub} from 'sinon'; import {setCanvas, canvas, context} from '../src/canvas'; import draw from '../src/draw'; // import {Sprite} from '../../../script/src/sprite'; describe('draw.js', () => { let ctx; before(() => { ...
OinkIguana/tactical-rpg
public_html/script/test/draw.js
JavaScript
mit
29,943
using System; using Csla; using SelfLoadSoftDelete.DataAccess.ERLevel; namespace SelfLoadSoftDelete.DataAccess.Sql.ERLevel { public partial class G09_Region_ReChildDal { } }
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DTO/SelfLoadSoftDelete.DataAccess.Sql/ERLevel/G09_Region_ReChildDal.cs
C#
mit
197
# require '/Users/Helen/Documents/Rails/hangman_twitter_bot/lib/hangman_twitter_bot' require './lib/hangman_twitter_bot' require 'pry' controller = MainController.new controller.start
lemonlimester/hangman_twitter_bot
main.rb
Ruby
mit
184
package org.beryl.app; /** Convenience class for retrieving the current Android version that's running on the device. * * Code example on how to use AndroidVersion to load a multi-versioned class at runtime for backwards compatibility without using reflection. * <pre class="code"><code class="java"> import org.bery...
jeremyje/android-beryl
beryl/src/org/beryl/app/AndroidVersion.java
Java
mit
6,414
package bence.prognyelvek.contexts; import java.util.List; /** * @param <T> Input token type. * @param <O> Output token type. */ public interface ContextFactory<T, O> { Context<T, O> getInstance(List<T> tokens); }
zporky/langs-and-paradigms
projects/EJULOK/Java/prognyelvek/src/main/java/bence/prognyelvek/contexts/ContextFactory.java
Java
mit
224
using System.Collections.Generic; using MVPStream.Models.Data; namespace MVPStream.Models { public class SearchResults { public long Count { get; set; } public IEnumerable<Entry> Entries { get; set; } } }
ealsur/mvpstream
Models/SearchResults.cs
C#
mit
236
<?PHP date_default_timezone_set( 'America/New_York' ); include('../php/config.php'); $db = mysql_connect($config['mysql_hostname'], $config['mysql_username'], $config['mysql_password']) ; mysql_select_db($config['mysql_database'], $db); $query = mysql_query("SELECT * FROM pedutoSchedule WHERE date like '" . date("Y-m...
arm5077/wheresbill
api/index.php
PHP
mit
536
require 'tempfile' require 'posix-spawn' module Grit class Git include POSIX::Spawn class GitTimeout < RuntimeError attr_accessor :command attr_accessor :bytes_read def initialize(command = nil, bytes_read = nil) @command = command @bytes_read = bytes_read end en...
gitcafe-dev/grit
lib/grit/git.rb
Ruby
mit
16,399
<?php namespace App\Test\TestCase\Controller; use App\Controller\LevelsController; use Cake\TestSuite\IntegrationTestCase; /** * App\Controller\LevelsController Test Case */ class LevelsControllerTest extends IntegrationTestCase { /** * Fixtures * * @var array */ public $fixtures = [ ...
delamux/emma
tests/TestCase/Controller/LevelsControllerTest.php
PHP
mit
1,202
module Assorted VERSION = "0.0.3" end
dribbble/assorted
lib/assorted/version.rb
Ruby
mit
40
namespace Mindscape.Raygun4Net.Storage { public class RaygunFile : IRaygunFile { public string Name { get; set; } public string Contents { get; set; } } }
MindscapeHQ/raygun4net
Mindscape.Raygun4Net/Storage/RaygunFile.cs
C#
mit
168
"use strict"; var Piece = require('../lib/Piece'), map = require('../lib/map'); describe('Piece.js', function() { var piece; beforeEach(function() { piece = new Piece(1, 'black', 0, 0); }); describe('Piece Constructor', function() { // めんどくせいらね }); describe('Piece.prototype.getPiece()', fu...
sandai/kifuparser
test/Piece.test.js
JavaScript
mit
44,711
/* * Exercicio 5.7 * Livro: Aprenda a programar com C# * Autores: Antonio Trigo e Jorge Henriques * Disponível em: http://www.silabo.pt */ using System; namespace Cap5 { class Program { static void Main(string[] args) { int nota; Console.Write("Introduza a nota: ");...
atrigo/livroCSharp
Exercicios/Capitulo5/Exercicio5.7.cs
C#
mit
653
process.env.NODE_ENV = 'development'; // Load environment variables from .env file. Suppress warnings using silent // if this file is missing. dotenv will never modify any environment variables // that have already been set. // https://github.com/motdotla/dotenv require('dotenv').config({silent: true}); var chalk = r...
adeira/connector-frontend
scripts/start.js
JavaScript
mit
10,834
# https://www.w3resource.com/python-exercises/ # 3. Write a Python program to display the current date and time. # Sample Output : # Current date and time : # 2014-07-05 14:34:14 import datetime now = datetime.datetime.now() print now.strftime("%Y-%m-%d %H:%M:%S")
dadavidson/Python_Lab
Python-w3resource/Python_Basic/ex03.py
Python
mit
269
define([], () => { 'use strict'; class FeedsError extends Error { constructor(...args) { console.error('FeedsError', args); super(args); } } class ServerError extends Error { constructor(...args) { super(args); } } function q...
briehl/kbase-ui
src/client/modules/lib/feeds.js
JavaScript
mit
8,054
// Type definitions for ag-grid-community v20.2.0 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { Component } from "./component"; export declare class PopupWindow extends Component { private static TEMPLATE; static DESTROY_EVENT: string; private pop...
ceolter/angular-grid
dist/lib/widgets/popupWindow.d.ts
TypeScript
mit
614
module Precious module Views class HistoryAll < Layout def title "Recent activity on Weaki" end def versions i = @versions.size + 1 versions_temp = @versions.map do |x| v = x[0] page = x[1] i -= 1 { :id => v.id, :id7 => v.id[0..6], :num => i, :au...
nunoflores/gollum
lib/gollum/views/history_all.rb
Ruby
mit
1,894
require 'rails_helper' RSpec.describe Api::V1::SessionsController do before do request.env['devise.mapping'] = Devise.mappings[:user] end describe 'POST #create' do context 'when login param is missing' do it 'raises an error' do expect { post :create }.to raise_error( ActionCont...
knovoselic/going-postal
web/spec/controllers/api/v1/sessions_controller_spec.rb
Ruby
mit
2,304
export default { analytics: () => { return { logEvent: () => {}, setCurrentScreen: () => {} }; } };
Vizzuality/forest-watcher
__mocks__/react-native-firebase.js
JavaScript
mit
124
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'preview', 'ca', { preview: 'Visualització prèvia' } );
Kunstmaan/BootstrapCK4-Skin
plugins/preview/lang/ca.js
JavaScript
mit
238
class CreateEvents < ActiveRecord::Migration def change create_table :events, id: false do |t| t.references :event_type, nil: false, index: true t.references :email_type, nil: false, index: true t.timestamp :created_at, nil: false end end end
aggronerd/event_responder
db/migrate/20150930200028_create_events.rb
Ruby
mit
273
/** * SIP Transactions module. */ (function(JsSIP) { var C = { // Transaction states STATUS_TRYING: 1, STATUS_PROCEEDING: 2, STATUS_CALLING: 3, STATUS_ACCEPTED: 4, STATUS_COMPLETED: 5, STATUS_TERMINATED: 6, STATUS_CONFIRMED: 7, // Transaction types NON_INVITE_CLIE...
CodeYellowBV/JsSIP
src/Transactions.js
JavaScript
mit
20,494
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Data; using System.Collections; using System.Web.UI.WebControls; using ServiceReference1; public partial class Meetings { public int appointmentNumber { get; set; } public DateTime startDate ...
neunhuyeu/gds-mis
Website/PatientClient/Appointments.aspx.cs
C#
mit
1,836
# #!/usr/bin/env python # -*- coding: utf-8 -*- # <HTTPretty - HTTP client mock for Python> # Copyright (C) <2011-2018> Gabriel Falcão <gabriel@nacaolivre.org> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to ...
andresriancho/HTTPretty
tests/functional/test_passthrough.py
Python
mit
2,551
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.10.0 (2021-10-11) */ (function () { 'use strict'; ...
cdnjs/cdnjs
ajax/libs/tinymce/5.10.0/plugins/emoticons/plugin.js
JavaScript
mit
18,139
/* * ajaxify.js * Ajaxify - The Ajax Plugin * https://4nf.org/ * * Copyright Arvind Gupta; MIT Licensed */ /* INTERFACE: See also https://4nf.org/interface/ Simplest plugin call: let ajaxify = new Ajaxify({options}); Ajaxifies the whole site, dynamically replacing the elements specified in "elements" ac...
cdnjs/cdnjs
ajax/libs/ajaxify/8.1.1/ajaxify.js
JavaScript
mit
30,546
/** * @license Highstock JS v8.1.0 (2020-05-05) * * Indicator series type for Highstock * * (c) 2010-2019 Sebastian Bochan * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.e...
cdnjs/cdnjs
ajax/libs/highcharts/8.1.0/indicators/trendline.src.js
JavaScript
mit
5,152
/*! * FilePond 4.26.0 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */ /* eslint-disable */ (function(global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'func...
cdnjs/cdnjs
ajax/libs/filepond/4.26.0/filepond.js
JavaScript
mit
427,759
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vega'), require('vega-lite')) : typeof define === 'function' && define.amd ? define(['vega', 'vega-lite'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : glob...
cdnjs/cdnjs
ajax/libs/vega-embed/6.20.0-next.0/vega-embed.js
JavaScript
mit
182,412
import settings from './../settings' import {findDistance, limitPositions, chooseOne, randomInt, getAvgPostion} from './general' module.exports = { applyLimbForces: (Eves) => { for(var i = 0; i < Eves.length; i++) { var eve = Eves[i]; for(var j = 0; j < eve.limbs.length; j++) { var limb = eve...
iandeboisblanc/evolution
server/helpers/movement.js
JavaScript
cc0-1.0
3,327
import { editMenu, viewMenu, windowMenu, helpMenu } from './common-menus' import { addDarwinMenuItems } from './darwin-menus' import { app, Menu } from 'electron' const initialMenu = [ editMenu, viewMenu, windowMenu, helpMenu ] export const setupMenus = () => { const menuItems = (process.platform === 'darwin') ...
lazlojuly/modular-electron-app
menus/index.js
JavaScript
cc0-1.0
456
# frozen_string_literal: true class Collection include ActiveModel::Serializers::JSON include ActiveModel::Validations include Virtus.model attribute :id, String attribute :token, String attribute :created_at, Time, default: proc { Time.now.utc } attribute :updated_at, Time, default: proc { Time.now.utc...
GSA/i14y
app/models/collection.rb
Ruby
cc0-1.0
742
var debug = process.env.NODE_ENV !== "production" var webpack = require('webpack') module.exports = { context: __dirname, devtool: debug ? "inline-sourcemap" : null, entry: "./js/app.jsx", module: { loaders: [ { test: /\.jsx?$/, exclude:/(node_modules...
Czhang0727/electron-demo
views/webpack.config.js
JavaScript
cc0-1.0
913
#!/usr/bin/env python3 from SPARQLWrapper import SPARQLWrapper, JSON import requests import re import os import os.path import time import sys FINTO_ENDPOINT='http://api.dev.finto.fi/sparql' FINNA_API_SEARCH='https://api.finna.fi/v1/search' lang = sys.argv[1] # map ISO 639-1 language codes into the ISO 639-2 codes ...
osma/annif
create_corpus_yso_finna.py
Python
cc0-1.0
4,644
import { navigate } from 'gatsby' export default function redirectLegacyRoutes(): void { const { hash } = window.location if (hash && hash.startsWith('#/examples/')) { const category = hash.replace('#/examples/', '') navigate(`category/${category}`, { replace: true, }) } else if (hash === '#/en...
badges/shields
frontend/lib/redirect-legacy-routes.ts
TypeScript
cc0-1.0
392