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
[25, "hi", true]
msfrisbie/pjwd-src
Chapter23JSON/Syntax/Arrays/ArraysExample02.js
JavaScript
mit
17
import Page from '../layouts/page'; import MainContent from '../layouts/main-content'; import PersonHeader from '../components/person-header'; import LevelContainer from '../components/level-container'; export default () => ( <Page> <PersonHeader /> <MainContent> <LevelContainer /> </MainContent> ...
jorgeherrera1/skill-matrix
pages/person.js
JavaScript
mit
332
_tmpl.link_entity = function( entity, tagName, returnHTML, count ){ if( !entity ) return false if( tagName && typeof tagName == 'object' ) return _tmpl.link_entity( entity, tagName['tagName'] || null, tagName['returnHTML'] || null, tagName['count'] || null ) tagName = tagName || 'a' re...
Diablohu/WhoCallsTheFleet
source/js-app/templates/link_entity.js
JavaScript
mit
1,109
/* eslint-disable no-await-in-loop */ const assert = require('assert'); const TestUtils = require('../utils'); const query1 = `SELECT 1 AS id, 'blue' AS color`; function wait(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } async function testBatchToCompletion(config) { const utils = new TestUti...
rickbergfalk/sqlpad
server/test/api/query-result-stores.js
JavaScript
mit
2,035
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M22 4H2v16h20V4zm-2 4l-8 5-8-5V6l8 5 8-5v2z" }), 'MailSharp');
AlloyTeam/Nuclear
components/icon/esm/mail-sharp.js
JavaScript
mit
185
/* file : collection-test.js MIT License Copyright (c) 2016 Thomas Minier 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...
Callidon/carson
test/collections/collection-test.js
JavaScript
mit
1,338
/* * Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
hhuynhlam/Ulysses
src/client/vendor/kendo/src/js/cultures/kendo.culture.pa-Arab-PK.js
JavaScript
mit
2,836
import { VFadeTransition, VSlideXTransition } from '~components/transitions' export default { name: 'v-progress-linear', components: { VFadeTransition, VSlideXTransition }, props: { active: { type: Boolean, default: true }, buffer: Boolean, bufferValue: Number, err...
stephane/vuetify
src/components/progress/VProgressLinear.js
JavaScript
mit
2,625
"use strict"; var fs = require("fs"); var path = require("path"); var Sequelize = require("sequelize"); const appRoot = require('app-root-path'); const config = require(`${appRoot}/lib/config`)(); const sequelize = new Sequelize(config.db); var db = {}; fs .readdirSync(__dirname) .filt...
anacesponda/sequelize-api
app/models/index.js
JavaScript
mit
966
import test from 'ava' import configureStore from 'redux-mock-store' import { mount } from 'enzyme' import { createElement } from 'react' import Home from '../../src/containers/home' const mockStore = configureStore() test('home', t => { const store = mockStore() const wrapper = mount(createElement(Home, { s...
stoeffel/react-redux-bp
tests/containers/home.test.js
JavaScript
mit
377
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (calc, node, precision) { var str = stringify(node, precision); if (node.type === "MathExpression") { // if calc expression couldn't be resolved to a single value, re-wrap it as // a calc() str =...
kumarrus/MuffinMan
node_modules/postcss-calc/node_modules/reduce-css-calc/dist/lib/stringifier.js
JavaScript
mit
1,404
import { assert, expect } from 'chai'; import 'angular'; import 'angular-mocks/angular-mocks'; import '../src/component'; describe('User factory', ()=>{ var Client; beforeEach(angular.mock.module('component')); beforeEach(angular.mock.inject(function(_client_) { Client = _client_; })); it('sou...
DanH91/Js-Seeds
ANGULARJS-JSPM-KARMA-MOCHA/test/userSpec.js
JavaScript
mit
440
export const flatTree = (tree, getBody = node => node.body) => { let flatList = []; [].concat(tree).forEach(node => { const body = getBody(node); if (body && body.length) { flatList = flatList.concat(node, flatTree(body, getBody)); } else { flatList.push(node); ...
Bogdan-Lyashenko/js-code-to-svg-flowchart
src/shared/utils/flatten.js
JavaScript
mit
363
var People = function(names) { this.allNames = []; names.forEach(function(name) { name = name.charAt(0).toUpperCase() + name.slice(1); this.allNames.push(name); }.bind(this)); }; People.prototype.getNames = function() { return this.allNames; }; People.prototype.sort = function() { this.allNames.sort...
litterbox-sf-fall/peeps
src/nameSort.js
JavaScript
mit
352
var Watcher = require('./watcher') var middleware = require('./middleware') var http = require('http') var connect = require('connect') exports.serve = serve function serve (builder, options) { options = options || {} console.log('Serving on http://' + options.host + ':' + options.port + '\n') var watcher = op...
osxi/broccoli
lib/server.js
JavaScript
mit
1,315
import EmberRouter from '@ember/routing/router'; import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('home', { path: '/' }); this.route('apple'); this.route('banana'); this.route('cocon...
queertangocollective/ui
tests/dummy/app/router.js
JavaScript
mit
476
var backgrounds = [ "url('http://res.cloudinary.com/dklyjqkxa/image/upload/v1476149119/google_hq_azlr3e.jpg')", "url('http://res.cloudinary.com/dklyjqkxa/image/upload/v1476149119/apple_hq_bmqqhh.jpg')", "url('http://res.cloudinary.com/dklyjqkxa/image/upload/v1476149119/microsoft_hq_c88f8g.jpg')", "url('http://r...
sameesiddiqui/ballertechjobs
js/main.js
JavaScript
mit
1,801
search_result['1024']=["topic_0000000000000254.html","SystemManagementController.UpdateBadge Method",""];
asiboro/asiboro.github.io
vsdoc/search--/s_1024.js
JavaScript
mit
105
import React from 'react'; import styles from './button.css'; let Button = React.createClass({ render() { return ( <div className={styles.container}> <button className={styles.button}>Click me!</button> </div> ); } }); React.render(<Button />, document.getElementById('content'));
kwangkim/css-in-js
css-loader/button.js
JavaScript
mit
315
/** * Copyright (c) 2010 Zef Hemel <zef@zef.me> * * 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,...
TimurStash/syncro
vendor/persistence.js
JavaScript
mit
81,298
Package.describe({ summary: 'Meteor package to wrap TopoJSON: An extension to GeoJSON that encodes topology' }); Package.on_use(function(api) { api.export('topojson'); api.add_files('meteor-topojson.js', 'server'); api.add_files('topojson.js', 'client'); }); Package.on_test(function (api) { api.use(['topojs...
vsivsi/meteor-topojson
package.js
JavaScript
mit
442
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=property.js.map
bmitchenko/webapi-ng2
src/specification/property.js
JavaScript
mit
113
describe('ds.utils.loadGoogleMapsAPI()', function() { this.timeout(20000); it('should load google maps api', function(done) { ds.utils.loadGoogleMapsAPI().done(function(google) { expect(google).to.be.an('object'); done(); }); }); it('should not make a http reque...
DanskSupermarked/ds-frontend
test/utils/load-google-maps-api.js
JavaScript
mit
619
import { Resource } from '../api-resource'; import logger from 'kolibri.lib.logging'; const logging = logger.getLogger(__filename); export default class FacilityUserResource extends Resource { static resourceName() { return 'facilityuser'; } getCurrentFacility() { const promise = new Promise( res...
christianmemije/kolibri
kolibri/core/assets/src/api-resources/facilityUser.js
JavaScript
mit
745
(function(){dust.register("red-tpl.tl",body_0);function body_0(chk,ctx){return chk.write("<div class=\"col-md-8\"><div class=\"row\"><div class=\"col-md-22 col-md-offset-1 red subpagecontrolhighlight\">&nbsp;</div></div></div>");}return body_0;})();
BlackCloudConcepts/requireunderpin
dusttemplates/red-tpl.js
JavaScript
mit
249
module.exports = (config) => { const defaults = { isWarmingUp: (event) => event.source === 'serverless-plugin-warmup', onWarmup: (event) => console.log('Exiting early via warmup Middleware'), waitForEmptyEventLoop: null } const options = Object.assign({}, defaults, config) return ({ before: (h...
middyjs/middy
packages/warmup/index.js
JavaScript
mit
672
'use strict' var Transform = require('stream').Transform , util = require('util') , Segment = require('./segment') , Message = require('./message') , utils = require('./utils') // MLP end frames var FS = String.fromCharCode(0x1c) , CR = String.fromCharCode(0x0d) exports.Message = Message exports.Segment = ...
evanlucas/nodengine-hl7
lib/index.js
JavaScript
mit
2,413
'use strict'; import imageSearchPage from '../../pageobjects/image-search.page'; module.exports = function() { this.Given(/^I am on the google image search page$/, () => { imageSearchPage.open(); }); // Enter term in search: google.js this.Given(/^I press the image search button$/, () => { ...
rp4rk/ChimpTravisCI
features/step_definitions/search_images.js
JavaScript
mit
507
/** * The MIT License (MIT) * * Copyright (c) 2022 Losant IoT, Inc. * * 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...
Losant/losant-rest-js
lib/api/instanceApiTokens.js
JavaScript
mit
6,563
import React from 'react' import { mount, shallow } from 'enzyme' import { Dummy } from './utils' import { withHandlers } from '..' describe('withHandlers', () => { it('passes immutable handlers', () => { const enhance = withHandlers({ handler: () => () => null, }) const EnhancedDummy = enhance(Dum...
neoziro/recompact
src/__tests__/withHandlers.test.js
JavaScript
mit
3,651
var lexer = require('../../index').lex.lexer; var parser = require('../../index').parse.parser; var $ = require('../$'); var testParser = function(stream) { var result = parser.parseStream(stream); return result.body[0].expression; }; exports.empty = function(test) { var result = testParser(lexer.lex("(...
mattbierner/khepri-parse
tests/parse/object_literal.js
JavaScript
mit
1,747
var locale = require('relative-time-format/locale/sr') module.exports = { locale: locale.locale, // Standard styles. long: locale.long, short: locale.short, narrow: locale.narrow, // Quantifier. quantify: locale.quantify }
halt-hammerzeit/javascript-time-ago
locale/sr/index.js
JavaScript
mit
230
var baseIteratee = require('./_baseIteratee'), baseSortedIndexBy = require('./_baseSortedIndexBy'); /** * This method is like `_.sortedLastIndex` except that it accepts `iteratee` * which is invoked for `value` and each element of `array` to compute their * sort ranking. The iteratee is invoked with one argumen...
mdchristopher/Protractor
node_modules/lodash/sortedLastIndexBy.js
JavaScript
mit
958
ThinMint.Mixin.Paginate = function() { var _super = {}; _super.init = ThinMint.Util.callback( this.init ); _super.getPage = ThinMint.Util.callback( this.getPage ); _super.setPage = ThinMint.Util.callback( this.setPage ); _super.getPages = ThinMint.Util.callback( this.getPages ); _super.setPages = ThinMint...
cloudily/thinmint
src/mixin/paginate.js
JavaScript
mit
1,979
const expect = require('chai').expect; const PragmaThanksSpreadsheet = require('../src/PragmaThanksSpreadsheet'); describe('PragmaThanksSpreadsheet', () => { describe('#isEmpty', () => { it('returns true when spreadsheet is empty', () => { const spreadsheetContent = []; const sheet = new PragmaThank...
Pragmateam/pragmathanks-get-balance
test/PragmaThanksSpreadsheetTest.js
JavaScript
mit
2,108
import React, { PropTypes } from 'react'; import styled from 'styled-components'; import TextInfo from '../TextInfo'; import CardImage from '../CardImage'; import { Row, Col, Card, Avatar } from 'antd'; import { Panel } from 'react-bootstrap'; /* const CardImage = styled.div` img { display: block; height:20...
matapang/virtualraceph2
src/components/CardRaces/index.js
JavaScript
mit
1,802
var names = [ 'Whiskers', 'Athena', 'Sir Theodore Tibblesworth', 'Rex' ]; function keyOf (name) { return name.toLowerCase().replace(/\W+/g, '-') } module.exports = function (db) { setInterval(function () { var lives = Math.floor(Math.random() * 9 + 1); var name = names[Math.floor(Math.random() * na...
substack/liver
example/pets/populate.js
JavaScript
mit
419
'use strict'; var CanvasRenderer = require('./main'); CanvasRenderer.prototype._prepareImages = function () { // Creating the list of images var imagesToPrepare = []; var symbolList = this._extractor._symbolList; var symbols = this._extractor._symbols; for (var s = 0; s < symbolList.length; s += 1) { var sym...
Wizcorp/Jeff
src/CanvasRenderer/prepareImages.js
JavaScript
mit
1,315
module.exports = { '1.train.spikes': { display: '01', indicator: 'OGB-1', area: 'V1', source: 'Theis et al., 2016' }, '2.train.spikes': { display: '02', indicator: 'OGB-1', area: 'V1', source: 'Theis et al., 2016' }, '3.train.spikes': { display: '03', indicator: 'GCaMP6...
codeneuro/spikefinder
client/metadata.js
JavaScript
mit
1,229
var etc=require("./etc.js"), msgtype=require("./msgtype.js"); function constructMessage(type,args){ var len=6+args.map(function(a){return 4+a.length;}).reduce(function(a,b){return a+b;},0); var buf=new Buffer(len); //console.log("constructing message with len",len) buf.writeUInt32BE(len,0); buf.writeUInt8(typ...
tomsmeding/gvajnez
netio.js
JavaScript
mit
2,684
cssx( @media screen and (min-width: `minWidthForMediaQuery`px) { `a().reduce(b)` { `getProperty();`: `a + b / c`%; } } )
krasimir/babylon-plugin-cssx
test/cssx/mixed/35/actual.js
JavaScript
mit
126
const fs = require('fs'); const path = require('path'); const EventEmitter = require('events'); const cors = require('cors'); const bodyParser = require('body-parser'); const compression = require('compression'); const cookieParser = require(...
buckless-team/server
src/app.js
JavaScript
mit
6,179
Template.orderListItem.helpers({ //statusName: function(status) { // var names = { // ongoing: '进行', // finished: '完成', // canceled: '终止' // }; // return names[status] || '未知'; //}, statusColor: function () { var colors = { '进行': 'bg-primary', '完成': 'bg-success', '终止'...
lszhu/saleSys
client/templates/order/list.js
JavaScript
mit
6,812
import React from "react"; import { shallow } from "enzyme"; import TableRow from "./TableRow"; describe("TableRow", () => { it("matches snapshot", () => { const aTableRow = shallow(<TableRow />); expect(aTableRow).toMatchSnapshot(); }); });
DecipherNow/gm-fabric-dashboard
src/components/Main/components/TableRow.test.js
JavaScript
mit
255
//Get /question exports.question = function (req, res, next) { var answer = req.query.answer || ''; res.render('quizzes/question', {question: "Capital de Italia", answer: answer}); }; //GET /check exports.check = function(req,res, next) { var answer = req.query.answer || ''; var result = ((answer === 'Roma') ? '...
verynrivas/quiz
controllers/quiz_controller.js
JavaScript
mit
499
import * as util from "./util"; const path = require("path"); /** * Creates a toc object * @param {Array} items All items of the toc * @param {Array} root Only the root items * @return {Object} Toc object */ const createToc = function (items, root) { if (items == null) items = []; if (r...
malleryjs/mallery
lib/toc.js
JavaScript
mit
5,264
/* eslint no-console:0 */ var Hapi = require('hapi'), Path = require('path'), Swig = require('swig'), Routes = require('./routes'); Swig.setDefaults({ cache: false }); var server = new Hapi.Server(); server.connection({ port: 3000 }); server.views({ engines: { swig: Swig }, path: Path.joi...
ctrees/msfeature
test/site/server.js
JavaScript
mit
1,838
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
havocp/hwf
deps/spidermonkey/tests/js1_8/extensions/regress-452476.js
JavaScript
mit
2,314
var crime = { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -5.921416,54.579826 ] }, "properties": { "Month":"2016-08", "Location":"On or near ", "Crime type":"Bicycle theft" } }, { "type": "...
roseKQ/gaffgame
data/crime.js
JavaScript
mit
115,862
/* Copyright (c) 2012. Adobe Systems Incorporated. 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 con...
printzard/RAHOTAN
scripts/webpro.js
JavaScript
mit
45,435
import pt from './pt/pt' const messages = { pt } export default messages
fmoliveira/rexql-boilerplate
client/src/messages/index.js
JavaScript
mit
77
import { validate, URL_REX, TITLE_REX } from '../validator'; import db from '../connection'; import getUserById from '../loaders/get-user-by-id'; import sanitizeHtml from 'sanitize-html'; export default async (userId, rawTitle, rawLink, rawBody) => { const body = sanitizeHtml(rawBody, { allowedTags: ['b', 'i', '...
marcusdarmstrong/cloth-io
src/api/add-post.js
JavaScript
mit
1,656
'use strict'; //NOTE:Methods used to do HTTP requests. To use an HTTP request listed here just call the method angular.module('announcements').factory('Announcements', ['$http', function($http) { var methods = { getAllAnnouncements: function(announcements) { return $http.get('/api/announcements', ...
benchen88888888/uag-website-version2
modules/announcements/client/factory/annoucement.client.factory.js
JavaScript
mit
839
//document.write("It works."); document.write(require("./content.js"));
cestr/webpack-tutorials
01-welcome-2/entry.js
JavaScript
mit
72
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'find', 'ro', { find: 'Găseşte', findOptions: 'Find Options', findWhat: 'Găseşte:', matchCase: 'Deosebeşte majuscule de minuscule (Match c...
Kunstmaan/BootstrapCK4-Skin
plugins/find/lang/ro.js
JavaScript
mit
659
/** * @copyright * The MIT License (MIT) * * Copyright (c) 2014 Cosmic Dynamo LLC * * 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 limitatio...
CosmicDynamo/jazzHands
query/function/bound.js
JavaScript
mit
1,848
import React from 'react'; import { Link } from 'react-router-dom'; export default class Combatant extends React.Component { render() { return ( <div key={ this.props.id } className={this.props.index === 0 ? 'col-xs-6 col-sm-6 col-md-5 col-md-offset-1' : 'col-xs-6 col-sm-6 col-...
teamNOne/showdown
src/components/combatant/Combatant.js
JavaScript
mit
1,438
/* * This file is part of the React Redux starter repo. * * (c) Magnus Bergman <hello@magnus.sexy> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React, { PropTypes } from 'react' import { Provider } from 'react-redux' imp...
magnus-bergman/react-redux-starter
client/scripts/containers/Root/Root.dev.js
JavaScript
mit
805
var assert = require('chai').assert; var ss = require('../../../script_sanitize'); var describe = require('mocha/lib/mocha.js').describe; var it = require('mocha/lib/mocha.js').it; var script_sanitize = ss.sanitize; module.exports = function () { describe("attributes", function () { it('should replace the attrib...
EverlessDrop41/script_sanitizer.js
test/script_sanitize_tests/options_tests/attributes_test.js
JavaScript
mit
1,001
import resource from 'resource-router-middleware'; import model from '../models/users'; export default ({ config, db }) => resource({ /** Property name to store preloaded entity on `request`. */ id : 'user', mergeParams: true, /** For requests with an `id`, you can auto-load the entity. * Errors terminat...
Matt1024961/mock-server
src/api/users.js
JavaScript
mit
3,293
;(function(dragula){ 'use strict'; angular.module('angular-dragula', []) .factory('ngDragulaFactory', ['$timeout', function($timeout){ function get(name){ return $timeout(function(){ if(name === 'get'){ throw new Error('RESERVE_WORD'); } if(this[name]){...
realmike33/angular-dragula
src/angular-dragula.js
JavaScript
mit
866
/*! * * Super simple WYSIWYG editor v0.8.19 * https://summernote.org * * * Copyright 2013- Alan Hong and contributors * Summernote may be freely distributed under the MIT license. * * Date: 2021-10-13T19:41Z * */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && ...
cdnjs/cdnjs
ajax/libs/summernote/0.8.19/lang/summernote-cs-CZ.js
JavaScript
mit
5,895
angular.module('contatooh').factory('Contato',function($resource){ return $resource('/contatos/:id'); });
thiagoalvesp/MEAN
contatooh/public/js/services/ContatoService.js
JavaScript
mit
111
import { MJMLElement } from 'mjml-core' import React, { Component } from 'react' const tagName = 'mj-table' const parentTag = ['mj-column', 'mj-hero-content'] const endingTag = true const defaultMJMLDefinition = { content: '', attributes: { 'align': 'left', 'cellpadding': '0', 'cellspacing': '0', '...
rogierslag/mjml
packages/mjml-table/src/index.js
JavaScript
mit
1,753
/* * Guerilla * Copyright 2015, Yahoo Inc. * Copyrights licensed under the MIT License. * * Retrieves the Logcat from an Android device. */ var path = require('path'); var fs = require('fs-extra'); function Logcat (context, exec) { this.context = context; this.exec = exec; this.file = path.join(context.outpu...
yahoo/guerilla
services/logcat.js
JavaScript
mit
875
(function () { define(["jquery", "datatables", "datatables-tabletools", "datatables-colvis"], function ($) { var achilles_heel = {}; achilles_heel.render = function (datasource) { $('#reportAchillesHeel svg').remove(); $.ajax({ type: "GET", url: getUrlFromData(datasource, "achil...
shalmalijoshi/AchillesWeb
js/app/reports/achilles_heel.js
JavaScript
mit
1,734
scouts = new Meteor.Collection('scouts', { schema: new SimpleSchema({ userId: { type: String, index: 1, unique: true }, scoutId: { type: String, optional: true }, scoutStatusCode: { type: String, optional: true }, scoutLand: { type: S...
Karl-PeterNos/fps02
model/scouts.js
JavaScript
mit
827
/* global angular: false */ /** * WinchJS Factory - Maintain state of winch * * Written by Sean Cady */ angular.module('winch') .factory('winchFactory', [function() { //Basic API structure var API = { _img: {} }; /** * Register an image * @param URL * @param load * @para...
GeneralElectric/winchjs
files/winch-factory.js
JavaScript
mit
3,515
exports.up = (knex, Promise) => { return knex.schema.createTable('users', (table) => { table.increments('id') table.string('user_id') // table.string('username') table.string('server_id') table.integer('quest_xp') table.integer('message_xp') table.dateTime('last_msg') }) } exports.down...
MarinMakers/eyebot
src/utils/migrations/1_user_data.js
JavaScript
mit
386
'use strict'; /** * Module dependencies. */ var coursesPolicy = require('../policies/courses.server.policy'), courses = require('../controllers/courses.server.controller'); module.exports = function (app) { // Articles collection routes app.route('/api/courses').all(coursesPolicy.isAllowed) .get(courses.l...
hdmsoftware/lightcoder-v1
modules/courses/server/routes/courses.server.routes.js
JavaScript
mit
622
/* global Flash */ export default class BlobViewer { constructor() { this.switcher = document.querySelector('.js-blob-viewer-switcher'); this.switcherBtns = document.querySelectorAll('.js-blob-viewer-switch-btn'); this.copySourceBtn = document.querySelector('.js-copy-blob-source-btn'); this.simpleView...
htve/GitlabForChinese
app/assets/javascripts/blob/viewer/index.js
JavaScript
mit
3,593
/** * Created by khuongdt on 12/07/2015. * Author : khuongdt * Copyright @ 2015 by OneSoft.,JSC */ goog.provide('com.onesoft.livetube.entity.SCLogout'); goog.require('bigfox.Global'); goog.require('bigfox.core.base.BaseMessage'); goog.require('com.onesoft.livetube.base.LiveTag'); com.onesoft.livetube.entity.SCL...
khuongdt/livetube
app/livetube/live/entity/sc/SCLogout.js
JavaScript
mit
563
/* jslint node: true */ 'use strict'; var cfg = require('../../../config.json'); exports.validNick = function(nickname) { var regex = /^\w*$/; return regex.exec(nickname) !== null; }; // determine mass from radius of circle exports.massToRadius = function (mass) { return 4 + Math.sqrt(mass) * 6; }; //...
Faris90/lagario
src/server/lib/util.js
JavaScript
mit
2,688
export const CODE_LENGTH = 12 export const ALL_DIGITS = /^\d+$/ export const normalizedValue = (value) => { const { length } = value const systemDigitMissing = !value.startsWith('0') return length == CODE_LENGTH - 1 && systemDigitMissing ? '0' + value : value } export const passesCheckDigitVerification = (val...
armw4/redux-samples
client/lib/upc-a.js
JavaScript
mit
884
import styled from 'styled-components' const RulesContainer = styled.div` text-align: justify; h3 { margin-bottom: 10px; margin-left: 0; } .summary { margin-left: 10px; font-size: 10pt; line-height: 13pt; font-style: italic; } ` export default RulesContainer
codenetwork/CodeNetwork.co
src/components/rulesContainer.js
JavaScript
mit
294
/* eslint-disable */ 'use strict'; const chai = require('chai'); global.chaiAsPromised = require('chai-as-promised'); chai.should(); chai.use(chaiAsPromised); global.expect = chai.expect; global.AssertionError = chai.AssertionError; global.Assertion = chai.Assertion; global.assert = chai.assert;
NiklasGollenstede/es6lib
test/node.js
JavaScript
mit
300
/*! * better-scroll / better-scroll * (c) 2016-2020 ustbhuangyi * Released under the MIT License. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may n...
cdnjs/cdnjs
ajax/libs/better-scroll/2.0.0-beta.6/better-scroll.esm.js
JavaScript
mit
179,030
describe('addClassDecorator', function () { it('should call the decorate method when the Decorator is invoked', function () { var info = {decorate: jasmine.createSpy('decorate')}; BaseClass.addClassDecorator('decorator', info); BaseClass('name', function () { ~decorator(); ...
rodyhaddad/classicaljs
test/spec/addClassDecoratorSpec.js
JavaScript
mit
7,050
'use strict'; const stateModule = angular.module('hkRouter', ['ui.router']); stateModule .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { ///////////////////////////// // Redirects and Otherwise // ///////////////////////////// $urlRouterProvide...
railsstudent/angular-hkaccessible
app/js/routers.js
JavaScript
mit
3,163
$(function() { setInterval( function() { var seconds = new Date().getSeconds(); var sdegree = seconds * 6; var srotate = "rotate(" + sdegree + "deg)"; $('.dynamic-time').html(moment(new Date()).format("hh:mm:ss A")); $("#sec").css({"-moz-transform" : srotate, "-webkit-transform" :...
HVish/student-portal
assets/js/css3clock/js/css3clock.js
JavaScript
mit
934
angular .module('AngularCommunicator', []) .provider('angularCommunicatorService', function() { var registeredListeners = {}; function buildHierarchicalStructure(reg, splitName, callback) { (!reg[splitName[0]]) && (reg[splitName[0]] = {listeners: []}); if(splitName.length === 1) { reg[...
alanschlindvein/angular-communicator
src/angular-communicator.js
JavaScript
mit
3,641
import React from 'react'; import SvgImage from 'components/svg-image'; import ChartLabel from 'components/chart-label'; import { getLayout } from 'layouts/flexbox'; import getCenter from 'decorators/get-center'; @getCenter export default class HorizontalBarDetail extends React.Component { static propTypes = { ...
ronlobo/building-os-charts
src/components/horizontal-bar-detail.js
JavaScript
mit
2,082
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['597',"SiteManagementController Class","topic_000000000000022F.html"],['599',"Methods","topic_000000000000022F_methods--.html"],['605',"...
asiboro/asiboro.github.io
vsdoc/toc--/topic_0000000000000236.html.js
JavaScript
mit
383
;(function(jqi, $, undefined) { function Dive(index, $step, $previous, options) { var z = $step.attr('data-z'), x = $previous.attr('data-x'), y = $previous.attr('data-y'); if (!z) z = -2000; else z = parseInt(z) - 2000; $step.attr({'data-z' : z, 'data-x' : x, 'data-y' : y }); return this; } jqi.Di...
b3ngineer/jqImpress
src/Dive.js
JavaScript
mit
355
/*! * DevExtreme (dx.aspnet.mvc.js) * Version: 20.1.8 (build 20303-1716) * Build date: Thu Oct 29 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ ! function(factory) { if ("function" === typeof define && d...
cdnjs/cdnjs
ajax/libs/devextreme/20.1.9-build-20303-1716/js/dx.aspnet.mvc.js
JavaScript
mit
8,634
/*! * DevExtreme (dx.messages.en.js) * Version: 22.1.0 (build 22018-0314) * Build date: Tue Jan 18 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
cdnjs/cdnjs
ajax/libs/devextreme/22.1.1-alpha-22018-0314/js/localization/dx.messages.en.js
JavaScript
mit
38,406
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("Navigo", [], factory); else if(typeof exports === 'object') exports["Navigo"] = factory(); else ro...
cdnjs/cdnjs
ajax/libs/navigo/8.7.0/navigo.js
JavaScript
mit
45,534
import{B as e}from"./index-5cf9ee19.js";export default class extends e{constructor(e){super(e);const t=document.documentElement,o=e=>{this.setMod("active",e)},n=e=>{"webkitUserSelect"in t.style?t.style.webkitUserSelect=e?"":"none":t.style.userSelect=e?"":"none"};this.on("click",(t=>{o(!1),e.nuDisabled||(t.stopPropagati...
cdnjs/cdnjs
ajax/libs/numl/1.1.1/active-5fb22ccb.js
JavaScript
mit
931
import{W as t,d as e,s,b as i}from"./index-19c813a5.js";import n from"./menu-29457b97.js";const o=n.prototype;export default class extends t{static get params(){return{input:!0,provideValue:!0,itemRole:"radio",contextValue:!0}}init(){this.props.disabled=t=>{const{host:n}=this,o=i(t);return e(n,"[nu-action]").forEach(t=...
cdnjs/cdnjs
ajax/libs/numl/1.0.0-beta.2/radiogroup-b2fe1f81.js
JavaScript
mit
723
/** * @version : 17.8.0 - Bridge.NET * @author : Object.NET, Inc. http://bridge.net/ * @copyright : Copyright 2008-2019 Object.NET, Inc. http://object.net/ * @license : See license.txt and https://github.com/bridgedotnet/Bridge/blob/master/LICENSE.md */ Bridge.assembly("Bridge", function ($asm, globals) { ...
cdnjs/cdnjs
ajax/libs/Bridge.NET/17.8.0/bridge.console.js
JavaScript
mit
22,264
/*! * Native JavaScript for Bootstrap Modal v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ var addEventListener = 'addEventListener'; var removeEventListener = 'removeEventLis...
cdnjs/cdnjs
ajax/libs/bootstrap.native/3.0.15-alpha2/components/modal-native.esm.js
JavaScript
mit
13,172
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("devtools","ko",{title:"구성 요소 정보",dialogName:"다이얼로그 윈도우 이름",tabName:"탭 이름",elementId:"요소 ID",elementType:"요소 형식"});
cdnjs/cdnjs
ajax/libs/ckeditor/4.17.2/plugins/devtools/lang/ko.js
JavaScript
mit
356
/*! shepherd.js 8.0.1 */ 'use strict';(function(E,Y){"object"===typeof exports&&"undefined"!==typeof module?module.exports=Y():"function"===typeof define&&define.amd?define(Y):(E=E||self,E.Shepherd=Y())})(this,function(){function E(a,b){return!1!==b.clone&&b.isMergeableObject(a)?R(Array.isArray(a)?[]:{},a,b):a}functio...
cdnjs/cdnjs
ajax/libs/shepherd.js/8.0.1/js/shepherd.min.js
JavaScript
mit
49,444
jsonp({"cep":"67013886","logradouro":"Rua Jarbas Passarinho","bairro":"Atalaia","cidade":"Ananindeua","uf":"PA","estado":"Par\u00e1"});
lfreneda/cepdb
api/v1/67013886.jsonp.js
JavaScript
cc0-1.0
136
jsonp({"cep":"14803665","logradouro":"Avenida Affonso Celso Alves","bairro":"Portal das Laranjeiras","cidade":"Araraquara","uf":"SP","estado":"S\u00e3o Paulo"});
lfreneda/cepdb
api/v1/14803665.jsonp.js
JavaScript
cc0-1.0
162
jsonp({"cep":"17021350","logradouro":"Rua Joaquim Felippe de Mello","bairro":"Jardim Godoy","cidade":"Bauru","uf":"SP","estado":"S\u00e3o Paulo"});
lfreneda/cepdb
api/v1/17021350.jsonp.js
JavaScript
cc0-1.0
148
jsonp({"cep":"86081080","logradouro":"Rua Gabriel Cestari","bairro":"Conjunto Parigot de Souza 3","cidade":"Londrina","uf":"PR","estado":"Paran\u00e1"});
lfreneda/cepdb
api/v1/86081080.jsonp.js
JavaScript
cc0-1.0
154
jsonp({"cep":"22753190","logradouro":"Rua Altevir Soares","bairro":"Itanhang\u00e1","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"});
lfreneda/cepdb
api/v1/22753190.jsonp.js
JavaScript
cc0-1.0
149
jsonp({"cep":"26540001","logradouro":"Rua Antonio Pereira de Carvalho","bairro":"Centro","cidade":"Nil\u00f3polis","uf":"RJ","estado":"Rio de Janeiro"});
lfreneda/cepdb
api/v1/26540001.jsonp.js
JavaScript
cc0-1.0
154
jsonp({"cep":"14403277","logradouro":"Rua dos Jasmins","bairro":"Jardim Fl\u00f3rida","cidade":"Franca","uf":"SP","estado":"S\u00e3o Paulo"});
lfreneda/cepdb
api/v1/14403277.jsonp.js
JavaScript
cc0-1.0
143