code stringlengths 2 1.05M |
|---|
import RdfBaseStorage from './rdfbase.storage';
import {
qFidAs,
qSort,
qType,
qInFilter,
qNotInFilter,
qLimitOffset,
axiomWithPrefix,
} from '../util/owlUtils';
import { __ } from '../core/translations';
class MethodStorage extends RdfBaseStorage {
get entity() {
return 'Method';
}... |
'use strict';
var gulp = require( 'gulp' ),
del = require( 'del' ),
minifyCSS = require( 'gulp-minify-css' ),
rename = require( 'gulp-rename' ),
uglify = require( 'gulp-uglify' );
// CLEAN FILES FROM DIST DIRECTORY
// ===========================================================================================
gul... |
/**
* @docauthor GeoPal
*
* A simpleemployeescombo with support for autocomplete, remote loading, and many other features
* gives support for displaying multiple employees (Name and Identifier) with their statuses.
* # Example usage:
*
* @example
* var employees = Ext.create('GeoPal.ux.form.field.Simpl... |
export function toggleControls(chart) {
//Details about current population filters
var filtered = chart.raw_event_data.length != chart.population_event_data.length;
if (filtered) {
chart.wrap
.select('div.controls')
.select('div.custom-filters')
.classed('wc-hidde... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'about', 'en-au', {
copy: 'Copyright © $1. All rights reserved.',
dlgTitle: 'About CKEditor',
help: 'Check $1 for help.', // MISSING
... |
// 导航栏
var Nav = {
createNew: function () {
var self = {};
// 当前加载的页面
self.curPage = null;
// 加载项,加载页面
self.loadItem = function (name) {
var items = $("li[nav-item]");
// console.log(items);
for (i = 0; i < items.length; i++) {
... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/org.apache.cordova.device-motion/www/Acceleration.js",
"id": "org.apache.cordova.device-motion.Acceleration",
"clobbers": [
"Acceleration"
]
},
{
... |
/**
* For now we just have some string key -> value mappings in english. i18n
* support to come later.
*/
module.exports = {
// Strings
'git-graph-error': 'Git Graph Error:',
// ERROR Messages
'error-no-custom-url-specified': 'Woops! It looks like you didn\'t enter a Custom Commit Url Template String ... |
var geojsonMarkerOptions1 = L.icon({
iconUrl: 'images/6nations.png',
iconSize: [50, 50], // size of the icon
shadowSize: [50, 64], // size of the shadow
iconAnchor: [22, 94], // point of the icon which will correspond to marker's location
shadowAnchor: [4, 62], // the same for the shadow
... |
"use strict";
function _typeof2(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol &&... |
////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... |
const initialState = {
selectedCurrency: 'EUR',
currencyValue: 1
};
export function currency(state = initialState, action) {
switch (action.type) {
case 'SELECT_CURRENCY':
return Object.assign({}, state, { selectedCurrency: action.currency });
case 'UPDATE_CURRENCY_VALUE':
... |
/*global module:false*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean:{
build: {
src: ['dist/*.css', 'dist/*.js']
}
},
concat: {
options: {
separator: ';'
... |
import Express from 'express'
import bodyParser from 'body-parser'
import http from 'http'
import morgan from 'morgan'
import path from 'path'
import http from 'http'
import { socketListener } from './lib/socket' // eslint-disable-line
import { socketListener } './socket'
const app = Express()
const PORT = process.e... |
/**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#!/documentation/concepts/ORM
*/
module.exports.models = {
/******************************... |
search_result['1552']=["topic_00000000000003B3_vars--.html","tlece_PostVacancy Fields",""]; |
var keystone = require('keystone');
var async = require('async');
var Post = keystone.list('Post');
var PostCategory = keystone.list('PostCategory');
exports = module.exports = function (req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
// Init locals
locals.section = 'blog1';
locals.... |
import { Geometry } from '../../core/Geometry';
import { _Math } from '../../math/Math';
import { Vector3 } from '../../math/Vector3';
import { Matrix4 } from '../../math/Matrix4';
import { Face3 } from '../../core/Face3';
import { Vector2 } from '../../math/Vector2';
/**
* @author WestLangley / https://github.com/We... |
'use strict';
smgContainer.controller('MenuController',
function ($scope, $cookies, $rootScope, $translate) {
$scope.getToken = function () {
$cookies.FBAccessToken = $scope.accessToken;
console.log($cookies.FBAccessToken);
};
$rootScope.refreshUserDisplay = function () {
$scop... |
'use strict';
goog.provide('Blockly.Ruby.loops');
goog.require('Blockly.Ruby');
Blockly.Ruby['controls_repeat'] = function(block) {
// Repeat n times (internal number).
var repeats = parseInt(block.getFieldValue('TIMES'), 10);
var branch = Blockly.Ruby.statementToCode(block, 'DO') || 'end\n';
if (Blockly.Ru... |
import"nanoid";import"./Debug-67a310b2.js";import"redux";import"./turn-order-0d61594c.js";import"immer";import"lodash.isplainobject";import"./reducer-77828ca8.js";import"rfc6902";import"./initialize-68f0dc41.js";import"./transport-0079de87.js";export{C as Client}from"./client-4d8b4932.js";import"flatted";import"./ai-f2... |
'use strict';
/**
* @ngdoc service
* @name ListaHuApp.Complaints
* @description
* # Complaints service
* Factory in the ListaHuApp.
*/
angular.module('ListaHuApp').factory('ComplaintsService',
function ($resource, Config) {
var Complaints = $resource(Config.API_URL + '/denuncias/');
return {
... |
/**
* Created by Tong on 2017/5/10.
*/
/**
* Created by 1 on 2016/11/17.
*/
/**
* Created by 1 on 2016/10/21.
* 登陆界面
*/
import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TextInput,
TouchableOpacity,
ToastAndroid,
Dimensions,
Image,
}from 'react-native';
le... |
var Anime = ModelHelper.get('Anime');
var Book = ModelHelper.get('Book');
var AccessToken = ModelHelper.get('AccessToken');
var Game = ModelHelper.get('Game');
describe('clear All', function () {
it("clear Animes", function (done) {
Anime.collection.drop(function (err) {
// ignore error
... |
/*! Select2 4.1.0-beta.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapis... |
/*!
* vue-i18n v9.2.0-alpha.2
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { ref, getCurrentInstance, computed, watch, createVNode, Text, h, Fragment, inject, onMounted, onUnmounted, isRef } from 'vue';
/**
* Original Utilities
* written by kazuya kawaguchi
*/
const inBrowser ... |
/**
* @license Highstock JS v8.1.1 (2020-06-09)
* @module highcharts/indicators/williams-r
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Wojciech Chmiel
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../indicators/wi... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Input=void 0;var _identifiers=require("../identifiers.js"),_reactCssThemr=require("react-css-themr"),_Input=require("./Input.js"),_FontIcon=require("../font_icon/FontIcon.js"),_FontIcon2=_interopRequireDefault(_FontIcon),_theme=require("./theme... |
/** @license Material-UI v4.9.3
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
va... |
/*! Monio: index.js
v0.5.0 (c) 2020 Kyle Simpson
MIT License: http://getify.mit-license.org
*/
!function UMD(e,t,n,i){"function"==typeof define&&define.amd?(n=Object.keys(n).map((e=>e.replace(/^\.\//,""))),define(e,n,i)):"undefined"!=typeof module&&module.exports?(n=Object.keys(n).map((e=>require(e))),module.ex... |
/*!
* DevExtreme (dx.aspnet.mvc.js)
* Version: 20.2.9 (build 21315-0314)
* Build date: Thu Nov 11 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
! function(factory) {
if ("function" === typeof define && d... |
#!/usr/bin/env node
"use strict";
/* jshint strict: true */
/* jshint node: true */
/* jshint unused: true */
var fs = require('fs');
var performQuery = function(pv, queryParams) {
console.log('Performing a simple query...');
return pv.sendRequest('Query', queryParams);
};
var printResult = function(json) ... |
var profile={"lastUpdatedBy":"Dropbox","updatedAt":1325483930,"profileName":"default","salt":"LlfotX7aTZnfL+AjJJYARA==","passwordHint":"fred","masterKey":"b3BkYXRhMDEAAQAAAAAAAIgdZa9rhj9meNSE/1UbyEOpX68om5FOVwoZkzU3ibZqnGvUC0LFiJI+iGmGIznQbvPVwJHAupl6cEYZs//BIbSxJgcengoIEvci+Vote4DCK8kfwjfLPfq6G+4cnTy0yUMyM1qyA7sPB8p3T... |
/*!
* Shifty Core
* By Jeremy Kahn - jeremyckahn@gmail.com
*/
var Tweenable = (function () {
'use strict';
// Aliases that get defined later in this function
var formula;
// CONSTANTS
var DEFAULT_SCHEDULE_FUNCTION;
var DEFAULT_EASING = 'linear';
var DEFAULT_DURATION = 500;
var UPDATE_TIME = 1000 ... |
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $
*/
;(... |
/* global $ */
import _ from "lodash";
import "datatables.net-bs";
export default class Table {
constructor(table) {
this.table = table;
// Set options based on data attributes
this.sortColumn = (_.isNil(this.table.dataset.sortColumn) ||
_.isNaN(this.table.dataset.sortColumn)) ?
... |
/*
FIGlet.js (a FIGDriver for FIGlet fonts)
By Patrick Gillespie (patorjk@gmail.com)
Originally Written For: http://patorjk.com/software/taag/
License: MIT (with this header staying intact)
This JavaScript code aims to fully implement the FIGlet spec.
Full FIGlet spec: http://patorjk.com/so... |
var HelloView = mojo.views.Base.extend({
paper: require("text!hello.pc")
});
var helloView = new HelloView({
message: "Hello Mojo!"
});
document.body.appendChild(helloView.render()); |
import React from 'react'
import Icon from 'react-icon-base'
const TiBatteryFull = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 26.7c-0.9 0-1.7-0.8-1.7-1.7v-6.7c0-0.9 0.8-1.6 1.7-1.6s1.7 0.7 1.7 1.6v6.7c0 0.9-0.8 1.7-1.7 1.7z m-5 0c-0.9 0-1.7-0.8-1.7-1.7v-6.7c0-0.9 0.8-1.6 1.7-1.6s1.7 ... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm5 11.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" opacity=".... |
'use strict';
angular.module('paizaqaApp.admin', [
'paizaqaApp.auth',
'ui.router'
]);
|
// ```
// env.conf.js
// (c) 2016 David Newman
// blackshuriken@hotmail.com
// env.conf.js may be freely distributed under the MIT license
// ```
// *env.conf.js*
// This is the file where we will configure our Node environmental
// variables for production
// Reference : http://thewebivore.com/super-simple-environm... |
/*
Microformats Test Suite - Downloaded from github repo: microformats/tests version v0.1.26
Mocha integration test from: microformats-v2/h-entry/encoding
The test was built on Fri May 27 2016 13:35:35 GMT+0100 (BST)
*/
var chai = require('chai'),
assert = chai.assert,
helper = require('../test/helper.j... |
import React, { Component } from 'react'
import { Link as RouterLink } from 'react-router-dom'
import { connect } from 'react-redux'
import { changeTheme } from 'actions'
import { DARK_THEME } from 'constants'
import {
Header, Article, ArticleButton,
Svg, AboutContent, PageHead
} from 'components'
import { mousePar... |
import webpack from 'webpack';
import config from '../../config';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
const paths = config.get('utils_paths'),
globals = config.get('globals');
const webpackConfig = {
name : 'client',
target ... |
import riot from 'riot'
riot.tag('app-footer',
`<div class="container">
<div class="row">
<div class="col-sm-3">
<h5>API access <span class="label label-{ apiStatus }"> { apiMessage } </span></h5>
</div>
<div class="col-sm-3">
<h5>Agent ... |
var clz = require('nativeclasses');
exports.vec2i = clz.vec2i;
exports.vec3i = clz.vec3i;
exports.vec4i = clz.vec4i;
exports.vec2s = clz.vec2s;
exports.vec3s = clz.vec3s;
exports.vec4s = clz.vec4s;
exports.vec2us = clz.vec2us;
exports.vec3us = clz.vec3us;
exports.vec4us = clz.vec4us;
exports.vec2f = clz.vec2f;
expo... |
/* */
(function(process) {
'use strict';
var EventConstants = require("./EventConstants");
var EventPluginHub = require("./EventPluginHub");
var EventPropagators = require("./EventPropagators");
var ExecutionEnvironment = require("./ExecutionEnvironment");
var ReactUpdates = require("./ReactUpdates");
va... |
if(!recipe){var recipe=function(){};}recipe.dependencies={"recipe.version":[],"recipe.dependencies":[],"recipe.amd.dependencies":[],"resolving.dependencies":["/js/amd/a.amd.js","/js/amd/b.amd.js","/js/amd/c.amd.js"],"a":["/js/amd/a.amd.js"],"b":["/js/amd/a.amd.js","/js/amd/b.amd.js"],"c":["/js/amd/a.amd.js","/js/amd/b.... |
// ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... |
var container, store;
var camelize = Ember.String.camelize,
dasherize = Ember.String.dasherize;
var run = Ember.run;
var env;
module("unit/store/model_for - DS.Store#modelFor", {
setup: function() {
env = setupStore({
blogPost: DS.Model.extend(),
"blog-post": DS.Model.extend()
});
stor... |
module.exports = function isWindow(node) {
return node === node.window
? node
: node.nodeType === 9 ? node.defaultView || node.parentWindow : false;
};
|
// import { selectJobHuntDomain } from '../selectors';
// import { fromJS } from 'immutable';
import expect from 'expect';
// const selector = selectJobHuntDomain();
describe('selectJobHuntDomain', () => {
it('Expect to have unit tests specified', () => {
expect('Test case').toEqual(false);
});
});
|
import { transactionApi } from '../transactions';
import { addIndex, CollectionTransaction, convertAndAquire, logAggregationError, sortElements, updateIndex } from './commons';
var begin = transactionApi.begin, commit = transactionApi.commit, markAsDirty = transactionApi.markAsDirty;
export function addTransaction(coll... |
define([], function() {
/**
* NoteModel_MidiCSL represent a note that is ready to be readed by midi player
* @exports MidiCSL/NoteModel_MidiCSL
*/
function NoteModel_MidiCSL(option) {
this.currentTime = (typeof option !== "undefined" && typeof(option.currentTime) !== "undefined") ? option.currentTime : 0.0; /... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10L22 5.18zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 ... |
"use strict"
var serialize = require("../lib/serialize_utils.js")
serialize.populateShadowcatTerms(function(agentId){
//serialize.populateShadowcatAgentsNonViaf(agentId,function(){
//})
})
// var cluster = require('cluster');
// if (cluster.isMaster) {
// // cluster.fork()
// // cluster.fork()
// /... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
#!/usr/bin/node
'use strict';
// Configure PM2 Keymetrics ( must come before requiring any http modules )
let pmx = require('pmx').init({ http : true });
let fs = require('fs');
let path = require('path');
let http = require('http');
let https = require('https');
let helmet = require('helmet');
let exp... |
/* ==========================================================
* drilldown.js
* Drilldown plugin scripts. For page-list-nav element
*
* Author: Toni Fisler, toni@antistatique.net
* Date: 2014-05-30 09:02:09
*
* Copyright 2014 Federal Chancellery of Switzerland
* Licensed under MIT
============================... |
const pathFor = ( path, view ) => {
if ( path.hash ) {
view = path;
path = view.hash.route;
delete view.hash.route;
}
let query = view.hash.query ? FlowRouter._qs.parse( view.hash.query ) : {};
return FlowRouter.path( path, view.hash, query );
};
Template.registerHelper( 'pathFor', pathFor );
Tem... |
"use strict";
exports.__esModule = true;
var util_1 = require("../util");
var items_1 = require("../items");
var result_1 = require("../result");
var util_2 = require("./util");
function calculateBWXY(gen, attacker, defender, move, field) {
var _a;
util_2.checkAirLock(attacker, field);
util_2.checkAirLock(... |
'use strict';
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
export... |
import React, {PropTypes} from 'react';
var Utils = require('../../../utils');
var Field = React.createClass({
propTypes: {
name: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
isDirty: PropTypes.bool.isRequired,
validator: PropTypes.func,
validationMessage:... |
//--1
var child_process = require('child_process');
var spawn = child_process.spawn;
var wmic = spawn('wmic', ['DiskDrive', 'get', 'Size', '/value']);
wmic.stdout.on('data', function(data) {
console.log('使用spawn方法输出: ' + data);
});
wmic.stderr.on('data', function(data) {
console.log('stderr: ' + data);
})... |
var gulp = require('gulp');
var mainBowerFiles = require('main-bower-files');
var templateCache = require('gulp-angular-templatecache');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
var uglify = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');
var sass = require... |
/** @jsx React.DOM */
'use strict';
var ReactTestUtils = React.addons.TestUtils;
describe('SwitchBox', function() {
it('renders', function () {
ReactTestUtils.renderIntoDocument(
<SwitchBox value={true} />
);
});
});
var SwitchBox = WingspanForms.SwitchBox;
|
import React from 'react/addons';
import Checkbox from 'checkbox';
import injectTheme from './fixtures/inject-theme';
import TestUtils from 'react-addons-test-utils';
describe('Checkbox', () => {
/* eslint-disable max-len */
const CHECKMARK_PATH = 'M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-... |
version https://git-lfs.github.com/spec/v1
oid sha256:77b27561912cd1cf08af2949c6f9e212a758fb021f2bc7c05f3dbe93c7d1af67
size 7179
|
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.3-master-34e0278
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.tooltip
*/
angular
.module('material.components.tooltip', [ 'material.core' ])
.directive(... |
(function ($) {
var ver = $.mobile && $.mobile.version.match(/1\.4/);
$.mobiscroll.themes.jqm = {
jqmBorder: 'a',
jqmBody: ver ? 'a' : 'c',
jqmHeader: 'b',
jqmWheel: 'd',
jqmLine: 'b',
jqmClickPick: 'c',
jqmSet: 'b',
jqmCancel: 'c',
disab... |
describe('ui.grid.exporter', function() {
'use strict';
var uiGridExporterService, uiGridSelectionService, uiGridExporterConstants, uiGridSelectionConstants, uiGridPinningService,
gridClassFactory, grid, $compile, $scope, $document, $rootScope;
beforeEach(function() {
module('ui.grid');
module('ui.g... |
module.exports = function(config) {
config.set({
basePath: '',
// frameworks to use
frameworks: [ 'mocha', 'sinon-chai', 'chai' ],
files: [
'./bower_components/jquery/dist/jquery.js',
'./bower_components/angular/angular.js',
'./bower_components/angular-animate/angular-animate.js',
... |
'use strict'
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const webpack = require('webpack')
const autoprefixer = require('autoprefixer')
let isDev = process.env.NODE_ENV === 'development'
//设置css modules的模块名更可读,由... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
var fs = require('fs');
var _ = require('lodash');
var minimist = require('minimist');
var utils = require('./utils');
exports.init = function () {
utils.findConfig(function () {
if (utils.keyExists('overcast')) {
exports.execute();
} else {
utils.createKey('overcast', function () {
expor... |
import React, { PropTypes } from 'react';
import injectSheet from 'react-jss';
import Textfield from 'react-mdl/lib/Textfield';
import { formatAddress } from 'funong-common/lib/utils/displayUtils';
const Location = ({ detailsEditable, location, onChange }) => {
const { address } = location;
return (
<div>
... |
'use strict';
const assert = require('assert');
const app = require('../../src/app');
describe('\'teams\' service', () => {
it('registered the service', () => {
const service = app.service('teams');
assert.ok(service, 'Registered the service');
});
});
|
import { isImage } from '../modules/core/regex.js'
import { nodeOrNew, register, wrapWithAttrCheck } from '../utils/adopter.js'
import { off, on } from '../modules/core/event.js'
import { registerAttrHook } from '../modules/core/attr.js'
import { registerMethods } from '../utils/methods.js'
import { xlink } from '../mo... |
(function() {
'use strict';
angular
.module('styleguideApp', [
'currentUserInfoService',
'pascalprecht.translate',
'tmh.dynamicLocale',
'ngMaterial',
'ngSanitize',
'ui.tree',
'ui.grid',
'ui.grid.autoResize',
'ui.grid.exporter',
'ui.grid.selection',
'ui.bootstrap',
'ui.bootstrap.t... |
var eventTool = require('../core/event');
var zrUtil = require('../core/util');
var Eventful = require('../mixin/Eventful');
var env = require('../core/env');
var GestureMgr = require('../core/GestureMgr');
var addEventListener = eventTool.addEventListener;
var removeEventListener = event... |
angular.module('app')
.controller('exampleControllerJAU_2', function ($scope) {
$scope.model = {
text: 'TADAAAAAAA'
}
$scope.changeText = function () {
$scope.model.text = "Tramtadada ;-]";
}
}); |
'use strict';
var BASE_URL_RAW = 'https://crm.zoho.com/crm/private/json/%s/updateRecords';
var ROWS_PER_API = 100;
var MAX_SUCCESSIVE_ERROR = 3;
var _ = require('lodash');
var util = require('util');
var request = require('request');
var Bluebird = require('bluebird');
var helper = require('./helper');
Bluebird.pro... |
/* global Fluid, CONFIG */
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
Fluid.utils = {
listenScroll: function(callback) {
var dbc = new Debouncer(callback);
window.addEventListener('scroll', dbc, false);
dbc.handl... |
'use strict';
angular.module('WordRiverApp')
.controller('SettingsCtrl', function ($scope, User, Auth) {
$scope.errors = {};
$scope.backgroundImage = {
background: "url(assets/images/river.jpg) no-repeat center",
"background-attachment": "scroll"
};
$scope.changePassword = function(form)... |
var restify = require('express-restify-mongoose');
var Artist = require('../api/models/artist');
var Info = require('../api/models/info');
var News = require('../api/models/news');
var Event = require('../api/models/event');
var Location = require('../api/models/location');
var Festival = require('../api/models/festiva... |
/**
* QUnit v1.12.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license/
*/
(function(window) {
var QUnit,
assert,
config,
onErrorFnPrev,
test... |
$(function() {
$(".settings-panel").height($(document).height()-70);
$(".settings-panel #color-bluegreen").click(function(){
$("link#theme-styles").attr("href", "css/styles-bluegreen.css");
return false;
});
$(".settings-panel #color-bluered").click(function(){
$("link#theme-styles").at... |
export default class IO {
constructor(target) {
target.addEventListener('keypress', (e) => {
let nucleus = Libretto.nucleus();
if (e.charCode == '['.charCodeAt(0)) {
nucleus.skipPrev();
} else if (e.charCode == ']'.charCodeAt(0)) {
nucleus.skipNext();
}
});
target.... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import React, { Component, PropTypes } from 'react';
import NoteList from '../components/NoteList';
import * as RouterActions from '../actions/RouterActions';
import * as NoteActions from '../actions/NoteActions';
class NoteListContain... |
version https://git-lfs.github.com/spec/v1
oid sha256:887d00f3ff88c68d80f627a81470492b5767080ed31802e2c40d14fb391ec19d
size 103165
|
/**
* Created by zhangjh on 2015/7/14.
*/
(function () {
"use strict";
$(function () {
reloadDetailSelectData();
$("#projectForm").on("change", "select", cb);
})
//第一次初始化下拉列表
var reloadDetailSelectData = function () {
$.sendRestFulAjax(path + "/system/baseinfo/project_sele... |
let _ = require('underscore');
let Three = require('three');
let Pixi = require('pixi.js');
let util = require('../util');
let actions = require('../actions');
let kinectActions = require('../kinect/actions');
let vertexShader = require('./shaders/generic.vert.glsl');
const jumpInterval = 5 * 60; // in seconds
let in... |
$(function () {
$.mask.definitions['~'] = "[+-]";
$("#date").mask("99/99/9999", { placeholder: "mm/dd/yyyy", completed: function () { alert("completed!"); } });
$(".phone").mask("(999) 999-9999");
$("#phoneExt").mask("(999) 999-9999? x99999");
$('#cep').mask("99999-999");
$("#iphone").mask("+33 999 999 999"... |
/*!
* Module dependencies.
*/
var utils = require('./utils');
var EventEmitter = require('events').EventEmitter;
var driver = global.MONGOOSE_DRIVER_PATH || './drivers/node-mongodb-native';
var Schema = require('./schema');
var Collection = require(driver + '/collection');
var STATES = require('./connectionstate');
... |
var _ = require('lodash');
var crypto = require('crypto');
var core = require('../../core');
/**
* Basic information
*/
var info = {
name: 'UserActivation',
db: {
collection: 'users.activation',
write: true,
version: '1',
index: [{
keys: { code: 1, },
}],
},
fields: {
_id: {
... |
'use strict';
var electron = require('electron');
var Menu = electron.remote.Menu;
var MenuItem = electron.remote.MenuItem;
var Dialogs = require('dialogs');
var dialogs = new Dialogs();
// Used to store the coordinates where
// the context menu was clicked
var x,y;
function insertContent (content) {
va... |
'use strict';
const common = require('../common.js');
const PORT = common.PORT;
const path = require('path');
const fs = require('fs');
const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
var bench = common.createBenchmark(main, {
requests: [100, 1000, 10000, 100000, 1000000],
streams: ... |
'use strict';
var MockNotImplementedError = require('../../../Errors/MockNotImplementedError');
var MockComponentModel = function MockComponentModel () {
};
MockComponentModel.prototype.addElement = function () {
throw new MockNotImplementedError('`MockComponentModel.addElement` is not implemented.');
};
MockComp... |
/* eslint-disable import/no-unresolved, import/extensions */
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet, NativeModules, findNodeHandle } from 'react-native';
/* eslint-enable import/no-unresolved, import/extensions */
import { ViewPropTypes } from '../uti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.