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
var Sequelize = require('sequelize'); var sequelize = require('./db.js').Sequelize; var UserRooms = sequelize.define('UserRooms', { }, { updatedAt: false, createdAt: false }); module.exports = UserRooms;
nokia-wroclaw/innovativeproject-meetinghelper
server/NodeTest/models/userRoom.js
JavaScript
mit
236
(function(S, $) { var dom = S.Dom; var sharedUserAdmin = new Spontaneous.MetaView.UserAdmin(); var RootMenuView = new JS.Class(S.PopoverView, { initialize: function(afterCloseCallback) { this.afterCloseCallback = afterCloseCallback; this.callSuper(); }, width: function() { return 250; }, title: fu...
magnetised/spontaneous
application/js/panel/root_menu.js
JavaScript
mit
1,921
const renderToString = require('rogain-render-string'); const html = require('html').prettyPrint; const config = require('./render.config.js'); const data = require('./fixtures/data.json'); var output = renderToString(config.components.get('Template'), data, config); console.log(html(output, { unformatted: [] }));
krambuhl/rogain
test/render.test.js
JavaScript
mit
318
module.exports = function(planetsData) { planetsData.createPlanet("Earth") .then((planet) => { console.log("Created new Planet"); console.log(planet); }) .catch(() => { console.log("Error"); console.dir(err, { colors: true }); }); }
shopOFF/TelerikAcademyCourses
Web-Applications-with-Node.js/NodeJs-Homeworks & Exams/nodeJSWorkshop/controllers/planets-controller.js
JavaScript
mit
316
class Camera { static init() { this.position = vec3.fromValues(-Terrain.tiles.length/2, -Terrain.tiles[0].length/2, -1 * slider_zoom.value); this.rotation = vec3.fromValues(0, 0, 0); } static getViewMatrix() { var q = quat.create(); quat.rotateX(q, q, this.rotation[0]); qu...
Pilex1/Pilex1.github.io
Projects/Wireworld/camera.js
JavaScript
mit
562
// flow-typed signature: 0c204e964f1f481a1264241a5b5d246a // flow-typed version: <<STUB>>/file-loader_v0.11.2/flow_v0.52.0 /** * This is an autogenerated libdef stub for: * * 'file-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with th...
nordsoftware/react-boilerplate
flow-typed/npm/file-loader_vx.x.x.js
JavaScript
mit
854
/** * Keyboard event keyCodes have proven to be really unreliable. * This util function will cover most of the edge cases where * String.fromCharCode() doesn't work. */ const _toAscii = { 188: '44', 109: '45', 190: '46', 191: '47', 192: '96', 220: '92', 222: '39', 221: '93', 219: '91', 173: '45...
derrickpelletier/hyper
lib/utils/key-code.js
JavaScript
mit
1,367
/** * result Module * * Description */ angular .module('result') .directive('navBar', navBar); navBar.$inject = ['loginService', '$log', '$location']; function navBar(loginService, $log, $location) { return { restrict: 'A', link: function(scope, element, attrs, controller) { loginService.user() .success(...
techhahn/Result-Analyzer
public/packages/app/directives/app.navigationbarDirective.js
JavaScript
mit
969
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { ViewPropTypes, Text, View } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import getStyles from './styles'; export default class DefaultMarker extends PureComponent { static propTyp...
joshjconlin/react-native-multi-slider-1
DefaultMarker/index.js
JavaScript
mit
1,946
// // Load the AWS SDK for Node.js // var i = console.log(Math.round(new Date().getTime()/1000.0).toFixed(1)); // var AWS = require('aws-sdk'); // var path = require('path'); // var fs = require('fs'); // // // Load credentials and set region from JSON file // AWS.config.loadFromPath("/Users/jorge/Documents/javas...
PulseraMartin/docking_station
uploader/dynamoDBManager.js
JavaScript
mit
1,405
/** Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this fil...
mukulikadey/SOEN341-Group1
chutzpah/Chutzpah/TestFiles/Jasmine/v2/boot.js
JavaScript
mit
5,936
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.4-master-5034a04 */ goog.provide('ng.material.components.swipe'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.swipe * @description Swipe module! */ /** * @ngdoc directive * @module...
t0930198/shoait
app/bower_components/angular-material/modules/closure/swipe/swipe.js
JavaScript
mit
1,739
'use strict'; const crypto = require('crypto'); /* lib/handshake.js * WebSocket handshake. * * */ module.exports = exports = function(data){ let headers = exports._headers(data); let sha1 = crypto.createHash('sha1'); sha1.update(headers['sec-websocket-key'] + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'); let r...
jamen/rela
lib/handshake.js
JavaScript
mit
1,440
import React from 'react'; import ReactDOM from 'react-dom'; import Deferred from 'deferred-js'; import ElementsModel from './visualizution/elementsModel'; import ElementsList from './visualizution/elementsList'; import ControlsView from './controls/controlsView'; import Immutable from 'immutable'; import styles from '...
vogelino/periodic-table-data-visualization
src/js/index.js
JavaScript
mit
1,705
var demand = require('must'), DateArrayType = require('../DateArrayType'); exports.initList = function(List) { List.add({ datearr: { type: DateArrayType }, nested: { datearr: { type: DateArrayType } } }); }; exports.testFieldType = function(List) { var testItem = new List.model(); it('should default t...
riyadhalnur/keystone
fields/types/datearray/test/server.js
JavaScript
mit
3,459
module.exports = { root: 'src', rulesDir: 'rules', rules: { 'stricter/unused-files': [ { level: 'error', config: { entry: [/.*[\\\/]src[\\\/]index\.ts/, /.*__snapshots__.*/, /.*__fixtures__.*/], relatedEntry: [/.*tes...
stricter/stricter
stricter.config.js
JavaScript
mit
682
'use strict'; // CUSTOM ERROR // /** * FUNCTION: createClass() * Creates a CustomError class constructor. Note that we use function generation so that tests may be run in browsers not supporting ES2015 classes. This function may be loaded in non-ES2015 environments, but should only be invoked when ES2015 classes are ...
kgryte/utils-copy-error
test/fixtures/customerror.subclass.js
JavaScript
mit
741
let AutomaticComponent = require('./AutomaticComponent'); class PurifyCss extends AutomaticComponent { /** * Required dependencies for the component. */ dependencies() { if (Config.purifyCss) { throw new Error( 'PurifyCSS support is no longer available. We recommen...
JeffreyWay/laravel-mix
src/components/PurifyCss.js
JavaScript
mit
419
import "ember"; var Router, App, AppView, templates, router, container; var get = Ember.get, set = Ember.set, compile = Ember.Handlebars.compile, forEach = Ember.EnumerableUtils.forEach; function bootApplication() { router = container.lookup('router:main'); Ember.run(App, 'advanceReadiness'); } funct...
g13013/ember.js
packages_es6/ember/tests/routing/basic_test.js
JavaScript
mit
84,137
/* Gruntfile.js * Grunt workflow for building kick-ass AngularJS applications. * @author Calvin Lai <calvin@wunwun.com> */ module.exports = function(grunt) { var _APP_NAME_ = "CHANGE ME IN Gruntfile.js"; // initial grunt configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), ap...
dharmapurikar/ng-phonegap
Gruntfile.js
JavaScript
mit
13,023
import React from 'react'; import Plus from 'react-icons/fa/plus' export default ({routes, onSelectChange, onCreateLink}) => ( <div className="field has-addons"> <div className="control is-expanded"> <div className="select is-fullwidth"> <select name="route" onChange={e => onSel...
Donluigimx/transporta2_admin
app/components/BusStops/LinkBusStop.js
JavaScript
mit
852
export default { props: { cats: [ { name: 'cat 0', checked: false }, { name: 'cat 1', checked: false } ] }, html: ` <input type="checkbox"> <input type="checkbox"> `, test({ assert, component, target, window }) { const { cats } = component; const newCats = cats.slice(); ...
sveltejs/svelte
test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js
JavaScript
mit
695
var a = 1, b = 2, o = { d: 0, a: a, b: b , c: 3 };
gpittarelli/babel-backwards
packages/babel-backwards/test/obj-shorthand.pre.js
JavaScript
mit
81
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('code-system-property-1', 'Unit | Model | CodeSystem_Property1', { needs: [ 'model:meta', 'model:narrative', 'model:resource', 'model:extension', 'model:coding' ] }); test('it exists', function(assert) { const model = this.su...
davekago/ember-fhir
tests/unit/models/code-system-property-1-test.js
JavaScript
mit
354
import React, { Component } from 'react' import { Modal, Button, message } from 'antd' import LinkSelect from '../../Resource/LinkSelect' import { BAIKE } from '../../../constants' class BaikeButton extends Component { constructor(props) { super(props) this.state = { visible: false, ...
yiweimatou/admin-antd
src/components/ReactQuill/tool/bk.js
JavaScript
mit
1,612
!function(a){function b(){h.each(function(){var b=a(this),d=b.html(),e=b.text();b.data("ocontent",d).html(function(){return c(e)})})}function c(a){if(a=a||"",a.length>76){var b=a.substring(0,45),c=a.substring(45,75),d=a.substring(75,a.length);a=b+"<mark class='"+f+"-highlight'>"+c+"</mark>"+d}return a}function d(){e?h....
mds/readable
readable/readable-new.min.js
JavaScript
mit
792
$(document).ready(function(){ $('#px-product-product_list-form').validate({ rules: { name: { required: true }, product_category_id: { required: true }, price: { required: true }, ...
ilhamudzakir/hijab-master
assets/backend_assets/page/product/product_list_form.js
JavaScript
mit
1,683
import { Match, Link } from './index'; Match.Link = Link; export default Match;
developit/preact-router
match/src/cjs.js
JavaScript
mit
80
import * as Promise from 'bluebird' import BinarySearchTree from './BinarySearchTree' export class Actor { constructor(draw, props = {}) { this.draw = draw this.zIndex = props.zIndex this.animationDuration = props.animationDuration || 0 this.animationLoop = props.animationLoop || false this.anima...
dherault/Menestrel
src/menestrel.js
JavaScript
mit
3,306
module.exports = function(config, mongoose, models, modelName) { // initialized the specific schema to be used and return the model QuestionBasicModel = require('./basic/Question_good_schema')(config, mongoose, models, modelName); // initialized all the utility funcitons for this model // returned all the utility...
volumetric/zorsay
models/Question_new.js
JavaScript
mit
693
/* -- Imports -- */ //Process information //Windows and mac //var ps = require('psnode'); var ps = require('ps-man'); var pusage = require('pidusage'); var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var cron = require('node-cron'); ...
MusicalCreeper01/Monitor
index.js
JavaScript
mit
4,590
'use strict'; const mergeTestDescriptions = require('../../../testUtils/mergeTestDescriptions'); const { messages, ruleName } = require('..'); const sharedTests = { accept: [ { code: 'a { border-#$side: 0; }', description: 'ignore sass-like interpolation', }, { code: 'a { box-sizing: #$type-box; }', ...
stylelint/stylelint
lib/rules/color-hex-case/__tests__/index.js
JavaScript
mit
6,240
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
dxfstart521/study
webpack/dist/main.js
JavaScript
mit
764,807
/** * 客户在wo中的信息 * @type {[type]} */ var _ = require('underscore'); var mongoose = require('mongoose'); var connection = mongoose; var BSS = require('../libs/bss_gz');//** 贵州联通BSS系统 var schema = new mongoose.Schema({ mobile: String, //** 客户手机号 name: String, //** 客户姓名 category: String, //** 类型 info: {},//** wo系统信...
williambai/beyond-webapp
unicom/models/CustomerPhone.js
JavaScript
mit
2,320
'use strict'; angular.module('Friends').controller('UsersCtrl', ['$scope', 'usersData', function ($scope, usersData) { usersData.getAll().then(function (users) { $scope.users = users; }); }]);
georgiwe/FriendsFrontEnd
app/users/usersCtrl.js
JavaScript
mit
197
"use strict"; const output = require('../src/output'); const webpack = require('webpack'); const FriendlyErrorsWebpackPlugin = require('../src/friendly-errors-plugin'); const MemoryFileSystem = require('memory-fs'); const path = require('path'); const webpackPromise = function (config, globalPlugins) { const compil...
geowarin/friendly-errors-webpack-plugin
test/integration.spec.js
JavaScript
mit
6,717
require.ensure([], function(require) { require("./108.async.js"); require("./216.async.js"); require("./432.async.js"); require("./864.async.js"); }); module.exports = 865;
skeiter9/javascript-para-todo_demo
webapp/node_modules/webpack/benchmark/fixtures/865.async.js
JavaScript
mit
172
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
milfred/draft-o-tron-3000
app/assets/javascripts/application.js
JavaScript
mit
669
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.1.0 * @link http://www.ag-grid.com/ * @license MIT */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics ...
ceolter/ag-grid
community-modules/core/dist/es6/selectionController.js
JavaScript
mit
14,742
exports.read = _fs_read; exports.write = _fs_write; exports.readAsync = _fs_read_async; exports.writeAsync = _fs_write_async;
orktes/huealexa
vm/fs.js
JavaScript
mit
127
/* Flot plugin for drawing all elements of a plot on the canvas. Copyright (c) 2007-2014 IOLA and Ole Laursen. Licensed under the MIT license. Flot normally produces certain elements, like axis labels and the legend, using HTML elements. This permits greater interactivity and customization, and often looks better, du...
enettolima/ceva-finance
lib/js/flot/plugins/jquery.flot.canvas.js
JavaScript
mit
12,499
export { default } from 'ember-uni-form/models/uni-form-field'
dollarshaveclub/ember-uni-form
app/models/uni-form-field.js
JavaScript
mit
63
const { spawn } = require('child_process'); const _ = require('lodash'); module.exports = function SpawnWatch(bosco) { return (service, command, cwd, verbose, buildFinished) => { bosco.log(`Spawning ${'watch'.cyan} command for ${service.name.blue}: ${command.log}`); const wc = spawn(process.env.SHELL, ['-c',...
tes/bosco
src/ExternalBuilders/SpawnWatch.js
JavaScript
mit
2,801
"use strict"; var Inflector = require('../../inflector/inflector'); /** * ObjectIdentifier object which helps with the location of files and building identifiers * * @class ObjectIdentifier * @param {String} identifier Identifier to convert to an object. * @constructor */ function ObjectIdentifier(identifier)...
JaspervRijbroek/raddish
lib/object/identifier/identifier.js
JavaScript
mit
4,498
import marked from 'marked'; import htmlclean from 'htmlclean'; import he from 'he'; const renderer = new marked.Renderer(); renderer.listitem = (text) => { if (/<input[^>]+type="checkbox"/.test(text)) { return `<li class="task-list-item">${text}</li>\n`; } return `<li>${text}</li>\n`; }; renderer.code = (...
oneteam-dev/draft-js-oneteam-rte-plugin
src/encoding/markdownToHTML.js
JavaScript
mit
842
/** * Creates a new Element * * @class Element * @extends EventTarget * @description todoc * @property {ClassList} classList * @property {Vector2} velocity **/ function Element() { EventTarget.call(this); Storage.call(this); addElementPropertyHandlers.call(this); this.uuid = generateUUID(); this.velocity ...
bokodi/chillJS
src/core/Element.js
JavaScript
mit
33,138
/** * Default Panels for Pattern Lab plus Panel related events * * note: config is coming from the default viewer and is passed through from PL's config */ import { PrismLanguages as Prism } from './prism-languages'; import { Dispatcher } from '../utils'; export const Panels = { panels: [], count() { ret...
bolt-design-system/bolt
packages/uikit-workshop/src/scripts/components/panels.js
JavaScript
mit
2,943
version https://git-lfs.github.com/spec/v1 oid sha256:4683f5e177392cb502f8c856a4aa32000b062d0aea820991c42454318f0d66da size 1635
yogeshsaroya/new-cdnjs
ajax/libs/codemirror/4.3.0/mode/z80/z80.min.js
JavaScript
mit
129
import sinon from 'sinon'; import unexpected from 'unexpected'; import unexpectedSinon from 'unexpected-sinon'; import unexpectedKnex from 'unexpected-knex'; import { Knorm } from '../src/Knorm'; import { Virtual } from '../src/Virtual'; import { knex } from '../util/knex'; import { postgresPlugin } from '../util/postg...
joelmukuthu/knorm
packages/knorm/test/Model.spec.js
JavaScript
mit
74,813
const printMessage = require('..'); printMessage([ 'This message will be without border', 'But you still can set marginTop and marginBottom' ], { border: false, marginTop: 3, marginBottom: 3 });
ghaiklor/node-print-message
examples/withoutBorder.js
JavaScript
mit
206
const babelRule = require('./rule-babel') const lessRule = require('./rule-less') const rules = [babelRule, lessRule] module.exports = rules
Acgsior/Innovation
build/rules/index.js
JavaScript
mit
143
jQuery(document).ready(function($){ // Хук начала инициализации javascript-составляющих шаблона ls.hook.run('ls_template_init_start',[],window); $('html').removeClass('no-js'); // Определение браузера if ($.browser.opera) { $('body').addClass('opera opera' + parseInt($.browser.version)); } if ($....
ViktorZharina/auto-alto-971-cms
plugins/njournal/js/template.js
JavaScript
mit
8,464
/* Copyright (c) 2006, NAKAMURA Satoru All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions...
robert-kurcina/generator
common/js/lib/DateFormatter.js
JavaScript
mit
7,258
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({widgetLabel:"\u00f3_Feature table______________\u00e0",header:"\u00f3_{title} (Features: {count}, Selected: {selected})__________________________\u00e0",un...
ycabon/presentations
2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/widgets/FeatureTable/nls/ca/FeatureTable.js
JavaScript
mit
1,660
import './src/styles/theme.css'
siddharthkp/siddharthkp.github.io
gatsby-browser.js
JavaScript
mit
32
if( !String.prototype.trim ){ String.prototype.trim = function () { return this.replace(/^\s*/, "").replace(/\s*$/, ""); } } if( !String.prototype.ltrim ){ String.prototype.ltrim=function(){return this.replace(/^\s+/,'');}; } if( !String.prototype.rtrim ){ String.prototype.rtrim=function(){ret...
scirelli/multifileuploader
js/extras-string.js
JavaScript
mit
3,405
DGVocabulary = function () { }; DGVocabulary._MSG = {}; DGVocabulary._MSG["alert_select_row"] = "你必须选择一个或多个行进行此操作!"; DGVocabulary._MSG["alert_perform_operation"] = "您是否确定要进行这项行动?"; DGVocabulary._MSG["alert_perform_operation_delete"] = "您是否确定要进行删除操作?"; DGVocabulary._MSG["alert_perform_operation_clone"] = "您是否确定要进行克隆操作...
jessadayim/findtheroom
web/datagrid-backend/datagrid/languages/js/dg-ch.js
JavaScript
mit
1,001
var fs = require('fs') var yaml = require('yamljs') // Usage: node lib/roundup-helper.js <RoundupMonth> <PostMonth> <Year> // Returns: Markdown table rows to be copy and pasted into blog post // Example for August roundup: node lib/roundup-helper.js August September 2016 // Example post: http://electron.atom.io/blog/2...
noomatv/noomatv.github.io
lib/roundup-helper.js
JavaScript
mit
994
// compare version of current installation with the one on github // inform the user of any update if github version is different // $(document).ready(function() { var current = $.get("./version/version-info.json"), github = $.get("http://raw.githubusercontent.com/kodejuice/localGoogoo/master/version/version-i...
kodejuice/localGoogle
version/version-tracker.js
JavaScript
mit
939
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.10.1-rc2-master-7bbfd1f */ goog.provide('ng.material.components.list'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.list * @description * List module */ angular.module('material.compon...
CirceThanis/bower-material
modules/closure/list/list.js
JavaScript
mit
8,249
/** * clientCacheProvider **/ angular.module('providers') .provider('clientCacheProvider', function ClientCacheProvider($state, clientCacheService) { console.log(clientCacheService) console.log(clientCacheService.logout()); var forceLogin = false; this.forceLogin = function(clientCacheService) { ...
evoila/cf-spring-web-management-console
frontend/app/js/providers/general/clientCacheProvider.js
JavaScript
mit
407
/* eslint react/no-multi-comp:0, no-console:0 */ import { createForm } from 'rc-form'; import React, { PropTypes } from 'react'; import ReactDOM from 'react-dom'; import { regionStyle, errorStyle } from './styles'; let Form = React.createClass({ propTypes: { form: PropTypes.object, }, setEmail() { this...
setState/form
examples/setFieldsValue.js
JavaScript
mit
1,127
const commander = require('../'); // These are tests of the Help class, not of the Command help. // There is some overlap with the higher level Command tests (which predate Help). describe('sortOptions', () => { test('when unsorted then options in order added', () => { const program = new commander.Command(); ...
tj/commander.js
tests/help.sortOptions.test.js
JavaScript
mit
3,036
/** * @summary Race timing system * @author Guillaume Deconinck & Wojciech Grynczel */ 'use strict'; // time-model.js - A mongoose model // // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); const Schema = mongoose.Schema; const timeSchema = ne...
osrts/osrts-backend
src/services/times/time-model.js
JavaScript
mit
568
/* global elmApp Elm */ // Brunch automatically concatenates all files in your // watched paths. Those paths can be configured at // config.paths.watched in "brunch-config.js". // // However, those files will only be executed if // explicitly imported. The only exception are files // in vendor, which are never wrapped...
chasm/trelm
web/static/js/app.js
JavaScript
mit
1,133
/// <reference path="//Microsoft.WinJS.1.0/js/base.js" /> /// <reference path="../model/event.js" /> (function () { var initAppBarGlobalCommands = function () { var eventsButton = document.getElementById("navigate-onClick-to-events"); eventsButton.addEventListener("click", function () { ...
vaster/RestReminder
RestReminderApp/RestReminderApp/js/commands/command.js
JavaScript
mit
2,545
// Generated by CoffeeScript 1.7.1 (function() { var pf, pfr; pf = function(n) { return pfr(n, 2, []); }; pfr = function(n, d, f) { if (n < 2) { return f; } if (n % d === 0) { return [d].concat(pfr(n / d, d, f)); } return pfr(n, d + 1, f); }; module.exports = pf; }).c...
dlwire/coffeescript-barebones
javascripts/pf.js
JavaScript
mit
331
var plan = require('./index'); module.exports = plan; var HOST = 'brainbug.local'; plan.target('single', function(done) { setTimeout(function() { done([ { host: HOST + 'lol', username: 'pstadler', agent: process.env.SSH_AUTH_SOCK, failsafe: true }, { ho...
thundernixon/thundernixon2015wp-sage
node_modules/flightplan/flightplan.js
JavaScript
mit
2,931
var notify = require('gulp-notify'), path = require('path'); var c = exports; c.all = allFiles; c.target = targetFolder; c.TARGET_FOLDER = "./dist"; // fonts c.FOLDER_FONTS = './node_modules/font-awesome/fonts/*'; c.TARGET_FOLDER_FONTS = 'fonts'; // images c.FOLDER_IMAGES = './resources/images/*...
bekk/bekkboard
GUI/tasks/config.js
JavaScript
mit
1,991
'use strict'; var isArray = Array.isArray; module.exports = function (t, a) { var el1, el2, el3, result, nodes, c1, c2; if (typeof document === 'undefined') return; el1 = document.createElement('p'); el2 = document.createElement('div'); result = t.call(document, el2, el1, 'Test', null); a(isArray(result), tr...
egovernment/eregistrations-demo
node_modules/dom-ext/test/document/#/normalize.js
JavaScript
mit
876
$(function() { //switch the menu style in a area of site $(window).on("scroll", function() { var black_opacity = $("#top-session"); var projetos = $("#projetos"); var contatos = $("#contato"); var offsetblack_opacity = black_opacity.offset(); var offsetprojetos = projetos.offset(); var offsetcontatos = ...
gabrieldev525/me
js/script-jquery.js
JavaScript
mit
1,335
Items = new Mongo.Collection('items'); Items.allow({ insert: function(userId, doc) { return !!userId; }, update: function(userId, doc) { return !!userId; }, remove: function(userId, doc) { return !!userId; } }); ItemSchema = new SimpleSchema({ name: { type: String, label: "Item Name"...
mrogach2350/rpgLoot
collections/items.js
JavaScript
mit
1,589
/** * The slideshow controller. * Get settings and initialise PrismSlider for each layer, * add controls and events, then call slideTo method on click. * @return {Object} The set of public methods. */ var slideshow = (function(window, undefined) { 'use strict'; /** * Enum navigation classes, attributes a...
claudiocalautti/prism-slider
js/slideshow3.js
JavaScript
mit
5,466
// JavaScript Variables and Objects // I paired by myself on this challenge. // __________________________________________ // Write your code below. var secretNumber = 7 var password = 'just open the door' var allowedIn = false var members = ['John', 'Joe', 'Mike', 'Mary'] // ______________________________________...
robertreith/phase-0
week-7/variables-objects.js
JavaScript
mit
1,472
// Chargement des données (en queuing pour plus de rapidité) queue(1) .defer(d3.json, "/dataviz/rgph2014/tunisiageo.json") .defer(d3.csv, "/dataviz/rgph2014/rgph2014.csv") .awaitAll(function(error, results){ var topology = results[0] var governorates = topojson.feature(topology, topology.objects...
mahrsi/mahrsi.github.io
dataviz/rgph2014/rgph2014.js
JavaScript
mit
3,263
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; import { Sidebar } from '../components'; export default class App extends Component { props: { children: Children }; render() { return ( <div> <Sidebar /> <div className="main-panel"> ...
hlynn93/basic_ims
app/containers/App.js
JavaScript
mit
385
module.exports = { Shape: require('./lib/shape'), Node: require('./lib/node'), Error: require('./lib/node_error'), MemorySource: require('./lib/memory_source'), };
LastLeaf/datree
index.js
JavaScript
mit
180
// All code points in the `Sora_Sompeng` script as per Unicode v8.0.0: [ 0x110D0, 0x110D1, 0x110D2, 0x110D3, 0x110D4, 0x110D5, 0x110D6, 0x110D7, 0x110D8, 0x110D9, 0x110DA, 0x110DB, 0x110DC, 0x110DD, 0x110DE, 0x110DF, 0x110E0, 0x110E1, 0x110E2, 0x110E3, 0x110E4, 0x110E5, 0x110E6, 0x110E7, 0x110E...
mathiasbynens/unicode-data
8.0.0/scripts/Sora_Sompeng-code-points.js
JavaScript
mit
424
/** * The AnalysisShapeUploadView module. * * @return AnalysisShapeUploadView class (extends Backbone.View). */ define( [ 'backbone', 'mps', 'turf', 'map/services/ShapefileService', 'helpers/geojsonUtilsHelper' ], function(Backbone, mps, turf, ShapefileService, geojsonUtilsHelper) { 'u...
Vizzuality/gfw-climate
app/assets/javascripts/map/views/tabs/AnalysisShapeUploadView.js
JavaScript
mit
3,022
new Vue({ el: document.querySelector('.page-app-detail'), data: { selectedApp: {} }, created() { this._loadApp(); }, methods: { refreshSecret() { axios.post(`${AppConf.apiHost}/app/${serverData.appId}/refresh_secret`) .then(res => { this.selectedApp.AppSecret = res.data; ...
hstarorg/simple-sso
src/assets/js/app-detail.js
JavaScript
mit
506
import DetailsList from '@components/details-list.vue' describe('DetailsList Component', () => { let wrapper let options beforeEach(() => { options = { propsData: { id: '01-01', }, } wrapper = createWrapper(DetailsList, options) }) it('is a Vue instance', () => { expect...
patrickcate/dutch-art-daily
__tests__/unit/components/details-list.spec.js
JavaScript
mit
745
/** * CacheStorage * ============ */ var fs = require('fs'); var dropRequireCache = require('../fs/drop-require-cache'); /** * CacheStorage — хранилище для кэша. * @name CacheStorage * @param {String} filename Имя файла, в котором хранится кэш (в формате JSON). * @constructor */ function CacheStorage(filename) ...
1999/enb
lib/cache/cache-storage.js
JavaScript
mit
2,450
/** * Module dependencies */ var mongoose = require('mongoose') , Schema = mongoose.Schema; /** * @constructor */ var MongooseStore = function (Session) { this.Session = Session; }; /** * Load data */ // for koa-generic-session MongooseStore.prototype.get = function *(sid, parse) { try { var data = y...
rfink/koa-session-mongoose
index.js
JavaScript
mit
2,003
export function mapToCssModules (className, cssModule) { if (!cssModule) return className return className.split(' ').map(c => cssModule[c] || c).join(' ') }
suranartnc/graphql-blogs-app
.core/app/utils/coreui.js
JavaScript
mit
162
const alter = require('../lib/alter.js'); const _ = require('lodash'); const Chainable = require('../lib/classes/chainable'); const argType = require('../handlers/lib/arg_type.js'); module.exports = new Chainable('condition', { args: [ { name: 'inputSeries', types: ['seriesList'] }, { n...
istresearch/PulseTheme
kibana/src/core_plugins/timelion/server/series_functions/condition.js
JavaScript
mit
2,900
__inline('ajax.js'); __inline('amd.js'); __inline('appendToHead.js'); __inline('bind.js'); __inline('copyProperties.js'); __inline('counter.js'); __inline('derive.js'); __inline('each.js'); __inline('hasOwnProperty.js'); __inline('inArray.js'); __inline('isArray.js'); __inline('isEmpty.js'); __inline('isFunction.js'); ...
hao123-fe/her-runtime
src/javascript/util/util.js
JavaScript
mit
459
'use strict'; var _ = require('lodash'); var fs = require('fs'); var path = require('path'); var util = require('util'); var async = require('./async'); /** * Read a directory recursively. * The directory will be read depth-first and will return paths relative * to the base directory. It will only result in file...
wbyoung/jsi-blowtorch
lib/fs-extras.js
JavaScript
mit
4,456
'use strict' /* MIT License Copyright (c) 2016 Ilya Shaisultanov 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, ...
diversario/node-ssdp
lib/index.js
JavaScript
mit
13,902
var express = require('express'); var scraptcha = require('scraptcha'); // Scraptcha images source information. var imageInformation = {path: __dirname + "/images/green/", filePrefix: "i_cha_", fileExtension: ".gif"}; // Initialize the Scraptcha data. sc...
deckerld/scraptcha
test/file-server.js
JavaScript
mit
847
/** * @ignore * Add indent and outdent command identifier for KISSY Editor. * @author yiminghe@gmail.com */ /* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ KISSY.add(function (S, require) { var Editor = require('...
tedyhy/SCI
kissy-1.4.9/src/editor/sub-modules/plugin/dent-cmd/src/dent-cmd.js
JavaScript
mit
10,700
// # Settings Test // Test the various tabs on the settings page /*globals CasperTest, casper */ // These classes relate to elements which only appear when a given tab is loaded. // These are used to check that a switch to a tab is complete, or that we are on the right tab. var generalTabDetector = '.settings-content...
Unitech/Ghost
core/test/functional/client/settings_test.js
JavaScript
mit
16,580
// Utility namespace for InPhO JavaScript. Contains dynamic URL builder. var inpho = inpho || {}; inpho.util = inpho.util || {}; /* inpho.util.url * Takes a path for the inpho rest API and builds an absolute URL based on the * current host and protocol. * * // running on http://inphodev.cogs.indiana.edu:8080 * >...
iSumitG/topic-explorer
www/lib/inpho/util.js
JavaScript
mit
1,940
'use strict'; var EMBED_WIDTH = 600; var EMBED_HEIGHT = 300; var mustache = require('mustache'), url = require('url'); var cache = require('./cache'); exports.getEmbedCode = function getEmbedCode(_, request, response) { var params = url.parse(request.url, true).query; if (!params.url) { respond('', 400, response...
SockDrawer/SockSite
oembed.js
JavaScript
mit
1,976
'use strict'; angular.module('myContacts.contacts', ['ngRoute', 'firebase']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/contacts', { templateUrl: 'contacts/contacts.html', controller: 'ContactsController' }); }]) .controller('ContactsController', ['$scope', '$firebaseArra...
joryschmidt/angular-contacts-app
app/contacts/contacts.js
JavaScript
mit
4,767
var expect = require('chai').expect; // NOTE: we run tests in chrome only, because we mainly test server API functionality. describe('[Raw API] beforeEach/afterEach hooks', function () { it('Should run hooks for all tests', function () { var test1Err = null; return runTests('./testcafe-fixtures/ru...
helen-dikareva/testcafe-phoenix
test/functional/fixtures/api/raw/before-after-each-hooks/test.js
JavaScript
mit
2,401
var ApiGen = ApiGen || {}; ApiGen.elements = [["c", "ErrorController"], ["c", "ErrorModel"], ["c", "ErrorView"], ["c", "ExampleController"], ["c", "ExampleModel"], ["c", "ExampleView"], ["c", "IController"], ["c", "IErrorController"], ["c", "IErrorModel"], ["c", "IModel"], ["c", "IndexController"], ["c", "Inde...
EricRabil/steel-framework
docs/api/v1-b2/elementlist.js
JavaScript
mit
591
/** * @title Check last password reset * @overview Check the last time that a user changed his or her account password. * @gallery true * @category access control * * This rule will check the last time that a user changed his or her account password. * */ function checkLastPasswordReset(user, context, callback...
auth0/rules
src/rules/check-last-password-reset.js
JavaScript
mit
675
import { router } from 'router'; $('body').ready(function() { router.start(); });
fasttakerbg/Final-Project
public/scripts/main.js
JavaScript
mit
87
/** * Simple script to detect misc CSS @support's. * If not... Redirect to: /upgrade * * To minify (example): * uglifyjs detect_support.js -o detect_support.min.js -c -m */ (function detectSupport() { var upradeURL = '/upgrade', /** * List your CSS @support tests. * On the upgr...
iEFdev/browser-upgrade-page
upgrade/js/detect_support.js
JavaScript
mit
1,304
'use strict'; describe('Controller: SitenewCtrl', function () { // load the controller's module beforeEach(module('uiApp')); var SitenewCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); SitenewCtrl = $co...
Ecotrust/floodplain-restoration
ui/test/spec/controllers/sitenew.js
JavaScript
mit
513