code stringlengths 2 1.05M |
|---|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ComponentTester = exports.StageComponent = undefined;
var _aureliaTemplating = require('aurelia-templating');
var _aureliaFramework = require('aurelia-framework');
var _wait = require('./wait');
var StageComponent = exports.St... |
var request = require('request');
var debug = require('debug')('app');
module.exports = {
wakeUp: function(url, callback) {
request(
{
method: 'get',
uri: url
}
, function(error, response, body) {
if (error) {
callback('Error calling self wakeup: ' + error);
... |
import express from 'express'
import passport from 'passport'
import { Strategy as LocalStrategy } from 'passport-local'
import User from './model'
let router = express.Router()
/* Passport plugins */
// use static authenticate method of model in LocalStrategy
passport.use(new LocalStrategy(User.authenticate()))
// ... |
/**
* Binary Heap
* ============================================================================
* "A heap is a specialized tree-based data structure that satisfies the heap
* property: If A is a parent node of B then the key (the value) of node A is
* ordered with respect to the key of node B with the same orderi... |
var dv = require('dv')
, fs = require('fs')
, Q = require('q');
exports.index = function(req, res){
var loadedFilePath = req.files.file.path || "";
var name = req.files.file.name || "";
var text = "";
Q.longStackSupport = true;
Q.nfcall(fs.readFile, loadedFilePath)
.then(function(file){
var... |
/*globals define, test, equal, ok, $*/
define(function (require) {
'use strict';
var can = require('can'),
Control = require('controls/menuControl'),
domTestLoader = require('tests/helpers/domTestLoader');
domTestLoader.setupTestModule('menuControl');
test('controls/menuControl', fun... |
version https://git-lfs.github.com/spec/v1
oid sha256:c0872deb8ec743bab16e76adb065a99949f4bfb85aa220c14b7710e56f68d322
size 25107
|
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
module.exports = class ModuleReason {
constructor(module, dependency) {
this.module = module;
this.dependency = dependency;
}
}
|
/**
* @license Angular v6.1.10
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
import { Injectable, NgModule, Version } from '@angular/core';
import { Observable } from 'rxjs';
import { ɵgetDOM } from '@angular/platform-browser';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,ex... |
'use strict';
const http = require('http');
const https = require('https');
const net = require('net');
const tls = require('tls');
const urlParser = require('url').parse;
class HttpsProxy{
constructor(){
}
web(req, clientSocket , remote , authCredentials){
var serverSocket;
function clean... |
import { createStore, applyMiddleware } from 'redux';
import {
bindStore,
connectComponent,
actionListenerMiddleware,
resetStoreAndBoundComponents,
} from '../src/redux-ddd';
let store = null;
describe('The action listener middleware', () => {
beforeEach(() => {
resetStoreAndBoundComponents();
stor... |
/**
* MIT License
*
* Copyright (c) 2017 ITGorillaz
*
* 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, mo... |
var EventUtil = require('browser-event-adder');
var signals = require('signals');
var MouseWheel = function(targetElement) {
var onWheelSignal = new signals.Signal();
EventUtil.addEvent(targetElement, 'mousewheel', onElementMouseWheel );
EventUtil.addEvent(targetElement, 'DOMMouseScroll', onElementMouseWheel ); //... |
/**
* @license AngularJS v1.4.2
* (c) 2010-2015 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {'use strict';
/**
* @description
*
* This object provides a utility for producing rich Error messages within
* Angular. It can be called as follows:
*
* var exampleMinEr... |
'use strict';
(function() {
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
var ieOnlyLibs = ['js/nwmatcher.js', 'js/libs/selectivizr.js', 'js/libs/html5shiv/html5shiv-printshiv.js', 'js/libs/PIE.js'];
grunt.initConfig({
bower: {
in... |
var app = angular.module("app", []);
app.controller("IndexController", function ($scope) {
$scope.message = "Hello World!";
});
|
var TaskResponse = require("../client/task/response").TaskResponse;
var ExhaustTaskResponseSender = function(task_response_serializer, outbound_exhaust_connection){
this.task_response_serializer = task_response_serializer;
this.outbound_exhaust_connection = outbound_exhaust_connection;
};
ExhaustTaskResponseSende... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.wire.ml.Service"]){ //_hasResource checks added by build. Do not use _hasResource directly in ... |
angular.module( 'thorvarium.game.bullet', [
'ui.router'
])
.factory('Bullet', function () {
function Bullet(player, person, weapon, angle, speed, power, size, x, y, context) {
this.player = player;
this.person = person;
this.weapon = weapon;
this.angle = angle;
this.speed = speed;
this.po... |
import { atRandom } from "../../../shared/atRandom";
import { allUsers, currentUser } from "../../state-mgmt";
export async function getIdToken() {
const user = currentUser();
const userConfig = allUsers().find(i => i.email === user.email);
if (!user) {
throw new Error("not logged in");
}
if... |
const GraphUtils = require('../src/graph-utils');
const GraphTestUtils = require('./graph-test-utils');
test('simplify: data set diabolo', () => {
let data = GraphTestUtils.readFile('./test/data/data_diabolo/data_diabolo.json');
let data_result = GraphTestUtils.readFile('./test/data/data_diabolo/data_diabolo.s... |
'use strict';
var chai = require('chai'),
sinon = require('sinon'),
Promise = require('bluebird'),
getPullRequestLabel = require('../../../lib/getPullRequestLabel'),
rest = require('restling'),
expect = chai.expect;
require('sinon-as-promised')(Promise);
chai.use(require('sinon-chai'));
chai.use(r... |
'use strict';
require('dotenv').load();
var _ = require('underscore'),
mediator = require('./strategy/mediator');
var Payomatic = function () {
//this.processors = {};
this._options = {
'name': 'Pay-O-Matic'
};
// init environment defaults
this.set('stripe api key', process.env.STRIPE_API_KEY);... |
module.exports = function (mode) {
if (typeof mode === 'object') {
//
// Accept `fs.Stats`.
//
mode = mode.mode;
}
var owner = mode >> 6,
group = (mode << 3) >> 6,
others = (mode << 6) >> 6;
return {
read: {
owner: !!(owner & 4),
group: !!(group & 4),
others: ... |
import { call, put, select, takeLatest } from 'redux-saga/effects';
import { LOAD_ENCOUNTERS } from 'containers/App/constants';
import { encountersLoaded, encounterLoadingError } from 'containers/App/actions';
import request from 'utils/request';
import { makeSelectUsername } from 'containers/HomePage/selectors';
/... |
import assert from 'assert';
import JSONFormatter from '../../src/formatters/json_formatter';
describe('JSONFormatter', () => {
it('returns an array of errors in JSON format', () => {
const errors = {
'schema/query.graphql': [
{
message:
'The field `Query.users` is deprecated ... |
var gulp = require('gulp');
// Do nothing
|
/* eslint-disable no-unused-expressions */
// DEPENDENCIES
// =============================================================================
// THIRD-PARTY ----------------------------------
import uiRouter from "angular-ui-router";
// APP ----------------------------------
import ErrorsModule from "Common/errors";
imp... |
import React, { Component } from 'react'
import {
AsyncStorage,
LayoutAnimation
} from 'react-native'
import SignUp from '../Components/Signup.js'
import routes from '../Utils/routes.js'
import { updateInput, addUserToStore, isLoading } from '../Actions/actions_index.js'
import { connect } from 'react-redux'
impo... |
'use strict';
var mView = angular.module('mainmenu.cSchedule', ['ngRoute']);
mView.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/schedule', {
templateUrl: 'components/schedule/view.html',
controller: 'cSchedule'
});
}])
mView.controller('cSchedule', ['$scope', '$q... |
import _ from 'lodash';
import {Base as BaseGenerator} from 'yeoman-generator';
module.exports = class ESNextProjectReadmeGenerator extends BaseGenerator {
constructor(...args) {
super(...args);
this.option('name', {
type: String,
required: true,
desc: 'Project name',
});
this.opt... |
$(document).ready(function() {
function includeTemplate(a, b){
return function(options){
var include = b(options);
return a(_.set(options, 'include', include));
};
}
function optionList(data){
return _
.chain(data.options)
.map(func... |
/*jshint undef: true, unused: true, browser: true */
/*global angular: true, FileReader: true */
/*jslint browser: true, white: true, indent: 2 */
/*
Credit: http://odetocode.com/blogs/scott/archive/2013/07/03/building-a-filereader-service-for-angularjs-the-service.aspx
};
*/
(function() {
'use strict';
funct... |
/* global require console process describe it */
const tap = require('tap')
const superagent = require('superagent')
var bulkdoc_saver = require('../.')
const path = require('path')
const rootdir = path.normalize(__dirname)
const config_okay = require('config_okay')
const config_file = rootdir+'/../test.config.js... |
'use strict';
const path = require('path');
function getServerPath() {
return path.normalize(path.join(__dirname, '..', 'scripts', 'server'));
}
module.exports = {
getServerPath,
};
|
import ActionTypes from './actionTypes.js'
const reducer = (state, action) => {
switch(action.type) {
case ActionTypes.GET_THUMBNAILS_PAGE.GETTINGS:
{
const newState = Object.assign({}, state, {
loading: true
});
return newState;
}
... |
angular
.module('eArkPlatform.header', ['ngMaterial'])
.config(config);
function config(languageFilesProvider) {
languageFilesProvider.addFile('app/src/header/i18n/', '-header.json');
}
|
var APP = APP || {};
APP.player = (function(window, $, undefined) {
var $player = $('#player'),
yt_dom_id = 'player_media',
player,
is_api_loaded = false,
/*
* @var cued_video_id
* cue id when api is not loaded yet
*/
cued_video_id,
/*
* @var is_player_visible
* true, if player is visib... |
'use strict';
angular
.module('app.controllers')
.controller('DefaultEditCtrl', function($scope, $rootScope, $stateParams, $state,
$interval, Restangular, apiDescriptor, formElementProvider, dataTransformer) {
var resourceName = $stateParams.resourceName;
var resourceId = $stateParams.id;
var resource = Restang... |
if (typeof sibilino === "undefined") {
sibilino = {}; // Initialize sibilino as empty object if not existing
}
sibilino.olwidget = (function ($) {
var pub = {
isActive: true,
init: function () {
// Nothing to init
},
// Storage for additional options that may be set b... |
/**
* main.js
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2014, Codrops
* http://www.codrops.com
*/
$( document ).on('turbolinks:load', function() {
if($(".home").length > 0){
(function() {
var bodyEl = document.bo... |
/* global $ requests helper sidebar */
'use strict';
// ==UserScript==
// @name MusicBrainz: Display AcousticBrainz datasets count for work
// @namespace mbz-loujine
// @author loujine
// @version 2021.9.19
// @downloadURL https://raw.githubusercontent.com/loujine/musicbrainz-scripts/master/mb-di... |
Utils.addMethodToPromise('wait', function (timeout) {
var previous = this
timeout = timeout || Promise.WAIT_UNTILL_TIMEOUT
check(timeout, Number)
return new Promise(function(resolve){
setTimeout(
function() { resolve(previous) },
timeout
)
})
})
|
// Copyright (c) 2013 Romain Vallet <romain.vallet@gmail.com>
// Licensed under the MIT license, read license.txt
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Gmail',
prepareImgLinks:function (callback) {
$('span[download_url]').each(function () {
var url = t... |
'use strict';
module.exports = {
invokeFunction () {
const func = this.options.function;
const functionObject = this.serverless.service.getFunction(func);
const eventType = Object.keys(functionObject.events[0])[0];
return this.provider.invoke(func, eventType, this.options.data);
// TODO: Github ... |
var app = angular
.module("doubleoffshore", ["localytics.directives", "ui.bootstrap"]);
function createDrawnObject(model) {
return {
m: model,
width: 60,
height: 60,
setSize: function(w, h) {this.width = w; this.height = h;},
getLabel: function() {return this.m.name;},
... |
import React from 'react';
import classNames from 'classnames';
import InfiniteTree from 'react-infinite-tree';
import 'react-infinite-tree/dist/react-infinite-tree.css';
import cs from '../../../services/CommunicationService'
import HousingInfo from '../../MainPage/FormTable/HousingInfo/HousingInfo'
export default cl... |
module.exports = function (grunt) {
grunt.initConfig({
// Metadata
banner: '/*! <%= pkg.name %> (v<%= pkg.version %>) <%= grunt.template.today("dd-mm-yyyy") %> */',
pkg: grunt.file.readJSON('package.json'),
// Tasks
clean: {
dist: ['dist']
},
copy: {
dist: {
fil... |
Router.configure({
layoutTemplate: 'layout'
});
Router.map(function() {
this.route('futures', {path: '/'});
this.route('transactions', {path: '/transactions'});
}); |
AmazonTemplateDescriptionCategorySpecificBlockGridAddSpecificRenderer = Class.create(AmazonTemplateDescriptionCategorySpecificRenderer, {
// ---------------------------------------
blockRenderer: null,
childAllSpecifics : [],
childRowsSpecifics : [],
selectedSpecifics : [],
// -... |
/*
jsTree-Angular
(c) 2015 Luiz Fernando Vid <luizvid@gmail.com>
License: MIT
Version 1.1.1
*/
if(angular.isUndefined(jsTreeAngular)) {
var jsTreeAngular = angular.module('jsTreeAngular',[]);
}
(function(app) {
app.directive('jsTree', [
'$timeout', 'jsTreeAngular',
function ($timeout, jsTre... |
'use strict';
(function () {
angular
.module('MangaTradingApp', ['ngResource'])
.controller('accountController', ['$http', '$q', '$resource', '$scope', function ($http, $q, $resource, $scope) {
/***** INITIALIZE *****/
$scope.loader = { isSaving: false };
$... |
var searchData=
[
['labelpadding',['labelPadding',['../interface_d_r_h_ruler_chart_view.html#a4416e553a090fe67ee02c2a160a5326b',1,'DRHRulerChartView']]],
['labels',['labels',['../interface_d_r_h_ruler_chart_view.html#ae98e7a4f2db7e4300ff454f5c306417a',1,'DRHRulerChartView::labels()'],['../interface_d_r_h_vertical_s... |
---
---
var cityarray = {"cities":[
{% for city in site.cities %}
{"name":"{{ city.name }}", "videourl":"{{ city.videourl }}",
"prettyname":"{{ city.prettyname }}"},
{% endfor %}
{"name":"lastitem", "videourl":"https://player.vimeo.com/external/142699110.sd.mp4?s=0564ce1135a2e759fa5629a6c72c771f&... |
"use strict";
let ServiceBroker = require("../src/service-broker");
// Create broker #1
let broker1 = new ServiceBroker({
nodeID: "node-1",
transporter: "NATS",
logger: console,
});
broker1.createService({
name: "test",
dependencies: ["auth"],
actions: {
async hello(ctx) {
this.logger.info("Meta before", ... |
var TwitterListener, config, events, sys, twitter, twitterConfig, util;
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prot... |
// = assignment operator
var score = score + 20;
// or use the shorthand
var score *= 10;
// other common short hands are +=, -=, *=, /=
// Operator precedence
result = 5 + 5 * 10;
result = (5 + 5) * 10;
// Comparison operator
if ( a == b ){
alert("YES a is equal to b");
}
// = assignment operator
// == equali... |
// provision
var provision = 0;
$(document).ready(function() {
// Das letzte Formularfeld mit Klasse "focusPlease" auf der Seite kriegt den Fokus.
$('.focusPlease').last().focus();
// Auszahlung: Provision berechnen
$('input[name=no_provision]').change(calcProvision);
// Kasse: Provision berechnen
$('inp... |
if(document.body){
var larg = (document.documentElement.clientWidth);
var haut = (document.documentElement.clientHeight);
}
else {
var larg = (window.innerWidth);
var haut = (window.innerHeight);
}
|
mb.lang.support.ja = {
"title": "日本語",
"dictionary": {
"Button.Accounts": "資産",
"Button.AddFilter": "資産追加",
"Button.AddTrans": "記録追加",
"Button.Delete": "削除",
"Button.Download": "読み込み",
"Button.Edit": "編集",
"Button.Save": "保存",
"Button.Settings": "設定",
"Button.Upload": "書き出し",
... |
console.log(JSON.stringify(process.env));
|
var lemmi =
["a",
"a",
"abate",
"abate",
"abbacchiato",
"abbandonare",
"abbandonare",
"abbandonato",
"abbandono",
"abbassamento",
"abbassare",
"abbassato",
"abbasso",
"abbastanza",
"abbatangelo",
"abbattere",
"abbattimento",
"abbattuto",
"abbigliamento",
"abbinamento",
"abbinare",
"abbisognare",
"abboccamento",
"abbon... |
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"aurelia-binding": "npm:aurelia-binding@1.0.0... |
var express = require("express");
var router = express.Router({mergeParams: true});
// COMMENTS ROUTES
router.get("/new", isLoggedIn, function(req, res){
//find campground by id
Campground.findById(req.params.id, function(err, campground){
if (err) {
console.log(err);
}else{
console.log("Comments page");
... |
import React, {
View,
Text,
Image
} from 'react-native';
import Navigator from '../src/ExNavigator/index';
import HomeScene from './HomeScene';
import MarqueeScene from './MarqueeScene';
import FancyNavigationBar from './FancyNavigationBar';
var Button = require('react-native-button');
export default Router = {... |
"use strict";
/*\
|*|
|*| :: Number.isInteger() polyfill ::
|*|
|*| https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
|*|
\*/
if (!Number.isInteger) {
Number.isInteger = function isInteger (nVal) {
return typeof nVal === "number" && isFinite(nVal) &&... |
/*global module:false, require:false*/
var md = require('matchdep');
module.exports = function (grunt) {
'use strict';
var serverPort = 8080;
var server = 'http://localhost:' + serverPort;
var SRC_FILES = ['src/jquery.*.js'];
var TEST_FILES = server + '/tests/jquery.event-based-animation.js.t... |
// Copyright IBM Corp. 2014. All Rights Reserved.
// Node module: loopback
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var loopback = require('../../');
module.exports = it;
it.onServer = function itOnServer(name, fn) {
if (loopback... |
'use strict';
angular.module('global.head', [
'lib.logger'
])
.controller(
'HeadController',
function HeadController(logger) {
var log = logger.get('HeadController');
this.construct = function () {
// Bind up needed things for the <head> section of your page
// (i.... |
/**
* Majority Elements
*
* Given an array of size n, find the majority element. The majority element is the element that appears
* more than ⌊ n/2 ⌋ times.
*
* You may assume that the array is non-empty and the majority element always exist in the array.
*
* Example 1:
*
* Input: [3,2,3]
* Output: 3
*
* E... |
'use strict';
var router = Sammy('#content', function (context) {
let $content = $('#content');
let requester = new Requester();
let template = new HandlebarsTemplate();
let utils = new Utils(requester);
let userData = new UserData(requester);
let articleData = new ArticleData(requester);
let adminDat... |
/**
* User Route
* Handles requests and forwards to the User Service
*/
const Joi = require('joi');
// Valid fields are all keys on the model
let validFields = _.keys(Morty.models.user.schema.obj);
// Valid sort options are all fields both negative and positive
let validSortOptions = validFields.concat(validField... |
'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users.server.controller'),
articles = require('../../app/controllers/articles.server.controller');
module.exports = function(app) {
// Article Routes
app.route('/articles')
.get(articles.list)
.post(users.requi... |
var fs = require('fs'),
util = require('util'),
EventEmitter = require('events').EventEmitter;
var argv = require('optimist')
.string('file')
.default('file',
'/home/sean/pg/llvm/llvm/docs/SphinxQuickstartTemplate.rst')
.check(function (argv) { return typeof argv.file === 'string'; })... |
// COPYRIGHT © 2017 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
module.exports = function(assets) {
assets.root = __dirname;
assets.addJs('/public/js/jquery.min.js');
assets.addJs('/public/js/bootstrap.js');
assets.addJs('/public/js/ejs_production.js');
assets.addJs('/public/js/prettify.js');
assets.addJs('/public/js/site.js');
assets.addCss('/public/css/reset.cs... |
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var buffer = require('vinyl-buffer');
// build src
gulp.task('browserify', function(cb){
return browserify('./src/app.js', {
debug: true
... |
(function () {
'use strict';
var detailCtrl = function($scope, $log, $timeout, $stateParams, TheMovieDBService) {
var vm = this;
// So movie id is available immediately to gather the additional data
var movieId = $stateParams.movieId;
vm.movieId = movieId;
TheMovieDBSer... |
const db = require('./userModel');
const firebase = require('firebase');
const userCtrl = {
// Authenticates user with Firebase
loginUser: (req, res, next) => {
const { email, password } = req.body;
firebase.auth().signInWithEmailAndPassword(email, password)
.then(() => next())
.catch(() => r... |
const PathInBuilderConfigHandler = require('./path-in-builder-config-handler');
const Utl = require('../utl');
module.exports = async ({context, isDisableBuilder}) => {
Utl.checkoutProjectConfigInContext(context);
if (!context.projectConfig.builder) {
throw new TypeError('The builder is not set');
... |
$(function() {
var $els = $(".csv-to-html");
$els.each(function () {
var $el = $(this);
var h = $el.html();
// dupe commas
//while (h.indexOf(",,") > -1) {
// h = h.replace(/\,\,/g,',');
//}
// last comma
h = h.replace(/\,\n/g,'\n');
//
h = h.replace(/\n/g,'</td></tr>\n<tr><td>');
// t... |
/**
* Autoinsert script tags (or other filebased tags) in an html file.
*
* ---------------------------------------------------------------
*
* Automatically inject <script> tags for javascript files and <link> tags
* for css files. Also automatically links an output file containing precompiled
* templates usin... |
templateModule.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/templates/:id', {templateUrl: 'template/views/templateView.html', controller: 'templateController'});
$routeProvider.when('/templates', {templateUrl: 'template/views/templateListView.html', controller: 'templateListContro... |
version https://git-lfs.github.com/spec/v1
oid sha256:127a65a4497aa6a8723498a7f79072df4fa8549bb40af7a5d66fb98f8afe1692
size 14340
|
function Logger(options) {
var defaults = {
size: 10,
collapsed: true,
styles: {
container: 'position: relative; font-size: 75%;',
expander: 'position: absolute; right: 0; bottom: 0; padding: 2px; font-weight: bold; border: 1px solid #000; border-radius: 3px; cursor:... |
/*
* grunt-faker
* https://github.com/chrisocast/grunt-faker
*
* Copyright (c) 2014 Chris Cast
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
... |
(function(){
var app = angular.module("exchangeApp", []);
var RegistrationController = function($scope, $http){
$scope.passwordsNotEqual = false;
$scope.errorTitle = "*fill all required fields";
$scope.selectedGender = "male"
$scope.RegisterUser = function(){
$scope.passwordsNotEqual = false;
... |
module.exports = function (shared, done) {
const activeDanteam = "02";
require(`./${activeDanteam}.fetching.js`)(shared, done);
}; |
import React from 'react';
const PublicScreen = (props) => {
return (
<div>
Public
</div>
);
}
export default PublicScreen;
|
/**
* @param {number[]} nums
* @return {number}
*/
var arrayPairSum = function(nums) {
const sorted = nums.sort((a, b) => a - b);
return sorted.filter((n, i) => i % 2 === 0).reduce((acc, n) => acc + n, 0);
};
|
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'cs', {
clear: 'Vyčistit',
highlight: 'Zvýraznit',
options: 'Nastavení barvy',
selected: 'Vybráno',
t... |
/**
* Created by pingfengafei on 16/11/29.
*/
import React from 'react';
import './Pagination.less';
class Pagination extends React.Component {
constructor(props) {
super(props);
//学到了个碉堡的bind方法
['_prev', '_next', '_handleClick', '_hasPrev', '_hasNext'].forEach((val) => {
this[val] = this[val].bi... |
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var version = '1.0.0';
function load_ipython_extension() {
console.log("echarts-themes-js " + version + " has been loaded");
}
exports.load_ipython_ex... |
/**
*
*/
define(['backbone',
'model/PeriodoAcademicoModel',
'AdminApplication'], function (Backbone, PeriodoAcademicoModel, app) {
app.meta.collections.PeriodoAcademicoCollection = Backbone.Collection.extend({
url: app.baseUrl+'/periodoacademico',
model: PeriodoAcademicoModel
});
}); |
/* jslint node: true */
'use strict';
var TraversalTracker = require('./traversalTracker');
var DocPreprocessor = require('./docPreprocessor');
var DocMeasure = require('./docMeasure');
var DocumentContext = require('./documentContext');
var PageElementWriter = require('./pageElementWriter');
var ColumnCalcula... |
'use strict';
var myapp = angular.module('ngReactionsApp', ['ng-reactions']);
myapp.controller("reactionCtrl", ['$scope', function($scope) {
$scope.reactionList = [{
selected: 'none',
minRating: 1,
readOnly: false
},{
selected: 3,
minRating: ... |
export * from './appActions';
export * from './walletActions';
|
function Get(obj, options, cb) {
obj = this.clone(obj);
const self = this;
const optType = this.type(options);
// options parametresi function olarak geçirilmişse callback olarak bunu seçiyoruz
const _cb = (optType === '[object Function]') ? options : cb;
// cache key'i belirliyoruz
/... |
/* eslint-disable no-console */
/**
* Setup and run the development server for Hot-Module-Replacement
* https://webpack.github.io/docs/hot-module-replacement-with-webpack.html
*/
const express = require('express');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
c... |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import application from './reducers'
import App from './components/App'
const store = createStore(application);
render(
<Provider store={store}>
<App />
</Provider>,
docume... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.