code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
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...
skylord73/acts_as_status_bar
spec/acts_as_status_bar_spec.rb
Ruby
mit
2,161
# -*- 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....
jcrosen/gathering
test/app/use_cases/event/new_event_spec.rb
Ruby
mit
345
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', ...
govau/datavizkit
src/helpers/propsValidators.js
JavaScript
mit
486
# 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...
saurabh6790/omnisys-lib
webnotes/install_lib/install.py
Python
mit
8,275
--- layout: post title: 纯粹 date: 2015-07-09 22:56:25 postid: post0709 categories: [Life] tags: [思考] comments: True published: True --- 毕业后就进入这个行业,两年了,也了解了这个行业。虽然技术水平没有多专业,但也算是一个技术人了,请允许我在这里以技术人自居。直到现在我还是保持这样妄自菲薄的心态,有时候觉得我的能力不比那些正经坐在技术岗位的人能力差,但正是由于这样的心态使得我不敢去承担更多的任务,然后领导就真的以为你不行。跑题了...这个以后再说。 <!--more--> 跟客户的某些负责人搞好...
ulink-el/ulink-el.github.com
_posts/2015-07-09-simple.md
Markdown
mit
1,498
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| ...
optoro/composable_fixtures
spec/support/active_record.rb
Ruby
mit
494
<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="...
Situma/okos
application/views/home/categories.php
PHP
mit
662
/** * 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>;
AlCalzone/iobroker.tradfri
build/lib/fix-objects.d.ts
TypeScript
mit
228
# 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...
fab2s/YaEtl
docs/exceptions.md
Markdown
mit
980
/** * @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...
englercj/phaser
src/geom/line/index.js
JavaScript
mit
1,403
/* 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...
dennis/bzlauncher
src/mainframe_impl.h
C
mit
3,303
'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(...
dflynn15/flomo
server/routes/users.js
JavaScript
mit
953
'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', ()=> { ...
yujakudo/glasspot
app/header.js
JavaScript
mit
639
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...
timfulmer/jswla-advanced
app/app.js
JavaScript
mit
1,479
"use strict"; module.exports = { "wires.json": { ":path/": `./path-`, }, "path-test.js"() { module.exports = `parent`; }, "/child": { "wires-defaults.json": { ":path/": `./defaults-`, }, "wires.json": { ":path/": `./child-`, },...
jaubourg/wires
test/units/common/dirRoutesOverride.dirunit.js
JavaScript
mit
790
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)] == ...
iTecAI/Stixai
Module/Stixai.py
Python
mit
1,343
/** * 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...
unosquare/tubular-boilerplate-csharp
Scripts/tubular/tubular-highcharts-bundle.js
JavaScript
mit
21,488
#ifndef HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H #define HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H void define_boundary_conditions(); #endif // HALIDE_PYTHON_BINDINGS_PYBOUNDARYCONDITIONS_H
darkbuck/Halide
python_bindings/src/PyBoundaryConditions.h
C
mit
202
# 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...
PioneerCode/pioneer-blog
src/app-admin/README.md
Markdown
mit
1,025
<?php return array ( 'id' => 'mot_e398b_ver2', 'fallback' => 'mot_e398_ver1', 'capabilities' => array ( 'model_name' => 'E398B', ), );
cuckata23/wurfl-data
data/mot_e398b_ver2.php
PHP
mit
150
/** 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...
nusmodifications/nusmods
website/src/actions/constants.ts
TypeScript
mit
1,288
// -*- C++ -*- //============================================================================= /** * @file SchedEntry.h * * $Id: SchedEntry.h 935 2008-12-10 21:47:27Z mitza $ * * @author Chris Gill <cdgill@cs.wustl.edu> */ //============================================================================= #i...
binary42/OCI
orbsvcs/Sched/SchedEntry.h
C
mit
20,476
--- 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...
jandel/jandel.github.io
_posts/2016-5-19-nakl.md
Markdown
mit
990
# 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...
manfredsteyer/angular-oauth2-oidc
docs-src/preserving-state.md
Markdown
mit
413
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...
fyl080801/management
src/js/angular-ui-switch.min.js
JavaScript
mit
743
# 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,...
missionpinball/mpf
mpf/platforms/opp/opp.py
Python
mit
53,276
/* 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...
ensemblr/llvm-project-boilerplate
include/llvm/projects/test-suite/MultiSource/Benchmarks/Prolangs-C++/employ/hourly.h
C
mit
2,732
/* * 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...
SpongePowered/SpongeForge
src/main/java/org/spongepowered/mod/mixin/core/client/gui/GuiOptionsMixin_Forge.java
Java
mit
3,185
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)...
JustinWingChungHui/electionleaflets
electionleaflets/apps/people/models.py
Python
mit
1,603
// // 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 ...
abock/conservatorio
Conservatorio/Rdio/IsExtraAttribute.cs
C#
mit
1,359
<!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" ...
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
HTML
mit
6,651
<!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...
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
HTML
mit
6,860
#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")...
gubaojian/trylearn
cplus/1/go.cpp
C++
mit
386
.AppContainer { /* flex container */ display: flex; flex-direction: column; /* flex item */ flex: 1; /* style */ text-align: left; }
Nospamas/xgy.im
src/app/containers/App/style.css
CSS
mit
150
\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...
ui-cs383/SSRS
rules/creature_rules.tex
TeX
mit
1,306
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...
vamone/Slack-Notification-Desktop-App
Slack.Api/ProfileHelper.cs
C#
mit
850
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})()...
MediaYouCanFeel/Azzenda
nodejs/node_modules/npm/node_modules/read-package-json/node_modules/json-parse-helpfulerror/node_modules/jju/test/test_parse.js
JavaScript
mit
4,418
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...
kmcloutier/synapse
src/com/integpg/synapse/actions/CompositeAction.java
Java
mit
998
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"; }
Idoneus/buildbot
buildbot-core/src/main/java/be/idoneus/hipchat/buildbot/hipchat/server/Paths.java
Java
mit
305
<h3>Biological Replicates Groups</h3> <hr> <form data-ng-submit="biologicalReplicatesGroups.experiment.metadata.biologicalReplicatesGroups.add(biologicalReplicatesGroups.new)" > <div class=" form-group " > <label for="newBiologicalReplicatesGroup" ...
ismailoglu/RT-analyzer
public/modules/experiment/directives/biologicalReplicatesGroups/biologicalReplicatesGroups.directive.html
HTML
mit
4,300
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...
MrWooJ/WJStore
WJStore.Domain/Validation/ValidationRule.cs
C#
mit
626
{% 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) }} ...
Ayi-/flask_HRmanager
app/templates/searchworker.html
HTML
mit
20,365
/** * 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...
localnerve/grunt-html-snapshots
test/helpers/options.js
JavaScript
mit
787
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 ...
DnDGen/CharacterGen
CharacterGen.Domain/Selectors/Selections/RacialFeatSelection.cs
C#
mit
2,497
/* * 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...
rwaldron/es6draft
src/test/scripts/suite/objects/Promise/surface.js
JavaScript
mit
1,761
/*! * 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...
devMonkies/FSwebApp
bower_components/angular-material/modules/closure/backdrop/backdrop.js
JavaScript
mit
2,440
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): ...
malaonline/Server
server/lecturer/tests.py
Python
mit
4,001
#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...
Cassio90/engine
Engine/TerrainClass.h
C
mit
1,238
// 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...
LeeBamberTGC/Dark-Basic-Pro
DBProCompiler/DBPCompiler/DBMWriter.h
C
mit
1,138
##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 ```
lisabronwyn/jslibrary-macaw
docs/tailDoc.md
Markdown
mit
243
<?php namespace Oreades\PaymentPayplugBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class OreadesPaymentPayplugBundle extends Bundle { }
Oreades/PaymentPayplugBundle
OreadesPaymentPayplugBundle.php
PHP
mit
150
#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_...
aoziczero/deprecated-libtc
srcs/tc.common/function.hpp
C++
mit
8,097
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...
janvt/Ghost
test/unit/server/adapters/storage/LocalFileStorage.test.js
JavaScript
mit
9,369
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 ...
xiaoyaoyixiao/xiaoyaoyixiao.github.com
css/404_efcb2a0.css
CSS
mit
944
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...
mlaursen/react-md
packages/documentation/src/components/PackageSassDoc/SectionTitle.tsx
TypeScript
mit
505
<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"...
macsonGit/macson
src/Drufony/CoreBundle/Resources/public/caprese/version1.0.1/ajax/recomended-page2.html
HTML
mit
5,269
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 *...
kijisky/zabbix_templates
Eltex-smg1016M/readme.md
Markdown
mit
404
% % 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...
DominikDary/java8-training
presentation/java8_lambdas.tex
TeX
mit
11,058
{-# 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...
yogsototh/stackage
Stackage/BuildPlan.hs
Haskell
mit
5,250
# 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...
astromechio/astrohub
README.md
Markdown
mit
3,188
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...
clayfish/printful4j
client/src/main/java/in/clayfish/printful/models/ShippingRequest.java
Java
mit
1,115
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...
bruderstein/unexpected-react
src/assertions/AssertionGenerator.js
JavaScript
mit
22,599
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...
duthied/Free-Friendika
view/theme/dispy/style.css
CSS
mit
29,042
<?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 { /* ------------------------------------------------------------...
ARCANEDEV/Stripe
tests/StripeObjectTest.php
PHP
mit
4,991
class MakeDagJsonLongText < ActiveRecord::Migration[5.1] def change change_column :phylo_trees, :dag_json, :longtext end end
chanzuckerberg/idseq-web
db/migrate/20181113172609_make_dag_json_long_text.rb
Ruby
mit
133
// 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(...
loveencounterflow/timetable
lib/scratch/test-fast-csv.js
JavaScript
mit
2,430
<!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...
hatimeria/HatimeriaExtJS
docs/source/FormHandler.html
HTML
mit
2,867
"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...
brainfoolong/rcon-web-admin
src/steamapi.js
JavaScript
mit
3,790
//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}, ...
exildev/webpage
exile_ui/static/404/js/index.js
JavaScript
mit
10,479
<?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, ...
JWT-OSS/sfJwtJsonApiPlugin
lib/JsonApi/Http/Client/Zend.class.php
PHP
mit
3,036
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...
Palethorn/Yeah
docs/class_redis_cache_test.js
JavaScript
mit
796
// 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...
duality-solutions/Sequence
src/qt/sequenceunits.h
C
mit
4,663
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...
codaxy/employee-directory-demo
client/app/index.js
JavaScript
mit
755
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] ...
naomichi-y/ecs_deployer
lib/ecs_deployer/cli.rb
Ruby
mit
2,077
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. #...
Critical-Impact/ffrpg-gen
django/settings/dev.py
Python
mit
650
<!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...
FSource/FDesign-Document
doxygen/output/html/struct_fgz_file_header-members.html
HTML
mit
5,775
# 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...
unbounce/iidy
CODE_OF_CONDUCT.md
Markdown
mit
3,353
// 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...
it-workshop/caroline
core/json_matrix_helpers.h
C
mit
1,561
--- 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...
thomasteoh/thomasteoh.github.io
_posts/2015-03-20-namecheap-and-about-me.md
Markdown
mit
3,137
<?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...
domtancredi/coinbase-api-expressionengine-module
coinbase_api/upd.coinbase_api.php
PHP
mit
1,988
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...
pgorecki/visearch
projects/clustering/src/pl/edu/uwm/wmii/visearch/clustering/KMeans.java
Java
mit
12,415
<?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 ...
cmaciasg/test
application/libraries/gateways/Authorize_sim_gateway.php
PHP
mit
4,944
/****************************************************************************** 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...
17twenty/etl
test/test_hash.cpp
C++
mit
4,863
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...
BluewireTechnologies/cassette
src/Cassette/AssetSerializer.cs
C#
mit
1,634
# 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...
lightarrow47/yossarian-bot
plugins/google_search.rb
Ruby
mit
1,278
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...
maartenlterpstra/GeoWeb-FrontEnd
src/containers/TriggersContainer.spec.js
JavaScript
mit
474
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...
grgr/pageflow
app/models/pageflow/entry_duplicate.rb
Ruby
mit
973
<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...
donaldinou/frontend
src/Viteloge/CoreBundle/Resources/descriptions/84148.html
HTML
mit
1,678
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...
latik/yii2-fancybox
README.md
Markdown
mit
1,738
<!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...
piterlin/piterlin.github.io
doc/spring4.3.3-docs/javadoc-api/org/springframework/scripting/jruby/package-tree.html
HTML
mit
7,374
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},...
topliceanu/learn
go/interview/codility/7_3_fish/main_test.go
GO
mit
865
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'page_object_on_demand'
tomazy/page_object_on_demand
spec/spec_helper.rb
Ruby
mit
91
<?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...
dyunas/Stdnt-Assmnt
application/modules/Cashier/models/Student_Records/Student_records_model.php
PHP
mit
4,725
<?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\...
riki343/main
src/Main/MainBundle/Entity/UserRepository.php
PHP
mit
1,615
@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; }...
himanshusingh2407/train-status-IVR
assets_files/media-query.css
CSS
mit
1,751
// 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...
yext/revel
revel/rev.go
GO
mit
2,397
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...
mystycs/My-Favorite-Taco-Joint
config/routes.rb
Ruby
mit
1,900
/* * 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,...
SabreOSS/conf4j
conf4j-core/src/test/java/com/sabre/oss/conf4j/converter/OffsetDateTimeConverterTest.java
Java
mit
8,201
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...
OfficeDev/PnP-WOPI
com.microsoft.dx.officewopi/Utils/WopiUtil.cs
C#
mit
16,313
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 { ...
appsignal/appsignal-docs
source/assets/javascripts/navigation_store.js
JavaScript
mit
377