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 |
|---|---|---|---|---|---|
/*
Every email consists of a local name and a domain name, separated by the @ sign.
For example, in alice@leetcode.com, alice is the local name, and leetcode.com is the domain name.
Besides lowercase letters, these emails may contain '.'s or '+'s.
If you add periods ('.') between some characters in the local name pa... | matrixki/LeetCode | 929. Unique Email Addresses.js | JavaScript | gpl-3.0 | 2,090 |
const fs = require('fs')
const rimraf = require('rimraf')
const ejs = require('ejs')
const webpack = require('webpack')
const task = require('./task')
// Copy ./index.html into the /public folder
const html = task('html', () => {
const webpackConfig = require('./webpack.config')
const assets = JSON.parse(fs.readFi... | escabc/members-search-app | tools/build.js | JavaScript | gpl-3.0 | 1,387 |
'use strict';
const podio = require('../podio');
exports.command = 'assigned <assignee>'
exports.aliases = ['A']
exports.desc = 'Retrieve a list of tests currently assigned to someone.'
exports.handler = (argv) => {
switch(argv.assignee){
case 'Justin':
argv.assignee = 'Justin Bushner - justin.bushner@tmmdata.co... | Rafase282/SlackNPodio | bot/cmds/assigned.js | JavaScript | gpl-3.0 | 502 |
var CRUD = require('./CRUD.js')
class nivelconocimiento extends CRUD {
add (name) {
var query = {name: name}
return super.add(query, query)
}
}
module.exports = nivelconocimiento
| SoulHand/SoulHand-App | src/BackEnd/SoulHand/nivelconocimiento.js | JavaScript | gpl-3.0 | 203 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/framework/source/class/qx/ui/form/ComboBox.js | JavaScript | gpl-3.0 | 12,255 |
const timeNodes = Array.from(document.querySelectorAll('[data-time]'));
const seconds = timeNodes
.map(node => node.dataset.time)
.map(timeCode => {
const [mins, secs] = timeCode.split(':').map(parseFloat);
return (mins * 60) + secs;
})
.reduce((total, vidSeconds) => total + vidSeconds);
l... | magdalenajadach/JavaScript-30day-challenge | day18/app.js | JavaScript | gpl-3.0 | 558 |
// connect database
var mongoose = require('mongoose');
var dbUrl = require('../configure/urlConfigures');
var conn = mongoose.connect(dbUrl.dbUrl);
mongoose.connection.on('connected', function() {
console.log('Mongoose connected to ' + dbUrl.dbUrl);
});
mongoose.connection.on('error', function(err) {
con... | JennyLin77/Taotao | servers/db.js | JavaScript | gpl-3.0 | 495 |
$(function(){
$('input[type="text"]').attr('autocomplete', 'off');
$('#id_username').attr('placeholder','Username');
$('#id_password').attr('placeholder','Password');
if($('#id_username').val() != ''){
$('#id_password').focus();
}
})
| mishudark/openhealt | static/js/login.js | JavaScript | gpl-3.0 | 254 |
$('.ak-1 > tbody > tr').click(function() {
$('#foot').slideToggle("up");
});
| arifk4/sipp-mas | assets/js/global.js | JavaScript | gpl-3.0 | 84 |
/**
* @class Ext.form.FormPanel
* @extends Ext.Panel
* <p>Simple form panel which enables easy getting and setting of field values. Can load model instances. Example usage:</p>
<pre><code>
var form = new Ext.form.FormPanel({
items: [
{
xtype: 'textfield',
name : 'first',
... | Muhammad/Hub_List_Mobile | libs/sencha-touch-1.0.1/src/widgets/form/FormPanel.js | JavaScript | gpl-3.0 | 20,530 |
Joomla 1.5.23 = b301ba78b2361b391cab4efffb88d101
Joomla 1.5.11 = 1493e548da2f433fc0cc03b9669fdfd4
| gohdan/DFC | known_files/hashes/plugins/editors/tinymce/jscripts/tiny_mce/plugins/layer/editor_plugin.js | JavaScript | gpl-3.0 | 98 |
$(function() {
document.onreadystatechange = function (e) {
if (document.readyState === 'complete') {
// if (typeof Cookies.get('session-admin-cookie') == 'undefined'){
// $('body').mask('Loading...');
// window.location.href = "login.html";
// }
... | IAAA-Lab/UNIZAR-BuildingsApp | admin/dist/js/controllers/adminPOIRequests.js | JavaScript | gpl-3.0 | 9,495 |
/*globals document, require, requirejs*/
(function (document) {
"use strict";
requirejs.config({
"baseUrl": ".",
"paths": {
"fairplay": "../src/fairplay",
"demo": "scripts/demo"
}
});
require(["fairplay", "demo"], function (fairplay, demo) {
var passphrase = document.getElementById("passphrase"),
... | kevinselwyn/fairplay | demo/scripts/app.js | JavaScript | gpl-3.0 | 450 |
const React = require('react')
const ReactDOM = require('react-dom');
const {Component} = React
const ipc = require('electron').ipcRenderer
import uuid from 'node-uuid'
const PubSub = require('./pubsub')
const {syncReplace} = require('./databaseRender')
const SYNC_REPLACE_NUM = 5
export default class SyncReplace exte... | kura52/sushi-browser | src/render/SyncReplace.js | JavaScript | gpl-3.0 | 5,950 |
import React from 'react';
import { Link } from 'react-router';
// Use this import when you're going to use proptypes
// import React, { PropTypes } from 'react';
const footerLinks = {
color: '#fff',
textDecoration: 'none',
};
const linksContainer = {
maxHeight: '12em',
backgroundColor: '#3c4959',
width: '5e... | RoadToGlobal/ClientDistro | app/components/SideBarLinks.js | JavaScript | gpl-3.0 | 866 |
module.exports = function(config) {
config.set({
basePath:'../',
frameworks:['jasmine'],
files:[
{pattern:'bower_components/angular/angular.js'},
{pattern:'bower_components/angular-mocks/angular-mocks.js'},
{pattern:'bower_components/thk-rest-client-mock/s... | binarta/autoupdater.angular.js | config/karma10.conf.js | JavaScript | gpl-3.0 | 563 |
/*
Copyright © 2015 Biciguia Team
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
$(document).ready(initializeMap);
function initializeMap() {
if (document.... | biciguia/biciguia-frontend | libs/lib_map.js | JavaScript | mpl-2.0 | 4,731 |
import {
USER_BACKGROUND_OPTION_DAILY,
BACKGROUND_IMAGE_LEGACY_CATEGORY,
} from '../constants'
import setBackgroundImage from './setBackgroundImage'
import setBackgroundImageDaily from './setBackgroundImageDaily'
const DEPRECATED_IMG_IDS = ['9308b921-44c7-4b4e-845d-3b01fa73fa2b']
const REPLACEMENT_IMG_ID = '7e73d6... | gladly-team/tab | graphql/database/users/getBackgroundImage.js | JavaScript | mpl-2.0 | 1,953 |
const log = require('../log/clog');
import {navigateAction} from 'fluxible-router';
import UserProfileStore from '../../stores/UserProfileStore';
import serviceUnavailable from '../error/serviceUnavailable';
import Util from '../../components/common/Util';
import DeckTreeStore from '../../stores/DeckTreeStore';
import ... | slidewiki/slidewiki-platform | actions/translation/addSlideTranslation.js | JavaScript | mpl-2.0 | 2,452 |
/* bender-tags: editor,unit */
/* bender-ckeditor-plugins: entities,dialog,tabletools,toolbar */
( function() {
'use strict';
bender.editor = {
config: {},
allowedForTests: 'table[width];td[id]'
};
bender.test( {
doTest: function( name, command ) {
var bot = this.editorBot;
bender.tools.testInputOut(... | bpilot/CKEditor-source | ckeditor-dev/tests/plugins/tabletools/tabletools.js | JavaScript | mpl-2.0 | 5,307 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// @flow
import type {
Profile,
StackTable,
Thread,
IndexIntoFuncTable,
IndexIntoStackTable,
IndexIntoR... | mstange/cleopatra | src/profile-logic/import/chrome.js | JavaScript | mpl-2.0 | 27,460 |
import { inject as service } from '@ember/service';
import { or } from '@ember/object/computed';
import { isBlank } from '@ember/utils';
import { task, waitForEvent } from 'ember-concurrency';
import Component from '@ember/component';
import { set, get } from '@ember/object';
import FocusOnInsertMixin from 'vault/mixin... | hartsock/vault | ui/app/components/role-edit.js | JavaScript | mpl-2.0 | 3,223 |
initSidebarItems({"struct":[["ItemBuilder",""],["ItemConstBuilder",""],["ItemEnumBuilder",""],["ItemExternCrateBuilder","A builder for extern crate items"],["ItemFnBuilder",""],["ItemFnDeclBuilder",""],["ItemImplBuilder",""],["ItemImplItemBuilder",""],["ItemImplMethodBuilder",""],["ItemMacBuilder","A builder for macro ... | servo/doc.servo.org | aster/item/sidebar-items.js | JavaScript | mpl-2.0 | 607 |
load(libdir + "asserts.js");
function g() {
}
let a = {
g: function() {
}
};
function check(expr) {
assertThrowsInstanceOf(Function(expr), ReferenceError);
}
function checkDestructuring(expr) {
assertThrowsInstanceOf(() => Function(expr), SyntaxError);
}
check("g(...[]) = 1");
check("a.g(...[]) = 1");
check... | kostaspl/SpiderMonkey38 | js/src/jit-test/tests/basic/spread-call-setcall.js | JavaScript | mpl-2.0 | 680 |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'hr', {
anchor: 'Sidro',
flash: 'Flash animacija',
hiddenfield: 'Sakriveno polje',
iframe: 'IFrame',
unknown: '... | astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/fakeobjects/lang/hr.js | JavaScript | agpl-3.0 | 343 |
var searchData=
[
['l',['l',['../class_d_blite__dsql.html#ac4c199995b89cf3e05e4237506734321',1,'DBlite_dsql']]],
['lastid',['lastID',['../class_d_b.html#a9dff7c3e9f73314fa29c785a4bb730fd',1,'DB\lastID()'],['../class_d_blite__mysql.html#a8f8ad53f696ccb73bc1b69c0228b8761',1,'DBlite_mysql\lastID()']]],
['later',['la... | atk4/atk4-web | dox/html/search/functions_6c.js | JavaScript | agpl-3.0 | 7,187 |
/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2016 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License vers... | bac/juju-gui | jujugui/static/gui/src/app/components/deployment-flow/machines/machines.js | JavaScript | agpl-3.0 | 4,067 |
var path = require('path');
module.exports = function(grunt) {
var config = {
pkg: grunt.file.readJSON(path.join(__dirname, 'package.json')),
appDir: 'app',
tmpDir: '.tmp',
distDir: 'dist',
specDir: 'spec',
tasksDir: 'tasks',
bowerDir: 'bower',
comDir... | thnkloud9/superdesk-client-core | Gruntfile.js | JavaScript | agpl-3.0 | 2,964 |
/*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | venturehive/canvas-lms | spec/javascripts/jsx/gradebook-history/actions/SearchResultsActionsSpec.js | JavaScript | agpl-3.0 | 2,605 |
import Inferno from 'inferno';
import Component from 'inferno-component';
import AnimationFadeIn from '../../components/AnimationFadeIn';
import styles from './styles.css';
const defaults = {
template: {
main: null,
top: null,
bottom: null,
},
showcases: false,
timeout: 600,
};
export default c... | samuelngs/infinitely | components/HeroGrid/index.js | JavaScript | agpl-3.0 | 1,626 |
// @flow
import _ from "lodash";
import type { Tree, TreeMap, TreeGroup } from "oxalis/store";
export const MISSING_GROUP_ID = -1;
export const TYPE_GROUP = "GROUP";
export const TYPE_TREE = "TREE";
const GroupTypeEnum = {
[TYPE_GROUP]: TYPE_GROUP,
[TYPE_TREE]: TYPE_TREE,
};
type TreeOrGroup = $Keys<typeof Grou... | scalableminds/webknossos | frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view_helpers.js | JavaScript | agpl-3.0 | 6,428 |
const timeParser = require('../../util/timeParser.js');
const { version } = require('../../package.json');
exports.run = async function ({ client, msg }) {
const playing = client.voiceConnections.filter(vc => vc.playing).length;
const paused = client.voiceConnections.size - playing;
msg.channel.c... | CrimsonXV/JukeBot | src/commands/stats.js | JavaScript | agpl-3.0 | 1,290 |
Template.core_security_teams.created = function(){
this.subscription = Tracker.autorun(function() {
Meteor.subscribe('simulator.crew', Flint.simulatorId());
Meteor.subscribe('simulator.decks', Flint.simulatorId());
Meteor.subscribe('simulator.rooms', Flint.simulatorId());
});
};
Template.core_security_teams.he... | infinitedg/flint | packages/card-security-teams/core.js | JavaScript | agpl-3.0 | 1,880 |
/* app/js/controllers.js -- application controllers
* Copyright 2014 Sergei Ianovich
*
* Licensed under AGPL-3.0 or later, see LICENSE
* Process Control Service Web Interface
*/
'use strict';
angular.module('pcs.controllers', [])
.controller('NavCtrl', ['$scope', '$location', function($scope, $location) {
... | sergeygaychuk/pcs-web | app/js/controllers.js | JavaScript | agpl-3.0 | 8,996 |
$(document).ready(function(){
$('#input_task').keypress(function (e) {
var key = e.which;
if(key === 13) {
var task = $('#input_task').val();
if (task.length <=0) {
// alert("Nothing to do ?? , Why you here ?? ;-)")
} else {
$.post( "/tasks/create", {user:{ name: task, user_id: user_id,status:0 }}... | tachyons/simpletodo | app/assets/javascripts/scripts.js | JavaScript | agpl-3.0 | 7,004 |
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the ... | jmertic/sugarplatformdemo | jssource/src_files/themes/Sugar5/js/style.js | JavaScript | agpl-3.0 | 10,882 |
(function (mw, $) {
"use strict";
mw.PluginManager.add('chapters', mw.KBaseMediaList.extend({
defaultConfig: {
'parent': 'sideBarContainer',
'closeOnClick': false,
'containerPosition': null,
'order': 2,
'showTooltip': false,
"displayImportance": 'high',
'templatePath': 'components/chapters/ch... | FlixMaster/mwEmbed | modules/KalturaSupport/components/chapters/chapters.js | JavaScript | agpl-3.0 | 56,625 |
exports.up = function(knex, Promise) {
return knex.schema.table('communities', table => {
table.boolean('is_public').defaultTo(false)
}).then(() => knex.schema.table('communities', table => {
table.boolean('is_auto_joinable').defaultTo(false)
})).then(() => knex.schema.table('communities', table => {
... | Hylozoic/hylo-node | migrations/20200617090839_add_community_privacy_settings.js | JavaScript | agpl-3.0 | 895 |
/*jslint node: true*/
"use strict";
var express = require('express'),
passport = require('passport'),
i18n = require('i18next'),
env = process.env.NODE_ENV || 'development',
config = require('./config/config')[env],
auth = require('./config/middleware/authorization'),
mongoose = require('mongoose');
// Se... | nrgsim/nrgsim | server.js | JavaScript | agpl-3.0 | 969 |
const footers = require('../data/footers.js'),
config = require('../config'),
fs = require('fs'),
reload = require('require-reload')(require);
let tFooter,
commands = {},
fields = [],
tmpCmd = [];
module.exports = {
name: 'help',
usage: ['help [command]'],
shortDesc: 'Displays a lis... | 110Percent/beheeyem | commands/help.js | JavaScript | agpl-3.0 | 2,054 |
import cfg from 'config';
import { getDate, getUnitOfWeight, getProp } from 'util';
import { ExerciseSet, ExerciseMeta, ExerciseSetCollection, /*Workset, */WorkoutHeader, Workout, Workouts, MetaSection } from 'workout';
const WORKOUT_SEPARATOR = '\n\n';
const WHITESPACE = /\s/;
/**
* @param {String} text e.g. 5x5:40... | borisjoffe/squats | app/pub/parser.js | JavaScript | agpl-3.0 | 3,137 |
/**
* Module dependencies.
*/
const should = require('should');
const mongoose = require('mongoose');
const utils = require('../../../../testutils/server/data.server.testutil');
const User = mongoose.model('User');
const Thread = mongoose.model('Thread');
const Message = mongoose.model('Message');
const ReferenceThr... | Trustroots/trustroots | modules/references-thread/tests/server/reference-thread.server.model.tests.js | JavaScript | agpl-3.0 | 3,020 |
'use babel'
import debug from 'debug'
import { Emitter } from 'atom'
import { View } from 'atom-space-pen-views'
import getKeybinding from '../utils/get-keybinding'
const log = debug('command-center:log')
export default class CommandCenterView extends View {
static content(data = {}) {
this.div({ class: 'comma... | koding/kd-atom | lib/views/command-center.js | JavaScript | agpl-3.0 | 2,737 |
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGP... | ayuzhin/web-apps | apps/common/main/lib/component/TableStyler.js | JavaScript | agpl-3.0 | 39,008 |
(function(angular){
var app = angular.module('new-course');
app.controller('CourseEditController',
['$scope', '$window', '$modal', '$http', '$q', 'Course', 'CourseAuthor', 'Lesson', '$filter', 'youtubePlayerApi', 'VideoData', 'FormUpload', 'Enroll',
function($scope, $window, $modal, $http , $... | mupi/tecsaladeaula | administration/static/js/new-course/controllers.js | JavaScript | agpl-3.0 | 20,209 |
'use strict';
var expect = require('chai').expect;
var mockery = require('mockery');
var q = require('q');
describe('The contacts api controller', function() {
var imageModuleMock, pubsubMock, loggerMock, contactClientMock;
var controller;
beforeEach(function() {
imageModuleMock = {
avatarGenerationM... | heroandtn3/openpaas-esn | modules/linagora.esn.contact/test/unit-backend/webserver/api/contacts/controller.js | JavaScript | agpl-3.0 | 10,628 |
/**********************************************************************
Freeciv - Copyright (C) 2009 - Andreas Røsdal andrearo@pvv.ntnu.no
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; ... | tltneon/freeciv-web | freeciv-web/src/main/webapp/javascript/player.js | JavaScript | agpl-3.0 | 4,286 |
(function(){
'use strict';
angular
.module('PLMApp')
.directive('testCases', testCases);
function testCases () {
return {
restrict: 'E',
templateUrl: '/assets/app/components/exercise/test-cases.directive.html'
};
}
})(); | polux/webPLM | public/app/components/exercise/test-cases.directive.js | JavaScript | agpl-3.0 | 242 |
require('dotenv').load();
const commando = require('discord.js-commando');
const client = new commando.Client({
owner: [
'197891949913571329',
'251383432331001856', // Chronomly
'156019409658314752',
'142782417994907648',
'250432205145243649' // Jdender~
],
commandPrefix: process.env.prefix,
... | SmoreSoftware/SmoreBot | smore.js | JavaScript | agpl-3.0 | 19,651 |
import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import Logout from './Logout';
import Logo from './Logo';
import SearchBox from './SearchBox';
import { isFeatureEnabled } from './feature';
import { ReactComponent as CloseIcon } from './icons/material/close-24px.svg';
import './Na... | panter/mykonote | client/src/Navbar.js | JavaScript | agpl-3.0 | 1,567 |
/* globals wp_mail_smtp, ajaxurl */
'use strict';
var WPMailSMTP = window.WPMailSMTP || {};
WPMailSMTP.Admin = WPMailSMTP.Admin || {};
/**
* WP Mail SMTP Admin area module.
*
* @since 1.6.0
*/
WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || ( function( document, window, $ ) {
/**
* Public functions a... | akvo/akvo-sites-zz-template | code/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js | JavaScript | agpl-3.0 | 7,581 |
function HomeController($scope, $http) {
$scope.featuredCollectionPath = Paths.HOME_FEATURED_COLLECTION;
$scope.testRunnerStart = Paths.TEST_RUNNER_START;
$scope.testsCollection = [];
$scope.test = null;
$scope.showAlert = false;
$scope.fetchTestsCollection = function() {
$http.get($sc... | davidstillwell/concerto-platform | src/Concerto/PanelBundle/Resources/public/angularjs/app/home/js/controllers/home_controller.js | JavaScript | agpl-3.0 | 809 |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | kaltura/developer-platform | lib/ott/KalturaTypes.js | JavaScript | agpl-3.0 | 13,609 |
/*
* This file is part of huborcid.
*
* huborcid is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* huborcid is distrib... | Cineca/OrcidHub | src/main/webapp/bower_components/angular-i18n/angular-locale_eo-001.js | JavaScript | agpl-3.0 | 3,193 |
/**
* moduloColumns layout mode for Isotope 2
* This layout mode does currently not support stamping
* @author Michiel de Wit <mail@michieldewit.nl>
*/
(function(window) {
'use strict';
function moduloColumnsLayoutModeDefinition(LayoutMode) {
var ModuloColumns = LayoutMode.create('moduloColumns');... | manelio/woolr | web/js/modulo-columns.js | JavaScript | agpl-3.0 | 3,511 |
//
// handler.js
//
// main server logic for SPS demo
//
// a pool for all message handlers
var l_HandlerPool = exports.handlers = {};
var l_CheckerPool = exports.checkers = {};
//-----------------------------------------
// define handlers (format checkers and event handlers)
//
//---------------------------------... | imonology/scalra | demo/lobby/example/SPS-tofix.js | JavaScript | agpl-3.0 | 4,550 |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | ronancpl/MapleSolaxiaV2 | scripts/npc/9000049.js | JavaScript | agpl-3.0 | 2,722 |
const _ = require('lodash')
const { createApolloFetch } = require('apollo-fetch')
/* global WIKI */
module.exports = async () => {
WIKI.logger.info('Syncing locales with Graph endpoint...')
try {
const apollo = createApolloFetch({
uri: WIKI.config.graphEndpoint
})
// -> Fetch locales list
... | Requarks/wiki | server/jobs/sync-graph-locales.js | JavaScript | agpl-3.0 | 2,426 |
var FILE = require("file");
var sprintf = require("printf").sprintf;
var window = exports.window = require("browser/window");
if (system.engine === "rhino")
{
window.__parent__ = null;
window.__proto__ = global;
}
// setup OBJJ_HOME, OBJJ_INCLUDE_PATHS, etc
window.OBJJ_HOME = exports.OBJJ_HOME = FILE.resolv... | cacaodev/cappuccino | Objective-J/CommonJS/lib/objective-j.js | JavaScript | lgpl-2.1 | 7,690 |
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
/*
* Copyright 2012 Red Hat, Inc.
* Copyright 2012 Peng Huang <shawn.p.huang@gmail.com>
* Copyright 2012 Takao Fujiwara <tfujiwar@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Less... | fujiwarat/ibus-gjs | js/ui/status/ibus/switcher.js | JavaScript | lgpl-2.1 | 37,416 |
(function () {
var mapNumber = 0, currentProtocol = document.location.protocol;
if (currentProtocol != 'http:' && currentProtocol != 'https:') {
currentProtocol = 'https:';
}
function delayedExecutor(delay, callback)
{
var timeout;
return function () {
if (timeout) {
clearTimeout(timeout);
time... | XavierSolerFR/diem25tiki | lib/jquery_tiki/tiki-maps.js | JavaScript | lgpl-2.1 | 50,515 |
#import "ui/key_event.js"
// Class: Loki.ParagraphMaker
// Creates new paragraphs (or any block-level elements).
Loki.ParagraphMaker = Loki.Class.create({
// Constructor: ParagraphMaker
// Creates a new paragraph maker.
//
// Parameters:
// (Window) window - the window containing the document on which
// ... | tectronics/loki-editor | src/paragraph_maker.js | JavaScript | lgpl-2.1 | 6,229 |
var interface_c_p_run_loop =
[
[ "addTimer:forMode:", "interface_c_p_run_loop.html#a84b2e69d549d100a7aeb5953775694c9", null ],
[ "cancelPerformSelector:target:argument:", "interface_c_p_run_loop.html#acf4ab6edd3e416a5fe24ca1de7b71f74", null ],
[ "currentRunLoop", "interface_c_p_run_loop.html#aba93f1cef957ba... | davidsiaw/cappuccino-docs | interface_c_p_run_loop.js | JavaScript | lgpl-2.1 | 950 |
(function($){
var defaults =
{
image : null,
frame_count : 0,
custom_range : null,
next_range : null,
loop : false,
autoplay : false,
delay : 0, // Delay on first play
inverted : false, // false: forward, true: backward
velocity : 500,
fadeT... | DevUtils/ImageSpritePlay | src/jquery.ImageSpritePlay.js | JavaScript | lgpl-3.0 | 19,101 |
/**
* @class Ext.chart.series.Series
*
* Series is the abstract class containing the common logic to all chart series. Series includes
* methods from Labels, Highlights, Tips and Callouts mixins. This class implements the logic of handling
* mouse events, animating, hiding, showing all elements and returning the c... | PHPBenelux/App | lib/src/chart/series/Series.js | JavaScript | lgpl-3.0 | 11,674 |
/**
* pluginMaker helps reduce boilerplate code in JQuery plugins.
* Just create a class with a name property set to the plugin name
* with some methods, including an init(el,options)
* and call pluginMaker on the class.
*
* These things are helpfully added:
* o .element property added to the instance: the $jq... | scipilot/logline | src/js/jquery.pluginmaker.js | JavaScript | lgpl-3.0 | 2,219 |
var searchData=
[
['incbothcounters',['incBothCounters',['../class_simulation_control.html#a1d37029ecdd1e27bc1b91fffcdcfc46a',1,'SimulationControl']]],
['inccountfromcyclecounter',['incCountFromCycleCounter',['../class_programmable_interval_timer.html#a95d5d0f0f8b77efc1ffdbe826654dc7a',1,'ProgrammableIntervalTimer'... | S4H/VIPPS | doc/html/search/functions_8.js | JavaScript | lgpl-3.0 | 4,489 |
var MooTools={version:"1.2.5",build:"008d8f0f2fcc2044e54fdd3635341aaab274e757"};
function Native(a){a=a||{};var b=a.name,c=a.legacy,d=a.protect,e=a.implement,f=a.generics,g=a.initialize,l=a.afterImplement||function(){};a=g||c;f=f!==false;a.constructor=Native;a.$family={name:"native"};if(c&&g)a.prototype=c.prototype;a.p... | APE-Project/APE_JSF | Build/closureCompiler/apeCoreSession.js | JavaScript | lgpl-3.0 | 49,020 |
'use strict';
angular.module('lostexhaust')
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/carpools', {
templateUrl: 'templates/carpools.html',
controller: 'CarpoolsController'
});
}])
| jakespringer/lostexhaust-v2 | client/app/views/carpools_view.js | JavaScript | lgpl-3.0 | 229 |
const METHOD_PASTE = 'paste';
/**
* When a widget is copy-pasted the editor duplicate its id.
* In order to preserve the editor with proper code this listener cleans all duplicate ids.
* Later the widget itself generate id if it is not presented.
*/
export class IdocEditorPasteListener {
listen(editor) {
edi... | SirmaITT/conservation-space-1.7.0 | docker/sep-ui/src/idoc/editor/idoc-editor-paste-listener.js | JavaScript | lgpl-3.0 | 1,405 |
/*
* #--------------------------------------------------------------------------
* # Copyright (c) 2013 VITRO FP7 Consortium.
* # All rights reserved. This program and the accompanying materials
* # are made available under the terms of the GNU Lesser Public License v3.0 which accompanies this distribution, and... | vitrofp7/vitro | source/trunk/Demo/vitroUI/webUI/src/main/webapp/js/actb.js | JavaScript | lgpl-3.0 | 19,769 |
'use strict';
var Joi = require('joi');
var schema = require('./schema');
var data = require('./pushgo.json');
Joi.validate(data, schema, function (err, value) {
if (err) {
throw err;
}
// Everything is valid, let's flood your console!
console.log(JSON.stringify(value, null, 2));
});
| pdehaan/pushgojsonlint | index.js | JavaScript | unlicense | 300 |
/*!
// Infinite Scroll jQuery plugin
// copyright Paul Irish, licensed GPL & MIT
// version 1.5.110106
// home and docs: http://www.infinite-scroll.com
*/
;(function($){$.fn.infinitescroll=function(options,callback){function debug(){if(opts.debug){window.console&&console.log.call(console,arguments)}}
function areSelec... | thurn/ackbar | resources/jquery.infinitescroll.min.js | JavaScript | unlicense | 6,891 |
/**
* Autor Nikolai Khilkovsky
* Email: khilkovn@gmail.com
* Github: https://github.com/nikkoUA
*/
'use strict';
describe('FindPairApp controllers', function (){
describe('Controller "FindPairCtrl"', function (){
var scope, ctrl;
var gameTime = 180;
beforeEach(module('findPairApp'));
... | nikkoUA/find-a-pair | test/unit/controllersSpec.js | JavaScript | unlicense | 1,016 |
"use strict";
// Libs
import $ from "jquery";
import _ from "underscore";
import Backbone from "backbone";
// App Modules
import Router from "./router";
// Start on DOM Ready
$(() => {
new Router();
Backbone.history.start();
}); | dbxt/StartFiles-Client-ES6-Bakbone-Gulp-JSPM | src/app.js | JavaScript | unlicense | 239 |
import _ from 'lodash';
import { answerIncludes } from './controller-utilities';
export const RULES_MESSAGE = `This is a modified version of the classic game
show, Family Feud. It is played by two teams, and consists of three phases: the
face-off, normal play, and an opportunity to steal. There are no buzzers, so the
... | steveortiz/alexa-family-feud | src/rules-controller.js | JavaScript | unlicense | 2,140 |
/**
*
*/
var myApp = angular.module('myApp', ["xeditable"]);
myApp.controller('DumpRecords', function($scope, $http) {
$http.get('./runsummary/getAll').
success(function(data) {
$scope.runsummaries = data;
}).
error(function(data, status, headers, config) {
w... | hasii2011/finna-be-octo-happiness | src/main/webapp/WEB-INF/pages/dumprecords.js | JavaScript | unlicense | 2,211 |
angular.module('starter.controllers', [])
.controller('MainCtrl', function ($scope, $http, $rootScope, $location, $ionicModal, $ionicLoading, $ionicNavBarDelegate,
CONFIG_ENV, $log, $cordovaToast) {
// Form data for the login modal
$scope.loginData = {};
... | smartkit/COVITAS | V1.0_ngix:apache_mosquitto_RESTful_Solr_LIRE/octo-ninja/ionic/SmartShoppingGuide/www/js/controllers.js | JavaScript | unlicense | 2,029 |
/**
*
*
* @author little9 (Jamie Little)
*
* Creates the tab dropdown interface from imported legacy guides
*
*/
var tabDropdown = {
init : function() {
tabDropdown.hideChildren();
tabDropdown.addDropdownSymbol();
tabDropdown.bindUiActions();
},
bindUiActions : function(){
tabDropdown... | lalvarezcu/subjectsplus | subjects/includes/js/tabDropdown.js | JavaScript | apache-2.0 | 1,540 |
import React from 'react'
import $ from 'jquery'
import Menu from './Menu'
import GameButtons from './GameButtons'
export default class Page extends React.Component {
constructor(props) {
super(props);
// Menu に渡す flag をstateに保持
this.state = {
showMenu: false,
is... | nama-gatsuo/shikaku-web | src/js/components/Page.js | JavaScript | apache-2.0 | 2,340 |
Meteor.methods({
generateAnimeRecommendations: function(userId) {
// Let's grab user's library entries.
var libraryEntries = LibraryEntries.find({userId: userId}).fetch();
// These are anime that we cannot recommend again!
var animeIdsAlready = _.pluck(libraryEntries, 'animeId');
var recommendedAnime = {};... | phanime/phanime | server/methods/recommendations.js | JavaScript | apache-2.0 | 2,570 |
import { registerBidder } from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';
const BIDDER_CODE = 'pubx';
const BID_ENDPOINT = 'https://api.primecaster.net/adlogue/api/slot/bid';
const USER_SYNC_URL = 'https://api.primecaster.net/primecaster_dmppv.html'
export const spec = {
code: BIDD... | tchibirev/Prebid.js | modules/pubxBidAdapter.js | JavaScript | apache-2.0 | 3,268 |
/* 提交订单处理类 */
var hd_order = (function() {
var params = {};
/* 显示全部收货地址 */
$(".show-add").live('click' ,function() {
$("[data-model=districts] .adddiv:gt(6)").removeClass('hidden');
$(this).remove();
});
/* 点击提交按钮 */
$("#submit").live('click',function(){
hd_order._dosubmit();
});
retur... | gavin2lee/incubator | haidao/haidao_install/template/default/statics/js/order.js | JavaScript | apache-2.0 | 6,298 |
// console.log("Connected Global.js");
// appRoot is defined in the init.php file ([root]/core/init.php)
// Debug appRoot
// console.log(appRoot);
// On Page Load Events
$(document).ready(function(){
// Slide down the alerts upon page load
// $('#alert').slideDown(250);
$( '#alert' ).removeClass( 'slideO... | MaineCannabisKid/Makoto | assets/js/global.js | JavaScript | apache-2.0 | 2,639 |
import Ember from "ember";
export default Ember.Controller.extend({
stream: Ember.inject.controller(),
wasAccepted: false,
actions: {
dismiss: function () {
if (this.get('wasAccepted')) {
this.transitionToRoute('files');
} else {
this.transitionToRoute('stream');
}
thi... | uboot/stromx-web | frontend/app/controllers/stream/close.js | JavaScript | apache-2.0 | 809 |
import { call, put } from 'redux-saga/effects'
import api from '../api'
import {
loginSuccess,
loginFailure,
setClient,
resetUi,
resetUser,
} from '../actions'
import {
login,
logout,
} from './auth'
describe('Auth Saga', () => {
const code = 'xyzzy'
const action = {
payload: { code },
}
c... | buildit/bookit-web | src/sagas/auth.test.js | JavaScript | apache-2.0 | 2,195 |
require('./simple');
require('./parents');
// require('./scope');
require('./empty-namespace');
require('./feed');
require('./off');
require('./clear');
| hanjo77/help-me | node_modules/rtc-quickconnect/node_modules/mbus/test/all.js | JavaScript | apache-2.0 | 153 |
// Anonymous function, keep the global namespace squeeky clean..
(function() {
if (typeof window.console == 'undefined') {
window.console = {};
window.console.log = function(message) {};
}
// alias
window.sampleList = window.codeArray;
var fileTypes = {
'js' : 'javascript',
'html' : 'html'... | html5rocks/playground.html5rocks.com | js/interactive_logic.js | JavaScript | apache-2.0 | 52,791 |
(function (root, factory)
{
"use strict";
// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
// Rhino, and plain browser loading.
if (typeof define === "function")
{
define("shmuelie/offlineAjax", [], factory);
}
else
{
factory(true);
}
}(this, f... | SamuelEnglard/OfflineAjax | OfflineAjax/OfflineAjax.js | JavaScript | apache-2.0 | 9,358 |
var Login = (function() {
"use strict";
var redirect_to_login = function() {
if (!page.client.is_logged_in && !is_login_pages()) {
try {
sessionStorage.setItem('redirect_url', window.location.href);
} catch(e) {
alert('The website needs features w... | shuwnyuantee/binary-static | src/javascript/binary/base/login.js | JavaScript | apache-2.0 | 1,189 |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* 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 require... | adup-tech/amphtml | test/integration/test-amp-ad-3p.js | JavaScript | apache-2.0 | 7,818 |
var NAVTREE =
[
[ "UnoAI", "index.html", [
[ "Class List", "annotated.html", [
[ "CStopWatch", "class_c_stop_watch.html", null ],
[ "stop_watch", "structstop__watch.html", null ],
[ "Uno_Action", "class_uno___action.html", null ],
[ "Uno_AI_Player", "class_uno___a_i___player.html", null ],... | gsteelman/utd | cs6364-artificial-intelligence/semester_project/doc/html/navtree.js | JavaScript | apache-2.0 | 10,835 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
'use strict';
const adal = require('adal-node');
const async = require('async');
const fs = require('fs');
const msRest = require('ms-rest');
const azur... | AutorestCI/azure-sdk-for-node | runtime/ms-rest-azure/lib/login.js | JavaScript | apache-2.0 | 37,534 |
var React = require('react');
import PureComponent from '../PureComponent';
import Ties from '../views/TiesPlaceholder';
var {pick} = require('../underscore_ext');
class TiesContainer extends PureComponent {
static displayName = 'TiesContainer';
onAddTerm = term => {
this.props.callback(['ties-add-term', term]);... | acthp/ucsc-xena-client | js/containers/TiesContainer.js | JavaScript | apache-2.0 | 1,044 |
/**
* dp[i][0] = max(dp[i-1][0], dp[i-1][1] + prices[i])
* dp[i][1] = max(dp[i-1][1], dp[i-2][0] - prices[i])
* 解释:第 i 天选择 buy 的时候,要从 i-2 的状态转移,而不是 i-1 。
* 查看 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-iii/solution/yi-ge-tong-yong-fang-fa-tuan-mie-6-dao-gu-piao-wen/
*
*/
/**
* @param {num... | hijiangtao/LeetCodeOJ | src/best-time-to-buy-and-sell-stock-iii/res.js | JavaScript | apache-2.0 | 1,028 |
$(function(){
var keys = ['name','kana','email'];
$("#btn01").click(function(){
console.log('clicked .............');
$.ajax({
url: "/customers/api01",
type: "GET"
}).done(function(json){
var keys = _.keys(json[0]);
//console.log(json);
var tbl = $("<table border=1>");
... | otsutomesan/mid | public/top.js | JavaScript | apache-2.0 | 794 |
google.load('visualization', '1', {
packages: ['gauge']
});
var options = {
width: 155,
height: 155,
redFrom: 9,
redTo: 10,
yellowFrom: 7.5,
yellowTo: 9,
min: 0,
max: 10,
};
function loop() {
console.log("Updating gauges")
for (idWtp in wtps) {
src = (!wtps[idWtp].c... | Panagiotis-Kon/empower-runtime | empower/static/apps/thor/thor.lib.js | JavaScript | apache-2.0 | 2,858 |
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: @VERSION
*
* Copyright (c) 2009-2011 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
* version 2.0 (http://w... | gilek/BAB | vendors/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js | JavaScript | apache-2.0 | 8,296 |
require('dotenv').config();
let wifi = new (require('../wifi'))();
var ssid = process.env.SSID,
password = process.env.PASS,
security = process.env.AUTH,
auto = process.env.AUTO,
iface = process.env.IFACE
let opts = {
password: password,
security: security,
auto: auto,
iface... | obermillerk/win-wifi | test/test-disconnect.js | JavaScript | apache-2.0 | 354 |
import React from 'react';
import PropTypes from 'prop-types';
import ReactModal from 'react-modal';
import { color, bp } from 'lib/variables';
/**
* A styled modal dialog.
*/
const Modal = ({ isOpen, onRequestClose, contentLabel, children, ...rest }) => {
// ReactModal throws an error in environments where the do... | amazeeio/lagoon | services/ui/src/components/Modal/index.js | JavaScript | apache-2.0 | 1,939 |