repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
kevinwallace/sandstorm-shell
make.sh
1231
#!/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...
mit
waterlink/wateruby
README.md
2721
# 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...
mit
pgmaginot/DARK_ARTS
src/solvers/V_Phi_Error_Calculator.h
953
#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...
mit
martinlindhe/gameui
ui.go
2922
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...
mit
VAGAScom/basquiat
spec/lib/adapters/rabbitmq_adapter_spec.rb
3032
# 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' }], ...
mit
raynaldmo/my-contacts
v1/public/js/collection/Contacts.js
189
/** * Created by raynald on 8/22/14. */ App.Collections.Contacts = Backbone.Collection.extend({ model : App.Models.Contact, localStorage: new Backbone.LocalStorage('my-contacts') });
mit
nicoribeiro/java_efactura_uy
app/dgi/classes/respuestas/reporte/RSAKeyValueType.java
2365
// // 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...
mit
AlexKuhnle/ShapeWorld
shapeworld/realizers/dmrs/languages/README.md
11341
# 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...
mit
lastsys/scalajs-openui5
src/main/scala/org/scalajs/openui5/sap/m/TextArea.scala
1347
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 ...
mit
LabGaming/Locally-multiplayer-minigame
Assets/ProCamera2D/Examples/TopDownShooter/Scripts/Enemy/EnemyAttack.cs
2675
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 ...
mit
wix/wix-style-react
packages/wix-ui-tpa/src/components/Ratings/docs/index.story.tsx
3405
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 '../.....
mit
Infragistics/zero-blocks
projects/igniteui-angular/migrations/update-6_1/index.spec.ts
1517
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...
mit
dwarfofdawn/Minion_Game
README.md
352
# 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...
mit
lipangit/JiaoZiVideoPlayer
app/src/main/java/cn/jzvd/demo/ActivityListViewMultiHolder.java
5869
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...
mit
airtoxin/elekiter
test/index.js
33
const assert = require('assert')
mit
mopedjs/moped
packages/sentry/src/client.ts
1735
// @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...
mit
efraxpc/SEPPP
index.html
256
<!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>
mit
team-diana/nucleo-dynamixel
docs/html/group___h_a_l___t_i_m___aliased___macros.html
21613
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
mit
goodwinxp/Yorozuya
library/ATF/__MIDL___MIDL_itf_shobjidl_0212_0001.hpp
250
// 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
mit
PagueVeloz/JsonFluentMap
Dockerfile
197
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
mit
Orcomp/Orc.GraphExplorer
src/Orc.GraphExplorer/ViewModels/GraphExplorerViewModel.cs
5680
#region Copyright (c) 2014 Orcomp development team. // ------------------------------------------------------------------------------------------------------------------- // <copyright file="GraphExplorerViewModel.cs" company="Orcomp development team"> // Copyright (c) 2014 Orcomp development team. All rights reserv...
mit
jbgo/fastball
spec/lib/fastball_spec.rb
129
require 'spec_helper' describe Fastball do it 'has a version number' do expect(Fastball::VERSION).not_to be nil end end
mit
iron-io/iron_dotnet
src/IronSharp.IronMQ/IronMqCloudHosts.cs
371
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...
mit
crdx/utorrent-mrc
LICENCE.md
1066
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...
mit
yngvark/gridwalls2
source/lib/communicate-through-named-pipes/source/src/main/java/com/yngvark/communicate_through_named_pipes/input/InputFileReader.java
2016
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...
mit
yfuseki/yfuseki.github.io
_posts/2013-08-16-code-highlighting-post.md
3246
--- 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....
mit
lwhiteley/grunt-pagespeed-report
tasks/config/reporters/json.js
523
'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...
mit
creitiv/athene2
src/assets/source/scripts/modules/serlo_i18n.js
2085
/** * 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...
mit
nikhilrajaram/nikhilrajaram.github.io
courses/ACCT-4825.md
2593
--- 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...
mit
ivanceras/rustorm
examples/insert_usage_mysql.rs
1853
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...
mit
hxxft/lynx-native
Core/base/threading/message_pump_posix.h
844
// 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...
mit
tmrotz/LinkedIn-People-MEAN.JS
modules/people/server/controllers/people.server.controller.js
4096
'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...
mit
luisDVA/luisdva.github.io
_posts/2018-09-14-spreadsheet-hijinks.md
7271
--- 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...
mit
zenonparker/googlejam
contests/2010_round1a_may_22/a/main.cpp
2533
#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...
mit
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
50
"use strict";require("retape")(require("./index"))
mit
compile-me/compile-me.github.io
_posts/programming-language/scala/2015-03-26-scala_begin.md
3675
--- 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!") } } ``` <!...
mit
amatiasq/Sassmine
lib/Block.js
753
/** * 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...
mit
visualizersdotnl/tpb-06-final
Src/Player/DebugCamera.cpp
2869
#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...
mit
jekyll/jekyll-admin
spec/fixtures/site/support.md
77
--- redirect_from: '/webmaster.html' --- Page to test redirection artefacts
mit
misztal/GRIT
3RDPARTY/OpenTissue/OpenTissue/collision/sdf/sdf_compute_point_sampling.h
5941
#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...
mit
callcoin/callcoin
src/qt/locale/bitcoin_fa_IR.ts
107444
<?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> ...
mit
sanxofon/basicnlp
LICENSE.md
1084
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,...
mit
csrahulram/contacts
ng/src/app/app.component.ts
342
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...
mit
MoeOrganization/moe
src/main/scala/org/moe/runtime/MoeSystem.scala
554
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 ...
mit
kachkanar/website
db/migrations/20171019235147_create_cinema_tables.php
735
<?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') ...
mit
artsy/force
src/lib/analytics/segmentOneTrustIntegration/__tests__/getOneTrustConsent.jest.ts
1310
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...
mit
lgaticaq/hubot-info-rut
test/test.js
9067
'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 =...
mit
tsechingho/modernizr-rails
lib/modernizr-rails/engine.rb
85
module Modernizr module Rails class Engine < ::Rails::Engine end end end
mit
FungusGames/Fungus
Assets/Fungus/Scripts/Commands/Rigidbody2D/AddForce2D.cs
2491
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 ...
mit
dragosmateescu/startup-cafe
package.js
1260
// 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...
mit
keeto/deck
Source/engines/v8cgi/engine.js
182
exports.engine = function(version){ version = version || null; switch (version){ case null: case '0.8.2': return require('./0.8.2').engine; default: return null; } };
mit
cortoproject/examples
c/modeling/lifecycle/src/Foo.c
1051
/* 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(...
mit
warmsea/tc-srm
srm147/CCipher.py
389
""" 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...
mit
maraoz/zeppelin-solidity
test/Killable.js
571
'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...
mit
pclion/MenuPopView
PCMenuPopDemo/PCMenuPopView/PCMenuPopView.h
993
// // 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; //配置对应...
mit
cdmaok/cdmaok.github.io
_drafts/2016-03-01-Word-Embedding.md
1967
--- 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...
mit
Nic30/HWToolkit
hwt/synthesizer/dummyPlatform.py
775
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(): ""...
mit
pierre3/EtwStream.PowerShell
EtwStream.PowerShell/GetTraceEventStream.cs
7932
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, ...
mit
yunpian/yunpian-java-sdk
src/main/java/com/yunpian/sdk/model/VoiceSend.java
119
package com.yunpian.sdk.model; /** * Created by bingone on 15/11/8. */ public class VoiceSend extends BaseInfo { }
mit
VansPo/flickr-gallery
FlickrGallery/app/src/main/java/com/ipvans/flickrgallery/ui/main/MainPresenterImpl.java
2680
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; ...
mit
phil0522/anote
anote-mobile/ANote/app/src/main/java/aaron/org/anote/viewbinder/DynamicActivity.java
279
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); } }
mit
PureHacks/PickMeUp
test/spec/directives/resize.js
487
'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, $...
mit
seeseekey/jenet
src/net/jenet/Packet.java
6482
/* * 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...
mit
bonzyKul/continuous
public/modules/core/controllers/home.client.controller.js
7537
'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...
mit
rniemeyer/lux.js
webpack.config.test.js
733
/*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...
mit
montgomeryce/HAVC
app/components/records-view/records-view.component.ts
951
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...
mit
Bengt/AL-FanControl
python/fancontrol/ui/cli_util.py
2042
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...
mit
rokn/Count_Words_2015
fetched_code/cpp/code/explicit_cast_specialisations.hpp
11877
/* ///////////////////////////////////////////////////////////////////////// * 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...
mit
CodeshipTeachers/document-php
4/1.md
1767
<!-- 説明、ファイル操作・読み込み --> # ファイル操作(読み込み) ではファイルの内容を読み込めるようにしましょう。 ファイル操作は - ファイルを開く(fopen) - ファイルの中身を読み込む(fgets) - ファイルを閉じる(fclose) という手順になります。 それぞれを説明します ## fopen ファイルを開き、ファイルハンドルを返します。 ファイルハンドルとはファイルを特定するIDのようなもので、この後読み込むときやファイルを閉じるときに必要になります。 ``` fopen(ファイル名, モード); ``` の形式で使われます。 モードには大きく3つあり, - r:読み込み(ファ...
mit
amandahogan/amandahogan.github.io
blog/t4-javascript-basics.html
3202
<!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...
mit
ctpelnar1988/FullSailLandingPage
README.md
676
<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...
mit
asposeforcloud/Aspose_Cloud_SDK_For_Android
asposecloudsdk/src/main/java/com/aspose/cloud/sdk/cells/model/ValidFormatsForDocumentEnum.java
236
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 }
mit
lrosskamp/makealist-public
vendor/cache/ruby/2.3.0/gems/haml-5.0.1/CHANGELOG.md
47994
# 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...
mit
toranb/django-bower-registry
api/migrations/0001_initial.py
1703
# -*- 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...
mit
ee-in/python-api
plotly/tests/test_optional/test_matplotlylib/test_annotations.py
1342
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...
mit
edk/tribalknow
config/webpack/environment.js
810
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",...
mit
aldialimucaj/Streaker
setup.py
680
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'],...
mit
auth0/node-baas
lib/pipeline/response_writer.js
673
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) { ...
mit
aianguanlao/prols
Backend/PROLS/src/CoreBundle/Model/map/ListHolidaysTableMap.php
1732
<?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 *...
mit
nickhsine/keystone
fields/types/html/editor/draft-converter.js
7620
// 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...
mit
Ruk33/AresLands
sql/tables/laravel_migrations.sql
1179
-- -------------------------------------------------------- -- 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 -- -------------------------------------------------------- /*...
mit
pawelsawicki/onoclea-qos
webapp/lib/database.rb
527
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 ...
mit
bitzhuwei/CSharpGL
CSharpGL/GLAPI/GL.Constants/GL.2.0.Consts.cs
9798
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...
mit
Chavjoh/CalDynam
app/src/main/java/ch/hesso/master/caldynam/MainActivity.java
9388
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...
mit
cortesi/qtile
Makefile
1142
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...
mit
yedit/yedit
app/controllers/docs_controller.rb
152
# encoding: utf-8 class DocsController < ApplicationController get '/doc' do before_all haml :docs, :layout => :'layouts/main' end end
mit
zhaiyjgithub/scanreader
scanreader/Application/SR_ForgotPassword/SR_ForgotPasswordViewController.h
241
// // 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
mit
mateka/cpp-school
calc1/Ekhem.cpp
1120
#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==...
mit
pushbullet/engineer
vendor/google.golang.org/genproto/googleapis/ads/googleads/v2/resources/expanded_landing_page_view.pb.go
5383
// 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/...
mit
zeachco/css-specs
lib/reporter.js
1160
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('...
mit
kesiev/Wright
publishers/site/templates/issue.html
2009
<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...
mit
jonesd/abora-white
src/main/java/info/dgjones/abora/white/edgeregion/TransitionEdge.java
5464
/** * 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, ...
mit
Aluok/Recipes
Symfony/src/Repository/ImageRepository.php
227
<?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 { }
mit
mannyvergel/braziw-plugin-dbedit
utils/dbeditSaveController.js
13441
'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...
mit
colasjojo/NYSegmentedControl
NYSegmentedControlDemo/NYSegmentedControl+CBDSettings.h
499
// // 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...
mit
Y0lk/sqldumper
src/TableDumperCollection.php
5834
<?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...
mit
SyanH/minicms
modules/admin/controllers/Option.php
224
<?php namespace modules\admin\controllers; use vendor\Controller; class Option extends Controller { public function index() { echo $this->render('module.admin@views/option.php', ['mainTitle' => '站点设置']); } }
mit
pomortaz/azure-sdk-for-java
azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/implementation/ResourceGroupInner.java
3619
/** * 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...
mit
raduionita/project-hermes
old/Net.Http.Server/src/net/http/CServer.cpp
144
#include <net/http/CServer.hpp> namespace net { namespace http { CServer::CServer(void) : net::CServer(net::EProtocol::TCP) { } }}
mit
ericmeyer/tidy_i18n
spec/acceptance/finding_duplicate_keys_spec.rb
1230
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 ...
mit