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
/** * 编写一个 Conversions 对象,加入 inchesToCentimeters,gallonsToLiters 和 milesToKilometers 方法 */ object Conversions{ def inchesToSantimeters(value: Double) = value * 2.54 def gallonsToLiters(value: Double) = value * 3.78541178 def milesToKilometers(value: Double) = value * 1.609344 }
vernonzheng/scala-for-the-Impatient
src/Chapter06/exercise01.scala
Scala
mit
310
module Blorgh::Concerns::Models::Post extend ActiveSupport::Concern # 'included do' causes the included code to be evaluated in the # context where it is included (post.rb), rather than being # executed in the module's context (blorgh/concerns/models/post). included do attr_accessor :author_name bel...
juanortizthirdwave/ruby_guides_engine
lib/concerns/models/post.rb
Ruby
mit
638
import './index.css'; import React, {Component} from 'react'; import { postToggleDevice } from '../ajax'; export default class SocketDevice extends Component { constructor() { super(); this.state = {clicked: false, device: {}}; this.clicked = this.clicked.bind(this); } componentWi...
aspic/wemo-control
src/SocketDevice/index.js
JavaScript
mit
1,491
package com.jsoniter.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) @Retention(RetentionPol...
json-iterator/java
src/main/java/com/jsoniter/annotation/JsonIgnore.java
Java
mit
452
var config = { container: "#basic-example", connectors: { type: 'step' }, node: { HTMLclass: 'nodeExample1' } }, ceo = { text: { name: "Mark Hill", title: "Chief executive officer", ...
fperucic/treant-js
examples/basic-example/basic-example.js
JavaScript
mit
6,298
require 'spec_helper' describe User do before do @user = User.new(name: "Example User", email: "user@example.com", password: "foobar800", password_confirmation: "foobar800") end subject {@user} it {should respond_to(:name)} it {should respond_to(:email)} it {should respond_to(:password_digest)} it {s...
mbreecher/task_app
spec/models/user_spec.rb
Ruby
mit
3,092
# -*- encoding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Mugshot::Storage do it "should convert an id to path with 6 levels of directories" do @fs = Mugshot::Storage.new @fs.send(:id_to_path, "a9657a30c7df012c736512313b021ce1").should == "a9/65/7a/30/c7/df/012c7...
globocom/mugshot
spec/mugshot/storage_spec.rb
Ruby
mit
347
# 005_cleaner.py ##################################################################### ################################## # Import des modules et ajout du path de travail pour import relatif import sys sys.path.insert(0 , 'C:/Users/WILLROS/Perso/Shade/scripts/LocalWC-Shade-App/apis/') from voca import AddLog , ...
sighill/shade_app
apis/raw/005_raw/005_cleaner.py
Python
mit
1,625
#Attr Methods # I worked on this challenge by myself. # I spent [#] hours on this challenge. # Pseudocode # Input: # Output: # Steps: class NameData end class Greetings end # Release 1 #What are these methods doing? # These methods set a name, age, and occupation, then they allow those instance variables to ...
ryanfs/phase-0
week-6/attr/my_solution.rb
Ruby
mit
2,388
require( ['build/index'] );
pixelsnow/arkanoid-uni
scripts/index.js
JavaScript
mit
28
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
cyrilBezel/application_tex
application/config/config.php
PHP
mit
17,766
<?php namespace Gwa\Remote; /** * @brief Loads a remote resource using curl. * @class RemoteResource */ class RemoteResource { private $_url; private $_errno; private $_errmsg; private $_content; private $_header; private $_options; /** * @brief The constructor. * @param strin...
gwa/gwRemoteResource
src/Gwa/Remote/RemoteResource.php
PHP
mit
2,909
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@TestFile //@...
airbug/bugcore
libraries/bugcore/js/test/observe/data/ObservableMapTests.js
JavaScript
mit
3,975
package com.fteams.siftrain.entities; import com.fteams.siftrain.util.SongUtils; public class SimpleNotesInfo implements Comparable<SimpleNotesInfo>{ public Double timing_sec; public Integer effect; public Double effect_value; public Integer position; @Override public int compareTo(SimpleNot...
kbz/SIFTrain
core/src/com/fteams/siftrain/entities/SimpleNotesInfo.java
Java
mit
503
<!DOCTYPE html><html lang="en-us" > <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="generator" content="Source Themes Academic 4.8.0"> <meta name="au...
usmanakhtar/usmanakhtar.github.io
courses/example/index.html
HTML
mit
18,219
const app = require('../server'); const readline = require('readline'); const { User, Role, RoleMapping, } = app.models; const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); Role.findOne({ where: { name: 'admin' } }) .then((role) => { if (!role) { console.log('No ad...
oamaok/kinko
server/scripts/create-admin.js
JavaScript
mit
1,056
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
VanceKingSaxbeA/FOREX-Engine
App/USDMOP.php
PHP
mit
9,398
<?php namespace JeroenNoten\LaravelAdminLte\Menu; use Illuminate\Support\Arr; use JeroenNoten\LaravelAdminLte\Helpers\MenuItemHelper; class Builder { protected const ADD_AFTER = 0; protected const ADD_BEFORE = 1; protected const ADD_INSIDE = 2; /** * The set of menu items. * * @var ar...
JeroenNoten/Laravel-AdminLTE
src/Menu/Builder.php
PHP
mit
6,853
<div class="splash-container"> <div class="splash"> <h1 class="splash-head">Welcome to Stubber.js</h1> <p class="splash-subhead"> Stubber.js is a quick and simple stub data provider. </p> <p> <a href="#started" class="pure-button pure-button-primary">Get Started</a> </p> </div> </div...
jdarling/Stubber.js
webroot/stubber/partials/index.html
HTML
mit
1,725
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>LCOV - coverage.info - /usr/include/c++/4.8/bits/vector.tcc</title> <link rel="stylesheet" type="text/css" href="../../../../../gcov.css"> </head> <...
seguijoaquin/taller2-appserver
Appserver/Coverage/usr/include/c++/4.8/bits/vector.tcc.gcov.html
HTML
mit
82,695
<?php namespace Bonsai\Mapper\Converter; use \Bonsai\Module\Tools; class LocalizeUrl implements Converter { public function convert($output) { return Tools::localizeURL($output); } }
TheCargoAgency/BonsaiPHP
src/Mapper/Converter/LocalizeUrl.php
PHP
mit
208
<!DOCTYPE html> <html> <head> <title>F2E_0关于Bootstrap的响应式布局设计</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="keywords" content="F2E_0关于Bootstrap的响应式布局设计, 随编, 前端之路, CodeShurri...
ixjx/blog
_site/2013-11-09/F2E_0关于Bootstrap的响应式布局设计/index.html
HTML
mit
22,578
package org.nww.core.data.filter; import java.util.List; /** * A simple filter criteria implementation checking the existence of a string * inside a list of strings. Does only match if the list contains a totally * equal string like the context one. * * @author MGA */ public class StringInListFilterC...
NetzwerkWohnen/NWW
src/main/java/org/nww/core/data/filter/StringInListFilterCriteria.java
Java
mit
877
declare module "diagram-js/lib/features/global-connect/GlobalConnect" { import EventBus from "diagram-js/lib/core/EventBus"; import { Base } from "diagram-js/lib/model"; import Canvas from "diagram-js/lib/core/Canvas"; import Dragging from "diagram-js/lib/features/dragging/Dragging"; export default class Glo...
ProcessHub/processhub-sdk
src/process/types/diagram-js/lib/features/global-connect/globalconnect.d.ts
TypeScript
mit
1,101
// // ModeTwo.h // Haydn_NWS_2014_FINAL // // Created by Bernardo Santos Schorr on 3/8/14. // // #pragma once #include "ofMain.h" #include "fft.h" #include "FFTOctaveAnalyzer.h" #include "ParticleOrbit.h" #include "movingBackground.h" class ModeTwo { public: void setup( vector<MovingBackground> &bkgListT...
jmsaavedra/NWS_Collabs
Spring_2014/Haydn_NWS_2014_FINAL/src/ModeTwo.h
C
mit
515
#!/usr/bin/python """ title : testtermopi.py description : This program runs the termopi.py : Displays the status of the resources (cpu load and memory usage) consumed by a Raspberry Pi computer and the resources consumed by one or more containers instantiated in the Pi...
AdL1398/PiCasso
source/modules/tester/testtermopi.py
Python
mit
1,603
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="fr"> <head> <!-- Generated by javadoc (1.8.0_152) on Fri Mar 30 13:31:47 CEST 2018 --> <title>CoeurAStockage</title> <meta name="date" content="2018-03-30"> <link rel="stylesheet" type="te...
AllanDubrulle/distributeur_tickets
Implementation/JAVADOC/stockage/CoeurAStockage.html
HTML
mit
68,386
Is paginated: {{ is_paginated }} Items count: {{ len(objects_list) }} {% for item in objects_list %} {{ item }} <br /> {% end %} end..
bosha/torhandlers
tests/test_application/templates/list.html
HTML
mit
140
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Class: Layout</title> <script src="scripts/prettify/prettify.js"></script> <script src="scripts/prettify/lang-css.js"></script> <script src="scripts/jquery.min.js"></script> <!--[if lt IE 9]> <script src="//html5shiv.goo...
eliace/ergojs-site
docs/Ergo.core.Layout.html
HTML
mit
187,614
var dbm = require('db-migrate'); var type = dbm.dataType; exports.up = function(db, callback) { db.addColumn("troop_type", "production_cost", "int", callback); }; exports.down = function(db, callback) { };
Codes-With-Eagles-SWE2014/Server
web_server/migrations/20141116202453-troopcost.js
JavaScript
mit
210
The MIT License (MIT) Copyright (c) 2015 Manuel Kasiske Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
Neofonie/gocd-docker-v2-material-poller
LICENSE.md
Markdown
mit
1,081
<?php /* * This file is part of the Zephir. * * (c) Zephir Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Optimizers\FunctionCall; use function Zephir\add_slashes; use Zephir\Call; u...
dreamsxin/zephir
Library/Optimizers/FunctionCall/MemstrOptimizer.php
PHP
mit
1,887
import { Inject, Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; import 'rxjs/operator/mergeMap'; import 'rxjs/operator/switchMap'; import 'rxjs/add/operator/debounceTime'; @Injectable() export class Sandbo...
dav793/angular2-seed
app/components/sandbox/sandbox3/sandbox3.service.ts
TypeScript
mit
524
--- layout: page title: Bolt Electronics Seminar date: 2016-05-24 author: James Pollard tags: weekly links, java status: published summary: Nulla rutrum ex sit amet sapien mattis lobortis. In hendrerit. banner: images/banner/meeting-01.jpg booking: startDate: 01/06/2019 endDate: 01/08/2019 ctyhocn: YYBNBHX grou...
KlishGroup/prose-pogs
pogs/Y/YYBNBHX/BES/index.md
Markdown
mit
2,218
'use strict'; // you have to require the utils module and call adapter function const utils = require('@iobroker/adapter-core'); // Get common adapter utils const adapterName = require('./package.json').name.split('.').pop(); // include node-ssdp and node-upnp-subscription const {Client, Server} = require('node-ssdp'...
Jey-Cee/ioBroker.upnp
main.js
JavaScript
mit
83,360
/* FLOATS http://tachyons.io/docs/layout/floats/ 1. Floated elements are automatically rendered as block level elements. Setting floats to display inline will fix the double margin bug in ie6. You know... just in case. 2. Don't forget to clearfix your floats with .clearfix Media Query Ext...
tachyons-css/tachyons-verbose
src/_floats.css
CSS
mit
1,036
if(Bar.app("Início")) throw "Barra já existe!"; /*/LOADING BAR $.get("http://hosts.medorc.org/xn--stio-vpa/json/bar.Home.json"), function(data){ //if(Bar.app(data.name)) throw "Barra já existe!"; $('#header').bar({ toolbox: data, callback: function(bar){ //(auto) lo...
vieiralisboa/ze
private/bars/bar.Home.js
JavaScript
mit
2,099
<!DOCTYPE html> <html> <head> <title>zlib~Examples documentation</title> <link rel="stylesheet" type="text/css" href="../../../../index.css" /> <link rel="stylesheet" type="text/css" href="../../../../highlight.css" /> <script type="text/javascript" src="../../../../index.js"></script> </head> <body cla...
shenanigans/node-sublayer
static/docs/generated/module/zlib/spare/examples/index.html
HTML
mit
1,329
System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime" ], "stage": 1 }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "angular2": "npm:angular2@2.0.0-beta.1", "babe...
gilAsier/angular2beta_errors
public/config.js
JavaScript
mit
14,023
//===================================================================== // Copyright 2012-2016 (c), Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file /// //===================================================================== #ifndef _ACL_API_TYPES_0_8_H_ #define _ACL...
ilangal-amd/CodeXL
Common/Lib/AMD/ACL/TOT/include/v0_8/aclTypes.h
C
mit
4,128
### Battletanks HTML5-Canvas Game local play only, websockets-based multiplayer to come ### Controls | Key | Command | |------------------------------------------------------------------|----------------| |<kbd>&uarr;</kbd> or <kbd>W</kbd> ...
quarkdev/battletanks
README.md
Markdown
mit
1,013
<!DOCTYPE html/> <html> <head> <link rel = "stylesheet" href = "style.css"> <title>Morgan Fogarty : Top Ten</title> </head> <body class="top-ten"> <div class="container"> <header> <h1><a href="index.html">Morgan Fogarty</a></h1> <h2>Choreographer and Web Developer in Training</h2> </header> ...
mofo37/second_repo
top_ten.html
HTML
mit
1,411
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\HP; use JMS\Serializer\Annotation\ExclusionPolicy; use ...
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/HP/PreviewImage.php
PHP
mit
860
<HTML><HEAD> <TITLE>Review for Stanza del figlio, La (2001)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0208990">Stanza del figlio, La (2001)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/Revie...
xianjunzhengbackup/code
data science/machine_learning_for_the_web/chapter_4/movie/29800.html
HTML
mit
5,912
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <title>Extended Editor Documentation</title> <meta name="msapplication-TileColor" content="#222c37" /> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/toc.js"></script> ...
Miguel-Barreiro/ExtendedEditor
ExtendedEditor/Assets/.Docs/TNRD.Editor.Core.ExtendedAssets-Destroy.html
HTML
mit
2,755
$(document).ready(function() { $.getJSON('/backend/go/' + go_term['id'] + '/locus_details', function(data) { create_go_table(data); }); $.getJSON('/backend/go/' + go_term['id'] + '/ontology_graph', function(data) { var cy = create_cytoscape_vis("cy", layout, graph_style, data, null, false, "goOntology"); ...
yeastgenome/SGDFrontend
src/sgd/frontend/yeastgenome/static/js/go.js
JavaScript
mit
7,443
## Guidelines for Contributing ### <a name="forkme"></a> Work on a personal fork You should fork the FileTree repository into your own github account and do the development work there. Issue a [pull request](http://help.github.com/send-pull-requests/) when you have things working. ### <a name="branching"></a> Work ...
bahmanm/filetree
doc/Contribute.md
Markdown
mit
3,010
git e8f8f3186f7948a51a4223d7e7078317cd8984c5 --- # База данных · Начало работы - [Введение](#introduction) - [Конфигурирование](#configuration) - [Соединения для чтения и записи](#read-and-write-connections) - [Выполнение SQL-запросов](#running-queries) - [Использование нескольких соединений к базе данны...
LaravelRUS/docs
database.md
Markdown
mit
23,320
# vim: set noet sw=4 ts=4 fileencoding=utf-8: # # Copyright (c) 2013-2017 Dave Jones <dave@waveform.org.uk> # Copyright (c) 2013 Mime Consulting <info@mimeconsulting.co.uk> # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documenta...
waveform80/lars
Makefile
Makefile
mit
6,976
--- title: ruby on rails permalink: "ror/index.html" layout: default --- <Main class=""> <h1 class="std_hdg_color">Ruby on Rails</h1> <p>This is a collection of posts related to Ruby on Rails and Ruby. When I changed from my previous IBM platform to the web paradigm and open source, I originally started with PHP b...
eaglerockdude/eaglerockdude.github.io
ror.html
HTML
mit
2,245
package com.dreamteam.octodrive.model; import com.parse.ParseObject; public abstract class OctoObject { protected String _objectId; protected ParseObject _parseObject; public ParseObject parseObject() { return _parseObject; } public void setObjectId(String objectId) { _objectId...
lordzsolt/OctoDrive
app/src/main/java/com/dreamteam/octodrive/model/OctoObject.java
Java
mit
500
// app.js /*jslint node: true */ 'use strict'; var compression = require('compression'); var express = require('express'); var passport = require('passport'); var mongoose = require('mongoose'); var flash = require('connect-flash'); var morgan = require('morgan'); var cookieParser = require('cookie-pars...
formed/paths.old
app.js
JavaScript
mit
1,352
!function($) { $(document).on("keydown", 'input[data-type="numeric"]', function (e) { var key = e.charCode || e.keyCode || 0; // allow backspace, tab, delete, arrows, numbers and keypad numbers ONLY return ( key == 8 || key == 9 || key == 46 || (key >= 37 && key <= 40) || (...
carlalexander/jquery.numeric.input
jquery.numeric.input.js
JavaScript
mit
420
package ca.ulaval.glo2004.Domain.Matrix; import ca.ulaval.glo2004.Domain.StationExitPoint; import java.io.Serializable; public class ExitProductSortingHolder implements Serializable{ public StationExitPoint exitPoint; public double value; public ExitProductSortingHolder(StationExitPoint exitPoint, double...
klafooty/projetJava
src/main/java/ca/ulaval/glo2004/Domain/Matrix/ExitProductSortingHolder.java
Java
mit
401
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:2.0.50727.3634 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace Ho...
laonawuli/hotelsupervisor
Server/HotelSupervisorService/HotelSupervisorService/Properties/Settings.Designer.cs
C#
mit
1,676
import Chip from '../../components/Chip' import { vueTest } from '../utils' describe('Chip', () => { let vm before((done) => { vm = vueTest(Chip) vm.$nextTick(done) }) it('renders with text', () => { const el = vm.$('#chip') el.should.contain.text('Basic chip') el.should.not.have.class('md...
posva/vue-mdl
test/unit/specs/Chip.spec.js
JavaScript
mit
1,991
--- title: Wellington Attractions listing-type: attractions island: other region: attractions order: image-path: wellington.jpg image-alt: Wellington Attractions refer-url: wellington-attractions.html --- Wellington offers many memorable tourist attractions including Te Papa Museum, the Cable Car Museum, the Karori...
NZescape/nzescape.github.io
_listings/other/attractions/wellington-attractions.md
Markdown
mit
365
#!/usr/bin/ruby # # Script to immediately start playing a track in the media player. # # Author:: Nicholas J Humfrey (mailto:njh@aelius.com) # Copyright:: Copyright (c) 2008 Nicholas J Humfrey # License:: Distributes under the same terms as Ruby # $:.unshift File.dirname(__FILE__)+'/../lib' require 'mpris' rai...
njh/ruby-mpris
examples/play_track.rb
Ruby
mit
443
--- layout: 'welcome-layout' title: "Camille Bissuel ❄ Free (as in Freedom) Comics & Illustrations" changfreq: 'daily' isPaged: true pagedCollection: 'all_en' pageSize: 12 priority: 1 --- I'm Camille Bissuel and I'm creating free (as in freedom) graphic novels and illustrations about climate change. Sign-up to become o...
nylnook/nylnook-website
src/documents/en/index.html.md
Markdown
mit
390
from . import packet class Packet5(packet.Packet): def __init__(self, player, slot): super(Packet5, self).__init__(0x5) self.add_data(player.playerID) self.add_data(slot) self.add_structured_data("<h", 0) # Stack self.add_data(0) # Prefix self.add_structured_data...
flammified/terrabot
terrabot/packets/packet5.py
Python
mit
340
module Blackbeard class FeatureMetric < SegmentedMetric end end
goldstar/blackbeard
lib/blackbeard/feature_metric.rb
Ruby
mit
68
import { hashHistory } from 'react-router' import { auth } from 'lib/firebase' export const redirect = path => hashHistory.push(path) export const signInWithGoogle = () => { const provider = new auth.GoogleAuthProvider() provider.addScope('https://www.googleapis.com/auth/userinfo.profile') return auth().signI...
panelando/panelando
app/lib/auth.js
JavaScript
mit
629
var request = require('supertest'); var should = require('should'); var express = require('express'); var expressRouter = require('../index.js'); var mockPath = 'mock.js'; describe('register routes', function(){ var app; before(function(){ app = express(); expressRouter.sync(app, mockPath...
mastilver/express-annotation
test/sync.js
JavaScript
mit
905
require "linear-regression" require "test/unit" module Regression class BaseTests < Test::Unit::TestCase def setup @base = Base.new @xs = [150, 160, 170, 180, 190, 200, 190, 180, 170, 160] @ys = [51, 63, 68, 79, 90, 97, 88, 50, 63, 60] end def test_mean_with_nil_shoul_be_raise a...
slon1024/linear-regression
test/linear-regression/base_test.rb
Ruby
mit
1,251
#include "Chapter7.h" #include "Interactable.h" bool IInteractable::CanInteract_Implementation() { return true; } void IInteractable::PerformInteract_Implementation() { }
sunithshetty/Unreal-Engine-4-Scripting-with-CPlusPlus-Cookbook
Chapter07/Source/Chapter7/Interactable.cpp
C++
mit
175
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('managers', '0011_auto_20150422_2018'), ] operations = [ migrations.AlterField( model_name='managerprofile', ...
ritashugisha/ASUEvents
ASUEvents/managers/migrations/0012_auto_20150422_2019.py
Python
mit
511
<?php /* * Copyright (c) 2012, webvariants GbR, http://www.webvariants.de * * This file is released under the terms of the MIT license. You can find the * complete text in the attached LICENSE file or online at: * * http://www.opensource.org/licenses/mit-license.php */ use wv\BabelCache\Adapter\WinCache; class...
xrstf/babelcache
tests/Adapter/WinCacheTest.php
PHP
mit
645
/** * @author: @AngularClass */ const helpers = require('./helpers'); const webpackMerge = require('webpack-merge'); // used to merge webpack configs const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev /** * Webpack Plugins */ const DefinePlugin = requir...
AnastasiaPavlova/Angular2Traning
config/webpack.prod.js
JavaScript
mit
9,907
package junit.util; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; /** * JUnit4からのassertThatアサーションを使いやすくするためのラッパー処理群。<br> * isのためのimportが面倒、Boxingは避けたいという御仁向け。<br> * assertThatのシグネチャが改善される可能性を考慮してメソッド名は別名にしています。 * * @author cobot00 */ public final class AssertWrapper { priva...
cobot00/JUnitForEnterprise
test/junit/util/AssertWrapper.java
Java
mit
2,145
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>quickchick: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.1/quickchick/1.4.0.html
HTML
mit
7,033
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Friends</title> <link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="../bootstrap-3.3.7-dist/css/bootstrap.css"> <link rel="stylesheet" href="../bootstrap-3.3.7-dist/css/font-awesome.css"> <link rel="stylesheet" h...
ssimona01/Dilly
Friends/pg.html
HTML
mit
3,735
from distutils.core import setup version = '1.1.1' setup(name='CacheGenerator', version=version, description="CacheGenerator for Django", author="Ricardo Santos", author_email="ricardo@getgears.com", url="http://github.com/ricardovice/CacheGenerator/", packages = ['cachegenerator']...
ricardovice/CacheGenerator
setup.py
Python
mit
329
package log import ( "io" "github.com/sirupsen/logrus" ) type Fields logrus.Fields type Level uint8 var DebugLevel = Level(logrus.DebugLevel) var InfoLevel = Level(logrus.InfoLevel) var WarnLevel = Level(logrus.WarnLevel) var ErrorLevel = Level(logrus.ErrorLevel) var logger = logrus.New() func SetOutput(w io.W...
cadenzr/cadenzr
log/log.go
GO
mit
1,909
jest.mock('send') import { GraphQLSchema, GraphQLObjectType, GraphQLString } from 'graphql' import { $$pgClient } from '../../../postgres/inventory/pgClientFromContext' import createPostGraphQLHttpRequestHandler, { graphiqlDirectory } from '../createPostGraphQLHttpRequestHandler' const path = require('path') const ht...
nbushak/postgraphql
src/postgraphql/http/__tests__/createPostGraphQLHttpRequestHandler-test.js
JavaScript
mit
18,119
先週と同様に今週の反省をします。 ## 良かった点 まずは良かった点を挙げます。 何より良かった点は今週もきちんと毎日更新できたことです。ブログを毎日更新することを目標のひとつに設定しているため、これができることは大切です。当たり前のことができることは素晴らしいことです。 そのほかにはコメントが付いたことも良かったことです。はてなブログをはじめるきっかけを作った友人(<a href="http://blog.hatena.ne.jp/emanon001/">id:emanon001</a>)からのコメントではありますが、それでもはじめてのコメントには違いありません。喜ばしいことです。 ## 悪かった点 次に悪かった点を挙...
bouzuya/blog.bouzuya.net
data/2012/01/2012-01-15.md
Markdown
mit
2,240
<?php /* |-------------------------------------------------------------------------- | Defining Global Patterns |-------------------------------------------------------------------------- | If you would like a route parameter to always be constrained by a given | regular expression, you may use the pattern method: | *...
egalink/proveedores
app/routes.php
PHP
mit
7,126
--- # Jekyll variables layout: subject permalink: /subjects/c4dd3a68-a70b-11e6-847e-3c07545eb2e5 # Specific subject values uuid: c4dd3a68-a70b-11e6-847e-3c07545eb2e5 broader: - prefLabel: Arbejdsliv uuid: c4dd0cdc-a70b-11e6-8459-3c07545eb2e5 - prefLabel: Organisation af arbejdet uuid: c4dd3951-a70b-11e6-85c7-3c075...
Almanak/dak
_subjects/3/c4dd3a68-a70b-11e6-847e-3c07545eb2e5.md
Markdown
mit
468
--- title: '[Xamarin.Forms] 安裝CurrentActivity Plugin藉以存取Xamarin.Android Activity' categories: Xamarin Xamarin.forms plugin --- 在Xamarin Forms跨平台存取Android的Activity,需要安裝與設定CurrentActivityPlugin才能達成,比如使用MediaPlugin在Android就需要用到,請參考[Access the Current Android Activity from Anywhere](https://montemagno.com/access-the-curre...
w9wen/w9wen.github.io
_posts/2018/2018-04-07-install-currentactivity-plugin-access-xamarin-android-activity.markdown
Markdown
mit
2,821
/* eslint no-console: warn */ const _ = require('lodash'); const { processScore } = require('../helpers/game.js'); const getRandomQuiz = require('../../app/helpers/quizRandomizer.js'); module.exports = function socketHandler(io) { const players = []; const game = io.of('/game'); game.on('connect', function (sock...
OperationSpark/code-clash
src/socket/index.js
JavaScript
mit
1,848
# level-sublevel-demo [![build status](https://secure.travis-ci.org/thlorenz/level-sublevel-demo.png)](http://travis-ci.org/thlorenz/level-sublevel-demo) Shows how sublevels work in leveldb and how easy it is to test leveldb code. ## Installation git clone https://github.com/thlorenz/level-sublevel-demo.git ##...
thlorenz/level-sublevel-demo
README.md
Markdown
mit
854
'use strict'; import Component from './component'; import VolumeAttachment from './volume-attachment'; import Port from './port'; import {isString} from './util'; const Server = function (properties) { if (!(this instanceof Server)) { return new Server(properties); } Component.call(this, { ports: [],...
kazet15/heat-templates
src/server.js
JavaScript
mit
1,872
package com.jgdodson.rosalind import utils.Utils object Cons { def main(args: Array[String]): Unit = { val pairs = Utils.readFastaFile(args(0)) val strings = pairs.map(_._2) val profile = makeProfile(strings) println(makeConsensus(profile)) println(formatProfile(profile)) } def makeProfile...
PilgrimShadow/Rosalind.scala
src/main/scala/com/jgdodson/rosalind/Cons.scala
Scala
mit
1,377
/** * Copyright 2014 Kakao Corp. * * Redistribution and modification in source or binary forms are not permitted without specific prior written permission.  * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a co...
haruio/haru-example-memo
kakao/src/com/kakao/UnlinkResponseCallback.java
Java
mit
4,973
html{ height:100%; } body { min-width: 357px; max-width: 457px; height: 100%; font-family: helvetica, 'Segoe UI', 'Open Sans', Arial, sans-serif; background-image: url("/inPersoned_pink.png"); background-repeat: no-repeat; background-size: 130px; background-position: 8px 20px; } .headcontainer ...
gunnaroh11/ChromeExtension
CSS/inpersoned.css
CSS
mit
1,017
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hello, World! - A-Frame</title> <meta name="description" content="Hello, World! - A-Frame"> <script src="aframe.js"></script> <script src="lib/aframe-animation.js"></script> </head> <body> <a-scene id="szene"> <a-plane posit...
PYXI3D/PYXI-3D
index.html
HTML
mit
2,418
<?php /** * (c) shopware AG <info@shopware.com> * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ShopwarePlugins\Connect\Components\ShippingCosts; use Shopware\Connect\ShippingCosts\Rule; use Shopware\Connect\ShippingCosts\Ru...
shopware/SwagConnect
Components/ShippingCosts/ShippingCostRuleVisitor.php
PHP
mit
4,969
package com.target.control; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class JpaUtil { private static EntityManager em; private static EntityManagerFactory factory; static { try { factory = Persistence.create...
Malehaly/studies-java-jpa-junit
jpa/ExercicioHandsOn09/src/com/target/control/JpaUtil.java
Java
mit
530
package com.crescentflare.appconfig.helper; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.os.Build; import android.util.TypedValue; /** * Library helper: resource access * A helper library to access app resources for skinning the user interface...
crescentflare/DynamicAppConfigAndroid
AppConfigLib/src/main/java/com/crescentflare/appconfig/helper/AppConfigResourceHelper.java
Java
mit
1,901
using System.Linq; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace UrbanSketchers.Pages { /// <summary> /// the root page /// </summary> [XamlCompilation(XamlCompilationOptions.Compile)] public partial class RootPage { private bool _isFirst = true; /// <summary> ...
mscherotter/UrbanSketchers
UrbanSketchers/UrbanSketchers/Pages/RootPage.xaml.cs
C#
mit
1,707
require "rack/tls_tools/hpkp" require "rack/tls_tools/hsts" require "rack/tls_tools/secure_cookies" module Rack module TlsTools end end
jkraemer/rack-tls_tools
lib/rack/tls_tools.rb
Ruby
mit
141
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Qwack.Core.Basic; using Qwack.Core.Curves; using Qwack.Core.Models; namespace Qwack.Models.Risk.Mutators { public class CurveShiftMutator { public static IAssetFxModel AssetCurveShiftRelative(string assetId, dou...
cetusfinance/qwack
src/Qwack.Models/Risk/Mutators/CurveShiftMutator.cs
C#
mit
2,852
define([ './src/vertebrae' ], function(Vertebrae) { return Vertebrae; });
Evisions/vertebrae
index.js
JavaScript
mit
78
class Image < ActiveRecord::Base dragonfly_accessor :image attr_accessible :image, :title end
ggouzi/Rails_Exif_Information
app/models/image.rb
Ruby
mit
99
-- Workaround to avoid admin tools such as myplacesimport to be added to this view (TYPE = DEFAULT -> SYSTEM) UPDATE portti_view set type = 'SYSTEM', is_default=false WHERE name = 'ELF view' and page='elf_guest' and application='elf_guest';
elf-oskari/oskari-server-extensions
elf-resources/resources/flyway/elf/V1_10__set_alternative_view_type_to_system.sql
SQL
mit
240
//================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file gdDeprecationStatisticsView.cpp /// //========================================================================...
ilangal-amd/CodeXL
CodeXL/Components/GpuDebugging/AMDTGpuDebuggingComponents/views/src/gdDeprecationStatisticsView.cpp
C++
mit
26,164
import readPkg = require('read-pkg') import {installPkgs} from 'supi' import tape = require('tape') import promisifyTape from 'tape-promise' import { addDistTag, prepare, testDefaults, } from '../utils' const test = promisifyTape(tape) test('save to package.json (rimraf@2.5.1)', async (t) => { const project =...
pnpm/supi
test/install/updatingPkgJson.ts
TypeScript
mit
6,159
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./2b5f93a28da57c59660ea21518d5a108aa1daebc9cc8bd38ad54b26380e4ea1e.html">Teleport</a> <hr> ...
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/2be32cdb9b1303cdf0ce21a15a88b85cc37a1e5741db7e58e6dac8a19820b9e0.html
HTML
mit
550
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
Ugonna/AutocompleteTextBox
ComponentTest/App.xaml.cs
C#
mit
4,221
// // ABAudiobusController.h // Audiobus // // Created by Michael Tyson on 09/12/2011. // Copyright (c) 2011-2014 Audiobus. All rights reserved. // #ifdef __cplusplus extern "C" { #endif #import <Foundation/Foundation.h> #import "ABCommon.h" #import "ABAudioFilterPort.h" @class ABMIDISenderPort; @class ABMIDIRec...
cpmpercussion/microjam
Pods/Audiobus/Audiobus/ABAudiobusController.h
C
mit
30,649
using Microsoft.Xna.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Spectrum.Framework.Entities; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spectrum.Framework.Content { public class InitDataPars...
alex-sherman/Spectrum
Framework/Content/InitDataParser.cs
C#
mit
1,040