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
import { all, takeEvery } from 'redux-saga/effects'; import actions from '#actions'; import handleShareFormChange from './startAlbumsSharingService/handleShareFormChange'; import handleShareFormSubmit from './startAlbumsSharingService/handleShareFormSubmit'; import handleShareItemsSelect from './startAlbumsSharingSer...
pathephone/pathephone-desktop
src/renderer/sagas/startApp/startServices/startAlbumsSharingService.js
JavaScript
mit
680
<?php include_once('conexao.class.php'); class Disciplina{ public $id_disciplina; public $nome; public $professor; public $curso; public $carga_horaria; public function __construct(){ //print "Disciplina instanciada!"; } public function gravar(){ $sql = "insert into disciplina (nome, professo...
STRVIRTU/tcc-2017
less/disciplina.class.php
PHP
mit
960
// // MIT License // // Copyright 2019 // // 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, publi...
thejunkjon/jones
source/jones/controller/controller.cc
C++
mit
6,251
export const Camera = ` <svg viewBox="0 0 28 28"> <g fill="none" fill-rule="evenodd"> <path d="M3 3h22a2 2 0 012 2v18a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2z" stroke="currentColor"/> <circle stroke="currentColor" cx="14" cy="14" r="5"/> <path d="M22 7h1" stroke="currentColor" stroke-linecap="round" str...
clair-design/clair
packages/icons/icons/Camera.ts
TypeScript
mit
359
import datetime import time import boto import redis import requests import random import zlib from django.shortcuts import get_object_or_404 from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.template.loader import render_to_string from django.db import IntegrityE...
slava-sh/NewsBlur
apps/reader/views.py
Python
mit
95,205
// nodejs按行读取文件流 var Stream = require('stream').Stream, util = require('util'); var LineStream = function() { this.writable = true; this.readable = true; this.buffer = ''; }; util.inherits(LineStream, Stream); LineStream.prototype.write = function(data, encoding) { if (Buffer.isBuffer(data)) { data = data.to...
SBFE/js-combine-pack
lib/tool/lineStream.js
JavaScript
mit
680
using LibrarySystem.Models; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using System; using System.Collections.Generic; using System.Linq; namespace LibrarySystem.Account { public partial class Manage : System.Web.UI.Page { protected string SuccessMessage ...
krasimirkrustev/ta-library-system
LibrarySystem/LibrarySystem/Account/Manage.aspx.cs
C#
mit
4,298
__author__ = "Guillaume" __license__ = "MIT" __copyright__ = "2015, ESRF" import numpy from freesas.model import SASModel class Grid: """ This class is used to create a grid which include all the input models """ def __init__(self, inputfiles): """ :param inputfiles: list of pdb files...
kif/freesas
freesas/average.py
Python
mit
9,116
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software" // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm // // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan. #include "btree.h" namespace structural { namespace flywe...
rachwal/DesignPatterns
structural/src/flyweight/btree.cc
C++
mit
1,119
<!doctype html> <html class="no-js" lang=""> <head> <title>Zabuun - Learn Egyptian Arabic for English speakers</title> <meta name="description" content=""> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?> <?php inc...
javanigus/zabuun
essay/0006-the-first-song.php
PHP
mit
1,193
package main import ( "os" "github.com/codegangsta/cli" ) func main() { app := cli.NewApp() app.Name = "nano-client" app.Usage = "Send a request to service" app.Version = Version app.Flags = []cli.Flag{ cli.StringFlag{ Name: "service, s", Usage: "Service endpoint to send request to (Required)", },...
mouadino/go-nano
cli/nano-client/main.go
GO
mit
551
import logger from './logger'; import app from './app'; const port = app.get('port'); const server = app.listen(port); process.on('unhandledRejection', (reason, p) => logger.error('Unhandled Rejection at: Promise ', p, reason) ); server.on('listening', () => logger.info('Feathers application started on http://%s...
feathersjs/generator-feathers
generators/app/templates/ts/src/index.ts
TypeScript
mit
352
// Template Source: BaseEntityCollectionResponse.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------...
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/ContactFolderCollectionResponse.java
Java
mit
765
/* * Copyright 2013 ZXing authors * * 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 agreed t...
zxing-js/library
src/test/core/common/reedsolomon/ReedSolomon.spec.ts
TypeScript
mit
32,086
#!/usr/bin/env python """ Project-wide application configuration. DO NOT STORE SECRETS, PASSWORDS, ETC. IN THIS FILE. They will be exposed to users. Use environment variables instead. See get_secrets() below for a fast way to access them. """ import os """ NAMES """ # Project name used for display PROJECT_NAME = 'q...
18F/quotable
app_config.py
Python
mit
1,915
class AddIndexToSkillTotals < ActiveRecord::Migration def change add_index :skill_totals, :name add_index :skill_totals, :date end end
thatguyandy27/SkillsCompiler
skills_app/db/migrate/20140316173555_add_index_to_skill_totals.rb
Ruby
mit
147
require_relative '../../../spec_helper' require 'matrix' describe "Vector#normalize" do it "returns a normalized copy of the vector" do x = 0.2672612419124244 Vector[1, 2, 3].normalize.should == Vector[x, x * 2, x * 3] end it "raises an error for zero vectors" do lambda { Vector[].normalize ...
ruby/rubyspec
library/matrix/vector/normalize_spec.rb
Ruby
mit
473
'use strict'; /** * Module dependencies. */ var users = require('../../app/controllers/users'), goaliedash = require('../../app/controllers/goaliedash'); module.exports = function(app) { app.route('/goaliedash') .get(users.requiresLogin, users.hasAuthorization); };
thcmc/412hockey
app/routes/goaliedash.server.routes.js
JavaScript
mit
275
// @flow import React from 'react' import withPropsStream from '@vega/utils/withPropsStream' import {map} from 'rxjs/operators' import styles from './styles/Communicator.css' import ThreadList from './ThreadList' import CreateComment from './CreateComment' function getPropsStream(props$) { // todo: implement open/c...
VegaPublish/vega-studio
packages/@vega/communicator-system/src/components/providers/Communicator.js
JavaScript
mit
1,991
/* * Copyright (c) 2014-2022 The Voxie Authors * * 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, mer...
voxie-viewer/voxie
src/VoxieBackend/Component/ExternalOperation.hpp
C++
mit
4,192
var models = require('../models'); var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { console.log(req.session); res.render('layout'); }); module.exports = router;
NUSPartTime/NUSPartTime
routes/index.js
JavaScript
mit
248
import os import logging from django.core.management.base import BaseCommand from django.core.mail import send_mail from django.template.loader import get_template from workshops.models import Badge, Person, Role logger = logging.getLogger() class Command(BaseCommand): help = 'Report instructors activity.' ...
swcarpentry/amy
amy/workshops/management/commands/instructors_activity.py
Python
mit
5,305
<?php /* * This file is part of the Phuri package. * * Copyright © 2014 Erin Millard * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eloquent\Phuri\Generic; use Eloquent\Pathogen\Factory\PathFactoryInterface; use Eloqu...
ezzatron/phuri
src/Generic/AbstractGenericUri.php
PHP
mit
12,051
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
gabizou/SpongeCommon
src/main/java/org/spongepowered/common/data/manipulator/block/SpongeSignaledOutputData.java
Java
mit
2,441
// Copyright (c) 2013 Raphael Estrada // License: The MIT License - see "LICENSE" file for details // Author URL: http://www.galaktor.net // Author E-Mail: galaktor@gmx.de using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through t...
galaktor/autofac-extensions
Properties/AssemblyInfo.cs
C#
mit
1,633
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
Azure/azure-sdk-for-python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_assignments_operations.py
Python
mit
38,695
class CreateDocuments < ActiveRecord::Migration[5.0] def change create_table :documents do |t| t.integer :product_id, null: false t.string :type, null: false t.string :url, null: false t.timestamps end end end
unasuke/proconist.net
db/migrate/20160610084904_create_documents.rb
Ruby
mit
265
# -*- coding: utf-8 -*- """ Created on Fri Jun 25 16:20:12 2015 @author: Balázs Hidasi @lastmodified: Loreto Parisi (loretoparisi at gmail dot com) """ import sys import os import numpy as np import pandas as pd import datetime as dt # To redirect output to file class Logger(object): def __init__(self, filename=...
loretoparisi/docker
theano/rsc15/preprocess.py
Python
mit
3,325
<?php namespace PSR2R\Sniffs\Commenting; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Util\Tokens; use PSR2R\Tools\AbstractSniff; use PSR2R\Tools\Traits\CommentingTrait; use PSR2R\Tools\Traits\SignatureTrait; /** * Methods always need doc blocks. * Constructor and destructor may not have one if they do not ...
php-fig-rectified/psr2r-sniffer
PSR2R/Sniffs/Commenting/DocBlockSniff.php
PHP
mit
5,275
(function() { 'use strict'; process.env.debug_sql = true; var Class = require('ee-class') , log = require('ee-log') , assert = require('assert') , fs = require('fs') , QueryContext = require('related-query-context') , ORM ...
eventEmitter/related-timestamps
test/extension.js
JavaScript
mit
8,381
#!/usr/bin/env ruby require 'tasklist' during '2010 September' do on '2010-09-03' do task 'Take out garbage' task 'Wash car' end on '2010-09-02' do task 'Create tasklist DSL', '09:15:56', '', 'admin', 'done' task 'Push tasklist to github', '09:34:00', '09:38:04', 'github' end end
kevincolyar/tasklist
example.rb
Ruby
mit
310
var passport = require('passport'); var WebIDStrategy = require('passport-webid').Strategy; var tokens = require('../../util/tokens'); var ids = require('../../util/id'); var console = require('../../log'); var createError = require('http-errors'); var dateUtils = require('../../util/date'); var url = require('url'); ...
Agile-IoT/agile-idm-web-ui
lib/auth/providers/webid.js
JavaScript
mit
3,465
module AwsHelpers module ElasticLoadBalancing class CreateTag def initialize(elastic_load_balancing_client, load_balancer_name, tag_key, tag_value) @elastic_load_balancing_client = elastic_load_balancing_client @load_balancer_name = load_balancer_name @tag_key = tag_key @tag_...
MYOB-Technology/aws_helpers
lib/aws_helpers/elastic_load_balancing/create_tag.rb
Ruby
mit
652
export declare class Console { private static quiet; private static debug; private static verbose; static Log(text: any): void; private static readonly Timestamp; static Debug(text: any): void; static Verbose(text: any): void; static Error(text: any): void; static Exit(reason: any): ...
APEEYEDOTCOM/hapi-bells
node_modules/autorest/console.d.ts
TypeScript
mit
328
<?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. */ declare(strict_types=1); namespace Sylius\Bundle\CoreBundle\Command; use Sylius\Component\Core\Model...
vihuvac/Sylius
src/Sylius/Bundle/CoreBundle/Command/SetupCommand.php
PHP
mit
8,226
import { Nibble, UInt4 } from '../types' /** * Returns a Nibble (0-15) which equals the given bits. * * @example * byte.write([1,0,1,0]) => 10 * * @param {Array} nibble 4-bit unsigned integer * @return {Number} */ export default (nibble: Nibble): UInt4 => { if (!Array.isArray(nibble) || nibble.length !== 4) ...
dodekeract/bitwise
source/nibble/write.ts
TypeScript
mit
489
import { Injectable } from '@angular/core'; import { DataService } from '../../../_service/dataconnect'; import { Router } from '@angular/router'; @Injectable() export class WarehouseViewService { constructor(private _dataserver: DataService, private _router: Router) { } getwarehouseTransfer(req: any) { ...
masagatech/erpv1
src/app/_service/warehousestock/view/view-service.ts
TypeScript
mit
390
using System; using Newtonsoft.Json; namespace MultiSafepay.Model { public class Transaction { [JsonProperty("transaction_id")] public string TransactionId { get; set; } [JsonProperty("payment_type")] public string PaymentType { get; set; } [JsonProperty("order_id")] ...
MultiSafepay/.Net
Src/MultiSafepay/Model/Transaction.cs
C#
mit
1,056
require 'spec_helper' describe MWS::Report do describe ".method_missing" do describe ".get_report_list" do let(:valid_args){ { key: "ThisIsSigningKey", endpoint: "mws.amazonservices.com", params: { "AWSAccessKeyId" => "AccessKeyIdString", "Selle...
s-osa/marketplace_web_service
spec/mws/report_spec.rb
Ruby
mit
929
require 'resolv' module Geocoder class IpAddress < String def loopback? valid? and !!(self == "0.0.0.0" or self.match(/\A127\./) or self == "::1") end def valid? !!((self =~ Resolv::IPv4::Regex) || (self =~ Resolv::IPv6::Regex)) end end end
tiramizoo/geocoder
lib/geocoder/ip_address.rb
Ruby
mit
275
const chai = require('chai'); const expect = chai.expect; const ComplexArray = require('../complex-array/complex-array'); function assertArrayEquals(first, second) { const message = `${first} != ${second}`; first.forEach((item, i) => { expect(item).to.equal(second[i], message); }); } describe('Complex Ar...
JoeKarlsson/data-structures
test/complex-array.spec.js
JavaScript
mit
3,055
/* * Copyright (C) 2011 by Jakub Lekstan <kuebzky@gmail.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, cop...
kuebk/node-rusage
src/node-rusage.cc
C++
mit
4,830
/* * 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 config; import interfaces.*; import java.sql.*; import java.util.logging.*; import javax.swing.*; /** * * @author Luis G *...
Luis-Gdx/escuela
Topicos Avanzados de Programacion/Tabla/Tabla con base de datos y login/src/config/Connector.java
Java
mit
2,950
<?php /* * This file is part of NodalFlow. * (c) Fabrice de Stefanis / https://github.com/fab2s/NodalFlow * This source file is licensed under the MIT license which you will * find in the LICENSE file or at https://opensource.org/licenses/MIT */ namespace fab2s\NodalFlow\Nodes; use fab2s\NodalFlow\Flows\Flo...
fab2s/NodalFlow
src/Nodes/BranchNode.php
PHP
mit
1,307
<?PHP /** * password view. * * includes form for username and email to send password to user. * */ ?> <div id="content_area"> <div class="row" id="login"> <!--login box--> <div class="col-xs-24" > <?php //begins th...
rshanecole/TheFFFL
views/account/password.php
PHP
mit
2,088
using System; using System.Threading; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace vplan { public class PrefManager { NSUserDefaults locstore = new NSUserDefaults(); bool notified = false; public PrefManager () { refresh (); } protected void refresh () { locstore.Synchronize (); ...
reknih/informant-ios
vplan/vplan.Kit/PrefManager.cs
C#
mit
743
/* DISKSPD Copyright(c) Microsoft Corporation All rights reserved. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
microsoft/diskspd
UnitTests/XmlResultParser/XmlResultParser.UnitTests.cpp
C++
mit
26,838
/** @jsx h */ import h from '../../helpers/h' export const schema = { blocks: { paragraph: { marks: [{ type: 'bold' }, { type: 'underline' }], }, }, } export const input = ( <value> <document> <paragraph> one <i>two</i> three </paragraph> </document> </value> ) expo...
ashutoshrishi/slate
packages/slate/test/schema/custom/node-mark-invalid-default.js
JavaScript
mit
437
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
erikkowalski/hoe-sage-8.1.0
assets/scripts/main.js
JavaScript
mit
2,737
import {bootstrap} from '@angular/platform-browser-dynamic'; import {ROUTER_PROVIDERS} from '@angular/router-deprecated'; import {HTTP_PROVIDERS} from '@angular/http'; import {AppComponent} from './app.component'; import {LoggerService} from './blocks/logger.service'; bootstrap(AppComponent, [ LoggerService, ROUTE...
IMAMBAKS/data_viz_pa
app/main.ts
TypeScript
mit
352
package org.apache.shiro.grails.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.apache.shiro.authz.Permission; @Target({ElementType.FIELD, ElementType.METHOD}) @Retention(Retention...
putin266/Vote
target/work/plugins/shiro-1.2.1/src/java/org/apache/shiro/grails/annotations/PermissionRequired.java
Java
mit
572
module.exports = { before: [function () { console.log('global beforeAll1'); }, 'alias1'], 'alias1': 'alias2', 'alias2': function () { console.log('global beforeAll2'); }, 'One': function () { this.sum = 1; }, 'plus one': function () { this.sum += 1; }, 'equals two': function () { ...
twolfson/doubleshot
test/test_files/complex_global_hooks/content.js
JavaScript
mit
399
from attributes import * from constants import * # ------------------------------------------------------------------------------ # class UnitManager (Attributes) : """ UnitManager class -- manages a pool """ # -------------------------------------------------------------------------- # ...
JensTimmerman/radical.pilot
docs/architecture/api_draft/unit_manager.py
Python
mit
3,311
'use strict'; angular.module('terminaaliApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.get(); } return { /** * Authenticate user and save token * *...
henrikre/terminaali
client/components/auth/auth.service.js
JavaScript
mit
3,575
$(document).ready(function(){ var toggleMuffEditor = function(stat=false){ $("#muff-opt").remove(); // bind event if(stat){ $(".muff").mouseover(function() { $("#muff-opt").remove(); muffShowOptions($(this)); $(window).scroll(function(){ $("#muff-opt").remove(); }) ...
johnguild/muffincms
src/Public/main/js/muffincms.js
JavaScript
mit
7,581
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _possibleConstructorReturn2 = require('babel-runtime/helpers/p...
forwk1990/wechart-checkin
antd-mobile-custom/antd-mobile/lib/table/index.web.js
JavaScript
mit
3,649
using System.ComponentModel; namespace NSysmon.Collector.HAProxy { /// <summary> /// Current server statuses /// </summary> public enum ProxyServerStatus { [Description("Status Unknown!")] None = 0, //Won't be populated for backends [Description("Server is up, status nor...
clearwavebuild/nsysmon
NSysmon.Collector/HAProxy/ProxyServerStatus.cs
C#
mit
2,906
import datetime from django.contrib.contenttypes.models import ContentType from django.utils import timezone from .models import Action def create_action(user, verb, target=None): now = timezone.now() last_minute = now - datetime.timedelta(seconds=60) similar_actions = Action.objects.filter(user_id=user...
EssaAlshammri/django-by-example
bookmarks/bookmarks/actions/utils.py
Python
mit
679
package engine; import java.awt.Color; import java.awt.Graphics2D; import java.awt.Point; public class CircleShape extends Shape { double radius; //radius of shape public CircleShape(double rad, Vector2D v, double r, double d, Color c) { super(v, r, d, c); radius = rad; } @Override ...
bjornenalfa/GA
src/engine/CircleShape.java
Java
mit
1,041
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DarkSwift</source> <translation type="unfinished"/> </message> <message> <location l...
DarkSwift/DarkSwift
src/qt/locale/bitcoin_ms_MY.ts
TypeScript
mit
107,393
# -*- coding: utf-8 -*- # # RedPipe documentation build configuration file, created by # sphinx-quickstart on Wed Apr 19 13:22:45 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
72squared/redpipe
docs/conf.py
Python
mit
5,400
import { assign, forEach, isArray } from 'min-dash'; var abs= Math.abs, round = Math.round; var TOLERANCE = 10; export default function BendpointSnapping(eventBus) { function snapTo(values, value) { if (isArray(values)) { var i = values.length; while (i--) if (abs(values[i] - value) <...
pedesen/diagram-js
lib/features/bendpoints/BendpointSnapping.js
JavaScript
mit
4,283
var changeSpan; var i = 0; var hobbies = [ 'Music', 'HTML5', 'Learning', 'Exploring', 'Art', 'Teaching', 'Virtual Reality', 'The Cosmos', 'Unity3D', 'Tilemaps', 'Reading', 'Butterscotch', 'Drawing', 'Taking Photos', 'Smiles', 'The Poetics of Space', 'Making Sounds', 'Board games', 'Trave...
oddgoo/oddgoo.com
static/js/hobbies.js
JavaScript
mit
725
<?php namespace App\Http\ViewComposers; use App\Models\Character; use App\Models\Message; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Auth; use Illuminate\View\View; class CharacterMessagesComposer { /** * Bind data to the view. * * @param ...
mchekin/rpg
app/Http/ViewComposers/CharacterMessagesComposer.php
PHP
mit
1,435
from src.tools.dictionaries import PostLoadedDict # Utility class ################################################ class ServerImplementationDict(PostLoadedDict): def __missing__(self, key): try: return super().__missing__(key) except KeyError: return NotImplemented ########...
juanchodepisa/sbtk
SBTK_League_Helper/src/interfacing/servers.py
Python
mit
1,946
import { GraphQLInputObjectType, GraphQLID, GraphQLList, GraphQLBoolean, } from 'graphql'; import RecipientTypeEnum from './RecipientTypeEnum'; import MessageTypeEnum from './MessageTypeEnum'; import NoteInputType from './NoteInputType'; import TranslationInputType from './TranslationInputType'; import Communi...
nambawan/g-old
src/data/types/MessageInputType.js
JavaScript
mit
979
require "rubygems" require 'active_support' require "ruby-debug" gem 'test-unit' require "test/unit" require 'active_support' require 'active_support/test_case' require 'shoulda' require 'rr' require File.dirname(__FILE__) + '/../lib/ubiquitously' Ubiquitously.configure("test/config/secrets.yml") Passport.configure("...
lancejpollard/ubiquitously
test/test_helper.rb
Ruby
mit
497
#include <boost/lexical_cast.hpp> #include <disccord/models/user.hpp> namespace disccord { namespace models { user::user() : username(""), avatar(), email(), discriminator(0), bot(false), mfa_enabled(), verified() { } user::~user() { } void use...
FiniteReality/disccord
lib/models/user.cpp
C++
mit
3,213
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ASPPatterns.Chap7.Library.Services.Views; namespace ASPPatterns.Chap7.Library.Services.Messages { public class FindMembersResponse : ResponseBase { public IEnumerable<MemberView> MembersFound { get; set; } ...
liqipeng/helloGithub
Book-Code/ASP.NET Design Pattern/ASPPatternsc07/ASPPatterns.Chap7.Library/ASPPatterns.Chap7.Library.Services/Messages/FindMembersResponse.cs
C#
mit
327
let _ = require('underscore'), React = require('react'); class Icon extends React.Component { render() { let className = "icon " + this.props.icon; let other = _.omit(this.props.icon, "icon"); return ( <span className={className} role="img" {...other}></span> ...
legendary-code/chaos-studio-web
app/src/js/components/Icon.js
JavaScript
mit
433
using System.IO; namespace Mandro.Utils.Setup { public class DirectoryHelper { public DirectoryHelper() { } public static void CopyDirectory(string sourceDirName, string destDirName, bool copySubDirs) { // Get the subdirectories for the specified directory....
mandrek44/Mandro.Utils
Mandro.Utils/Setup/DirectoryHelper.cs
C#
mit
1,605
import { NotificationType } from 'vscode-languageclient' export enum Status { ok = 1, warn = 2, error = 3 } export interface StatusParams { state: Status } export const type = new NotificationType<StatusParams>('standard/status')
chenxsan/vscode-standardjs
client/src/utils/StatusNotification.ts
TypeScript
mit
241
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class ChevronDown extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,298.3L256,298.3L256,298.3l174.2-167.2c4.3-4.2,11.4-4.1,15.8,0.2l30.6,29.9c4.4,4.3,4.5,11.3,0.2,15.5L264.1,380.9 ...
fbfeix/react-icons
src/icons/ChevronDown.js
JavaScript
mit
819
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); const webpack = require('webpack'); const paths = require('./tools/paths'); const en...
hn3etta/VS2015-React-Redux-Webpack-Front-end-example
webpack.config.js
JavaScript
mit
3,928
<?php namespace BackOfficeBundle\Entity; use Doctrine\ORM\EntityRepository; /** * PosteCollaborateurRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class PosteCollaborateurRepository extends EntityRepository { }
elmabdgrub/azplatform
src/BackOfficeBundle/Entity/PosteCollaborateurRepository.php
PHP
mit
284
// ========================================================================== // snd_app // ========================================================================== // Copyright (c) 2006-2012, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and use in source and b...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/130wu1dgzoqmxyu2/2013-04-09T10-23-18.897+0200/sandbox/my_sandbox/apps/snd_app/snd_app.cpp
C++
mit
6,165
<?php /** * @file * Contains \Drupal\shortcut\ShortcutSetStorageControllerInterface. */ namespace Drupal\shortcut; use Drupal\Core\Entity\EntityStorageControllerInterface; use Drupal\shortcut\ShortcutSetInterface; /** * Defines a common interface for shortcut entity controller classes. */ interface ShortcutSet...
augustash/d8.dev
core/modules/shortcut/lib/Drupal/shortcut/ShortcutSetStorageControllerInterface.php
PHP
mit
2,130
using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using MS.Core; namespace System.Runtime.Remoting.Contexts { public static class __ContextAttribute { public static IObservable<System.Boolean> IsNewContextOK( this IObservable<...
RixianOpenTech/RxWrappers
Source/Wrappers/mscorlib/System.Runtime.Remoting.Contexts.ContextAttribute.cs
C#
mit
3,328
# -*- coding: utf-8 -*- # # Copyright (C) 2008 John Paulett (john -at- paulett.org) # Copyright (C) 2009, 2011, 2013 David Aguilar (davvid -at- gmail.com) # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. """Python libr...
arnavd96/Cinemiezer
myvenv/lib/python3.4/site-packages/music21/ext/jsonpickle/__init__.py
Python
mit
5,049
require 'spec_helper' describe "beings/show" do before(:each) do @being = FactoryGirl.create(:being) @being.randomize! end end
slabgorb/populinator-0
spec/views/beings/show.html.haml_spec.rb
Ruby
mit
142
import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; class ProteinTranslator { private static final Integer CODON_LENGTH = 3; private static final Map<String, String> CODON_TO_PROTEIN = Map.ofEntries( Map.entry("AUG", "Methionine"), Map.entry("UUU...
rootulp/exercism
java/protein-translation/src/main/java/ProteinTranslator.java
Java
mit
1,679
# -*- coding: utf-8 -*- """ Created on Wed Sep 09 13:04:53 2015 * If TimerTool.exe is running, kill the process. * If input parameter is given, start TimerTool and set clock resolution Starts TimerTool.exe and sets the clock resolution to argv[0] ms Ex: python set_clock_resolution 0.5 @author: marcus """ ...
marcus-nystrom/share-gaze
sync_clocks/test_clock_resolution.py
Python
mit
1,930
<?php use Illuminate\Database\Seeder; use jeremykenedy\LaravelRoles\Models\Permission; class PermissionsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /* * Add Permissions * */ if (Permis...
jeremykenedy/larablog
database/seeds/PermissionsTableSeeder.php
PHP
mit
3,481
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; namespace TrueSync.Physics2D { // Original Code by Steven Lu - see http://www.box2d.org/forum/viewtopic.php?f=3&t=1688 // Ported to Farseer 3.0 by Nicolás Hormazábal internal struct ShapeData { pu...
Xaer033/YellowSign
YellowSignUnity/Assets/ThirdParty/Networking/TrueSync/Physics/Farseer/Common/PhysicsLogic/RealExplosion.cs
C#
mit
16,308
require "rails_helper" describe Linter::Shellcheck do it_behaves_like "a linter" do let(:lintable_files) { %w(foo.sh foo.zsh foo.bash) } let(:not_lintable_files) { %w(foo.js) } end describe "#file_review" do it "returns a saved and incomplete file review" do commit_file = build_commit_file(fil...
thoughtbot/hound
spec/models/linter/shellcheck_spec.rb
Ruby
mit
1,185
/* * Copyright 2015 Google Inc. All Rights Reserved. * 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...
lacker/universe
vr_webpack/webvr-polyfill/src/pose-predictor.js
JavaScript
mit
8,628
<?php namespace Kuxin\Helper; /** * Class Collect * * @package Kuxin\Helper * @author Pakey <pakey@qq.com> */ class Collect { /** * 获取内容 * * @param $data * @return bool|mixed|string */ public static function getContent($data, $header = [], $option = []) { if (is_str...
pakey/PTFrameWork
kuxin/helper/collect.php
PHP
mit
11,227
/** * JS for the player character. * * * * */ import * as Consts from './consts'; var leftLeg; var rightLeg; var leftArm; var rightArm; const BODY_HEIGHT = 5; const LEG_HEIGHT = 5; const HEAD_HEIGHT = Consts.BLOCK_WIDTH * (3/5); const SKIN_COLORS = [0xFADCAB, 0x9E7245, 0x4F3F2F]; const BASE_MAT = new THREE.MeshL...
Bjorkbat/tetratower
js/src/player.js
JavaScript
mit
6,258
blocklevel = ["blockquote", "div", "form", "p", "table", "video", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "details", "article", "header", "main"] def normalizeEnter(src): #Deletes all user defined for readability reason existing line breaks that are issues for the HTML output for elem in blocklevel: while src.fin...
ValorNaram/isl
inputchangers/002.py
Python
mit
1,044
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class DataQuestionnaire extends Model { protected $fillable = ['game_question', 'game_opponent_evaluation', 'study_evaluation']; /** * Relationship with parent DataParticipant. * * @return \Illuminate\Database\Eloquent\Rela...
mihaiconstantin/game-theory-tilburg
app/Models/DataQuestionnaire.php
PHP
mit
460
<?php namespace Tests\Map\Gazzetta; use PHPUnit\Framework\TestCase; use FFQP\Map\Gazzetta\GazzettaMapSince2013; class GazzettaMapSince2013Test extends TestCase { public function testExtractRows() { $map = new GazzettaMapSince2013(); $this->assertInternalType('int', 3); $rows = $map->e...
astronati/fantasy-football-quotations-parser
tests/Map/Gazzetta/GazzettaMapSince2013Test.php
PHP
mit
2,877
package com.github.kolandroid.kol.model.elements.basic; import com.github.kolandroid.kol.model.elements.interfaces.ModelGroup; import java.util.ArrayList; import java.util.Iterator; public class BasicGroup<E> implements ModelGroup<E> { /** * Autogenerated by eclipse. */ private static final long se...
Kasekopf/kolandroid
kol_base/src/main/java/com/github/kolandroid/kol/model/elements/basic/BasicGroup.java
Java
mit
1,193
#!/usr/bin/env node (function () { var DirectoryLayout = require('../lib/index.js'), program = require('commander'), options; program .version('1.0.2') .usage('[options] <path, ...>') .option('-g, --generate <path> <output-directory-layout-file-path>', 'Generate directo...
ApoorvSaxena/directory-layout
bin/index.js
JavaScript
mit
1,267
var class_snowflake_1_1_game_1_1_game_database = [ [ "GameDatabase", "class_snowflake_1_1_game_1_1_game_database.html#a2f09c1f7fe18beaf8be1447e541f4d68", null ], [ "AddGame", "class_snowflake_1_1_game_1_1_game_database.html#a859513bbac24328df5d3fe2e47dbc183", null ], [ "GetAllGames", "class_snowflake_1_1_ga...
SnowflakePowered/snowflakepowered.github.io
doc/html/class_snowflake_1_1_game_1_1_game_database.js
JavaScript
mit
745
package org.winterblade.minecraft.harmony.api.questing; import org.winterblade.minecraft.scripting.api.IScriptObjectDeserializer; import org.winterblade.minecraft.scripting.api.ScriptObjectDeserializer; /** * Created by Matt on 5/29/2016. */ public enum QuestStatus { INVALID, ACTIVE, LOCKED, COMPLETE, CLOSED; ...
legendblade/CraftingHarmonics
api/src/main/java/org/winterblade/minecraft/harmony/api/questing/QuestStatus.java
Java
mit
697
package leetcode11_20; /**Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try to do this in one pass. */ ...
Ernestyj/JStudy
src/main/java/leetcode11_20/RemoveNthFromEnd.java
Java
mit
1,586
package org.kohsuke.github; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.net.URLEncoder; import java.util.Collections; import java.util.Date; import java.util.Lis...
kohsuke/github-api
src/main/java/org/kohsuke/github/GHRelease.java
Java
mit
8,107
import cairo from gi.repository import Gtk from gi.repository import Gdk from pylsner import plugin class Window(Gtk.Window): def __init__(self): super(Window, self).__init__(skip_pager_hint=True, skip_taskbar_hint=True, ) ...
mrmrwat/pylsner
pylsner/gui.py
Python
mit
2,624
<?php $t = $a->getThing(); ?> <div class="linkitem item-flavour-<?php echo $a->getFlavour() ?>" id="link-item-<?php echo $a->getId(); ?>"> <?php if (isset($nopos)): ?> <span class="itempos">&nbsp;</span> <?php else: ?> <span class="itempos"><?php echo $pos; ?></span> <?php endif; ?> <div class="votebt...
sanjeevan/codelovely
apps/frontend/modules/article/templates/_article.php
PHP
mit
5,279
import { Physics as EightBittrPhysics } from "eightbittr"; import { FullScreenPokemon } from "../FullScreenPokemon"; import { Direction } from "./Constants"; import { Character, Grass, Actor } from "./Actors"; /** * Physics functions to move Actors around. */ export class Physics<Game extends FullScreenPokemon> ex...
FullScreenShenanigans/FullScreenPokemon
src/sections/Physics.ts
TypeScript
mit
4,204