code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:7292004053ec3242f49929dc36dbabc361032df091b62510833b54466098d66b size 3526
var commands, storage, config, fileHealthy; module.exports = { init: function(_commands, _storage, _config, _fileHealthy) { if(_commands) commands = _commands; if(_storage) storage = _storage; if(_config) config = _config; fileHealthy = _fileHealthy; return this; }, parseURI: function(_uri) { retur...
'use strict'; var combined = require('combined-stream'), gulp = require('gulp'), gutil = require('gulp-util'), spigot = require('stream-spigot'), defaults = require('lodash.defaults'), flatten = require('lodash.flatten'), through = require('through2'), path = require('path'),...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), errorHandler = require('../errors.server.controller'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'); /** * Signup */ exports.signup = function(req, res) { // For security mea...
// Main entry point for the browser build import { vueUse } from './utils/plugins' import { BootstrapVue } from './index' // Auto installation only occurs if window.Vue exists vueUse(BootstrapVue) export default BootstrapVue
import VueRouter from 'vue-router'; import Vue from 'vue'; import home from '../vues/components/home.vue'; import about from '../vues/components/about.vue'; Vue.use(VueRouter); const routes = [ { path: '/home', component: home } , { path: '/about', component: about } ] const router = new VueRouter({ routes }) ...
'use strict'; var MSG_PART_ATTR_CONTENT = 'content'; var MSG_PART_TYPE_TEXT = 'text'; var ngModule = angular.module('woServices'); ngModule.service('publickeyVerifier', PublickeyVerifier); module.exports = PublickeyVerifier; var ImapClient = require('imap-client'); function PublickeyVerifier(auth, appConfig, mailre...
var gulp = require('gulp'), inSequence = require('run-sequence'), del = require('del'), inject = require('gulp-inject'), rename = require('gulp-rename'), concat = require('gulp-concat'), sourcemaps = require('gulp-sourcemaps'), typescript = require('gulp-typescript'); gulp.task('default', f...
'use strict'; function DevicesCtrl($rootScope, GreenhouseService) { var vm = this; $rootScope.breadCrumbs = [{'name': 'devices', 'url': '/device'}]; $rootScope.deviceDescription = "Temperature Monitors"; var listener = $rootScope.$watch('allDevices', function () { for (var device in $rootScope...
var lint = require('sass-lint'); var results = lint.lintFiles('', {}, '.sass-lint.yml'); var hr = '--------------------------------------------------------------------'; var result = ''; var file = ''; var messages = ''; var message = ''; var location = ''; var output = ''; var msg = ''; var rule = ''; var line = ''; ...
const PlotCard = require('../../plotcard.js'); class GrandMelee extends PlotCard { setupCardAbilities(ability) { this.persistentEffect({ match: card => this.game.isDuringChallenge({ attackingAlone: card }) || this.game.isDuringChallenge({ defendingAlone: card }), targetController: '...
var exports = module.exports = {}; var index = require('./index'); exports.spamcounter = 0; // Spamblock and emptystriper exports.blockRepeated = function (msg, username, callback) { var spam = true; var lastMessage = ""; index.userManagement.getUserByName(username, function(err, user) { if(typeof user !...
function degToRads(deg){ return Math.PI * deg / 180; } function radToDeg(rad){ return rad * 180 / Math.PI; } function isNullOrUndefined(value){ return Boolean(value === undefined || value === null); } /** * Rotates a point around the given origin * by the specified radians and returns the...
'use strict' const assert = require('assert') const path = require('path') const _ = require('lodash') const fs = require('fs') exports.assert = (options, result) => { if (options.expected) assert.equal(result.code.trim(), options.expected.trim()) if (options.dependencies) { if (options.dependencies.relatives...
const request = require('./request') module.exports = function iDoNothing() { //just references expensiveOperation, doesn't call it //therefore this won't be modified request.expensiveOperation; const name = 'mike'; }
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; require('./TodoList');
import {expect} from 'chai' import {$hook, initialize as initializeHook} from 'ember-hook' import {integration} from 'ember-test-utils/test-support/setup-component-test' import hbs from 'htmlbars-inline-precompile' import {afterEach, beforeEach, describe, it} from 'mocha' import sinon from 'sinon' const test = integra...
import React from 'react' import BackToCardList from './BackToCardList' import CardFormWrapper from '../containers/CardForm' const CardNew = () => ( <div id="new-card-wrapper"> <BackToCardList /> <CardFormWrapper /> </div> ) export default CardNew
// 74: String - `endsWith()` // To do: make all tests pass, leave the assert lines unchanged! // Follow the hints of the failure messages! describe('`str.endsWith(searchString)` determines whether `str` ends with `searchString`', function() { const s = 'el fin'; describe('the 1st parameter the string to search fo...
var CPUS = require('os').cpus(); var CPU = CPUS[0].model; var CORES = CPUS.length; process['UV_THREADPOOL_SIZE'] = CORES; var Node = { crypto: require('crypto'), process: process }; var Queue = require('@ronomon/queue'); var ReedSolomon = require('./binding.node'); var MAX_K = Math.min(20, ReedSolomon.MAX_K); var MAX...
/** @module ember @submodule ember-glimmer */ import { assert } from 'ember-debug'; import { CachedReference, ConditionalReference } from '../utils/references'; import { CONSTANT_TAG, UpdatableTag, combine, isConst } from '@glimmer/reference'; class ConditionalHelperReference extends CachedReference { s...
var WinChan = require('./winchan'); /** * @module Hook.Plugin * @class OAuth */ Hook.Plugin.OAuth = function(client) { this.client = client; }; Hook.Plugin.OAuth.prototype.popup = function(provider, options) { var self = this, href = this.client.url("oauth/" + provider), href_relay = this.client.ur...
/** * @overview the base class of pie chart * @component#iChart.Pie * @extend#iChart.Chart */ iChart.Pie = iChart.extend(iChart.Chart, { /** * initialize the context for the pie */ configure : function() { /** * invoked the super class's configuration */ iChart.Pie.superclass.configure.call(this); ...
var React = require('react'); var DepVar = require('./DepVar'); var IndVar = require('./IndVar'); var connect = require('react-redux').connect; var Actions = require('../../actions/Samples'); var bindActionCreators = require('redux').bindActionCreators; var History = require('react-router').History; var Link = require(...
<<<<<<< HEAD var http = require('http') , multiparty = require('../../') , assert = require('assert') , superagent = require('superagent') , path = require('path') var server = http.createServer(function(req, res) { assert.strictEqual(req.url, '/upload'); assert.strictEqual(req.method, 'POST'); var form...
var classm_r_n_a = [ [ "mRNA", "classm_r_n_a.html#ae8413267836a44b8c65a006df9b759bc", null ] ];
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Search = mongoose.model('Search'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, u...
var _ = require('lodash'); module.exports = function (data, options) { options = _.extend({ mutator: function (val) { return val; } }, options); if (typeof data !== 'object') { throw new Error('[toxic] requires an object to mutate'); } return _(data) .map(function (value, key) ...
define(function (require) { require('jquery'); require('bootstrap-listbuilder'); return describe('ListBuilder', function () { var $el, changed; beforeEach(function () { changed = false; $el = $('<ul><li class="list-group-item">ABC</li></ul>'); $el.on('...
var armdMkLesson = { isSearch: false, init: function(count) { armdMkLesson.loadByCount = count; armdMkLesson.isSearch = $('#search-txt').val() ? true : false; // filter $('body').on('click', '.ui-selectgroup-list[aria-labelledby="ui-lesson_museum"] a, .ui-selectgroup-list...
var Joi = require('joi'); var routes = require('./routes'); var group = { params: Joi.object().keys({ musiconhold: Joi.string(), outgoingNumber: Joi.string() }), routes: Joi.array().items(routes.group) }; module.exports = group;
var path = require('path'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') } };
catalogScanners: { predcatalog: { breadcrumps: [ { link: true, name: 'Главная' }, { name: 'Каталог' } ], head: 'Диагностические авто-сканеры', text: 'Диагностические адаптеры или скане...
/*! * Copyright 2013 Drifty Co. * http://drifty.com/ * Ionic - a powerful HTML5 mobile app framework. * http://ionicframework.com/ * * * By @maxlynch, @helloimben, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */ ; // Create namespaces window.ionic = { c...
VK = {}; VK.requestCredential = function (options, credentialRequestCompleteCallback) { if (!credentialRequestCompleteCallback && typeof options === 'function') { credentialRequestCompleteCallback = options; options = {}; } var config = ServiceConfiguration.configurations.findOne({service: 'vk'}); if (!confi...
'use strict'; const assert = require('assert'); const { runner: { Runner }, } = require('../..'); const runner = new Runner(); assert.strictEqual(runner.options.runTodo, false); assert.strictEqual(runner.hasFailures, false); assert.strictEqual(runner.finished, false);
import module from '../../module' import command from '../../components/command' import axios from 'axios' export default module( command('thera', 'Lists the five nearest k-space Thera connections to the given system.', async (state, message, args) => { try { const argsList = args.split(' '); ...
export default [ 'communications', 'design', 'donation', 'engineering', 'food-and-beverage', 'food---beverage', 'fund', 'legal', 'marketing', 'office', 'other', 'supplies-and-materials', 'supplies---materials', 'team', 'web-services', 'travel' ];
module.exports = function Constructor (data) { document.getElementById('constructor-data').innerHTML += 'test.constructor was passed ' + JSON.stringify(data) + ', ' + data.deeper.here; };
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
var searchData= [ ['margrabeoptions',['MargrabeOptions',['../quanto__margrabe_8h.html#ae22fd9341ea22438ed8a626ef356e322',1,'quanto_margrabe.h']]], ['max',['Max',['../classMersenneTwister.html#a61ef4663e8709411b422b4b1a7b40328',1,'MersenneTwister::Max()'],['../classParkMiller.html#a2bd97c9ae7113ed67aa533eb62d7097d',...
/** * <%=whatIsThis%> * 201 (CREATED) Response * * Usage: * return res.created(); * return res.created(data); * return res.created(data, 'auth/login'); * * @param {Object} data * @param {String|Object} options * - pass string to render specified view */ module.exports = function created (data, o...
/** @module ember-flexberry-designer */ import { computed } from '@ember/object'; import { A, isArray } from '@ember/array'; import { isNone } from '@ember/utils'; import FdUmlElement from './fd-uml-element'; import { BaseObject } from './fd-uml-baseobject'; import joint from 'npm:jointjs'; import $ from 'jquery';...
let os = require('os'); function getIpAddresses() { let ifList = []; let ifaces = os.networkInterfaces(); Object.keys(ifaces).forEach(function (ifname) { let alias = 0; ifaces[ifname].forEach(function (iface) { if ('IPv4' !== iface.family || iface.internal !== false) { ...
var TRANS = { int_currency : '國際組織匯率', foreign_fee : '跨國手續', local_val : '本次交易金額', cashback_val : '現金回饋', gain_val : '淨回饋收入', actual_val : '實際支付金額', type : '卡別', cashback_per : '現金回饋率(%)', foreign_fee_per : '海外交易手續費率(%)', opr : '操作', delete ...
const webpack = require('webpack') const env = process.env.NODE_ENV const config = { module: { loaders: [ { test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ } ] }, output: { library: 'PureReduxRouter', libraryTarget: 'umd' }, plugins: [ new webpack.optimize.Occurre...
// Connected component import React, {Component} from 'react'; import {Row, Col} from 'react-bootstrap'; class List extends Component { displayName = 'Clinics component' render() { return ( <Row> <Col xs={12}> <h1>Clinics</h1> </Col> </Row> ); } } export {List};
var currentPlaylistIndex = -1; var currentVideolistIndex = -1; var playerReady = false; var replayVideo = false; var playerUnstartedTimer; // Hide cursor after a period of inactivity var cursorHidden = false; var hideCursorTimer; var progressTimer; var currentVidUrl; var PLAYLIST_DATA_NAME_INDEX = 0; var PLAYLIS...
var env = process.env.NODE_ENV = process.env.NODE_ENV || 'test'; var app = require('../../server.js'), request = require('supertest'), express = require('express'), should = require('should'), bodyParser = require('body-parser'), expect = require('chai').expect, fs = require('fs'); app.use(bodyParser()); ...
import React from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import ModalSwitch from './ModalSwitch/ModalSwitch'; import './App.css'; class App extends React.Component { render() { return ( <BrowserRouter> <div> <h1>Fantastic Gallery</...
/*! angular-retina - v0.1.2 - 2013-05-28 * https://github.com/jrief/angular-retina * Copyright (c) 2013 Jacob Rief; Licensed MIT */ (function(angular, undefined) { 'use strict'; angular.module('ngRetina', []).config(['$provide',function($provide) { $provide.decorator('ngSrcDirective',['$delegate', function($delegate...
(function ($) { $.fn.contentFixedDetect = function (options) { //settings are default to add appliedClass when above yScrollPoint var settings = $.extend({ appliedClass: "unscrolled", //default for at top.. useScrollPoint: true, //use point on page, false to use the selectors...
/*global describe, it, require*/ "use strict"; const async = require("async"); const should = require("should"); const opcua = require("node-opcua"); const OPCUAClient = opcua.OPCUAClient; module.exports = function (test) { describe("Testing server when client sessionName is not defined #198", function () { ...
// Controller for post digest PostsSingleDayController = RouteController.extend({ template: getTemplate('singleDay'), data: function() { var currentDate = this.params.day ? new Date(this.params.year, this.params.month-1, this.params.day) : Session.get('today'); Session.set('currentDate', currentDate); ...
var mainContainer = document.getElementById("mainContainer"); var gameRules = document.getElementById("gameRules"); var points = document.getElementById("points"); var pointValue = document.getElementById("pointValue"); var result = document.getElementById("result"); var correct = document.getElementById("correc...
'use strict'; var ManhattanLayout = require('../../../lib/layout/ManhattanLayout'); function point(x, y) { return { x: x, y: y }; } function rect(x, y, width, height) { return { x: x, y: y, width: width, height: height }; } function expectConnection(connection, expected) { var len = Math.max(connection.len...
/** * 选择列表插件 * varstion 2.0.0 * by Houfeng * Houfeng@DCloud.io */ (function($, window, document, undefined) { var MAX_EXCEED = 30; var VISIBLE_RANGE = 90; var DEFAULT_ITEM_HEIGHT = 40; var BLUR_WIDTH = 10; var rad2deg = $.rad2deg = function(rad) { return rad / (Math.PI / 180); };...
module.exports = function(grunt) { // Default port var LIVERELOAD_PORT = 35729; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { dist: { src: [ 'content/scripts/lib/*.js', 'content/scripts/script.js' ], dest: 'content/scripts/app.js', ...
var parser = require('../../lib/parsers/json'); var expect = require('chai').expect; describe('JSON parser', function() { describe('#format', function() { it('should catch errors', function(done) { // Create a circular structure. var obj = {}; obj.obj = obj; parser.format(obj, function(e...
System.register([], function (_export) { "use strict"; var _prototypeProperties, Q, Deferred; return { setters: [], execute: function () { _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.de...
'use strict'; const common = require('../common'); common.skipIfInspectorDisabled(); const spawn = require('child_process').spawn; const script = ` const assert = require('assert'); const inspector = process.binding('inspector'); assert( !!inspector.isEnabled(), 'inspector.isEnabled() should be true when run wit...
(function($) { var addMethods = function(source) { var ancestor = this.superclass && this.superclass.prototype; var properties = $.keys(source); if (!$.keys({ toString: true }).length) properties.push("toString", "valueOf"); for (var i = 0, length = properties.length; i < length; i++) { v...
import resource from 'resource-router-middleware'; import mongoose from 'mongoose'; import '../models/topic'; import '../models/comment'; const Topic = mongoose.model("Topic") export default ({ config, db }) => resource({ /** Property name to store preloaded entity on `request`. */ id : 'topic', /** For requests...
export const HASCONSOLE = typeof console !== undefined; export const ISBROWSER = typeof window !== 'undefined' && typeof window === 'object'; export const UA = ISBROWSER && window.navigator.userAgent.toLowerCase(); export const isIE9 = UA && UA.indexOf('msie 9.0') > 0; export const isAndroid = UA && UA.indexOf('android...
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialCodepen extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M241.239,303.936c-15.322-10.357-30.742-20.569-46.062-30.93c-2.03-1.373-3.43-1.472-5.502-0.029l-38.871,26.154 ...
import React, { Component } from 'react'; export default class ResistanceInput extends Component { renderLevels() { const { levels } = this.props; if (levels.length === 0) { return <option>-|-</option> } return levels.map((level) => { return <option key={level.id} value={level.id}>{level.title}</optio...
'use strict'; /* starts (or waits for) an appium server. */ import standaloneAppium from './standalone-appium'; class AppiumServerPlugin { beforeScenario(world) { let config = world.config; if (config.spawnAppium) { let appiumServerOptions = {}; if (config.spawnAppium === 'auto') { //...
export function CHANGE_MALL_FILTER_SELECTED(state, info) { state.filterSelectedInfo = state.filterSelectedInfo.map(item => { if (item.id === info.id) { return Object.assign({}, item, {...info}); } return item; }); } export function SET_MALL_MDSE_LIST(state, list) { state...
/** * @module 内容盒子[ContentBox] * @description 提供一个文本标签的类。 * * @example * 以下是一个 {@link controls.ContentBox} 文本标签控件的使用示例。 * <code language="JavaScript"> * </code> * * @date: 2013-10-30 下午7:01 */ define([ "core/js/controls/Control" ], function (Control) { var ContentBox = Control.extend({ xtype...
import fetch from 'isomorphic-fetch' import marked from 'marked' import highlight from 'highlight.js' export const CLICK_TITLEBTN = 'CLICK_TITLEBTN' export const RECEIVE_ARTICLE = 'RECEIVE_ARTICLE' export const REQUEST_ARTICLE = 'REQUEST_ARTICLE' marked.setOptions({ highlight: code => highlight.highlightAuto(code)...
/** * Multilingual System * * Last Update: 28 Mar 2017 * First version: 05 Mar 2017 * Author: Bruno Torrinha <http://www.torrinha.com> * * MIT License * * Provides a mechanism for easily manage multi languages on a single page. * It was created for the BREAD system of Voyager, but can be implemented *...
(function() { var hash = null; var getRandomByte = function() { return _.random(0, 255); } var getRandomValue = function() { var r = getRandomByte(); for (var i = 0; i < 3; i++) { r = r << 8; r = r | getRandomByte(); } return r; } var getValue = function(type, player, pos) { ...
import {DOMTokenList, Symbol} from 'j0'; import generator from './j0polyfill/index.js'; const {prototype} = DOMTokenList; if (!prototype[Symbol.iterator]) { prototype[Symbol.iterator] = generator; }
(function() { App.UserScheduleGraph = (function() { function UserScheduleGraph(parentTagId, data, showUnassignedTasks) { this.parentTagId = parentTagId; this.data = data; this.showUnassignedTasks = showUnassignedTasks; } UserScheduleGraph.prototype.draw = function() { var func; ...
/** * StromDAO Business Object: MPSet * ========================================= * @author Thorsten Zoerner thorsten.zoerner@stromdao.de * */ this.mprset=function(obj_or_address) { if(typeof obj_or_address == "undefined") obj_or_address=parent.options.contracts["StromDAO-BO.sol_MPRset"]; var p1 = new...
var gulp = require( "gulp" ); var paths = require( "./config" ).paths; gulp.task( "watch", [ "watch-scripts" ] ); gulp.task( "watch-scripts", function() { gulp.watch( paths.build + "js/**/*.js", [ "webpack","reload" ] ); gulp.watch( paths.styles+'**/*.styl', ['styles-build',"reload"]); } );
const request = require('superagent'); const _ = require('lodash'); module.exports = { async getLatestOn(keywords) { const response = await request.get(`${process.env.THE_GUARDIAN_API_HOST}/search`) .query({ q: keywords, 'api-key': process.env.THE_GUARDIAN_API_KEY }); return _.get(response, 'body.respo...
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import SignupPage from '../../../../client/src/components/Auth/SignupPage'; import { shallowWithContext, mountWithContext } from '../utils'; describe('Signup Page', () => { it('renders with a Signup title', () => { const wrappe...
define([], function() { 'use strict'; return { routes: [ { route: '', title: 'Home', moduleId: 'modules/home/home', nav: true, home: true }, { route: 'nightly/:id', title: 'Nightly ', moduleId: 'modules/nightly/nightly', nav: false }, { ro...
var net = require('net'); var commands = require('./commands'); var server = net.createServer(function(socket) { socket.name = socket.remoteAddress + ":" + socket.remotePort; var log = function(){ var args = arguments; var name = args[0].name; args[0] = '[' + name + ']'; consol...
module.exports = { presets: [ ["@babel/preset-env", { "targets": { "node": "current" }, useBuiltIns: 'usage' }] ], env: { test: { presets: [ ['@babel/preset-env', { targets: { node: 'current' }, modules: 'commonjs', ...
import React from 'react'; import PropTypes from 'prop-types'; const sharedPropType = process.env.NODE_ENV !== "production" ? PropTypes.number : {}; export default class Foo extends React.Component {} process.env.NODE_ENV !== "production" ? Foo.propTypes = { bar: sharedPropType } : void 0;
// create a new transformer var myJsonTransformer = function() {}; // get the protoype of the xng default transformer var dtp = _.xng.defaultTransformer().prototype; // inherit your new transformer from the default transformer myJsonTransformer.prototype = Object.create(dtp); // implement the doTransformation funct...
var Import = (function () { function Import() { } Import.onStart = function () { var fileSelector = document.getElementById('fileSelector'); document.getElementById('button_import').addEventListener('click', Import.saveSelected, false); fileSelector.addEventListener('change', Import....
(function(){ //定义类 this.define = this._define = function (s) { return (typeof s != 'undefined' && typeof this[s] == 'undefined') ? this[s] = {} : (this[s] || {}); }; this.base_environment=(function(){ var href=location.host.toLowerCase(); if(href.indexOf('baibaichou') != -1){ ...
/** * Policy mappings (ACL) * * Policies are simply Express middleware functions which run **before** your controllers. * You can apply one or more policies to a given controller, or protect just one of its actions. * * Any policy file (e.g. `authenticated.js`) can be dropped into the `/policies` folder, * at wh...
import 'es6-promise'; import { runEventuallyWithPromiseAndDone, runEventuallyWithPromise, runEventuallyWithDone, runSync, getUnpatchedEnv } from './utils'; let { describe, fdescribe, it, fit, beforeEach, beforeAll, afterEach, afterAll, expect } = getUnpatchedEnv(); [ runEventuallyWithPro...
import { SimpleSchema } from 'meteor/aldeed:simple-schema'; import { evidenceOptions, } from './constants'; export default { subheading: { label: 'Subheading', type: String, optional: true, }, references: { label: 'References', type: [SimpleSchema.RegEx.Id], ...
// Copyright: 2017 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/scrollgrid/blob/master/MIT-LICENSE.txt" // Source: /src/internal/render/renderBackground.js Scrollgrid.prototype.internal.render.renderBackground = function (g, viewData) { "use strict"; g.append("rect") .attr("class", v...
version https://git-lfs.github.com/spec/v1 oid sha256:3ed91c5f9b7a1b7603de372b642a66b82a851e177cd670110b5302e1bcb14697 size 2273
version https://git-lfs.github.com/spec/v1 oid sha256:9b75a7ff367141f449c131a19031d4fbc5a3b0c3fb56e247a3fcaad268532724 size 2135
(function() { 'use strict'; // Cmts controller angular .module('cmts') .controller('CmtsController', CmtsController); CmtsController.$inject = ['$scope', '$state', '$window', 'Authentication', 'cmtResolve', 'PollsService']; function CmtsController($scope, $state, $window, Authentication, cmt, Polls...
'use strict'; /** * Gulp Task - lint */ var gulp = require('gulp'), config = require('../config.json'), jshint = require('gulp-jshint'), handleErrors = require('../utils/handle-errors'); gulp.task('lint', function() { return gulp.src([ config.src + 'app/views/**/*.js' ]) ...
'use strict'; import artists from './artists'; import albumReleases from './albumReleases'; import bioSections from './bioSections'; import contactLists from './contactLists'; import digitalDownloads from './digitalDownloads'; import embeddableMedias from './embeddableMedias'; import files from './files'; import media...
/* service worker utilities // require config.js */ // install static assets function installStaticFiles() { return caches.open(CACHE) .then(cache => { // cache desirable files cache.addAll(installFilesDesirable); // cache essential files return cache.addAll(installFilesEssential...
// Create a function that sums two arguments together. If only one argument is provided, then return a function that expects one argument and returns the sum. // For example, add(2, 3) should return 5, and add(2) should return a function. // Calling this returned function with a single argument will then return the s...
var express = require("express"); var bodyParser = require("body-parser"); var orc = require('./secret.js'); var orchestrate = require('orchestrate')(orc); var logger = require('morgan'); var app = express(); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended: false})); app....
// 严格模式,在这个模式下 JavaScript // 将会采用严格的语法检查机制,避免一些语法缺陷 'use strict'; import React, { // 相当于 using namespace AppRegistry, Component, Text, StyleSheet, View, Navigator, TouchableHighlight } from 'react-native'; // 从该模块中导入相关库 // 类是在 ES6 中被引入的 // 继承自 Component(React UI 的基础模块) class HomePage extends Component...
'use strict'; import iSlider from '../../../src/islider.js'; import '../../../src/plugins/button.js'; import '../../../src/plugins/dot.js'; import '../../../src/plugins/zoompic.js'; let list = [ {content: "../imgs/card/1.jpg"}, {content: "../imgs/card/2.jpg"}, {content: "../imgs/card/3.jpg"}, {content...
var Login = function() { var handleLogin = function() { $('.login-form').validate({ errorElement: 'span', //default input error message container errorClass: 'help-block', // default input error message class focusInvalid: false, // do not focus the last invalid ...