repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
skylord73/acts_as_status_bar
spec/acts_as_status_bar_spec.rb
2161
require 'spec_helper' ######################################### #Defines a model class which implements the status bar gem. class MyClass < ActiveRecord::Base # Helper which makes all the status_bar functions available. acts_as_status_bar MAX = 100 def save end #Initializes an object and its r...
mit
jcrosen/gathering
test/app/use_cases/event/new_event_spec.rb
345
# -*- coding: UTF-8 -*- require 'app_test_helper' include UseCases describe NewEvent do # Merely testing that the new call works, not that the entity created is valid; see the CreateGathering test for this it "creates a new Event with default attributes" do response = NewEvent.new.exec response.event....
mit
govau/datavizkit
src/helpers/propsValidators.js
486
import PropTypes from 'prop-types'; export const validAxisType = PropTypes.oneOf([ 'category', 'linear', 'logarithmic', 'datetime' ]); export const validChartType = PropTypes.oneOf([ 'area', 'arearange', 'areaspline', 'areasplinerange', 'bar', 'boxplot', 'bubble', 'candlestick', 'column', ...
mit
saurabh6790/omnisys-lib
webnotes/install_lib/install.py
8275
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # called from wnf.py # lib/wnf.py --install [rootpassword] [dbname] [source] from __future__ import unicode_literals import os, sys, json import webnotes import webnotes.db import getpass from webnotes.model.db_s...
mit
ulink-el/ulink-el.github.com
_posts/2015-07-09-simple.md
1498
--- layout: post title: 纯粹 date: 2015-07-09 22:56:25 postid: post0709 categories: [Life] tags: [思考] comments: True published: True --- 毕业后就进入这个行业,两年了,也了解了这个行业。虽然技术水平没有多专业,但也算是一个技术人了,请允许我在这里以技术人自居。直到现在我还是保持这样妄自菲薄的心态,有时候觉得我的能力不比那些正经坐在技术岗位的人能力差,但正是由于这样的心态使得我不敢去承担更多的任务,然后领导就真的以为你不行。跑题了...这个以后再说。 <!--more--> 跟客户的某些负责人搞好...
mit
optoro/composable_fixtures
spec/support/active_record.rb
494
require 'pry' require 'active_record' ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" ActiveRecord::Schema.define do self.verbose = false create_table :orders, :force => true do |t| t.timestamps t.string :dummy end create_table :order_items, :force => true do |t| ...
mit
Situma/okos
application/views/home/categories.php
662
<div class="content"> <div class="categories"> <div class="container"> <?php foreach ($categories as $category):?> <div class="col-md-2 focus-grid"> <a href="<?php echo base_url()."index.php/middleware/categories/".$this->encrypt->encode($category->ProductCategoryID)?>"> <div class="...
mit
AlCalzone/iobroker.tradfri
build/lib/fix-objects.d.ts
228
/** * Fixes/updates/deletes existing adapter objects, * so they don't have to be deleted manually */ export declare function fixAdapterObjects(): Promise<void>; export declare function ensureInstanceObjects(): Promise<void>;
mit
fab2s/YaEtl
docs/exceptions.md
980
# Exceptions When an `Exception` is thrown during execution, NodalFlow catches it, perform few cleanup operations, including triggering the proper callback and then re-throws it as is if it's a `NodalFlowException` or else throws a `NodalFlowException` with the original exception set as previous. This means that Nodal...
mit
englercj/phaser
src/geom/line/index.js
1403
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var Line = require('./Line'); Line.Angle = require('./Angle'); Line.BresenhamPoints = require('./BresenhamPoints'); L...
mit
dennis/bzlauncher
src/mainframe_impl.h
3303
/* The MIT License Copyright (c) 2008 Dennis Møllegaard Pedersen <dennis@moellegaard.dk> 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 righ...
mit
dflynn15/flomo
server/routes/users.js
953
'use strict'; // User routes use users controller var users = require('../controllers/users'); module.exports = function(app, passport) { app.route('/logout') .get(users.signout); app.route('/users/me') .get(users.me); // Setting up the users api app.route('/register') .post(...
mit
yujakudo/glasspot
app/header.js
639
'use strict'; // Disable eval and Buffer. window.eval = global.eval = global.Buffer = function() { throw new Error("Can't use eval and Buffer."); } const Electron = require('electron') const IpcRenderer = Electron.ipcRenderer; var Urlin = null; // element of input text window.addEventListener('load', ()=> { ...
mit
timfulmer/jswla-advanced
app/app.js
1479
var roshamboApp = angular.module('roshamboApp', []), roshambo= [ { name:'Rock', src:'img/rock.png' }, { name:'Paper', src:'img/paper.png' }, { name:'Scissors', src:'img/scissors.png' } ], roshamboMap=roshambo.reduce(function...
mit
jaubourg/wires
test/units/common/dirRoutesOverride.dirunit.js
790
"use strict"; module.exports = { "wires.json": { ":path/": `./path-`, }, "path-test.js"() { module.exports = `parent`; }, "/child": { "wires-defaults.json": { ":path/": `./defaults-`, }, "wires.json": { ":path/": `./child-`, },...
mit
iTecAI/Stixai
Module/Stixai.py
1343
import random class ai: def __init__(self, actions, responses): self.IN = actions self.OUT = responses def get_act(self, action, valres): if action in self.IN: mList = {} for response in self.OUT: if self.IN[self.OUT.index(response)] == ...
mit
unosquare/tubular-boilerplate-csharp
Scripts/tubular/tubular-highcharts-bundle.js
21488
/** * highcharts-ng * @version v0.0.13 - 2016-10-04 * @link https://github.com/pablojim/highcharts-ng * @author Barry Fitzgerald <> * @license MIT License, http://www.opensource.org/licenses/MIT */ if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports){ module.export...
mit
darkbuck/Halide
python_bindings/src/PyBoundaryConditions.h
202
#ifndef HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H #define HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H void define_boundary_conditions(); #endif // HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H
mit
PioneerCode/pioneer-blog
src/app-admin/README.md
1025
# App Admin This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.8. ## Development server Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. ## Code scaffolding Run `ng generate...
mit
cuckata23/wurfl-data
data/mot_e398b_ver2.php
150
<?php return array ( 'id' => 'mot_e398b_ver2', 'fallback' => 'mot_e398_ver1', 'capabilities' => array ( 'model_name' => 'E398B', ), );
mit
nusmodifications/nusmods
website/src/actions/constants.ts
1288
/** moduleBank constants * */ import { ModuleCode } from '../types/modules'; export const FETCH_MODULE = 'FETCH_MODULE' as const; // Action to fetch modules export const FETCH_MODULE_LIST = 'FETCH_MODULE_LIST' as const; export const UPDATE_MODULE_TIMESTAMP = 'UPDATE_MODULE_TIMESTAMP' as const; export const REMOVE_LRU...
mit
binary42/OCI
orbsvcs/Sched/SchedEntry.h
20476
// -*- C++ -*- //============================================================================= /** * @file SchedEntry.h * * $Id: SchedEntry.h 935 2008-12-10 21:47:27Z mitza $ * * @author Chris Gill <cdgill@cs.wustl.edu> */ //============================================================================= #i...
mit
jandel/jandel.github.io
_posts/2016-5-19-nakl.md
990
--- layout: post title: Volvox Globator --- **Nakladatelství Volvox Glboator** Toto nevelké nakladatelství s magicky znějícím názvem vzniklo v roce 1990. Začínalo vydáváním časopisu Plivník, jež se orientoval na nekomerční prozaická a okrajová poetická díla. Svoji nekomerčnost si nakladatelství udrželo dodnes, kdy vy...
mit
manfredsteyer/angular-oauth2-oidc
docs-src/preserving-state.md
413
# Preserving State (like the Requested URL) When calling ``initImplicitFlow``, you can pass an optional state which could be the requested url: ```TypeScript this.oauthService.initImplicitFlow('http://www.myurl.com/x/y/z'); ``` After login succeeded, you can read this state: ```TypeScript this.oauthService.tryLogin...
mit
fyl080801/management
src/js/angular-ui-switch.min.js
743
angular.module("uiSwitch",[]).directive("switch",function(){return{restrict:"AE",replace:!0,transclude:!0,template:function(n,e){var s="";return s+="<span",s+=' class="switch'+(e['class']?" "+e['class']:"")+'"',s+=e.ngModel?' ng-click="'+e.disabled+" ? "+e.ngModel+" : "+e.ngModel+"=!"+e.ngModel+(e.ngChange?"; "+e.ngCha...
mit
missionpinball/mpf
mpf/platforms/opp/opp.py
53276
# pylint: disable-msg=too-many-lines """OPP Hardware interface. Contains the hardware interface and drivers for the Open Pinball Project platform hardware, including the solenoid, input, incandescent, and neopixel boards. """ import asyncio from collections import defaultdict from typing import Dict, List, Set, Union,...
mit
ensemblr/llvm-project-boilerplate
include/llvm/projects/test-suite/MultiSource/Benchmarks/Prolangs-C++/employ/hourly.h
2732
/* hourly.h -*- C++ -*- ** Include file for Hourly class ** ** COPYRIGHT (C) 1994 Bradley M. Kuhn ** ** Written : Bradley M. Kuhn Loyola College ** By ** ** Written : David W. Binkley Loy...
mit
SpongePowered/SpongeForge
src/main/java/org/spongepowered/mod/mixin/core/client/gui/GuiOptionsMixin_Forge.java
3185
/* * 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...
mit
JustinWingChungHui/electionleaflets
electionleaflets/apps/people/models.py
1603
from django.db import models from constituencies.models import Constituency from uk_political_parties.models import Party from elections.models import Election class Person(models.Model): name = models.CharField(blank=False, max_length=255) remote_id = models.CharField(blank=True, max_length=255, null=True)...
mit
abock/conservatorio
Conservatorio/Rdio/IsExtraAttribute.cs
1359
// // IsExtraAttribute.cs // // Author: // Aaron Bockover <aaron.bockover@gmail.com> // // Copyright 2015 Aaron Bockover. 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 ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.1/flocq/2.6.1.html
6651
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>flocq: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.0/lens/1.0.1+8.11.html
6860
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lens: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
mit
gubaojian/trylearn
cplus/1/go.cpp
386
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n= 20; label: cout << n << endl; n--; if(n > 0){ goto label; } std::cout << "endle" << '\n'; std::cout << "string euqals: " << (strcmp("hello", "hello")) << '\n'; if(strcmp("hello", "hello")...
mit
Nospamas/xgy.im
src/app/containers/App/style.css
150
.AppContainer { /* flex container */ display: flex; flex-direction: column; /* flex item */ flex: 1; /* style */ text-align: left; }
mit
ui-cs383/SSRS
rules/creature_rules.tex
1306
\section{Creature and Irate Locals} \setcounter{rc}{0} \begin{center} \begin{longtable}{| p{\first} | p{\second} | p{\third} | p{\fourth} |} \hline \textbf{\#}& \textbf{Rule Description}& \textbf{Reference(s)}& \textbf{Metric} \\ \hline \newrule{The description of any creature over...
mit
vamone/Slack-Notification-Desktop-App
Slack.Api/ProfileHelper.cs
850
using System; using System.Collections.Generic; using System.Linq; namespace Slack.Api { public static class ProfileHelper { public static User GetProfile(ICollection<User> users, string userId) { if (users == null) { throw new ArgumentNullException(name...
mit
MediaYouCanFeel/Azzenda
nodejs/node_modules/npm/node_modules/read-package-json/node_modules/json-parse-helpfulerror/node_modules/jju/test/test_parse.js
4418
var assert = require('assert') var parse = require('../').parse function addTest(arg, bulk) { function fn_json5() { //console.log('testing: ', arg) try { var x = parse(arg) } catch(err) { x = 'fail' } try { var z = eval('(function(){"use strict"\nreturn ('+String(arg)+'\n)\n})()...
mit
kmcloutier/synapse
src/com/integpg/synapse/actions/CompositeAction.java
998
package com.integpg.synapse.actions; import com.integpg.logger.FileLogger; import java.io.IOException; import java.util.Json; public class CompositeAction extends Action { private String[] _actions; public CompositeAction(Json json) { _actions = (String[]) json.get("Actions"); ActionHa...
mit
Idoneus/buildbot
buildbot-core/src/main/java/be/idoneus/hipchat/buildbot/hipchat/server/Paths.java
305
package be.idoneus.hipchat.buildbot.hipchat.server; public class Paths { public static String PATH_CAPABILITIES = ""; public static String PATH_INSTALL = "install"; public static String PATH_WEBHOOK_ROOM_MESSAGE = "webhooks/room_message"; public static String PATH_GLANCES = "glances"; }
mit
ismailoglu/RT-analyzer
public/modules/experiment/directives/biologicalReplicatesGroups/biologicalReplicatesGroups.directive.html
4300
<h3>Biological Replicates Groups</h3> <hr> <form data-ng-submit="biologicalReplicatesGroups.experiment.metadata.biologicalReplicatesGroups.add(biologicalReplicatesGroups.new)" > <div class=" form-group " > <label for="newBiologicalReplicatesGroup" ...
mit
MrWooJ/WJStore
WJStore.Domain/Validation/ValidationRule.cs
626
using WJStore.Domain.Interfaces.Validation; namespace WJStore.Domain.Validation { public class ValidationRule<TEntity> : IValidationRule<TEntity> { private readonly ISpecification<TEntity> _specificationRule; public ValidationRule(ISpecification<TEntity> specificationRule, string errorMessage...
mit
Ayi-/flask_HRmanager
app/templates/searchworker.html
20365
{% extends "index.html" %} {% from "macro.html" import error3list with context %} {% block errorFalshPositionFixed %} {% include 'flash_warning.html' %} {{ error3list(formWorker.errors.worker_name) }} {{ error3list(formWorker.errors.worker_sex) }} {{ error3list(formWorker.errors.worker_birthday) }} ...
mit
localnerve/grunt-html-snapshots
test/helpers/options.js
787
/** * options.js * * A test helper to detect which html-snapshots options to use * * phantomjs * If a global phantomjs is defined, decorates html-snapshots options to specify that global * In some test environments (travis), local phantomjs will not install if a global is found. */ const spawn = require("chil...
mit
DnDGen/CharacterGen
CharacterGen.Domain/Selectors/Selections/RacialFeatSelection.cs
2497
using CharacterGen.Feats; using CharacterGen.Abilities; using CharacterGen.Races; using System.Collections.Generic; using System.Linq; namespace CharacterGen.Domain.Selectors.Selections { internal class RacialFeatSelection { public string Feat { get; set; } public int MinimumHitDieRequirement ...
mit
rwaldron/es6draft
src/test/scripts/suite/objects/Promise/surface.js
1761
/* * Copyright (c) 2012-2014 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame, assertDataProperty, assertBuiltinConstructor, assertBuiltinPrototype, } = Assert; function assertFunctionProperty(obj...
mit
devMonkies/FSwebApp
bower_components/angular-material/modules/closure/backdrop/backdrop.js
2440
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc5-master-76c6299 */ goog.provide('ng.material.components.backdrop'); goog.require('ng.material.core'); /* * @ngdoc module * @name material.components.backdrop * @description Backdrop */ /** * @ngdoc directive * @na...
mit
malaonline/Server
server/lecturer/tests.py
4001
import json from app import models from django.test import Client, TestCase from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from django.core.urlresolvers import reverse # Create your tests here. class TestLecturerWeb(TestCase): def _init_test_lecturer(self): ...
mit
Cassio90/engine
Engine/TerrainClass.h
1238
#pragma once #ifndef _TERRAINCLASS_H_ #define _TERRAINCLASS_H_ #include <d3d11.h> #include <DirectXMath.h> #include <stdio.h> #include <math.h> #include "textureclass.h" const int TEXTURE_REPEAT = 16; class TerrainClass { private: struct VertexType { DirectX::XMFLOAT3 position; DirectX::XMFLOAT2 texture; Dir...
mit
LeeBamberTGC/Dark-Basic-Pro
DBProCompiler/DBPCompiler/DBMWriter.h
1138
// DBMWriter.h: interface for the CDBMWriter class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_DBMWRITER_H__C1FF6E3E_45BA_478C_88E2_D2CB3C061575__INCLUDED_) #define AFX_DBMWRITER_H__C1FF6E3E_45BA_478C_88E2_D2CB3C061575__INCLUDED_ #include "windows.h" #include "Str.h" c...
mit
lisabronwyn/jslibrary-macaw
docs/tailDoc.md
243
##Tail ###`tail (array)` - Gets all but the first element of array ###Arguments array (Array): The array to query. ###Returns (Array): Returns the slice of array. ###Example ```javascript bland.tail( [ 1, 2, 3, 4, 5 ] ) //=> 5 ```
mit
Oreades/PaymentPayplugBundle
OreadesPaymentPayplugBundle.php
150
<?php namespace Oreades\PaymentPayplugBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class OreadesPaymentPayplugBundle extends Bundle { }
mit
aoziczero/deprecated-libtc
srcs/tc.common/function.hpp
8097
#ifndef __tc_function_h__ #define __tc_function_h__ #include <atomic> namespace tc { #define TC_FUNCTION_TD_0 typename R #define TC_FUNCTION_TD_1 TC_FUNCTION_TD_0 , typename A1 #define TC_FUNCTION_TD_2 TC_FUNCTION_TD_1 , typename A2 #define TC_FUNCTION_TD_3 TC_FUNCTION_TD_2 , typename A3 #define TC_FUNCTION_TD_4 TC_...
mit
janvt/Ghost
test/unit/server/adapters/storage/LocalFileStorage.test.js
9369
const errors = require('@tryghost/errors'); const should = require('should'); const sinon = require('sinon'); const fs = require('fs-extra'); const moment = require('moment'); const Promise = require('bluebird'); const path = require('path'); const LocalFileStore = require('../../../../../core/server/adapters/storage/L...
mit
xiaoyaoyixiao/xiaoyaoyixiao.github.com
css/404_efcb2a0.css
944
html,body{height:100%;width:100%;margin:0;padding:0;overflow:hidden;font-family:'Bangers','Helvetica Neue','Arial'}.contanier{position:relative;width:100%;height:100%;background-image:url(../images/wallpaper.jpg);background-size:cover}.contanier .content{position:absolute;top:0;left:0;margin:0;width:100%;padding:200px ...
mit
mlaursen/react-md
packages/documentation/src/components/PackageSassDoc/SectionTitle.tsx
505
import { ReactElement } from "react"; import Heading from "components/Heading"; import styles from "./PackageSassDoc.module.scss"; export interface SectionTitleProps { packageName: string; type: "Variables" | "Functions" | "Mixins"; } export default function SectionTitle({ packageName, type, }: SectionTitle...
mit
macsonGit/macson
src/Drufony/CoreBundle/Resources/public/caprese/version1.0.1/ajax/recomended-page2.html
5269
<li class="item"> <a href="product.html" class="pic"> <span class="active"><em><img src="demo/products/m6-1.png" alt=""></em></span> <span><em><img src="demo/products/m6-2.png" alt=""></em></span> </a> <div class="color"> <span class="active" style="background:#92b8b2"...
mit
kijisky/zabbix_templates
Eltex-smg1016M/readme.md
404
template for monitoring Eltex SMG1016M ip-ats gate contains: * 15 items * 1 discovery rules (E1 channels) Items: * CPU * temperature * Fan Speed * Power Unit Status * Each E1 channel: ** status ** Link state ** Phy state ** Rx Count ** Tx Count ** Free Channels ### Installation * configure SNMP on eltex gateway *...
mit
DominikDary/java8-training
presentation/java8_lambdas.tex
11058
% % Adobe Systems Engineering GmbH - 2014 % Erhan Bagdemir <bagdemir@adobe.com> % \documentclass{beamer} % package declerations \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{listings} \lstset{ language=Java, tabsize=4, breaklines=true, breakatwhitespace=true, escape...
mit
yogsototh/stackage
Stackage/BuildPlan.hs
5250
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeSynonymInstances #-} module Stackage.BuildPlan ( readBuildPlan , writeBuildPlan ) where import qualified Data.Map as Map import qualified Data.Set as Set import Distribution.Text (display, sim...
mit
astromechio/astrohub
README.md
3188
# AstroHub AstroHub is an in-memory request-response multiplexer for [micro]service oriented applications ## Description AstroHub is a service meant to sit between your "level 1" API servers or load balancers and your microservices. It allows services to communicate with one another through a centralized hub. This i...
mit
clayfish/printful4j
client/src/main/java/in/clayfish/printful/models/ShippingRequest.java
1115
package in.clayfish.printful.models; import java.io.Serializable; import java.util.List; import in.clayfish.printful.models.info.AddressInfo; import in.clayfish.printful.models.info.ItemInfo; /** * @author shuklaalok7 * @since 24/12/2016 */ public class ShippingRequest implements Serializable { /** * Re...
mit
bruderstein/unexpected-react
src/assertions/AssertionGenerator.js
22599
import UnexpectedHtmlLike from 'unexpected-htmllike'; import React from 'react'; import REACT_EVENT_NAMES from '../reactEventNames'; const PENDING_TEST_EVENT_TYPE = { dummy: 'Dummy object to identify a pending event on the test renderer' }; function getDefaultOptions(flags) { return { diffWrappers: flags.exactl...
mit
duthied/Free-Friendika
view/theme/dispy/style.css
29042
body { margin: 0px; padding: 0px; font-family: freesans,helvetica,arial,clean,sans-serif; font-size: 16px; } img { border: 0 none; } a { color: #3465a4; text-decoration: none; margin-bottom:1px;} a:hover { color: #729fcf; padding-bottom: 0px; border-bottom: 1px dotted #729fcf;} .required { display: inline; colo...
mit
ARCANEDEV/Stripe
tests/StripeObjectTest.php
4991
<?php namespace Arcanedev\Stripe\Tests; use Arcanedev\Stripe\StripeObject; /** * Class StripeObjectTest * * @package Arcanedev\Stripe\Tests * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ class StripeObjectTest extends StripeTestCase { /* ------------------------------------------------------------...
mit
chanzuckerberg/idseq-web
db/migrate/20181113172609_make_dag_json_long_text.rb
133
class MakeDagJsonLongText < ActiveRecord::Migration[5.1] def change change_column :phylo_trees, :dag_json, :longtext end end
mit
loveencounterflow/timetable
lib/scratch/test-fast-csv.js
2430
// Generated by CoffeeScript 1.7.1 (function() { var $, CSV, ES, TEXT, TRM, TYPES, alert, badge, create_readstream, debug, echo, help, info, log, njs_fs, rainbow, route, rpr, urge, warn, whisper; njs_fs = require('fs'); TYPES = require('coffeenode-types'); TEXT = require('coffeenode-text'); TRM = require(...
mit
hatimeria/HatimeriaExtJS
docs/source/FormHandler.html
2867
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="t...
mit
brainfoolong/rcon-web-admin
src/steamapi.js
3790
"use strict"; var request = require(__dirname + "/request"); var db = require(__dirname + "/db"); /** * Steam utils */ var steamapi = {}; /** * Request to our api * @param {string} type * @param {string[]} ids * @param {function} callback */ steamapi.request = function (type, ids, callback) { if (!ids.len...
mit
exildev/webpage
exile_ui/static/404/js/index.js
10479
//THREEJS RELATED VARIABLES var scene, camera, fieldOfView, aspectRatio, nearPlane, farPlane, gobalLight, shadowLight, backLight, renderer, container, controls; //SCREEN & MOUSE VARIABLES var HEIGHT, WIDTH, windowHalfX, windowHalfY, mousePos = { x: 0, y: 0 }, oldMousePos = {x:0, y:0}, ...
mit
JWT-OSS/sfJwtJsonApiPlugin
lib/JsonApi/Http/Client/Zend.class.php
3036
<?php /** * Copyright (c) 2011 J. Walter Thompson dba JWT * * 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, ...
mit
Palethorn/Yeah
docs/class_redis_cache_test.js
796
var class_redis_cache_test = [ [ "__construct", "class_redis_cache_test.html#ae22c12eb0d136f444b6c9c0735f70382", null ], [ "testArray", "class_redis_cache_test.html#a76100cea2dba0b01bfffb70a193dfb9f", null ], [ "testGet", "class_redis_cache_test.html#afb35249bbbb21b7eac20b12d6f5a8739", null ], [ "testHa...
mit
duality-solutions/Sequence
src/qt/sequenceunits.h
4663
// Copyright (c) 2009-2019 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Developers // Copyright (c) 2016-2019 Duality Blockchain Solutions Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SEQUENCE_QT...
mit
codaxy/employee-directory-demo
client/app/index.js
755
import { Widget, startAppLoop, Url, History } from 'cx/ui'; import { Timing, Debug } from 'cx/util'; import { Store } from 'cx/data'; import Routes from './routes'; import 'whatwg-fetch'; import "./index.scss"; let stop; const store = new Store(); if(module.hot) { // accept itself module.hot.accept(); // re...
mit
naomichi-y/ecs_deployer
lib/ecs_deployer/cli.rb
2077
require 'thor' module EcsDeployer class CLI < Thor class_option :profile, type: :string class_option :region, type: :string no_commands do def prepare @aws_options = {} @aws_options[:profile] = options[:profile] if options[:profile] @aws_options[:region] = options[:region] ...
mit
Critical-Impact/ffrpg-gen
django/settings/dev.py
650
from settings.common import Common class Dev(Common): DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'ffrpg.sql', # Or path to database file if using sqlite3. #...
mit
FSource/FDesign-Document
doxygen/output/html/struct_fgz_file_header-members.html
5775
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
mit
unbounce/iidy
CODE_OF_CONDUCT.md
3353
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex ch...
mit
it-workshop/caroline
core/json_matrix_helpers.h
1561
// Copyright (c) 2014 The Caroline authors. All rights reserved. // Use of this source file is governed by a MIT license that can be found in the // LICENSE file. /// @author Mlodik Mikhail <mlodik_m@mail.ru> #ifndef CORE_JSON_MATRIX_HELPERS_H_ #define CORE_JSON_MATRIX_HELPERS_H_ #include "json/value.h" #include "ope...
mit
thomasteoh/thomasteoh.github.io
_posts/2015-03-20-namecheap-and-about-me.md
3137
--- layout: post title: Namecheap's free .me student promotion, with about.me premium for a year comments: true category: Technology description: Free domain names are always good, but what about the other things that come with Namecheap's student promotion? --- It seems that <a href="http://www.namecheap.com">Namech...
mit
domtancredi/coinbase-api-expressionengine-module
coinbase_api/upd.coinbase_api.php
1988
<?php if (! defined('BASEPATH')) exit('Invalid file request'); if (! defined('PATH_THIRD')) define('PATH_THIRD', EE_APPPATH.'third_party/'); require_once PATH_THIRD.'coinbase_api/config.php'; /** * Coinbase API Update Class * * @package Coinbase * @author Dom Tancredi <dom@domandtom.com> * @copyright Copyr...
mit
pgorecki/visearch
projects/clustering/src/pl/edu/uwm/wmii/visearch/clustering/KMeans.java
12415
package pl.edu.uwm.wmii.visearch.clustering; /* * * Z linii poleceń * /usr/local/mahout/bin/mahout kmeans -i kmeans/data1/in -c kmeans/data1/cl -o kmeans/data1/out -x 10 -k 2 -ow -cl * opcja -ow nadpisuje katalog wyjściowy (nie trzeba ręcznie kasować) * opcja -cl generuje katalog clusteredPoints, zawierający...
mit
cmaciasg/test
application/libraries/gateways/Authorize_sim_gateway.php
4944
<?php defined('BASEPATH') or exit('No direct script access allowed'); use Omnipay\Omnipay; class Authorize_sim_gateway extends App_gateway { public function __construct() { /** * Call App_gateway __construct function */ parent::__construct(); /** * REQUIRED ...
mit
17twenty/etl
test/test_hash.cpp
4863
/****************************************************************************** The MIT License(MIT) Embedded Template Library. Copyright(c) 2014 jwellbelove 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 th...
mit
BluewireTechnologies/cassette
src/Cassette/AssetSerializer.cs
1634
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Xml.Linq; namespace Cassette { class AssetSerializer : IBundleVisitor { readonly XElement container; public AssetSerializer(XElement container) { this.c...
mit
lightarrow47/yossarian-bot
plugins/google_search.rb
1278
# google_search.rb # Author: William Woodruff # ------------------------ # A Cinch plugin that provides Google interaction for yossarian-bot. # ------------------------ # This code is licensed by William Woodruff under the MIT License. # http://opensource.org/licenses/MIT require 'json' require 'open-uri' requ...
mit
maartenlterpstra/GeoWeb-FrontEnd
src/containers/TriggersContainer.spec.js
474
import React from 'react'; import { default as TriggersContainer } from './TriggersContainer'; import { mount } from 'enzyme'; const emptyDispatch = () => null; const emptyActions = { setGeoJSON: () => null }; describe('(Container) TriggersContainer', () => { it('Renders a TriggersContainer', () => { const _com...
mit
grgr/pageflow
app/models/pageflow/entry_duplicate.rb
973
module Pageflow class EntryDuplicate < Struct.new(:original_entry) def create! create_entry copy_draft copy_memberships new_entry end def self.of(entry) new(entry) end private attr_reader :new_entry def create_entry @new_entry = Entry.create!(new_a...
mit
donaldinou/frontend
src/Viteloge/CoreBundle/Resources/descriptions/84148.html
1678
<div class="commune_descr limited"> <p> Villes-sur-Auzon est une commune localisée dans le département de Vaucluse en Provence-Alpes-Côte d'Azur. Elle totalisait 1&nbsp;221 habitants en 2008.</p> <p>Le nombre d'habitations, à Villes-sur-Auzon, était réparti en 2011 en 107 appartements et 697 maisons soit un ma...
mit
latik/yii2-fancybox
README.md
1738
yii2-fancybox ============= fancyBox is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages. http://fancyapps.com/fancybox/ Installation ------------ The preferred way to install this extension is through [composer](http://getcomposer.org...
mit
piterlin/piterlin.github.io
doc/spring4.3.3-docs/javadoc-api/org/springframework/scripting/jruby/package-tree.html
7374
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_101) on Mon Sep 19 15:00:48 UTC 2016 --> <title>org.springframework.scripting.jruby Class Hierarchy (Spring Framework 4.3.3.RELEASE API)</title...
mit
topliceanu/learn
go/interview/codility/7_3_fish/main_test.go
865
package main import ( "testing" ) /* 1. imagine the usual scenario 2. identify general edge cases 3. identify edge cases specific on the implementation */ func TestSolution(t *testing.T) { for i, tc := range []struct{ A, B []int expected int }{ // their example {[]int{4, 3, 2, 1, 5}, []int{0, 1, 0, 0, 0},...
mit
tomazy/page_object_on_demand
spec/spec_helper.rb
91
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'page_object_on_demand'
mit
dyunas/Stdnt-Assmnt
application/modules/Cashier/models/Student_Records/Student_records_model.php
4725
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Student_records_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_stud_assessment($stud_id, $course, $stud_year, $semester, $scheme) { $array = array('stud_id' => $stud_id, 'st...
mit
riki343/main
src/Main/MainBundle/Entity/UserRepository.php
1615
<?php namespace Main\MainBundle\Entity; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; use Doctrine\...
mit
himanshusingh2407/train-status-IVR
assets_files/media-query.css
1751
@media screen and (max-width: 768px) { .fh5co-nav { padding: 20px 0; } .fh5co-nav #fh5co-logo { margin-bottom: 0; } .fh5co-nav .menu-1 { display: none; } .fh5co-cover { height: 100vh; } .fh5co-cover .display-t, .fh5co-cover .display-tc { height: 600px; }...
mit
yext/revel
revel/rev.go
2397
// The command line tool for running Revel apps. package main import ( "flag" "fmt" "io" "os" "strings" "text/template" ) // Cribbed from the genius organization of the "go" command. type Command struct { Run func(args []string) UsageLine, Short, Long string } func (cmd *Command) Name() st...
mit
mystycs/My-Favorite-Taco-Joint
config/routes.rb
1900
Rails.application.routes.draw do root 'application#index' # resources :mylist, defaults: { format: :json } resources :mylist, only: [:show, :index, :create], param: :res_id, defaults: { format: :json } resources :mylist, only: [:destroy], param: :res_id # resources :mylist, param: :res_id, defaults: { form...
mit
SabreOSS/conf4j
conf4j-core/src/test/java/com/sabre/oss/conf4j/converter/OffsetDateTimeConverterTest.java
8201
/* * MIT License * * Copyright 2017-2018 Sabre GLBL Inc. * * 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,...
mit
OfficeDev/PnP-WOPI
com.microsoft.dx.officewopi/Utils/WopiUtil.cs
16313
using com.microsoft.dx.officewopi.Models; using com.microsoft.dx.officewopi.Models.Wopi; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net.Http; using System.Runtime.Caching; using System.Security.Cryptography; using System.Text; using System.Threading.Task...
mit
appsignal/appsignal-docs
source/assets/javascripts/navigation_store.js
377
window.NavigationStore = function() { function isSet(menu) { return localStorage["navigation_" + menu] !== undefined; } function fetch(menu) { return localStorage["navigation_" + menu] == "true" || false; } function set(menu, value) { localStorage["navigation_" + menu] = value; } return { ...
mit