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 |
|---|---|---|---|---|---|
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
import "./layout.css"
import "./fonts.css"
import "./jame... | parisminton/james.da.ydrea.ms | src/components/layout.js | JavaScript | mit | 928 |
#include "GameAnims.h"
#include "gslib/Core/Core.h"
#include "gslib/Game/GameResources.h"
namespace
{
// Helper to easily build an AnimAsset in code
class AnimAssetBuilder
{
public:
typedef AnimAssetBuilder ThisType;
AnimAssetBuilder() : mpAnimAsset(0) { }
ThisType& CreateAndAdd(AnimAssetKey key)
{
/... | amaiorano/ZeldaDS | Game/ZeldaDS/arm9/source/gslib/Game/GameAnims.cpp | C++ | mit | 9,026 |
#include <cmath>
#include <cstring>
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <boost/format.hpp>
#include "../common/util.hpp"
using namespace std;
using namespace boost;
int main(int argc, char* argv[]) {
if (argc < 2) {
cout << format("Usage: %1% <star>") % argv[0]<< endl;
retur... | Preffer/learning-opengl | hexagram/main.cpp | C++ | mit | 3,982 |
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within... | nz-andy/electron-test | systemjs.config.js | JavaScript | mit | 1,529 |
import React,{ Component } from 'react'
import { {{ name }}List } from './list'
export { {{ name }}List }
| team4yf/yf-fpm-admin | src_template/index.js | JavaScript | mit | 107 |
import argparse
import io
import unittest
import mock
import time
from imagemounter.cli import AppendDictAction
class AppendDictActionTest(unittest.TestCase):
def test_with_comma(self):
parser = argparse.ArgumentParser()
parser.add_argument('--test', action=AppendDictAction)
self.assertD... | jdossett/imagemounter | tests/cli_test.py | Python | mit | 3,178 |
angular.module('Techtalk')
.factory('socket', function ($rootScope, config) {
if (typeof (io) != "undefined") {
var socket = io.connect(config.Urls.URLService, { reconnection: false });
return {
on: function (eventName, callback) {
socket.on(eventName, function () {
var a... | RafaSousa/techtalk-node | client/app/directives/main-directive.js | JavaScript | mit | 1,844 |
// Regular expression that matches all symbols with the `IDS_Binary_Operator` property as per Unicode v7.0.0:
/[\u2FF0\u2FF1\u2FF4-\u2FFB]/; | mathiasbynens/unicode-data | 7.0.0/properties/IDS_Binary_Operator-regex.js | JavaScript | mit | 140 |
# Import the necessary packages and modules
import matplotlib.pyplot as plt
import numpy as np
# Prepare the data
x = np.linspace(0, 10, 100)
# Plot the data
plt.plot(x, x, label='linear')
# Add a legend
plt.legend()
# Show the plot
plt.show()
print("done")
| vadim-ivlev/STUDY | coding/plot.py | Python | mit | 262 |
(function(){
console.log("Message");
})(); | curvecode/chrome-ext-js | app/helloworld/js/app.js | JavaScript | mit | 46 |
using CompartiMoss.BootCamp.Web.Services;
using Microsoft.AspNet.Mvc;
namespace CompartiMoss.BootCamp.Web.ViewComponents
{
public class ArticulosByAutor : ViewComponent
{
private IArticulos _service;
public ArticulosByAutor(IArticulos service)
{
_service = servi... | AdrianDiaz81/AzureBootCamp2016 | CompartiMoss.BootCamp/src/CompartiMoss.BootCamp.Web/ViewComponents/ArticulosByAutor.cs | C# | mit | 551 |
using System.Collections.ObjectModel;
// Copyright (c) 2017 Cyotek Ltd.
// http://mantissharp.net/
// Licensed under the MIT License. See LICENSE.txt for the full text.
// If you use this control in your applications, attribution, donations or contributions are welcome.
namespace MantisSharp
{
public class UserCo... | cyotek/MantisSharp | src/UserCollection.cs | C# | mit | 493 |
var express = require('express');
var morphine = require('./api');
var app = express();
// Mounts the rpc layer middleware. This will enable remote function calls
app.use(morphine.router);
// Serve static files in this folder
app.use('/', express.static(__dirname + '/'));
// Listen on port 3000
app.listen(3000, fu... | d-oliveros/isomorphine | examples/barebone/src/server.js | JavaScript | mit | 703 |
#!/usr/bin/env node
require('yargs')
.commandDir('cmd')
.demand(1)
.strict()
.help()
.argv;
| dobbydog/webpack-porter | cli.js | JavaScript | mit | 93 |
package main
import (
"fmt"
"github.com/oreans/virtualizersdk"
"io/ioutil"
"net/http"
)
func main() {
string1 := "This is string1"
virtualizersdk.Macro(virtualizersdk.TIGER_BLACK_START)
string2 := "This is string2"
string3 := string1 + string2
fmt.Println(string3)
resp, err := http.Get("http://google.com")
... | ryanskidmore/CodeVirtualizer-Go-Example | main.go | GO | mit | 624 |
<?php
include_once '../application/services/cases/test';
$model = new case_service();
$rs = $model->get_cases_num();
include_once ('global.php'); //调用数据库
include_once ('ofc/open-flash-chart.php'); //调用OFC库文件
//设置图表标题
$title = new title( '各区域单位场所数量分布图'.date('Y-m-d') );
$title->set_style("font-size:12px; font-we... | niuzz/ci | static/cases_data.php | PHP | mit | 1,585 |
class CreateRepoUsers < ActiveRecord::Migration
def change
create_table :repo_users do |t|
t.integer :user_id, :null => false
t.integer :repo_id, :null => false
t.timestamps
end
add_index :repo_users, [:user_id, :repo_id], :unique => true
end
end
| prashantrajan/gitstars-oss | db/migrate/20120813015611_create_repo_users.rb | Ruby | mit | 282 |
/*
* JDIVisitor
* Copyright (C) 2014 Adrian Herrera
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This... | adrianherrera/jdivisitor | src/main/java/org/jdivisitor/debugger/event/VisitableThreadStartEvent.java | Java | mit | 1,378 |
package com.limpoxe.fairy.core;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import com.limpoxe.... | limpoxe/Android-Plugin-Framework | FairyPlugin/src/main/java/com/limpoxe/fairy/core/PluginLoader.java | Java | mit | 8,547 |
/**
* @desc express config
* @author awwwesssooooome <chengpengcp9@gmail.com>
* @date 2015-09-21
*/
'use strict';
/**
* Module dependencies
*/
import express from 'express';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
import favicon from 'serve-favicon';
import compression fr... | playwolsey/Robin | config/express.js | JavaScript | mit | 1,492 |
<?php
/*
* This file is part of KoolKode Async.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace KoolKode\Async\Concurrent\Filesystem;
use ... | koolkode/async | src/Concurrent/Filesystem/PoolFilesystem.php | PHP | mit | 9,372 |
/***************************************************//**
* @file ProtocolFamilies.cpp
* @date February 2012
* @author Ocean Optics, Inc.
*
* This provides a way to get references to different kinds
* of features (e.g. spectrometer, TEC) generically.
*
* LICENSE:
*
* SeaBreeze Copyright (C) 2014, Ocean ... | ap--/python-seabreeze | src/libseabreeze/src/api/seabreezeapi/ProtocolFamilies.cpp | C++ | mit | 3,549 |
# frozen_string_literal: true
describe RuboCop::Cop::Rails::IndexTrue, :config do
subject(:cop) { described_class.new(config) }
let(:source) do
<<-RUBY
class ExampleMigration < ActiveRecord::Migration
def change
#{code}
end
end
RUBY
end
shared_examples :accepts d... | alexcstark/rubocop | spec/rubocop/cop/rails/index_true_spec.rb | Ruby | mit | 2,354 |
package br.com.casadocodigo.redis.capitulo4.exemplo02;
import redis.clients.jedis.Jedis;
public class DefinirTempoExpiracaoDeSessaoDoUsuario {
public static void main(String[] args) {
String codigoDoUsuario = "1962";
String chave = "usuario:" + codigoDoUsuario + ":sessao";
int trintaMinut... | rlazoti/exemplos-livro-redis | src/main/java/br/com/casadocodigo/redis/capitulo4/exemplo02/DefinirTempoExpiracaoDeSessaoDoUsuario.java | Java | mit | 508 |
<?php
/**
* Copyright (C) 2013 Emay Komarudin
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program i... | emayk/ics | src/Emayk/Ics/Repo/Factory/Order/Status.php | PHP | mit | 880 |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | lordmos/blink | Source/core/html/shadow/HTMLShadowElement.cpp | C++ | mit | 3,228 |
var Type = function(Bookshelf) {
return Bookshelf.Model.extend({
tableName: 'types',
model: function() {
return this.belongsTo('model');
}
});
};
module.exports = Type;
| ericclemmons/bookshelf-manager | test/models/type.js | JavaScript | mit | 193 |
package com.medallia.word2vec;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Iterables;
import com.google.common.primitives.Doubles;
import com.medallia.word2vec.util.Pair;
import java.nio.DoubleB... | thanhnguyen12/Word2Vec | src/main/java/com/medallia/word2vec/SearcherImpl.java | Java | mit | 5,469 |
using System;
namespace Synergy.Contracts.Requirements
{
public class BusinessRuleViolationException : Exception
{
public Business.Requirement Requirement { get; }
public BusinessRuleViolationException(string message, Business.Requirement requirement) : base(message)
{
thi... | synergy-software/synergy.framework | Contracts/Synergy.Contracts/Requirements/BusinessRuleViolationException.cs | C# | mit | 368 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sdl.Community.GroupShareKit.Helpers
{
public class ExpressionFieldValue
{
public string Name { get; set; }
public string Value { get; set; }
public string Opera... | sdl/groupsharekit.net | Sdl.Community.GroupShareKit/Helpers/ExpressionFieldValue.cs | C# | mit | 1,341 |
<?php
/*
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/
class Ess_M2ePro_Model_Magento_Quote_Store_Configurator
{
/** @var $_quote Mage_Sales_Model_Quote */
protected $_quote = null;
/** @var $proxy Ess_M2ePro_Model_Order_Proxy */
protecte... | portchris/NaturalRemedyCompany | src/app/code/community/Ess/M2ePro/Model/Magento/Quote/Store/Configurator.php | PHP | mit | 12,176 |
#!/usr/bin/env python
##################################################################
# Imports
from __future__ import print_function
from random import random
import codecs
import numpy as np
import sys
##################################################################
# Variables and Constants
ENCODING = "utf-8... | WladimirSidorenko/SentiLex | scripts/find_prj_line.py | Python | mit | 8,625 |
namespace PersistentPlanet
{
public class WindowFocusChangedEvent
{
public bool HasFocus { get; set; }
}
} | James226/persistent-planet | PersistentPlanet/WindowFocusChangedEvent.cs | C# | mit | 126 |
exports.BattleMovedex = {
//-----------------------------------------------------------------------------------------------
//Misc changes
//-----------------------------------------------------------------------------------------------
"shellsmash": {
inherit: true,
boosts: {
... | DreMZ/PS | mods/duskmod/moves.js | JavaScript | mit | 18,661 |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Workbench Author Name
|--------------------------------------------------------------------------
|
| When you create new packages via the Artisan "workbench" command your
| name is needed ... | Melindrea/mhcm | app/config/workbench.php | PHP | mit | 987 |
<?php
namespace WowzaRestApi;
class WowzaApplicationSettings
{
public $name;
public $modules = array();
public function __construct($object = null)
{
if (!is_null($object) && is_object($object)) {
$this->modules = array();
foreach ($object->modules->moduleList as $modul... | keyanmca/wowzarestapiclient | src/WowzaApplicationSettings.php | PHP | mit | 417 |
<?php
/*
* 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.
*/
/**
* Description of Stocks
*
* @author rjgodia
*/
class Stocks extends MY_Model
{
//put your code here
function __... | Rawrisaur/comp4711asn1 | application/models/Stocks.php | PHP | mit | 394 |
<?php
namespace ApiGateway;
use ApiGateway\ApiModel;
use ApiGateway\Config\BaseConfig;
use ApiGateway\Config\ArrayConfig;
use ApiGateway\ClassSerialize;
use ApiGateway\Constants;
use ApiGateway\Auth\Signature;
use ApiGateway\Http\HttpHelper;
use ApiGateway\Exception\ServerException;
/**
* Api Service
... | EDDYCJY/aliyun-api-gateway-sdk | src/ApiService.php | PHP | mit | 3,688 |
<?php
/**
* Carpus Friendly Password Generator.
*
* The Carpus Friendly Password Generator uses a quantitative typing effort model to generate secure
* passwords that are measurably easy-to-type (a.k.a. carpus friendly) on standard QWERTY keyboards.
* Typing effort of the generated passwords is calculated based on... | jnrbsn/cfpg | cfpg.php | PHP | mit | 11,278 |
package org.shkim.codility.lesson.countingelement;
public class FrogRiverOne
{
public static int solution(int X, int A[])
{
int step = X;
int temp[] = new int[step];
for (int i = 0; i < temp.length; i++)
{
temp[i] = i+1;
}
for (int i = 0; i < A.length; i++)
{
if (A[i] > X || temp[A[i]-1] != 0... | KimSiHun/codility | src/org/shkim/codility/lesson/countingelement/FrogRiverOne.java | Java | mit | 437 |
// Admin main
//
// This is the main execution loop of the admin panel. It provides basic
// configuration, routing, and default imports.
require.config({
paths: {
'jquery': 'lib/jquery-1.10.2.min',
'underscore': 'lib/underscore',
'backbone': 'lib/backbone',
'require-css': 'lib/require-css.min',
... | astex/peanuts.admin | static/main.js | JavaScript | mit | 2,817 |
package fr.loganbraga.hogwash.Generator;
public interface Generator {
public String generate();
}
| loganbraga/hogwash | src/main/java/fr/loganbraga/hogwash/Generator/Generator.java | Java | mit | 102 |
import _plotly_utils.basevalidators
class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self, plotly_name="arrayminussrc", parent_name="bar.error_y", **kwargs
):
super(ArrayminussrcValidator, self).__init__(
plotly_name=plotly_name,
pa... | plotly/plotly.py | packages/python/plotly/plotly/validators/bar/error_y/_arrayminussrc.py | Python | mit | 429 |
module ActiveRecord
class HasManyThroughAssociationNotFoundError < ActiveRecordError #:nodoc:
def initialize(owner_class_name, reflection)
super("Could not find the association #{reflection.options[:through].inspect} in model #{owner_class_name}")
end
end
class HasManyThroughAssociationPolymorphicE... | alphabetum/saasy | vendor/rails/activerecord/lib/active_record/associations.rb | Ruby | mit | 115,997 |
jest.mock("../../../NativeModules/GraphQLQueryCache")
import * as _cache from "../../../NativeModules/GraphQLQueryCache"
const cache: jest.Mocked<typeof _cache> = _cache as any
import { NetworkError } from "lib/utils/errors"
import { cacheMiddleware } from "../cacheMiddleware"
describe("cacheMiddleware", () => {
c... | artsy/emission | src/lib/relay/middlewares/__tests__/cacheMiddleware-tests.ts | TypeScript | mit | 5,547 |
<?php
// +----------------------------------------------------------------------
// | ShuipFCMS 帐户管理
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2014 http://www.shuipfcms.com, All rights reserved.
// +---------------------------------------------------------------... | rentianhua/tsf | shuipf/Application/Member/Controller/AccountController.class.php | PHP | mit | 6,831 |
//
// Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.8-b130911.1802
// Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine.
// Gene... | mcaliman/dochi | src/org/docbook/ns/docbook/Itemizedlist.java | Java | mit | 33,730 |
import angular from 'angular-fix';
import utils from '../other/utils';
export default formlyConfig;
// @ngInject
function formlyConfig(formlyUsabilityProvider, formlyErrorAndWarningsUrlPrefix, formlyApiCheck) {
const typeMap = {};
const templateWrappersMap = {};
const defaultWrapperName = 'default';
const _t... | kentcdodds/angular-formly | src/providers/formlyConfig.js | JavaScript | mit | 8,628 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... | leleuvilela/controlx | application/config/database.php | PHP | mit | 4,527 |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { HomeComponent as Home } from '../components';
import { ProtectedContainer } from '.';
class HomeContainer extends Component {
render () {
return (
<ProtectedContainer>
<Home user={this.props.user} />
</... | advantys/workflowgen-templates | integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/containers/HomeContainer.js | JavaScript | mit | 515 |
# encoding: utf-8
require 'spec_helper'
describe "Form I Past" do
context "regular past" do
it 'conjugates form I regular past' do
verb = Verb.new({root1: "ك", root2: "ت", root3: "ب", form: "1", tense: "past", pronoun: :she})
expect(verb.conjugate).to eq("كتبت")
end
it 'conjugates form I r... | awillborn/Arabic-Conjugator | spec/past_tense/formI_past_spec.rb | Ruby | mit | 6,446 |
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class MeiziItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
page_num = scrapy.Field()
img_url... | JMwill/wiki | notebook/tool/spider/meizi_spider/python_spider/meizi/meizi/items.py | Python | mit | 514 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2018_02_01
module Models
#
# Response for ListPeering API service call retrieves all peerings that
# belong to a... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-02-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb | Ruby | mit | 3,078 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#... | afcoin/afcoin | src/irc.cpp | C++ | mit | 10,514 |
package se.slackers.nobloat.jsonrpc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import se.slackers.nobloat.jsonrpc.annotation.JsonRpc;
import se.slackers.nobloat.jsonrpc.annotation.JsonRpcNamespace;
import se.slackers.nobloat.jsonrpc.model.MethodRegistration;
import se.slackers.nobloat.jsonrpc.protocol.J... | bysse/nobloat | jsonrpc-dispatch/src/main/java/se/slackers/nobloat/jsonrpc/MethodRegistryImpl.java | Java | mit | 3,875 |
package com.github.btrekkie.reductions.mario;
import java.util.Arrays;
import java.util.List;
import com.github.btrekkie.reductions.planar.Point;
/** A horizontal wire gadget for MarioProblem, as in IPlanarWireFactory.horizontalWire. */
public class MarioHorizontalWireGadget extends MarioGadget {
/** The height ... | btrekkie/reductions | src/com/github/btrekkie/reductions/mario/MarioHorizontalWireGadget.java | Java | mit | 1,661 |
<?php
/* TwigBundle:Exception:error.css.twig */
class __TwigTemplate_da96a27dc9be5c9fa346531d80544769230940a893c62a301473c8c8fba3e15e extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | symfony2forclient/CustomLoginAndResistration | app/cache/dev/twig/da/96/a27dc9be5c9fa346531d80544769230940a893c62a301473c8c8fba3e15e.php | PHP | mit | 1,979 |
""" Command to set maintenance status. """
from django.core.management.base import BaseCommand
import sys
import json
import os
BASE_DIR = os.path.dirname(__file__)
JSON_FILE = os.path.join(BASE_DIR, '../../maintenance_settings.json')
class Command(BaseCommand):
""" Set maintenance status """
@classmethod
... | mccricardo/django_maintenance | django_maintenance/management/commands/maintenance.py | Python | mit | 1,052 |
#ifndef JOHNPAUL_HPP_INCLUDED
#define JOHNPAUL_HPP_INCLUDED
void johnpaul (); // Prints "John, Paul, "
#endif /* ifndef JOHNPAUL_HPP_INCLUDED */
| CajetanP/code-learning | Build Systems/CommandLine/HelloBeatles/src/johnpaul/johnpaul.hpp | C++ | mit | 148 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Token.cs" company="KlusterKite">
// All rights reserved
// </copyright>
// <summary>
// The token response description
// </summary>
// ---------------------------------------... | KlusterKite/KlusterKite | KlusterKite.NodeManager/KlusterKite.NodeManager.Launcher/Token.cs | C# | mit | 1,449 |
// generated by Neptune Namespaces v4.x.x
// file: Art/Engine/Elements/ShapeChildren/index.js
(module.exports = require('./namespace'))
.addModules({
FillElement: require('./FillElement'),
OutlineElement: require('./OutlineElement')
}); | art-suite/art-engine | source/Art/Engine/Elements/ShapeChildren/index.js | JavaScript | mit | 245 |
'use strict';
// Setting up route
angular.module('users').config(['$stateProvider',
function ($stateProvider) {
// Users state routing
$stateProvider
.state('settings', {
abstract: true,
url: '/settings',
templateUrl: 'modules/users/client/views/settings/settings.client.view.htm... | dpxxdp/segue4 | modules/users/client/config/users.client.routes.js | JavaScript | mit | 2,704 |
using System;
using Xunit;
namespace HelloWorld
{
public class HelloWorldTests
{
[Theory]
[InlineData(12)]
[InlineData(13)]
[InlineData(14)]
[InlineData(15)]
[InlineData(16)]
[InlineData(17)]
[InlineData(18)]
[InlineData(19)]
[Inli... | PracticalTestDrivenDevelopment/Book-API | HelloWorld/HelloWorld/HelloWorldTests.cs | C# | mit | 1,633 |
require 'spec_helper'
describe Cms::User do
subject(:model) { Cms::User }
subject(:factory) { :ss_user }
it_behaves_like "mongoid#save"
it_behaves_like "mongoid#find"
end
| shakkun/ss-temp | spec/models/cms/user_spec.rb | Ruby | mit | 181 |
using Guitar32;
using Guitar32.Database;
using Guitar32.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechByte.Configs;
using TechByte.Values;
namespace TechByte.Architecture.Usecases
{
public class UCNewSystemUser : TechByte.Architecture.Beans.Accounts.Sy... | allenlinatoc/techbyte | TechByte/Architecture/Usecases/UCNewSystemUser.cs | C# | mit | 5,973 |
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using NaughtyAttributes;
public class ButtonPro : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler,IPointerExitHandler,IPointerDownHandler,IPointerUpHandler
{
public Graphic[] targetGraphics;
public Gra... | uniquecorn/dungeon-crossing | Assets/Scripts/ButtonPro.cs | C# | mit | 3,060 |
#region Copyright and License
/* @Copyright JONVON(NetCreditHub.COM) 2017. All rights reserved. - 8502090@qq.com */
#endregion
namespace NetCreditHub.Data
{
using Dependency;
using Environment;
public interface IZeroDatabaseFactory : ITransientDependency
{
IDatabase CreateDatabase();
... | netcredit/NetCreditHub | src/NetCreditHub.Zero/Data/IZeroDatabaseFactory.cs | C# | mit | 416 |
"""Functionality to interact with Google Cloud Platform.
"""
| chapmanb/bcbio-nextgen-vm | bcbiovm/gcp/__init__.py | Python | mit | 61 |
require_relative '../client'
module Spaceship
module ConnectAPI
class Client < Spaceship::Client
##
# Spaceship HTTP client for the App Store Connect API.
#
# This client is solely responsible for the making HTTP requests and
# parsing their responses. Parameters should be either na... | mgrebenets/fastlane | spaceship/lib/spaceship/connect_api/client.rb | Ruby | mit | 11,093 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | garethj-msft/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsPiRequest.cs | C# | mit | 1,849 |
MiniPos::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web s... | tolerantx/MiniPOS | config/environments/development.rb | Ruby | mit | 1,574 |
var raf = require('raf');
var createCaption = require('vendors/caption');
var glslify = require('glslify');
var windowSize = new THREE.Vector2(window.innerWidth, window.innerHeight);
var SwapRenderer = require('vendors/swapRenderer'), swapRenderer;
var velocityRenderer, pressureRenderer;
var Solver = require('./flu... | kenjiSpecial/webgl-sketch-dojo | sketches/theme/fluid/app00temp01/app.js | JavaScript | mit | 3,670 |
using System;
using System.Reflection;
namespace Eminent.CodeGenerator
{
/// <summary>
/// Factory class to create objects exposing IRemoteInterface
/// </summary>
public class RemoteLoaderFactory : MarshalByRefObject
{
private const BindingFlags bfi = BindingFlags.Instance | BindingFlags.Public | BindingFlags.... | EminentTechnology/CodeTorch | src/core/Eminent.CodeGenerator/RemoteLoaderFactory.cs | C# | mit | 1,301 |
module.exports = function() {
return {
connectionString : "mongodb://127.0.0.1:27017/mongolayer"
}
} | simpleviewinc/mongolayer | testing/config.js | JavaScript | mit | 108 |
#include "stdafx.h"
#include "Events.h"
#include "PoseEffect2PStartMan.h"
#include "ItemBoxItems.h"
#include "EmeraldSync.h"
#include "CharacterSync.h"
#include "AddHP.h"
#include "AddRings.h"
#include "Damage.h"
#include "OnStageChange.h"
#include "OnResult.h"
#include "Random.h"
#include "OnInput.h"
void nethax::e... | SonicFreak94/sa2-battle-network | sa2-battle-network/Events.cpp | C++ | mit | 827 |
module MiniRacer
VERSION = "0.1.12"
end
| kamillamagna/NMF_Tool | vendor/bundle/gems/mini_racer-0.1.12/lib/mini_racer/version.rb | Ruby | mit | 42 |
#region PDFsharp - A .NET library for processing PDF
//
// Authors:
// Stefan Lange
//
// Copyright (c) 2005-2016 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://sourceforge.net/projects/pdfsharp
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy... | jumpchain/jumpmaker | JumpMaker/PDFSharp/PdfSharp/Pdf/enums/PdfColorMode.cs | C# | mit | 1,855 |
package lateralview.net.m2xapiv2exampleapp.activities;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import org.json.JSONException;
import org.json.JSONObject;
import lateralview.net.attm2xapiv2.listen... | attm2x/m2x-android-test-app | app/src/main/java/lateralview/net/m2xapiv2exampleapp/activities/DistributionActivity.java | Java | mit | 4,951 |
'use strict';
const clone = require('../helpers/clone');
class SaveOptions {
constructor(obj) {
if (obj == null) {
return;
}
Object.assign(this, clone(obj));
}
}
module.exports = SaveOptions; | aguerny/LacquerTracker | node_modules/mongoose/lib/options/saveOptions.js | JavaScript | mit | 216 |
/*
* Xero Payroll AU
* This is the Xero Payroll API for orgs in Australia region.
*
* The version of the OpenAPI document: 2.2.4
* Contact: api@xero.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manuall... | SidneyAllen/Xero-Java | src/main/java/com/xero/models/payrollau/HomeAddress.java | Java | mit | 5,057 |
import React from 'react';
import ShiftKey from './ShiftKey';
import 'scss/vigenere.scss';
export default class VigenereKeys extends React.Component {
constructor(props) {
super(props);
this.state = {
keyword: ''
};
this.keywordHandler = this.keywordHandler.bind(this);
}
keywordHandler(ev... | pshrmn/cryptonite | src/components/tools/VigenereKeys.js | JavaScript | mit | 1,314 |
import * as React from 'react';
import ActiveButtons from '../active-buttons/ActiveButtons';
import { TextField, FlatButton } from 'material-ui';
import "./References.css";
import Styling from "../jobTheme";
class References extends React.Component<any, any>{
constructor(props: any) {
super(props);
... | TYLANDER/interspan | client/src/components/job-form/references/References.tsx | TypeScript | mit | 11,774 |
using System.Collections.Generic;
using System.Threading.Tasks;
using AzureStorage;
using Common;
using Core.Finance;
using Microsoft.WindowsAzure.Storage.Table;
namespace AzureRepositories.Finance
{
public class TraderBalanceEntity : TableEntity, ITraderBalance
{
public static string GeneratePartiti... | LykkeCity/MarketPlace | AzureRepositories/Finance/BalanceRepository.cs | C# | mit | 2,167 |
'use strict';
import UserNotificationConstants from '../constants/UserNotificationConstants';
import UserNotificationService from '../services/UserNotificationService';
const _initiateRequest = (type, data) => {
return {
'type': type,
'data': data
};
};
const _returnResponse = (type, data) => {
return {
'typ... | zdizzle6717/battle-comm | src/actions/UserNotificationActions.js | JavaScript | mit | 2,189 |
<?php
declare(strict_types=1);
namespace App\Command;
use App\Model\Page\PageRepository;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class AddPageCommand ex... | sustmi/fb-post-downloader | src/Command/AddPageCommand.php | PHP | mit | 1,246 |
<?php
/**
* This file is part of the Spryker Demoshop.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Zed\Collector\Business;
use Generated\Shared\Transfer\LocaleTransfer;
use Orm\Zed\Touch\Persistence\SpyTouchQuery;
use Spryker\Zed\Collec... | spryker/demoshop | src/Pyz/Zed/Collector/Business/CollectorFacadeInterface.php | PHP | mit | 7,206 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CM_CapitalName</source>
<translation>عن البلاك كوين</translation>
</message>
<message>
... | realspencerdupre/PoS_Sourcecoin | src/qt/locale/bitcoin_ar.ts | TypeScript | mit | 119,926 |
class RandBnb < Sinatra::Base
get '/signin' do
redirect '/sessions/new'
end
get '/sessions/new' do
erb :signin
end
post '/sessions' do
user = User.authenticate(params[:email], params[:password])
if user
session[:user_id] = user.id
session[:new_user] = false
redirect("/dash... | sultanhq/RAND-MakersBNB | app/controllers/session_controller.rb | Ruby | mit | 580 |
namespace ArchitectNow.ApiStarter.Api.Models.ViewModels
{
public class LoginResultVm
{
public string AuthToken { get; set; }
public UserVm CurrentUser { get; set; }
}
} | ArchitectNow/ArchitectNow.ApiStarter | src/ArchitectNow.ApiStarter.Api/Models/ViewModels/LoginResultVm.cs | C# | mit | 199 |
class ExpressionRelationshipType < ActiveRecord::Base
attr_accessible :name, :position, :definition, :url
acts_as_list
end
| nabeta/enju_root | app/models/expression_relationship_type.rb | Ruby | mit | 127 |
<?php
#############################################################################
# IMDBPHP (c) Giorgos Giagas & Itzchak Rehberg #
# written by Giorgos Giagas #
# extended & maintained by Itzchak Rehberg <izzysoft AT qumran DOT org> #
# ... | rnavarro/Movie-Magic | imdbphp2/imdb_budget.class.php | PHP | mit | 15,927 |
/*jshint node: true, eqnull: true*/
exports.purge = require('./lib/purge').AkamaiPurge; | patrickkettner/grunt-akamai-clear | node_modules/akamai/akamai.js | JavaScript | mit | 88 |
() => {
const [startDate, setStartDate] = useState(new Date());
let handleColor = (time) => {
return time.getHours() > 12 ? "text-success" : "text-error";
};
return (
<DatePicker
showTimeSelect
selected={startDate}
onChange={(date) => setStartDate(date)}
timeClassName={handleCo... | Hacker0x01/react-datepicker | docs-site/src/examples/customTimeClassName.js | JavaScript | mit | 340 |
'use strict';
var arg = require('../util').arg;
var oneDHeightmapFactory = require('../1d-heightmap');
var rng = require('../rng');
var random = rng.float;
var randomRange = rng.range;
var randomRangeInt = rng.rangeInt;
var randomSpacedIndexes = rng.space... | unstoppablecarl/1d-heightmap | src/key-indexes/index.js | JavaScript | mit | 11,619 |
namespace PaintShop.Models
{
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
public class ApplicationUser : IdentityUser
{
public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManag... | georgipyaramov/PaintShop | PaintShop/PaintShop.Models/ApplicationUser.cs | C# | mit | 693 |
package ruanmianbao.binetwork;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.text.SimpleDateFormat;
import java.util.Calendar;
... | flairyu/binetwork | src/ruanmianbao/binetwork/Main.java | Java | mit | 7,911 |
using Keeper.Warm;
using System;
using System.Collections.Generic;
namespace Keeper.Warm
{
public class QueryResult
{
private Machine machine;
private Variable[] variables;
public QueryResult(bool success, Variable[] variables, Machine machine)
{
this.Success = suc... | FacticiusVir/Warm | Keeper.Warm/QueryResult.cs | C# | mit | 3,572 |
using System;
using System.IO;
using System.Linq;
using SharpCompress.IO;
namespace SharpCompress.Common.SevenZip
{
internal class SevenZipFilePart : FilePart
{
private CompressionType? _type;
private readonly Stream _stream;
private readonly ArchiveDatabase _database;
interna... | adamhathcock/sharpcompress | src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs | C# | mit | 3,350 |
using System;
using System.Collections.Generic;
using Mailer.NET.Mailer.Rendering;
using Mailer.NET.Mailer.Transport;
using Mailer.NET.Mailer.Internal;
using Mailer.NET.Mailer.Response;
using System.Threading.Tasks;
namespace Mailer.NET.Mailer
{
public class Email
{
public AbstractTransport Transport ... | Inside-Sistemas/mailer.net | src/Mailer.NET/Mailer/Email.cs | C# | mit | 3,511 |
// <copyright file="ParsingTests.cs" company="MIT License">
// Licensed under the MIT License. See LICENSE file in the project root for license information.
// </copyright>
namespace SmallBasic.Tests.Compiler
{
using SmallBasic.Compiler;
using SmallBasic.Compiler.Diagnostics;
using Xunit;
public seale... | OmarTawfik/SuperBasic | Source/SmallBasic.Tests/Compiler/ParsingTests.cs | C# | mit | 11,842 |