code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/**
* replace
* @author sanshishen
* @email 1327653237@qq.com
* @date 2015-08-31 15:47:52
* @version 1.0.0
*/
/**
* myApp Module
*
* Description
*/
angular.module('myApp', [])
.directive('hello', function(){
// Runs during compile
return {
// name: '',
// priority: 1,
// terminal: true,
... | sanshishen/AngularJS | chapter005_directive/js/replace.js | JavaScript | mit | 958 |
/**
* Created by OmarCespedes on 16/09/2015.
*/
var Board = (function(){
var instance;
function init(){
//Private stuff
var board = [];
var row = [];
var MAX_Y = 0;
var MAX_X = 0;
function setMAX_X(value){
MAX_X = value
}
function ... | omar234/GhostEscape | js/Board.js | JavaScript | mit | 4,352 |
{
var el = instance.document.getRef(nodeId);
if (el) {
return instance.document.fireEvent(el, type, e, domChanges);
}
return new Error('invalid element reference "' + nodeId + '"');
}
| stas-vilchik/bdd-ml | data/12505.js | JavaScript | mit | 198 |
var p = require('deployk-utils').path;
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var async = require('async');
var extend = require('config-extend');
var DeployEmitter = require('./Emitter');
var DeployContext = require('./Context');
var WatchWrapper = require('./../Rule/WatchWr... | aleskafka/deployk | lib/DeployProcess/DeployProcess.js | JavaScript | mit | 10,506 |
if(typeof(require) !== 'undefined'){
var helpers = require("./helpers").helpers;
var entity = require("./entity").entity;
}
var explosion = function(config){
helpers.apply(config, this);
this.color = this.color || "#FFF";
this.position = this.position || {x:0, y:0};
this.duration = 0;
this.modelIndex = 6;
this... | ewoudj/game | static/laserwar/explosion.js | JavaScript | mit | 2,323 |
/**
* Module dependencies
*/
/**
* Sails.prototype.initialize()
*
* Start the Sails server
* NOTE: sails.load() should be run first.
*
* @api private
*/
module.exports = function initialize() {
var sails = this;
// Indicate that server is starting
sails.log.verbose('Starting app at ' + sails.config.... | Shyp/sails | lib/app/private/initialize.js | JavaScript | mit | 543 |
'use strict';
var link = 'http://127.0.0.1:49822/api/';
angular.module('myApp.viewProducts', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/viewProducts', {
templateUrl: 'partials/viewProducts/viewProducts.html',
controller: 'viewCategoryC... | dvn123/SINF | app/partials/viewProducts/viewProducts.js | JavaScript | mit | 5,567 |
/*
* Validates Dutch phonenumbers and more.
* Copyright (C) Doeke Zanstra 2001-2009
* Distributed under the BSD License
* See http://www.xs4all.nl/~zanstra/dzLib/telNr.htm for more info.
*/
//--| v1.4
//--| Lijst van regionale kengetallen (nummers moeten 10 cijfers hebben)
TelNr.prototype.regio4=',0111,0113,0114,0... | kjepper/CallerPi | public/js/telnr.js | JavaScript | mit | 10,782 |
"use strict";
app.controller('specServerArchitectureController', ['$scope', '$rootScope', function ($scope, $rootScope) {
}]); | keithbox/AngularJS-CRUD-PHP | doc/v3/js/controller/spec01-sys-block-diagram.js | JavaScript | mit | 128 |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
let Navbar = ({id, type, friendLists, demo}) => {
let title, parent = 0;
if(friendLists[id]) {
title = friendLists[id].title;
parent = friendLists[id].parent;
}
let parentList=[];... | b00705008/TellYou | src/containers/Feed/Navbar.js | JavaScript | mit | 1,956 |
var path = require('path')
var webpack = require('webpack')
var CleanWebpackPlugin = require('clean-webpack-plugin')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var WorkboxPlugin = require('workbox-webpack-plugin')
// Phaser webpack config
var phaserMod... | lean/phaser-es6-webpack | webpack.production.config.js | JavaScript | mit | 2,563 |
module.exports = { tuple, fst, snd, swap }
// -- Construct a new tuple.
// tuple :: ...Any -> Array
function tuple(...any) {
return any
}
// -- Extract the first component of a pair.
// fst :: Array -> Any
function fst(pair) {
return pair[0]
}
// -- Extract the second component of a pair.
// snd :: Array -> Any
... | gummesson/tuples | index.js | JavaScript | mit | 476 |
var PouchDB = require('pouchdb'),
_ = require('underscore');
var Store = function(client) {
this.client = client;
this.db = new PouchDB('data_store', {
db : require('memdown')
});
this.container = {
cookie:""
};
};
Store.prototype.get = function get(_id) {
var client = this.client,
container = this... | donaldej/adjs | lib/Store.js | JavaScript | mit | 800 |
export { default } from "@getflights/ember-mist-components/components/output-field-select/component";
| pjcarly/ember-mist-components | app/components/output-field-select/component.js | JavaScript | mit | 102 |
// spots
core.require('/connector/connector0.js','/line/spots.js',function (connectorP,linePP) {
let rs = connectorP.instantiate();
/* adjustable parameters */
rs.interval = 10;
rs['stroke-width'] = 4;
rs.stroke = 'black';
/* end adjustable parameters */
rs.numSpots = 0;
rs.initializePrototype = function () {
... | chrisGoad/prototypejungle | connector/spots.js | JavaScript | mit | 534 |
angular.module("TTT")
.controller("emuController", function($location, $scope) {
var vm = this;
$(".textbox").text("Emus have overrun Australia destroying all crops. You are sent to 1932 where Major Merideth has second thoughts about facing the fierce emu mob once more.");
$(".bodyemu").css("background-image", ... | beck410/GJ_Timetravel | app/js/controllers/emu.controller.js | JavaScript | mit | 12,536 |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
return queryInterface.addColumn('even... | lionelrudaz/api.wellnow.ch | migrations/20170406201552-addDescriptionToEvents.js | JavaScript | mit | 642 |
angular.module('app').factory('commentModel2_0', function($http, userModel)
{
var commentStatic = function(config)
{
this.id = null;
this.message = '';
this.author = new userModel;
this.subscribe = false;
this.notice = false;
this.parent = null;
this.child... | Talaka-by/comments-client-module | assets/comments/model/comment.js | JavaScript | mit | 4,043 |
'use strict';
import webpack from 'webpack';
import Merge from 'webpack-merge';
import UglifyJsPlugin from 'uglifyjs-webpack-plugin';
import CommonConfig from './webpack.base.config';
export default Merge( CommonConfig, {
module: {
rules: [
{
test: /\.js$/,
load... | putipong/meme-generator | webpack-config/webpack.prod.config.js | JavaScript | mit | 592 |
// =====================================================================
// This file is part of the Microsoft Dynamics CRM SDK code samples.
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line docu... | daryllabar/XrmAutoNumberGenerator | WebResources/dlab_/scripts/messages/Sdk.PublishDuplicateRule.js | JavaScript | mit | 4,046 |
import defaultResolve from 'part:@sanity/base/document-actions'
import {TestConfirmDialogAction} from './actions/TestConfirmDialogAction'
import {TestErrorDialogAction} from './actions/TestErrorDialogAction'
import {TestLegacyDialogAction} from './actions/TestLegacyDialogAction'
import {TestModalDialogAction} from './a... | sanity-io/sanity | dev/test-studio/parts/resolveDocumentActions.js | JavaScript | mit | 1,041 |
// Generated on 2014-10-29 using generator-angular 0.8.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks au... | circleback/test-ga-gtm | Gruntfile.js | JavaScript | mit | 9,032 |
var expect = require("chai").expect;
var splitter = require("../src/splitter.js");
var shell = require("shelljs");
var readPath = "tests/testdata.md",
pattern = "###",
cleanName = "###",
writePath = "tests/tmp/",
numberFiles = true;
describe("splitterWithCounter", function() {
it("should split markdown file... | accraze/split-md | tests/splitterWithCounter.test.js | JavaScript | mit | 1,140 |
const app = require("express")();
const static = require("express").static(__dirname + '/public');
const exphbs = require('express-handlebars');
const Handlebars = require('handlebars');
const handlebarsInstance = exphbs.create({
defaultLayout: 'main',
// Specify helpers which are only registered on this inst... | Magicdalonglong/Stevensoverflow | app.js | JavaScript | mit | 1,996 |
var AnimationModule = {
name: "Timeline",
enabled: true,
render_helpers: true,
//settings_panel: [{name:"renderer", title:"Renderer", icon:null }],
_trajectories: [],
init: function()
{
//create the timeline
this.tab = InterfaceModule.lower_tabs_widget.addWidgetTab( Timeline );
this.timelin... | pjkui/webglstudio.js | editor/js/modules/animation.js | JavaScript | mit | 10,977 |
version https://git-lfs.github.com/spec/v1
oid sha256:bc552eab0d074f45c18272aa32b5ad192c1310f1ac2430a297a405a539bbf9b6
size 6366
| yogeshsaroya/new-cdnjs | ajax/libs/responsive-nav.js/1.0.31/responsive-nav.min.js | JavaScript | mit | 129 |
/**
* This directive displays a d3 node edge graph for a given UQ author
*/
'use strict';
angular.module('uql.orgs')
.controller('UqlOrgsStaffCollaborationCtrl', ['$scope', 'UQL_CONFIG_ORGS', function ($scope, UQL_CONFIG_ORGS) {
$scope.expectedViz = 'staff-collaboration';
$scope.filename = 'report-' + $sco... | uqlibrary/uqlapp-frontend | frontend/app/scripts/modules/uql.orgs/directives/staffCollaborationDirective.js | JavaScript | mit | 9,913 |
'use strict';
var _ = require('lodash'),
Promise = require('bluebird'),
Umzug = require('umzug'),
db = require('../../models'),
umzug = require('./umzug'),
path = require('./path'),
Sequelize = db.Sequelize,
sequelize = db.sequelize;
function migrate() {
var migrator = new Umzug({
st... | barmatz/node-app-testing-helpers-for-sequelize | test/helpers/sequelize.js | JavaScript | mit | 1,347 |
/*******************************************************************************
* Helper script for create_project.htm page.
* Copyright (c) 2013 Romain TOUZÉ
******************************************************************************/
var DATE_FORMAT="mm/dd/yy";
$(function (){
$('#id_start_date').datepick... | rtouze/theRoofIsOnFire | theRoofIsOnFire/static/create_project.js | JavaScript | mit | 541 |
angular.module('App')
.config(['config', 'authProvider', function (config, authProvider) {
/**
* Config auth module
*/
authProvider.config(config.auth);
}]);
| meanstack-io/meanstack-cli | repository/auth/resources/assets/javascripts/angular/providers/auth.js | JavaScript | mit | 201 |
import React from 'react';
import addons from '@storybook/addons';
import AssetContainer from './addon/AssetContainer';
import {ADDON_ID, PANEL_ID} from './constants';
export default (options) => {
var { dataUrl } = options;
if (!dataUrl) {
console.log('The Brand.ai library viewer is not configured');
ret... | brandai/brandai-storybook | src/manager.js | JavaScript | mit | 604 |
import Stream from './stream';
// Return a Stream that is currently live. If no such Stream exists,
// return the Stream with the closest start time that is in the future.
// Canceled streams are ignored
export default function find_next_stream (streams, since_week_start) {
streams = streams.filter(function (strea... | XrXr/WhenIsKateLive | src/js/stream/find-next-stream.js | JavaScript | mit | 689 |
module.exports = function (sequelize, DataTypes) {
var User = sequelize.define('User', {
name: DataTypes.STRING,
email: {type: DataTypes.STRING, unique: true},
uid: {type: DataTypes.STRING(64)},
first_name: DataTypes.STRING,
last_name: DataTypes.STRING,
birthday: Data... | steemit-intl/steemit.com | db/models/user.js | JavaScript | mit | 1,106 |
import geometry from './geometry';
class torusGeometry extends geometry {
getIntro() {
return 'Creates a [THREE.TorusGeometry](https://threejs.org/docs/#api/geometries/TorusGeometry)';
}
getDescription() {
return '';
}
getAttributesText() {
return {
...super.getAttributesText(),
ra... | toxicFork/react-three-renderer | docs/src/internalComponents/torusGeometry.js | JavaScript | mit | 460 |
/* globals module require */
"use strict";
const Router = require("express").Router;
module.exports = function(db) {
let router = new Router(),
controller = require("")
router.get("/", controller.all);
}; | kidroca/JavaScript-Applications | Workshop/02. Creating-SPA-apps/controllers/users.js | JavaScript | mit | 223 |
( function( global, factory ) {
if ( typeof module === "object" && typeof module.exports === "object" ) {
global.FormatData = module.require( "./format-data" );
module.exports = factory( global );
} else {
factory( global );
}
} )( this, function( global ) {
global.FormatData[... | yannickebongue/text-resources | src/format-data-it.js | JavaScript | mit | 1,262 |
import { test } from '../utils'
import { RuleTester } from 'eslint'
const ruleTester = new RuleTester()
, rule = require('rules/no-named-as-default')
ruleTester.run('no-named-as-default', rule, {
valid: [
test({ code: 'import "./malformed.js"' }),
test({code: 'import bar, { foo } from "./bar";'}),
... | yp/eslint-plugin-import | tests/src/rules/no-named-as-default.js | JavaScript | mit | 1,707 |
/*global FM*/
/**
* An object type can be associated to a game object. Then all game objects of a
* certain type can be processed uniformally through the object type object.
* @class FM.ObjectType
* @param {string} pName The name of the object type.
* @constructor
* @author Simon Chauvin.
*/
FM.ObjectType = func... | simonchauvin/FM.js-Engine | src/ObjectType.js | JavaScript | mit | 9,515 |
var Utils = function(){
this.generateCallBackForSQLiteQueryProcessing = function(emitter, arrayToStoreResults, eventToEmit, callback){
var processResults = function(err, results){
if(err) { throw err; }
var mySelf = this;
this.callback = callback;
this.resultArray = arrayToStoreResults;
resul... | AlLanMandragoran/BookWorm | Utils/Utils.js | JavaScript | mit | 1,252 |
"use strict";
function canMoveToSpace(gameState, spaceIndex) {
const isPlayerOne = gameState.isPlayerOne;
const boardSpace = gameState.board[spaceIndex];
if (boardSpace.isPlayerOne === isPlayerOne) {
return {isActivePlayer: true, isAvailable: true};
} else if (boardSpace.isPlayerOne === n... | KatherineThompson/acey-deucey-game-engine | lib/can-move-to-space.js | JavaScript | mit | 588 |
// Space Invaders with EaselJS by Gabor Pinter
// -------------------------------
// 0. Global variables
// I. Initialize document
// II. Set up "gameboard"
// III. Update screen (scenes)
// III. X.: Transparent things (available on all scenes)
// III. 0.: Main menu
// III. 1.: Animation
// III. 2.: Gameplay
//... | gaboratorium/gaboratorium-notes | apps/space-invaders/js/js.js | JavaScript | mit | 12,734 |
/**
* Copyright 2015 Telerik AD
*
* 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | assunluis80/Web-Starter-Template | assets/scripts/vendors/kendo_ui/kendo.panelbar.js | JavaScript | mit | 37,708 |
/*
DBObject bir tablo icin sql yazma surecini kisaltmayi amaclar.
Example usage
var dbo = new DBObject(tablename, database);
dbo.select(params, callbak)
dbo.get(id, callback)
dbo.insert(data, callback)
dbo.update(id, data, callback)
dbo.save(data, callback)
dbo.delete(id, callback)
*/
'use strict';
... | cavitkeskin/CodeTest | lib/DBObject.js | JavaScript | mit | 11,639 |
export { default } from 'ember-ui-kit/components/ui-table'; | ming-codes/ember-ui-kit | app/components/ui-table.js | JavaScript | mit | 59 |
function Timer() {
this.startTime = null
this.endTime = null
this.executionTime = null
}
Timer.prototype = {
end: function()
{
this.endTime = new Date().getTime()
},
getExcutionTime: function()
{
return (this.endTime - this.startTime)/1000
},
get... | g4code/gdeployer | lib/gdeployer/timer.js | JavaScript | mit | 739 |
// require-Spec.js
describe("\'require\'", function(){
var new_module = {
name: "new_module",
exports: {
testApi: "testApi",
foo: (function() {})
},
option: {}
};
beforeEach(function (){
define(new_module.name, function(exports) {
for( api in new_module.exports ) {
exports[api] = new_modul... | rihdus/modCraft | spec/3-require-Spec.js | JavaScript | mit | 1,124 |
'use strict';
describe('Chart.helpers.core', function() {
var helpers = Chart.helpers;
describe('noop', function() {
it('should be callable', function() {
expect(helpers.noop).toBeDefined();
expect(typeof helpers.noop).toBe('function');
expect(typeof helpers.noop.call).toBe('function');
... | nnnick/Chart.js | test/specs/helpers.core.tests.js | JavaScript | mit | 17,897 |
define(function(require) {
var string = require('base/string');
describe('string', function() {
describe('trim(str)', function (){
it('should trim leading or trailing whitespace', function () {
expect(string.trim(' foo bar ')).toBe('foo bar');
expect(string... | bizdevfe/dragonfly | test/spec/base/string.js | JavaScript | mit | 838 |
/**
*
* @param options
* @returns {*}
*/
jDoc.engines.RTF.prototype._controlWordsParsers.rin = function (options) {
var parseParams = options.parseParams,
parseResult = options.parseResult,
propertyName,
param = options.param;
if (parseParams.currentTextElementParent) {
if (... | bardt/jDoc | src/engines/RTF/reader/private/_controlWordsParsers/format/rin.js | JavaScript | mit | 740 |
describe('serverValidationManager tests', function () {
var serverValidationManager;
beforeEach(module('umbraco.services'));
beforeEach(inject(function ($injector) {
serverValidationManager = $injector.get('serverValidationManager');
}));
describe('managing field validation e... | lars-erik/Umbraco-CMS | src/Umbraco.Web.UI.Client/test/unit/common/services/server-validation-manager.spec.js | JavaScript | mit | 11,076 |
import {SubmissionError} from 'redux-form'
import axios from 'axios'
import alert, {confirmation} from '../../../../components/utils/alerts'
import {smallBox, bigBox, SmartMessageBox} from "../../../../components/utils/actions/MessageActions";
import Msg from '../../../../components/i18n/Msg'
import {isYesClicked, is... | zraees/sms-project | client/src/app/routes/settings/containers/Teachers/submit.js | JavaScript | mit | 13,765 |
//http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl
import {
shader,
parseParamNumber,
toFloatString
} from '../util'
/*
* @param {Number} amount 0..1 , (real value 0..360)
*/
export default function hue (amount = 1) {
const C = toFloatString( parseParamNumber(amount))
return shader... | easylogic/codemirror-colorpicker | src/util/gl/filter/pixel/hue.js | JavaScript | mit | 456 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.WebRTC = f()}}... | drazenzadravec/projects | WebRTC/electron/lib/webrtc.bundle.js | JavaScript | mit | 285,832 |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and m... | ftasse/writer-blog | config.js | JavaScript | mit | 3,966 |
jQuery.extend(DateInput.DEFAULT_OPTS, {
month_names: ["Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
short_month_names: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
short_day_names: ["Н... | jonleighton/date_input | translations/jquery.date_input.uk_UA.js | JavaScript | mit | 497 |
const PouchDB = require('pouchdb');
const Product = require('./models/product.js');
const User = require('./models/user.js');
const Faker = require('faker');
const Constants = require('./constants.js');
// let database = new PouchDB('market');
module.exports = class Database {
constructor() {
this.databa... | MISTERSOFT/nodejs-mock-webservice | database.js | JavaScript | mit | 7,747 |
"use strict";
module.exports = function (config) {
var isCI = process.env['CI'];
var baseConfig = {
frameworks: ['mocha', 'chai-sinon', 'sinon', 'chai'],
files: [
'tests/**/*.js'
],
preprocessors: {
'tests/**/*.js': ['webpack', 'sourcemap']
},
... | appcues/snabbdom-virtualize | test/karma.conf.js | JavaScript | mit | 2,796 |
// Add filters here | MetropolitanTransportationCommission/vpp-webapp | client/public/utils/filters/filters.js | JavaScript | mit | 19 |
var interfaceCSF_1_1Zpt_1_1IAddOnAssemblyFinder =
[
[ "GetAssemblyPath", "interfaceCSF_1_1Zpt_1_1IAddOnAssemblyFinder.html#ade92d81f988cfec8473c8cebd8a24d2f", null ]
]; | csf-dev/ZPT-Sharp | docs/_legacy/v1.x/api/interfaceCSF_1_1Zpt_1_1IAddOnAssemblyFinder.js | JavaScript | mit | 172 |
module.exports = {
CITY_ID: 'tainan.gov.tw',
API_HOST: 'http://open1999.tainan.gov.tw:82'
}
| wonderchang/tainan-open-1999 | src/config.js | JavaScript | mit | 96 |
export default class Intern {
constructor() {
this.voiceModule = window.speechSynthesis;
this.inOffice = Boolean(this.voiceModule);
this.degrees = [];
if (this.inOffice) {
this.educate();
this.voiceModule.onvoiceschanged = this.educate;
}
}
s... | team-thyme/soundboard-front-end | frontend/src/helpers/Intern.js | JavaScript | mit | 1,048 |
const DPR = window.devicePixelRatio || 1;
export default {
gameBgColor: '#282c34',
localStorageName: 'minesweeper',
// 默认游戏面板属性
tileWidth: 64,
tileHeight: 64,
boardWidth: 9,
boardHeight: 9,
mineTotal: 10,
// 计时器与地雷计数器图标尺寸与颜色
timerIconSize: Math.min(48 * DPR, 128),
mineIconSize: Math.min(48 * DPR... | flyerq/minesweeper | src/config.js | JavaScript | mit | 723 |
// Separate Numbers with Commas in JavaScript **Pairing Challenge**
// I worked on this challenge with: Luis Ybarra
// Pseudocode
// INPUT: Integer - Number
// OUTPUT: String representation of the Integer INPUT with commas added
// STEPS:
// 1. Convert Integer to String
// 2. Reverse the String
// 3. Add a c... | Norberto94/phase-0 | week-7/nums_commas.js | JavaScript | mit | 1,809 |
/** @format */
import { Platform } from 'react-native'
import { Client, Configuration, StandardDelivery } from 'bugsnag-react-native'
const config = new Configuration('my API key!')
var endpoint = Platform.OS === 'ios' ? 'http://localhost:9339' : 'http://10.0.2.2:9339'
config.delivery = new StandardDelivery(endpoint, ... | bugsnag/bugsnag-react-native | features/fixtures/sampler/index.js | JavaScript | mit | 585 |
import { CommandMessage } from "discord.js-commando";
import isNumber from "lodash/isNumber";
import moment from "moment";
import { autobind } from "core-decorators";
import t from "text-table";
import WebcordCommand from "lib/WebcordCommand";
import TwitchApiClient from "services/twitch/api";
import { Channel, Stream... | kettui/webcord-bot | src/services/twitch/commands/twitch-find.js | JavaScript | mit | 6,110 |
$(document).ready(function() {
/* Get a grid from the URL if it exists */
/*
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ?... | mpgarate/emoticondream.com | DA/TES/js/playergrid.js | JavaScript | mit | 4,332 |
define(
"famous-ui/ColorPicker/ColorButton",
[
"require",
"exports",
"module",
"famous/EventHandler",
"famous/CanvasSurface"
],
function (t, i, e)
{
function s(t, i) {
this.size = t, this.canvasSize = [2 * this.size[0], 2... | tcha-tcho/famous_basic | js/famous/famous-ui/Colorpicker/ColorButton.js | JavaScript | mit | 916 |
var searchData=
[
['paset',['PASET',['../lcdvars_8h.html#ae23dd30399e167b6335fbd6cb6eba496',1,'lcdvars.h']]],
['pc',['PC',['../struct_t_i_m_e_r___type.html#aae64a9b4b2b024def414615068715511',1,'TIMER_Type']]],
['pclk',['PCLK',['../lpc2106_8h.html#a4e4204874a63b2a01811ee2819285f58',1,'lpc2106.h']]],
['pconp',['P... | edukng623/NoughtsNCrosses | docs/doxygen/html/search/all_f.js | JavaScript | mit | 2,028 |
/* eslint-disable import/no-extraneous-dependencies,import/no-unresolved */
import React, { useState } from 'react';
import { Form } from 'react-bootstrap';
import { Typeahead } from 'react-bootstrap-typeahead';
import options from '../data';
/* example-start */
const BasicExample = () => {
const [singleSelections... | ericgio/react-bootstrap-typeahead | example/src/examples/BasicExample.js | JavaScript | mit | 1,227 |
$(document).ready(function(){
$("body").prepend(Fairywren.makeNavbar());
Fairywren.swarm.alert = $("#swarm").find("#alert");
jQuery.get('api/swarm').
done(
function(data)
{
if(! Fairywren.isError(data))
{
Fairywren.swarm.data = data;
Fairywren.swarm();
}
}
).fail(Fairywren.handleServerF... | hydrogen18/fairywren | html/js/swarm.js | JavaScript | mit | 1,464 |
{
"Button": {
"Save": "enregistrer",
"Cancel": "annuler",
"MoreOptions": "plus d'options",
"SaveAndKeepOpen": "enregistrer et rester ici"
},
"Status": {
"Published": "publié",
"Unpublished": "en attente/brouillon"
},
"SaveMode": {
"show": "afficher cet élément",
"hide": "masquer cet élément",
"br... | 2sic/2sxc-eav-languages | dist/i18n/edit-fr.js | JavaScript | mit | 4,184 |
// Syöte ----------------------------------------------------------------------
function Nappain() {
this.painetut = {};
this.VASEN = 37;
this.YLOS = 38;
this.OIKEA = 39;
this.ALAS = 40;
}
Nappain.prototype.painettu = function(koodi) {
return this.painetut[koodi];
};
Nappain.prototype.pain... | luutifa/jstetris | deadcode.js | JavaScript | mit | 736 |
'use strict';
class Attachment {
constructor(properties) {
properties = properties || {};
this.timestamp = properties.timestamp || Date.now();
this.name = properties.name;
this.base64 = properties.base64;
this.url = properties.url;
this.headers = properties.headers;... | Putaitu/samoosa | src/client/js/models/Attachment.js | JavaScript | mit | 1,611 |
'use strict'
var shimmer = require('../shimmer')
var logger = require('../logger').child({component: 'pg'})
var parseSql = require('../db/parse-sql')
var POSTGRES = require('../metrics/names').POSTGRES
var util = require('util')
// Adds a segment
// The `config` argument is either a statement string template or a pg... | dnosk/Firesong | node_modules/newrelic/lib/instrumentation/pg.js | JavaScript | mit | 9,216 |
'use strict';
// Make sure lines are splited correctly
// http://stackoverflow.com/questions/1155678/javascript-string-newline-character
const NEW_LINE = /\r\n|\n|\r/,
path = require('path'),
fs = require('fs'),
Q = require('q'),
cwd = process.cwd();
/**
* Take ical stri... | machinshin/ical2json | index.js | JavaScript | mit | 4,447 |
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true,
stats: {
colors: true
},
proxy: {
'/proxy/*': {
t... | harrygreen/parlay | server.js | JavaScript | mit | 545 |
/* globals require, module */
/**
* Module dependencies.
*/
var pathtoRegexp = require('path-to-regexp');
/**
* Module exports.
*/
module.exports = page;
/**
* To work properly with the URL
* history.location generated polyfill in https://github.com/devote/HTML5-History-API
*/
var... | AndryGP/loopback-polymer-test | client/bower_components/page/index.js | JavaScript | mit | 9,743 |
$(document).ready(function () {
//NOTE: Ajax command MUST start with the Ajax provider key. (Plugin Ref)
$('#syspay_cmdSave').unbind("click");
$('#syspay_cmdSave').click(function () {
$('.processing').show();
$('.actionbuttonwrapper').hide();
nbxget('nbrightsystempay_savesettin... | leedavi/NBrightSystemPay | Themes/config/js/systempay.js | JavaScript | mit | 1,142 |
version https://git-lfs.github.com/spec/v1
oid sha256:13b184013af00192afea923539131e9804f0068ce382bae3dd94bd73e4a7bb08
size 7017
| yogeshsaroya/new-cdnjs | ajax/libs/foundation/5.3.0/js/foundation/foundation.reveal.min.js | JavaScript | mit | 129 |
YUI.add("extension-view-parent", function(Y) {
"use strict";
var ViewParent = function() {},
classRegex = /\s+/;
ViewParent.ATTRS = {
children : {
value : false
}
};
ViewParent.prototype = {
initializer : function() {
this._view... | tivac/yui-viewparent | extension-view-parent.js | JavaScript | mit | 3,125 |
"use strict";
define([
'marionette',
"ldsh!../../templates/list/EmptyIssuesView.html"
], function(Marionette, template) {
/**
* Renders only if issues collection is empty
*/
return Marionette.ItemView.extend({
template: template
});
}); | AlexTiTanium/GithubUI | app/modules/issues/view/list/EmptyIssuesView.js | JavaScript | mit | 276 |
var gulp = require("gulp");
var connect = require("gulp-connect");
var less = require("gulp-less");
var browserSync = require('browser-sync');
var notify = require("gulp-notify");
var plumber = require("gulp-plumber");
gulp.task("move", function () {
return gulp.src(
['./bower_components/bootstrap/dist/js/... | zhangjikai/samples | angularjs-table/gulpfile.js | JavaScript | mit | 2,395 |
var NAVTREEINDEX0 =
{
"32_8h.html":[0,0,0,0,0,0,0],
"32_8h.html#a4ba979a6ca3bd355a212e278392b94ab":[0,0,0,0,0,0,0,2],
"32_8h.html#a878911ffecdb5d585e7f64e1c77bdb38":[0,0,0,0,0,0,0,1],
"32_8h.html#ab433e39ce55411c661f37d8a6c05454b":[0,0,0,0,0,0,0,0],
"32_8h_source.html":[0,0,0,0,0,0,0],
"64_8h.html":[0,0,0,0,0,0,1],
"64... | jpvanoosten/Predef | Documentation/html/navtreeindex0.js | JavaScript | mit | 9,190 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
const Lint = require("tslint");
class Rule extends Lint.Rules.AbstractRule {
apply(sourceFile) {
return this.applyWithFunction(sourceFile, walk, undefined);
}
}
exports.Rule = Rule;
function wa... | f-list/exported | tslint/vuePropsRule.js | JavaScript | mit | 1,767 |
/* *
* 版本:1.0.0.1
* 系统名称: FUI
* 模块名称: JRES
* 文件名称: FUI.FitLayout.js
* 作者:qudc
* 邮箱:qudc@hundsun.com
* 软件版权: 恒生电子股份有限公司
* 功能描述:FFitLayout组件对应的代码。
* 修改记录:
* 修改日期 修改人员 修改说明
* 20121022 hanyin 支持可扩展的组件自适应
* 2013-03-07 qudc 修改resize事件,延迟200毫秒计算布局。
*/
/**
* @name FFitLayout
* @c... | hundsun/fui | fui.web/src/main/webapp/FUI-extend/js/src/FUI.FitLayout.js | JavaScript | mit | 4,320 |
/**
* Created by srinath on 17/9/15.
*/
/**
* Created by srinath on 11/7/15.
*/
let configForDevelopment = {
baseUrl: 'http://dev-media-api.appsflare.com:1337/',
loginUrl: '/oauth/token',
//clientId: '1ESN8EPG1H',
//clientSecret: 'hdW1kHE5mqPPBGgcXzlOh9RxCI7DlR'
//providers: {
// google: {
// clie... | appsflare/ludicrum-webapp | config/development/app.config.js | JavaScript | mit | 486 |
'use strict';
const assert = require('chai').assert;
const index = require('../index.js');
const remote = require('../lib/fetch-remote.js');
const local = require('../lib/fetch-local.js');
const sinon = require('sinon');
const mime = require('mime-types');
let sandbox;
function swallow() {}
describe('index.js (Unit... | gamell/fetch-base64 | test/index.js | JavaScript | mit | 10,689 |
angular.module('one4all').directive('actionsButton', [function () {
return {
templateUrl: 'directives/actions-button/actions-button.html',
restrict: 'E',
scope: {
edit: '&edit',
remove: '&remove'
},
link: function ($scope, $element, $attr) {
}... | Opiskull/one4all | client/src/common/directives/actions-button/actions-button-directive.js | JavaScript | mit | 332 |
import React, { Component } from 'react';
import { View, Text, Picker, ScrollView, StyleSheet } from 'react-native';
import SpiritStats from './stats';
import SpiritInitiative from './initiative';
import SpiritSkills from './skills';
import Combobox from '../ComboboxWrapper';
import GroupBox from '../GroupBox';
co... | aaron-edwards/Spirit-Guide | src/components/SpiritViewer/index.js | JavaScript | mit | 1,552 |
/**
* Created by EbyC on 8/24/2014.
*/
'use strict';
angular.module('qas')
.service('MathService', [ function() {
this.add = function(a, b) { return a + b ; };
this.subtract = function(a, b) { return a - b; };
this.multiply = function(a, b) { return a * b; };
this.divide = functi... | cliffeby/Quiz040 | modules/qas/client/services/qas.client.service1.js | JavaScript | mit | 646 |
var a00897 =
[
[ "count", "a00897.html#af6a39bfc7e1dc3b6f9c997c1c43fa996", null ],
[ "is_genkey", "a00897.html#ab0cedc80cd8670d02eee4b6e31500f5f", null ],
[ "offset", "a00897.html#ac681806181c80437cfab37335f62ff39", null ],
[ "slot", "a00897.html#ad23984515efd99983fa4baf3754082a1", null ],
[ "zone",... | PhillyNJ/SAMD21 | cryptoauthlib/docs/html/a00897.js | JavaScript | mit | 379 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.publish = publish;
exports.handle = handle;
var _util = require('../util');
/**
* Publish the project to a service such as Surge, or AWS
*/
function publish(program, dispatch) {
program.command('publish [domain]').description('... | stylish/stylish | packages/skypager-cli/lib/commands/publish.js | JavaScript | mit | 2,967 |
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return this.store.findAll('machine');
}
});
| hugopeixoto/saopedro | frontend/app/pods/machines/route.js | JavaScript | mit | 136 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Box from './Box';
import Sizes from './Sizes';
class Row extends Component {
render() {
let {
column,
doubling,
className,
...rest
} = this.props;
let cx = cla... | gocreating/react-tocas | src/Row.js | JavaScript | mit | 667 |
import React from "react"
import Helmet from "react-helmet"
import get from "lodash/get"
import { rhythm, scale } from "../utils/typography"
class ComicTemplate extends React.Component {
renderItemInfo () {
const post = this.props.data.markdownRemark
const { itemArtist, itemType } = post.frontmatter
if (... | foggy1/FuSC | src/templates/comic.js | JavaScript | mit | 3,965 |
'use strict'
const api = module.exports = require('express').Router()
api
.get('/heartbeat', (req, res) => res.send({ok: true}))
.use('/auth', require('./auth'))
.use('/users', require('./users'))
.use('/products', require('./products'))
.use('/cart', require('./cartitems'))
.use('/categories', require('.... | limitless-leggings/limitless-leggings | server/api.js | JavaScript | mit | 408 |
(function() {
"use strict";
var template = '<div class="vue-info" :style="{\'font-size\': size + \'px\'}">\
<i class=\"fa fa-question vue-info-hint\"></i>\
<span class="vue-info-message" :class="[direction]">\
<slot></slot>\
... | codelation/codelation_ui | app/assets/javascripts/codelation_ui/std/components/info.js | JavaScript | mit | 554 |
/* Solutions for Basic Algorithm Scripting at www.freecodecamp.org */
/*
* Reverse the provided string.
*
* You may need to turn the string into an array before you can reverse it.
*
* Your result must be a string.
*
* reverseString("hello") should become "olleh".
*/
function reverseString(str) {
return str.spli... | J-kaizen/kaizen | javascript/FCCAlgos/basic-algos.js | JavaScript | mit | 4,421 |
'use strict';
var imjv = require('is-my-json-valid');
var schemas = {};
var validator = {
validate(schema, data) {
var v = imjv(schema, {schemas});
var valid = v(data);
validator.errors = v.errors;
return valid;
},
addSchema(schema, id) {
schemas[id] = schema;
}
};
require('./testValidato... | epoberezkin/test-validators | test/is-my-json-valid.js | JavaScript | mit | 356 |
angular
.module('app.services.api', [
'ngResource'
])
.factory('app.services.api', [
'$location',
'$resource',
function($location, $resource) {
var api = $resource('/api/:entity');
return api;
}
])
;
| ericclemmons/genesis-skeleton.com | src/client/app/js/services/apiService.js | JavaScript | mit | 241 |