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
#!/bin/bash set -ex mkdir /chroot mkdir /chroot/bin mkdir /chroot/lib mkdir /chroot/lib64 mkdir /chroot/dev mkdir /chroot/tmp mkdir /chroot/var # # debootstrap # debootstrap saucy /chroot # busybox cp /bin/busybox /chroot/bin/sh cp /lib64/ld-linux-x86-64.so.2 /chroot/lib64/ld-linux-x86-64.so.2 cp /lib/x86_64-linux-g...
kevinwallace/sandstorm-shell
make.sh
Shell
mit
1,231
# Wateruby Interesting twist of ruby language: YAML contains fragments of ruby, that can be composed. Compiles to ruby. Art of true metaprogramming and code generation. ## Installation Add this line to your application's Gemfile: ```ruby gem 'wateruby' ``` And then execute: $ bundle Or install it yourself as...
waterlink/wateruby
README.md
Markdown
mit
2,721
#ifndef V_Phi_Error_Calculator_h #define V_Phi_Error_Calculator_h #include "Intensity_Moment_Data.h" #include "Cell_Data.h" #include "Fem_Quadrature.h" #include "Input_Reader.h" #include <algorithm> /** @file V_Phi_Error_Calculator.h * @author pmaginot * @brief Base class to implement interface f...
pgmaginot/DARK_ARTS
src/solvers/V_Phi_Error_Calculator.h
C
mit
953
package ui import ( "image" "image/color" "image/draw" ) // UI represents an instance of the UI type UI struct { component WindowTitle string Input Input keyFuncs map[Key]func() error prevX, prevY int } // New creates a new UI instance func New(width, height int) *UI { rect := image.Rect(0, 0, w...
martinlindhe/gameui
ui.go
GO
mit
2,922
# frozen_string_literal: true require 'basquiat/adapters/rabbitmq_adapter' RSpec.describe Basquiat::Adapters::RabbitMq do subject(:adapter) { Basquiat::Adapters::RabbitMq.new } let(:base_options) do { connection: { hosts: [ENV.fetch('BASQUIAT_RABBITMQ_1_PORT_5672_TCP_ADDR') { 'localhost' }], ...
VAGAScom/basquiat
spec/lib/adapters/rabbitmq_adapter_spec.rb
Ruby
mit
3,032
/** * Created by raynald on 8/22/14. */ App.Collections.Contacts = Backbone.Collection.extend({ model : App.Models.Contact, localStorage: new Backbone.LocalStorage('my-contacts') });
raynaldmo/my-contacts
v1/public/js/collection/Contacts.js
JavaScript
mit
189
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.09.02 at 01:00...
nicoribeiro/java_efactura_uy
app/dgi/classes/respuestas/reporte/RSAKeyValueType.java
Java
mit
2,365
# Multilingual ShapeWorld ### Table of content - [Dependency Minimal Recursion Semantics (DMRS)](#dependency-minimal-recursion-semantics-dmrs) - [Linearized DMRS Notation (LDN)](#linearized-dmrs-notation-ldn) + [How to go from MRS to DMRS using LDN](#how-to-go-from-mrs-to-dmrs-using-ldn) - [How to integrate the g...
AlexKuhnle/ShapeWorld
shapeworld/realizers/dmrs/languages/README.md
Markdown
mit
11,341
package org.scalajs.openui5.sap.m import org.scalajs.openui5.sap.ui.core.{CSSSize, Wrapping} import org.scalajs.openui5.util.{Settings, SettingsMap, noSettings} import scala.scalajs.js import scala.scalajs.js.annotation.{JSName, ScalaJSDefined} @ScalaJSDefined trait TextAreaSettings extends InputBaseSettings object ...
lastsys/scalajs-openui5
src/main/scala/org/scalajs/openui5/sap/m/TextArea.scala
Scala
mit
1,347
using UnityEngine; using System.Collections; namespace Com.LuisPedroFonseca.ProCamera2D.TopDownShooter { public class EnemyAttack : MonoBehaviour { public float RotationSpeed = 2f; public Pool BulletPool; public Transform WeaponTip; public float FireRate = .3f; public ...
LabGaming/Locally-multiplayer-minigame
Assets/ProCamera2D/Examples/TopDownShooter/Scripts/Enemy/EnemyAttack.cs
C#
mit
2,675
import * as React from 'react'; import { Ratings, Mode, Size, Layout } from '..'; import * as examples from './examples'; import { header, api, divider, importExample, playground, tab, code as baseCode, tabs, testkit, title, } from 'wix-storybook-utils/Sections'; import { allComponents } from '../.....
wix/wix-style-react
packages/wix-ui-tpa/src/components/Ratings/docs/index.story.tsx
TypeScript
mit
3,405
import * as path from 'path'; import { EmptyTree } from '@angular-devkit/schematics'; import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing'; describe('Update 6.1.0', () => { let appTree: UnitTestTree; const schematicRunner = new SchematicTestRunner('ig-migrate', path.join(__di...
Infragistics/zero-blocks
projects/igniteui-angular/migrations/update-6_1/index.spec.ts
TypeScript
mit
1,517
# Minion_Game This is a project for a game that I currently work on with a friend. We decided to use github to enable both of us to work on the project simultaneously. Due to the way githubs payment model works, we decided to upload the code into a public repository, while keeping compilation instructions and assets p...
dwarfofdawn/Minion_Game
README.md
Markdown
mit
352
package cn.jzvd.demo; import android.content.Context; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.BaseAdapte...
lipangit/JiaoZiVideoPlayer
app/src/main/java/cn/jzvd/demo/ActivityListViewMultiHolder.java
Java
mit
5,869
const assert = require('assert')
airtoxin/elekiter
test/index.js
JavaScript
mit
33
// @public import RavenType = require('raven-js'); import {Breadcrumb, CaptureOptions, User} from './interface'; export {Breadcrumb, CaptureOptions, User}; let output = { enabled: false, captureException(ex: Error, options?: CaptureOptions) {}, context<T>(fn: () => T): T { return fn(); }, wrap<TFunc ex...
mopedjs/moped
packages/sentry/src/client.ts
TypeScript
mit
1,735
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>SEEPPP v1</title> </head> <body onLoad="document.location.href='app.php'"></body> </html>
efraxpc/SEPPP
index.html
HTML
mit
256
<!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...
team-diana/nucleo-dynamixel
docs/html/group___h_a_l___t_i_m___aliased___macros.html
HTML
mit
21,613
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef SLR_FLAGS __MIDL___MIDL_itf_shobjidl_0212_0001; END_ATF_NAMESPACE
goodwinxp/Yorozuya
library/ATF/__MIDL___MIDL_itf_shobjidl_0212_0001.hpp
C++
mit
250
FROM johnnyasantoss/dotnet-mono-docker:dotnet2.0-mono5.2-sdk WORKDIR /app COPY ./** /app/ RUN apt-get update && apt-get install -y libgit2-24 RUN ./build.sh -t "pack" -v > dockerbuild.txt 2>&1
PagueVeloz/JsonFluentMap
Dockerfile
Dockerfile
mit
197
#region Copyright (c) 2014 Orcomp development team. // ------------------------------------------------------------------------------------------------------------------- // <copyright file="GraphExplorerViewModel.cs" company="Orcomp development team"> // Copyright (c) 2014 Orcomp development team. All rights reserv...
Orcomp/Orc.GraphExplorer
src/Orc.GraphExplorer/ViewModels/GraphExplorerViewModel.cs
C#
mit
5,680
require 'spec_helper' describe Fastball do it 'has a version number' do expect(Fastball::VERSION).not_to be nil end end
jbgo/fastball
spec/lib/fastball_spec.rb
Ruby
mit
129
namespace IronSharp.IronMQ { /// <summary> /// http://dev.iron.io/mq/reference/clouds/ /// </summary> public static class IronMqCloudHosts { public const string DEFAULT = AWS_US_EAST_HOST; /// <summary> /// Default /// </summary> public const string AWS_US_E...
iron-io/iron_dotnet
src/IronSharp.IronMQ/IronMqCloudHosts.cs
C#
mit
371
The MIT License (MIT) Copyright (c) crdx 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, publish, distrib...
crdx/utorrent-mrc
LICENCE.md
Markdown
mit
1,066
package com.yngvark.communicate_through_named_pipes.input; import org.slf4j.Logger; import java.io.BufferedReader; import java.io.IOException; import static org.slf4j.LoggerFactory.getLogger; public class InputFileReader { private final Logger logger = getLogger(getClass()); private final BufferedReader buf...
yngvark/gridwalls2
source/lib/communicate-through-named-pipes/source/src/main/java/com/yngvark/communicate_through_named_pipes/input/InputFileReader.java
Java
mit
2,016
--- layout: post title: Syntax Highlighting Post description: "Demo post displaying the various ways of highlighting code in Markdown." modified: 2016-06-01T15:27:45-04:00 tags: [sample post, code, highlighting] published: false image: feature: abstract-10.jpg credit: dargadgetz creditlink: http://www.dargadgetz....
yfuseki/yfuseki.github.io
_posts/2013-08-16-code-highlighting-post.md
Markdown
mit
3,246
'use strict'; var _ = require('lodash'), jsonFormat = require('json-format'), grunt = require('grunt'); var util = require('../util/util'); module.exports = { json: function(data, options, generatedContent, callback){ if(_.isString(options.dest)){ grunt.file.write(options.dest + '/json/' + generat...
lwhiteley/grunt-pagespeed-report
tasks/config/reporters/json.js
JavaScript
mit
523
/** * Dont edit this file! * This module generates itself from lang.js files! * Instead edit the language files in /lang/ **/ /*global define*/ define(function () { "use strict"; var i18n = {}; i18n.de = { "Visit %s overview" : "Zur %s Übersicht", "An error occured, please reload." : "Es gab einen unerwar...
creitiv/athene2
src/assets/source/scripts/modules/serlo_i18n.js
JavaScript
mit
2,085
--- layout: page title: "ACCT 4825: Experimental Seminar Statistics" comments: true description: "blanks" keywords: "ACCT,4825,CU,Boulder" --- <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl...
nikhilrajaram/nikhilrajaram.github.io
courses/ACCT-4825.md
Markdown
mit
2,593
use chrono::{offset::Utc, DateTime}; use rustorm::{pool, DbError, FromDao, Pool, ToColumnNames, ToDao, ToTableName}; /// Run using: /// ```sh /// cargo run --example insert_usage_mysql --features "with-mysql" /// ``` fn main() { mod for_insert { use super::*; #[derive(Debug, PartialEq, ToDao, ToCol...
ivanceras/rustorm
examples/insert_usage_mysql.rs
Rust
mit
1,853
// Copyright 2017 The Lynx Authors. All rights reserved. #ifndef LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_ #define LYNX_BASE_THREADING_MESSAGE_PUMP_POSIX_H_ #include "base/task/task.h" #include "base/threading/condition.h" #include "base/threading/message_pump.h" #include "base/timer/timer.h" namespace base { class...
hxxft/lynx-native
Core/base/threading/message_pump_posix.h
C
mit
844
'use strict'; /** * Module dependencies. */ var path = require('path'), mongoose = require('mongoose'), Person = mongoose.model('Person'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), _ = require('lodash'); /** * Create a Person */ exports.create = fu...
tmrotz/LinkedIn-People-MEAN.JS
modules/people/server/controllers/people.server.controller.js
JavaScript
mit
4,096
--- title: "Spreadsheet hijinks" excerpt: The results from crowd-sourcing a suitable term for a common spreadsheet practice. tags: - excel - munging - unheadr - clippy header: image: /assets/images/featureExcel.png --- Earlier in the week Jenny Bryan helped me ask the Twitter community what to call this wid...
luisDVA/luisdva.github.io
_posts/2018-09-14-spreadsheet-hijinks.md
Markdown
mit
7,271
#include <iostream> #include <sstream> #include <vector> #include <cmath> #include <reader.hpp> #include <writer.hpp> using namespace std; using namespace jam; struct JoinK { JoinK(vector<vector<char>>&& input, int kIn) : g(input), k(kIn) { n = g.size(); } void rotate() { for (auto& v : g) { v.era...
zenonparker/googlejam
contests/2010_round1a_may_22/a/main.cpp
C++
mit
2,533
"use strict";require("retape")(require("./index"))
SunboX/fxos-washing-machine_interface
b2g_sdk/34.0a1-2014-08-12-04-02-01/B2G.app/Contents/MacOS/modules/commonjs/diffpatcher/test/tap.js
JavaScript
mit
50
--- title: Scala 入门笔记 author: He Tao date: 2015-03-28 tag: [Scala] category: 编程语言 layout: post --- Scala初学笔记。 Hello World in Scala --------------------- 学习Scala的语法,还是从Hello World开始吧: ```scala object HelloWorld { def main(args: Array[String]) { print("Hello World, Scala!") } } ``` <!...
compile-me/compile-me.github.io
_posts/programming-language/scala/2015-03-26-scala_begin.md
Markdown
mit
3,675
/** * Copyright © 2009-2012 A. Matías Quezada */ use('sassmine').on(function(sas) { var Block = Class.extend({ constructor: function(message, code) { this.base(); this.message = message; this.code = code; this.before = []; this.after = []; }, execute: function() { this.code.call(null, sa...
amatiasq/Sassmine
lib/Block.js
JavaScript
mit
753
#include <Core/Platform.h> #include <Shared/misc.h> #include <Core/Core.h> #include "DebugCamera.h" #include "SceneTools.h" DebugCamera::DebugCamera(Pimp::World* world) : world(world) , isEnabled(false) , isLookingAt(false) { ASSERT(nullptr != world); camera = new Pimp::Camera(world); world->GetElements().push_b...
visualizersdotnl/tpb-06-final
Src/Player/DebugCamera.cpp
C++
mit
2,869
--- redirect_from: '/webmaster.html' --- Page to test redirection artefacts
jekyll/jekyll-admin
spec/fixtures/site/support.md
Markdown
mit
77
#ifndef OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H #define OPENTISSUE_COLLISION_SDF_SDF_COMPUTE_POINT_SAMPLING_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // OTTL is li...
misztal/GRIT
3RDPARTY/OpenTissue/OpenTissue/collision/sdf/sdf_compute_point_sampling.h
C
mit
5,941
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About callcoin</source> <translation>در مورد بیتکویین</translation> ...
callcoin/callcoin
src/qt/locale/bitcoin_fa_IR.ts
TypeScript
mit
107,444
The MIT License (MIT) Copyright (c) 2017 Santiago Chávez 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,...
sanxofon/basicnlp
LICENSE.md
Markdown
mit
1,084
import { Component } from '@angular/core'; import { ContactService } from './contact.service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'Simple Contacts Application'; constructor(private contactService:Co...
csrahulram/contacts
ng/src/app/app.component.ts
TypeScript
mit
342
package org.moe.runtime class MoeSystem( private var STDOUT : java.io.PrintStream = Console.out, private var STDIN : java.io.BufferedReader = Console.in, private var STDERR : java.io.PrintStream = Console.err ) { def getSTDIN = STDIN def getSTDOUT = STDOUT def getSTDERR = STDERR def getEnv ...
MoeOrganization/moe
src/main/scala/org/moe/runtime/MoeSystem.scala
Scala
mit
554
<?php use Phinx\Migration\AbstractMigration; class CreateCinemaTables extends AbstractMigration { public function change() { $movies = $this->table("movies", ['id' => true, 'primary_key' => 'id']); $movies->addColumn('kinopoisk_id', 'integer') ->addColumn('name', 'string') ...
kachkanar/website
db/migrations/20171019235147_create_cinema_tables.php
PHP
mit
735
import { delay } from "../delay" import { getOneTrustConsent } from "../getOneTrustConsent" import { oneTrustReady } from "../oneTrustReady" jest.mock("../delay") jest.mock("../oneTrustReady") describe("getOneTrustConsent", () => { const delayMock = delay as jest.Mock const oneTrustReadyMock = oneTrustReady as je...
artsy/force
src/lib/analytics/segmentOneTrustIntegration/__tests__/getOneTrustConsent.jest.ts
TypeScript
mit
1,310
'use strict' const { describe, it, beforeEach, afterEach } = require('mocha') const Helper = require('hubot-test-helper') const { expect } = require('chai') const mock = require('mock-require') const http = require('http') const sleep = m => new Promise(resolve => setTimeout(() => resolve(), m)) const request = uri =...
lgaticaq/hubot-info-rut
test/test.js
JavaScript
mit
9,067
module Modernizr module Rails class Engine < ::Rails::Engine end end end
tsechingho/modernizr-rails
lib/modernizr-rails/engine.rb
Ruby
mit
85
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Fungus { // <summary> /// Add force to a Rigidbody2D /// </summary> [CommandInfo("Rigidbody2D", "AddForce2D", "Add force to a Rigidbody2D")] [AddComponentMenu("")] public ...
FungusGames/Fungus
Assets/Fungus/Scripts/Commands/Rigidbody2D/AddForce2D.cs
C#
mit
2,491
// package metadata file for Meteor.js Package.describe({ name: 'startup-cafe', "author": "Dragos Mateescu <dmateescu@tremend.ro>", "licenses": [ { "type": "MIT", "url": "http://opensource.org/licenses/MIT" } ], "scripts": { }, "engines": { "node": ">= 0.10.0" }, "devDependen...
dragosmateescu/startup-cafe
package.js
JavaScript
mit
1,260
exports.engine = function(version){ version = version || null; switch (version){ case null: case '0.8.2': return require('./0.8.2').engine; default: return null; } };
keeto/deck
Source/engines/v8cgi/engine.js
JavaScript
mit
182
/* This is a managed file. Do not delete this comment. */ #include <include/lifecycle.h> static void echo(lifecycle_Foo this, char* hook) { corto_state s = corto_stateof(this); char *stateStr = corto_ptr_str(&s, corto_state_o, 0); corto_info("callback: %s [%s]", hook, stateStr); free(...
cortoproject/examples
c/modeling/lifecycle/src/Foo.c
C
mit
1,051
""" http://community.topcoder.com/stat?c=problem_statement&pm=1667 Single Round Match 147 Round 1 - Division II, Level One """ class CCipher: def decode(self, cipherText, shift): a = ord('A') decoder = [a + (c - shift if c >= shift else c - shift + 26) for c in range(26)] plain = [chr(dec...
warmsea/tc-srm
srm147/CCipher.py
Python
mit
389
'use strict'; var Killable = artifacts.require('../contracts/lifecycle/Killable.sol'); require('./helpers/transactionMined.js'); contract('Killable', function(accounts) { it('should send balance to owner after death', async function() { let killable = await Killable.new({from: accounts[0], value: web3.toWei('1...
maraoz/zeppelin-solidity
test/Killable.js
JavaScript
mit
571
// // PCMenuPopView.h // PCMenuPopDemo // // Created by peichuang on 16/6/30. // Copyright © 2016年 peichuang. All rights reserved. // #import <UIKit/UIKit.h> @class PCMenuPopView; @protocol PCMenuPopViewDelegate <NSObject> //返回需要多少个菜单项 - (NSInteger)numberOfitemsInMenuPopView:(PCMenuPopView *)menuPopView; //配置对应...
pclion/MenuPopView
PCMenuPopDemo/PCMenuPopView/PCMenuPopView.h
C
mit
993
--- layout: post title: Word Embedding category: NLP --- ## 基于矩阵的分布表示 * 选取上下文,确定矩阵类型 1. “词-文档”矩阵,非常稀疏 2. “词-词”矩阵,选取词附近上下文中的各个词(如上下文窗口中的5个词),相对稠密 3. “词-n gram词组”,选取词附近上下文各词组成的n元词组,更加精准,但是更加稀疏 * 确定矩阵中各元素的值,包括TF-IDF,PMI,log * 矩阵分解,包括 SVD,NMF,CCA,HPCA ## 基于神经网络的语言模型 * NNLM basic Language model ![nnlm](h...
cdmaok/cdmaok.github.io
_drafts/2016-03-01-Word-Embedding.md
Markdown
mit
1,967
from hwt.synthesizer.rtlLevel.extract_part_drivers import extract_part_drivers from hwt.synthesizer.rtlLevel.remove_unconnected_signals import removeUnconnectedSignals from hwt.synthesizer.rtlLevel.mark_visibility_of_signals_and_check_drivers import markVisibilityOfSignalsAndCheckDrivers class DummyPlatform(): ""...
Nic30/HWToolkit
hwt/synthesizer/dummyPlatform.py
Python
mit
775
using Microsoft.Diagnostics.Tracing; using System; using System.Collections.Concurrent; using System.Diagnostics; using System.Linq; using System.Management.Automation; using System.Reactive.Disposables; using System.Reactive.Linq; using System.Threading; namespace EtwStream.PowerShell { [Cmdlet(VerbsCommon.Get, ...
pierre3/EtwStream.PowerShell
EtwStream.PowerShell/GetTraceEventStream.cs
C#
mit
7,932
package com.yunpian.sdk.model; /** * Created by bingone on 15/11/8. */ public class VoiceSend extends BaseInfo { }
yunpian/yunpian-java-sdk
src/main/java/com/yunpian/sdk/model/VoiceSend.java
Java
mit
119
package com.ipvans.flickrgallery.ui.main; import android.util.Log; import com.ipvans.flickrgallery.data.SchedulerProvider; import com.ipvans.flickrgallery.di.PerActivity; import com.ipvans.flickrgallery.domain.FeedInteractor; import com.ipvans.flickrgallery.domain.UpdateEvent; import java.util.concurrent.TimeUnit; ...
VansPo/flickr-gallery
FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainPresenterImpl.java
Java
mit
2,680
package aaron.org.anote.viewbinder; import android.app.Activity; import android.os.Bundle; public class DynamicActivity extends Activity { @Override public void onCreate(Bundle savedInstance) { super.onCreate(savedInstance); Layout.start(this); } }
phil0522/anote
anote-mobile/ANote/app/src/main/java/aaron/org/anote/viewbinder/DynamicActivity.java
Java
mit
279
'use strict'; describe('Directive: resize', function () { // load the directive's module beforeEach(module('orderDisplayApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); //TODO: Add unit tests /*it('should change height', inject(function ($compile, $...
PureHacks/PickMeUp
test/spec/directives/resize.js
JavaScript
mit
487
/* * Copyright (c) 2005 Dizan Vasquez. * * 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, pub...
seeseekey/jenet
src/net/jenet/Packet.java
Java
mit
6,482
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', '$http', '$modal','$rootScope', function($scope, Authentication, $http, $modal, $rootScope) { // This provides Authentication context. $scope.authentication = Authentication; $scope.card = {}; $scop...
bonzyKul/continuous
public/modules/core/controllers/home.client.controller.js
JavaScript
mit
7,537
/*eslint-disable */ var webpack = require( "webpack" ); var sml = require( "source-map-loader" ); /*eslint-enable */ var path = require( "path" ); module.exports = { module: { preLoaders: [ { test: /\.js$/, loader: "source-map-loader" } ], loaders: [ { test: /sinon.*\.js/, loader: "imports?defi...
rniemeyer/lux.js
webpack.config.test.js
JavaScript
mit
733
import {Component, OnInit} from '@angular/core'; import {ActivityService} from '../../services/activity.service'; import {Activity} from "../../models/activity"; import {BarChartComponent} from "../bar-chart/bar-chart.component"; @Component({ selector: 'records-view', moduleId: module.id, templateU...
montgomeryce/HAVC
app/components/records-view/records-view.component.ts
TypeScript
mit
951
from __future__ import (absolute_import, division, print_function, unicode_literals) RJUST = 12 def format_fans(fans): return format_line(prefix='fans'.rjust(RJUST), values=fans) def format_rpms(rpms): return format_line(prefix='rpms'.rjust(RJUST), values=rpms) def format_pwms(pwm...
Bengt/AL-FanControl
python/fancontrol/ui/cli_util.py
Python
mit
2,042
/* ///////////////////////////////////////////////////////////////////////// * File: stlsoft/conversion/internal/explicit_cast_specialisations.hpp * * Purpose: Specialisations of explicit_cast * * Created: 13th August 2003 * Updated: 10th August 2009 * * Home: http://stlsoft.or...
rokn/Count_Words_2015
fetched_code/cpp/code/explicit_cast_specialisations.hpp
C++
mit
11,877
<!-- 説明、ファイル操作・読み込み --> # ファイル操作(読み込み) ではファイルの内容を読み込めるようにしましょう。 ファイル操作は - ファイルを開く(fopen) - ファイルの中身を読み込む(fgets) - ファイルを閉じる(fclose) という手順になります。 それぞれを説明します ## fopen ファイルを開き、ファイルハンドルを返します。 ファイルハンドルとはファイルを特定するIDのようなもので、この後読み込むときやファイルを閉じるときに必要になります。 ``` fopen(ファイル名, モード); ``` の形式で使われます。 モードには大きく3つあり, - r:読み込み(ファ...
CodeshipTeachers/document-php
4/1.md
Markdown
mit
1,767
<!DOCTYPE html> <html> <head> <title>JAVASCRIPT BASICS</title> <meta charset="UTF-8"> <link href="../styles/main.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/n...
amandahogan/amandahogan.github.io
blog/t4-javascript-basics.html
HTML
mit
3,202
<h1>Full Sail Landing Page</h1> <h2>README</h2> <h3>Objective:</h3> <p>Recreate a PSD landing page using HTML/CSS/JavaScript for Full Sail University</p> <h3>Dependencies</h3> <ul> <li>Rails</li> <li>Boostrap</li> </ul> <h3>How to run through terminal</h3> <ul> <li>Fork project</li> <li>Clone forked re...
ctpelnar1988/FullSailLandingPage
README.md
Markdown
mit
676
package com.aspose.cloud.sdk.cells.model; public enum ValidFormatsForDocumentEnum { csv, xlsx, xlsm, xltx, xltm, text, html, pdf, ods, xls, spreadsheetml, xlsb, xps, tiff, jpeg, png, emf, bmp, gif }
asposeforcloud/Aspose_Cloud_SDK_For_Android
asposecloudsdk/src/main/java/com/aspose/cloud/sdk/cells/model/ValidFormatsForDocumentEnum.java
Java
mit
236
# Haml Changelog ## 5.0.1 Released on May 3, 2017 ([diff](https://github.com/haml/haml/compare/v5.0.0...v5.0.1)). * Fix parsing attributes including string interpolation. [#917](https://github.com/haml/haml/pull/917) [#921](https://github.com/haml/haml/issues/921) * Stop distributing test files in gem package and al...
lrosskamp/makealist-public
vendor/cache/ruby/2.3.0/gems/haml-5.0.1/CHANGELOG.md
Markdown
mit
47,994
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Package' db.create_table(u'api_package', ( (u'id', self.gf('django.db.models.fie...
toranb/django-bower-registry
api/migrations/0001_initial.py
Python
mit
1,703
from __future__ import absolute_import import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') import matplotlib.pyplot as plt from plotly.tests.utils import compare_dict from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib...
ee-in/python-api
plotly/tests/test_optional/test_matplotlylib/test_annotations.py
Python
mit
1,342
const { environment } = require('@rails/webpacker') const webpack = require('webpack') // excluding node_modules from being transpiled by babel-loader. environment.loaders.delete("nodeModules"); environment.plugins.prepend('Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', jquery: "jquery",...
edk/tribalknow
config/webpack/environment.js
JavaScript
mit
810
from distutils.core import setup setup( # Application name: name="streaker", # Version number (initial): version="0.0.1", # Application author details: author="Aldi Alimucaj", author_email="aldi.alimucaj@gmail.com", # Packages packages=["streaker"], scripts=['bin/streaker'],...
aldialimucaj/Streaker
setup.py
Python
mit
680
const ResponseMessage = require('../../messages').Response; const through2 = require('through2'); const xtend = require('xtend'); var defaults = { ignore_invalid: false }; function encoder(Message, options) { options = xtend(defaults, options || {}); return through2.obj(function(message, enc, callback) { ...
auth0/node-baas
lib/pipeline/response_writer.js
JavaScript
mit
673
<?php namespace CoreBundle\Model\map; use \RelationMap; use \TableMap; /** * This class defines the structure of the 'list_holidays' table. * * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a given column used in an *...
aianguanlao/prols
Backend/PROLS/src/CoreBundle/Model/map/ListHolidaysTableMap.php
PHP
mit
1,732
// Modified from https://github.com/dburrows/draft-js-basic-html-editor/blob/master/src/utils/draftRawToHtml.js 'use strict'; import { List } from 'immutable'; import * as InlineStylesProcessor from './inline-styles-processor'; import ApiDataInstance from './api-data-instance'; import AtomicBlockProcessor from './atom...
nickhsine/keystone
fields/types/html/editor/draft-converter.js
JavaScript
mit
7,620
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 5.6.17 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 9.1.0.4867 -- -------------------------------------------------------- /*...
Ruk33/AresLands
sql/tables/laravel_migrations.sql
SQL
mit
1,179
db_config = YAML.load(File.read(ROOT_DIR + '/../config/database.yaml'))['production'] ActiveRecord::Base.establish_connection(db_config) class Node < ActiveRecord::Base has_many :cidrs has_one :limit def flow_id self.id + 10 end def mark_in $config['iptables']['mark_prefix_in'] + "%04d" % self.id ...
pawelsawicki/onoclea-qos
webapp/lib/database.rb
Ruby
mit
527
using System; using System.Runtime.InteropServices; using System.Text; namespace CSharpGL { public partial class GL { #region OpenGL 2.0 // Constants ///// <summary> ///// ///// </summary> //public const uint GL_BLEND_EQUATION_RGB = 0x8009; ///// <summ...
bitzhuwei/CSharpGL
CSharpGL/GLAPI/GL.Constants/GL.2.0.Consts.cs
C#
mit
9,798
package ch.hesso.master.caldynam; import android.app.Fragment; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.graphics.Outline; import android.os.Bundle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.support.v7...
Chavjoh/CalDynam
app/src/main/java/ch/hesso/master/caldynam/MainActivity.java
Java
mit
9,388
default: @echo "'make check'" for tests @echo "'make check-cov'" for tests with coverage @echo "'make lint'" for source code checks @echo "'make ckpatch'" to check a patch @echo "'make clean'" to clean generated files @echo "'make man'" to generate sphinx documentation @echo "'make update-requirements'" to updat...
cortesi/qtile
Makefile
Makefile
mit
1,142
# encoding: utf-8 class DocsController < ApplicationController get '/doc' do before_all haml :docs, :layout => :'layouts/main' end end
yedit/yedit
app/controllers/docs_controller.rb
Ruby
mit
152
// // SR_ForgotPasswordViewController.h // scanreader // // Created by jbmac01 on 16/7/21. // Copyright © 2016年 jb. All rights reserved. // #import <UIKit/UIKit.h> @interface SR_ForgotPasswordViewController : UIViewController @end
zhaiyjgithub/scanreader
scanreader/Application/SR_ForgotPassword/SR_ForgotPasswordViewController.h
C
mit
241
#include <iostream> #include <string> #include <tuple> std::tuple<int,int> wczytaj_liczby(); int main () { std::string opcja; do { int a,b; std::cout << "wybierz opcje przeliczania" << std::endl; std::cout << "dodawanie, odejmowanie, mnozenie czy dzielenie?" << std::endl; std::cin >> opcja; if (opcja==...
mateka/cpp-school
calc1/Ekhem.cpp
C++
mit
1,120
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/expanded_landing_page_view.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/...
pushbullet/engineer
vendor/google.golang.org/genproto/googleapis/ads/googleads/v2/resources/expanded_landing_page_view.pb.go
GO
mit
5,383
var log = require('./logger')('reporter', 'yellow'); var colors = require('colors'); /* eslint no-console: 0 */ module.exports = function(diff) { var keys = Object.keys(diff); var count = 0; var timer = log.timer('reporting'); if (keys.length === 0) { log('✔ no diff detected', 'green'); } else { log('...
zeachco/css-specs
lib/reporter.js
JavaScript
mit
1,160
<html> <head> <title>%%%name%%% - Wright! Magazine</title> %%%=templates/headers.html%%% <link rel="stylesheet" href="%%%urlroot%%%fonts/stylesheet.css" type="text/css" charset="utf-8" /> <script type="text/javascript" src="%%%urlroot%%%js/wright.js?a=1"></script> </head> <body onload="onload()"> %%%=templ...
kesiev/Wright
publishers/site/templates/issue.html
HTML
mit
2,009
/** * The MIT License * Copyright (c) 2003 David G Jones * * 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, ...
jonesd/abora-white
src/main/java/info/dgjones/abora/white/edgeregion/TransitionEdge.java
Java
mit
5,464
<?php namespace App\Repository; /** * ImageRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ImageRepository extends \Doctrine\ORM\EntityRepository { }
Aluok/Recipes
Symfony/src/Repository/ImageRepository.php
PHP
mit
227
'use strict'; const moment = require('moment-timezone'); const mongoose = web.require('mongoose'); const Schema = mongoose.Schema, ObjectId = Schema.ObjectId; const OTHERS = {key: 'OTH', value: 'Others'}; module.exports = function({ modelName, displayName, cols, colMap = {}, enableDangerousClientFilter...
mannyvergel/braziw-plugin-dbedit
utils/dbeditSaveController.js
JavaScript
mit
13,441
// // NYSegmentedControl+CBDSettings.h // SmartMathsMP // // Created by Colas on 11/08/2015. // Copyright (c) 2015 cassiopeia. All rights reserved. // #import "NYSegmentedControl.h" @interface NYSegmentedControl (CBDSettings) - (void)setUpForSegmentColor:(UIColor *)segmentColor titleColor:(UICo...
colasjojo/NYSegmentedControl
NYSegmentedControlDemo/NYSegmentedControl+CBDSettings.h
C
mit
499
<?php declare(strict_types=1); namespace Y0lk\SQLDumper; use ArrayObject; use PDO; use InvalidArgumentException; /** * A TableDumperCollection is used to group TableDumper objects together, allowing you to specify dump options on multiple table at once. * All TableDumper methods can be called directly on a TableDu...
Y0lk/sqldumper
src/TableDumperCollection.php
PHP
mit
5,834
<?php namespace modules\admin\controllers; use vendor\Controller; class Option extends Controller { public function index() { echo $this->render('module.admin@views/option.php', ['mainTitle' => '站点设置']); } }
SyanH/minicms
modules/admin/controllers/Option.php
PHP
mit
224
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.resources.implementation; import com.microsoft.a...
pomortaz/azure-sdk-for-java
azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/implementation/ResourceGroupInner.java
Java
mit
3,619
#include <net/http/CServer.hpp> namespace net { namespace http { CServer::CServer(void) : net::CServer(net::EProtocol::TCP) { } }}
raduionita/project-hermes
old/Net.Http.Server/src/net/http/CServer.cpp
C++
mit
144
require "spec_helper" require "tidy_i18n/duplicate_keys" describe "Finding duplicate translations" do def locale_file_paths(file_names) file_names.collect do |path| File.expand_path(File.join(File.dirname(__FILE__), "fixtures", path)) end end it "finds duplicate keys when the locale only has one ...
ericmeyer/tidy_i18n
spec/acceptance/finding_duplicate_keys_spec.rb
Ruby
mit
1,230