code stringlengths 2 1.05M |
|---|
'use strict';
var util = require('util');
var yeoman = require('yeoman-generator');
var path = require('path');
var cgUtils = require('../utils.js');
var chalk = require('chalk');
var _ = require('underscore');
var fs = require('fs');
_.str = require('underscore.string');
_.mixin(_.str.exports());
var ModuleGenerator... |
const quotes = {
leftDoubleQuote : "„",
rightDoubleQuote : "“",
leftSingleQuote : "‚",
rightSingleQuote : "‘",
};
const numbers = {
ordinalIndicator : "\\.",
romanOrdinalIndicator : "\\.",
}
const singleWordAbbreviations = [
"č",
"s",
"fol",
"str",
"r",
"par",
"odst",
"např",
"sv",
... |
import { Category } from '../storiesHierarchy';
export const storySettings = {
category: Category.INPUTS,
storyName: '3.16 Variable Input',
};
|
var host = process.argv[2] || 'http://localhost';
var port = process.argv[3] || 3000;
var clientIdentifier = process.argv[4] || 'default client';
var Client = function (host, port, clientIdentifier) {
console.log('');
console.log('User connecting (' + clientIdentifier + '): ' + host + ':' + port);
var so... |
import React, { Component } from 'react';
import { PageHeader } from 'react-bootstrap';
class Help extends Component {
render() {
return (
<div className="page">
<PageHeader>Help</PageHeader>
<div className="text">
<p>Expedita veniam non ducimus exercitationem. Fugit unde evenie... |
export const ic_battery_charging_30_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z","fill-opacity":".3"},"childre... |
import {
Group, Mesh, SphereGeometry, Vector3, Geometry, MeshBasicMaterial, MeshNormalMaterial
} from 'three'
import bind from '@dlmanning/bind'
import { getRandomHexColor } from '../../lib/helpers'
export default class Debris extends Group {
constructor (props = {}) {
super()
this.initialize = bind(this,... |
const escapeRegExp = require("lodash/escapeRegExp");
const R = require("ramda");
/*
* Company {
* id : String! 統一編號
* name : String! | String[] 名稱, 全部大寫
* type : String!
* capital : Int
* }
*/
function getCompanyName(db_company_name) {
if (Array.isArray(db_company_name))... |
'use strict';
//Global service for global variables
angular.module('mean.system').factory('Global', [
function() {
var _this = this;
_this._data = {
user: window.user,
resources: window.resources,
authenticated: false,
isAdmin: false
... |
/**
* Created by glovoadrian on 29/10/16.
*/
angular
.module('app', ['angularTypeform'])
.config(function (typeformConfigProvider) {
typeformConfigProvider.setAccount('glovoapp1');
});
angular.module('app')
.controller('TypeformCtrl', function($scope) {
}); |
var filer = new Filer();
var logger = new Logger('#log div');
var entries = []; // Cache of current working directory's entries.
var currentLi = 1; // Keeps track of current highlighted el for keyboard nav.
// If the OS doesn't reconize certain types, let's help it. These (extra) types
// will be read as plaintext.
v... |
var searchData=
[
['component_5f',['component_',['../classAlgoDecoratorBase.html#a08374750403748ffa07af39f8e14e74f',1,'AlgoDecoratorBase']]],
['curdirectionisbackward_5f',['curDirectionIsBackward_',['../classBiDirectionalPoint2PointBSP.html#a7a4f2689ac0555e4ff1a824372814eac',1,'BiDirectionalPoint2PointBSP']]]
];
|
module.exports = require('./lib/slideshow.js')
|
'use strict';
angular.module('controls').controller('PartidasController', ['$scope','$http',
function($scope, $http) {
$scope.fecha = Date.now();
$http.get('/controls/partidas').success(function(data){
$scope.partidas = data;
});
}
]); |
import { combineReducers } from "redux";
import { reducer as reduxForm } from "redux-form";
import oAuthReducer from "./oAuthReducer";
import surveysReducer from "./surveysReducer";
export default combineReducers({
oAuth: oAuthReducer,
form: reduxForm,
surveys: surveysReducer
});
|
export const QUEUE = 'QUEUE';
export function queue( task ){
return {
type: QUEUE,
payload: task
};
};
export default store => next => action => {
const result = next(queue(action));
return result;
}
|
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('dp-incrementer', 'Integration | Component | dp incrementer', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Hand... |
(function(window, factory) {
if (typeof define === 'function' && define.amd) {
define([], function() {
return factory();
});
} else if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = factory();
} else {
(window.LocaleData || (... |
import m from 'mithril';
import _ from 'underscore';
import I18n from 'i18n-js';
import rewardVM from '../vms/reward-vm';
import paymentVM from '../vms/payment-vm';
import projectVM from '../vms/project-vm';
import projectHeaderTitle from '../c/project-header-title';
import rewardSelectCard from '../c/reward-select-car... |
'use strict';
var each = require('lodash/each');
var EventEmitter = require('../util/EventEmitter');
var DefaultDOMElement = require('./DefaultDOMElement');
function Router() {
EventEmitter.apply(this, arguments);
this.__isStarted__ = false;
}
Router.Prototype = function() {
/*
Starts listening for hash-c... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import HourlyCard from '../lib/Components/HourlyCard/HourlyCard.js';
describe('Hour Card', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(
<HourlyCard
hourTime={'10 PM'}
hourTemp={'88'}
dayIcon={'sunny'}
... |
import GraphDecorator from '../../src/graph_decorator';
import Timelogs from '../../src/timelogs';
import TimelogEntry from '../../src/timelog_entry';
import { assert } from 'chai';
describe('GraphDecorator', () => {
describe('#constructor()', () => {
let timelogs;
let target_date = new Date(2016, 0... |
'use strict';
var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + '/../../../lib/data-types');
describe(Support.getTestDialectTeaser('Paranoid'), function() {
beforeEach(function( ) {
var S = this.sequelize,
DT = DataT... |
$(document).ready(function() {
// sets new review form as dialog
$('#new-review-form').dialog(dialogOptions)
// opens form for new venue review
$('.new-review-button').on('click', function(event){
event.preventDefault()
$('#new-review-form').dialog('open');
})
// submits new review form and update... |
const { expect } = require('chai');
const rowser = require('../../../lib/rowser');
const userAgents = require('../../../data/browsers/sleipnir');
describe('Sleipnir', () => {
beforeEach(() => {
rowser.summary = {};
});
after(() => {
rowser.summary = {};
});
userAgents.forEach((item) => {
descr... |
import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
/**
* Define the (authenticated) projects edit route
*
* @author Eric Fehr (ricofehr@nextdeploy.io, github: ricofehr)
* @class ProjectsEdit
* @namespace route
* @module nextdeploy
* @augmen... |
var app=app||{};var Workspace=Backbone.Router.extend({routes:{settings:"settings"},settings:function(a){$(".settings").show();}});app.Router=new Workspace();
Backbone.history.start(); |
// @flow
import { electronEnhancer } from 'redux-electron-store';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import { createHashHistory } from 'history';
import { routerMiddleware } from 'react-router-redux';
import rootReducer from '../reducers';
const history = cr... |
const fs = require('fs');
const lib = require('../lib/iso3166');
const mkdirSync = (a) => {
try {
fs.mkdirSync(a);
} catch (e) {
}
};
mkdirSync('./countryList');
mkdirSync('./regions');
mkdirSync('./i18n');
// get list of languages
const listOfDisputes = {
'': '',
'UN': 'en',
'TR': 'tr',
'UA': '... |
import { connect } from 'react-redux'
import {
requestPostCardsData,
toggleButtomPlayer,
setSearchCategoryValue,
setSearchLanguageValue,
requestSearchNews
} from 'redux/modules/intercom'
import Intercom from '../components/Intercom'
const mapDispatchToProps = {
requestPostCardsData,
toggleButtomPlayer,
... |
var RSVP = require('rsvp');
var redis = require('redis');
var chai = require('chai');
var datastored = require('../../..');
var redisDatastores = require('../../../lib/datastores/redis');
var testUtils = require('../../test_utils');
var expect = chai.expect;
describe('Redis associaitons >', function() {
before(fu... |
var Enum = require('enum'),
expect = require('chai').expect,
lwm2mid = require('../index.js'); // lwm2m-id module
var rspCodeKeys = [],
rspCodeVals = [],
cmdIdKeys = [],
cmdIdVals = [],
oidKeys = [],
oidVals = [],
uRidKeys = [],
uRidVals = [],
sOidKeys = [],
sOidVals = [... |
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: Enhances and consistently styles text inputs.
//>>label: Text Inputs & Textareas
//>>group: Forms
//>>css.structure: ../css/structure/jquery.mobile.forms.textinput.css
//>>css.theme: ../css/themes/default/jquery.mobile.theme.css
define( [ "... |
import 'zdm_ui/zdm_ui';
import M from 'assets/common';
var Rxports = {
M
};
module.exports = Rxports
|
import React, {Component} from 'react'
import {IndexLink, Link, browserHistory} from 'react-router'
import Drawer from 'material-ui/Drawer'
import MenuItem from 'material-ui/MenuItem'
import AppBar from 'material-ui/AppBar'
import FontIcon from 'material-ui/FontIcon'
class Header extends Component {
constructor(prop... |
define('gapper/client/login', ['jquery', 'bootbox'], function($, bootbox) {
var dialog;
var isWaitingLogin = false;
var clearDialog = function() {
if (!dialog || ! dialog.length) return;
dialog.prev('.modal-backdrop').remove();
dialog.remove();
};
var showLogin = function() {
if (isWaitingLogin) return fal... |
module.exports = () => (hook) => {
const sequelize = hook.app.get('sequelize');
hook.params.sequelize = {
attributes: [
'id',
'title',
'date',
'registrationStartDate',
'registrationEndDate',
'openQuotaSize',
'signupsPublic',
],
distinct: true,
raw: false,
... |
/**
* HD Breakpoint
* @link https://git.io/voIp7
*/
var helpers = require('./helpers');
module.exports = function (decl, args, postcss) {
var minResDppx = 1.25;
var minResDpi = minResDppx * 96; // 1dppx == 96dpi
if (args[1]) {
if (helpers.unit(args[1]) === 'dppx') {
minResDppx = hel... |
/* ************************************************************************
Copyright: 2008 - 2014 Hericus Software, LLC
License: MIT License
Authors: Steven M. Cherry
************************************************************************ */
/* ************************************************************... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var shopSchema = mongoose.Schema({
local : {
email : {type:String, required:true, unique:true},
password : {type:String, required:true},
usertype : String
},
details ... |
var tape = require('tape')
var path = require('path')
var protobuf = require('../require')
var Float = protobuf('./test.proto').Float
tape('float encode + decode', function(t) {
var arr = new Float32Array(3)
arr[0] = 1.1
arr[1] = 0
arr[2] = -2.3
var obj = {
float1: arr[0],
float2: arr[1],
floa... |
require("../app/util/jsexts.js").obj()
var should = require("should")
describe("Object Extensions",function() {
describe("in",function() {
it("should return true when the value is in the given array",function() {
"123".in(["123","456"]).should.be.true
})
it("should return false when the value is ... |
#!/usr/bin/env node
/*
Terminal Kit
Copyright (c) 2009 - 2021 Cédric Ronvel
The MIT License (MIT)
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 lim... |
'use strict';
/**
* controllers used for the dashboard
*/
angular.module('core').controller('SparklineCtrl', ["$scope", function ($scope) {
$scope.sales = [600, 923, 482, 1211, 490, 1125, 1487];
$scope.earnings = [400, 650, 886, 443, 502, 412, 353];
$scope.referrals = [4879, 6567, 5022, 5890, 9234, 7128... |
/* eslint-disable */
const fs = require('fs');
const path = require('path');
const config = require(path.resolve(__dirname, '../tuidoc.config.json'));
const examples = config.examples || {};
const { filePath, globalErrorLogVariable } = examples;
/**
* Get Examples Url
*/
function getTestUrls() {
if (!filePath) {
... |
describe('parent-describe', function() {
it('first', function() {});
});
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({goToPreviousMonth:"\u0137_Go to previous month_____________________\u016b",goToNextMonth:"\u0137_Go to next month_________________\u016b",goToPreviousYear:... |
'use strict';
function getLocation(href) {
var match = href.match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);
return match && {
protocol: match[1],
host: match[2],
hostname: match[3],
port: match[4],
pathname: match[5],
search: match[6],
hash: match[7]
};
}... |
"undefined"==typeof jwplayer&&(jwplayer=function(d){if(jwplayer.api)return jwplayer.api.selectPlayer(d)},jwplayer.version="6.3.3242",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(d){function a(b){return function(){re... |
import {CompositeDisposable} from 'atom';
import URIPattern from './atom/uri-pattern';
class ItemWatcher {
constructor(workspace, pattern, component, stateKey) {
this.workspace = workspace;
this.pattern = pattern instanceof URIPattern ? pattern : new URIPattern(pattern);
this.component = component;
... |
angular.module('myApp')
.controller('navCtrl', function($scope, Auth){
$scope.isLoggedIn = Auth.isLoggedIn();
$scope.username = Auth.isLoggedIn().name;
$scope.id = Auth.get();
$scope.logOut = function() {
Auth.logOut();
};
});
|
/**
* Created by lsc on 2014/11/24.
*/
define(['domReady!','jquery','template-debug'],function(dom,$,template){
var data = {
title: '国内要闻',
time: (new Date).toString(),
list: [
{
title: '<油价>调整周期缩至10个工作日 无4%幅度限制',
url: 'http://finance.qq.com/zt20... |
import { AppContainer } from 'react-hot-loader';
import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import injectTapEventPlugin from 'react-tap-event-plugin'
injectTapEventPlugin()
ReactDOM.render(
<div>
<App />
</div>,
document.getElementById('main')
)
if (modul... |
//--------------------------------------------------
// Components
//--------------------------------------------------
import React from 'react';
//--------------------------------------------------
// Constants
//--------------------------------------------------
//-----------------------------------------------... |
var passport= require('passport'),
mongoose = require('mongoose');
module.exports = function() {
var User = mongoose.model('User');
passport.serializeUser(function(user, done) {
done(null, user.id);
});
passport.deserializeUser(function(id, done) {
User.findOne({
_id: id
}, '-password -sa... |
$('#imgUper').change(function(){
var fm = new FormData();
fm.append("file",this.files[0]);
$.ajax({
url:'/apis/upload/',
type:'POST',
data:fm,
success:function(data){
goodInfo.imgurl = data.url;
console.log(data.url);
$('#prevImg').css('backgroundImage','url('+data.url+')');
},
conte... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
import React from "react";
import { connect } from "react-redux";
import LaddaButton, { S, EXPAND_RIGHT } from "react-ladda";
import { fetchTestCases } from "../actions/fetchTCActions";
import { fetchUniqueValues } from "../actions/fetchUniqueValues";
import elasticsearch from "elasticsearch";
@connect(store => {
r... |
define(['backbone', 'backbone.select'], function(Backbone){
'use strict';
var SelectableModel = Backbone.Model.extend({
initialize: function(){
Backbone.Select.Me.applyTo(this);
}
});
return SelectableModel;
}); |
import React from 'react';
import List from '../List';
import { getDOMNode } from '@test/testUtils';
describe('List', () => {
it('Should render a List', () => {
const domNode = getDOMNode(<List />);
assert.include(domNode.className, 'rs-list');
});
it('Should have a custom style', () => {
const font... |
/*
* Flocking Parser
* http://github.com/colinbdclark/flocking
*
* Copyright 2011-2014, Colin Clark
* Dual licensed under the MIT and GPL Version 2 licenses.
*/
/*global require, Float32Array*/
/*jshint white: false, newcap: true, regexp: true, browser: true,
forin: false, nomen: true, bitwise: false, maxerr: 100,... |
"use strict"
angular.module("taxiapp.booking").config(["$stateProvider",function(t){t.state("new booking",{url:"/booking",templateUrl:"public/booking/views/booking.html"})}])
|
'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-generator').test;
describe('generator-vulgar:config', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/config'))
.withOptions({someOption: true})
.withP... |
import {sum} from './sum'
test('happy', () => {
expect(sum([1, 2, 3, 4, 5])).toBe(15)
})
|
import React from 'react/addons';
import { RouteHandler } from 'react-router';
export default React.createClass({
render() {
return (
<div>
<h1>react-template</h1>
<RouteHandler />
</div>
);
}
});
|
/**
* This file is part of the Feather javascript library
*
* (c) Brandon Nason <brandon.nason@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Feather.Renderer = function()
{
this.zoom = 10;
this.zoomSensitivity = 10;... |
// ---------------------- Requires, Includes and Globals ------------------------
var project = 'qomex_2018';
var qtd_target = 100;
var activeTask = 0;
var kind = 'job';//Tasks 1, 2 and 3: 'job' ; Task 4: 'player'
var group = false;//Tasks 1, 3, 4: false; Task 2: true;
if(kind == 'job'){
var aggregation_method = req... |
angular.module('stew')
.controller('navbarController',
['$scope', '$http', '$location', '$window', 'token', function($scope, $http, $location, $window, token) {
$scope.user = token.getUser();
$scope.logout = function() {
console.log("logout");
token.logout();
$location.path('/stewdents');
... |
var express = require('express');
var path = require('path');
var favicon = require('static-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var connect=require('connect');
var MongoStore=require("connect-mongo-store")(connect);
var mongoSt... |
/**
* The MIT License (MIT)
* Copyright (c) 2016 Krypto Fin ry and the FIMK Developers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitatio... |
// karma config info: http://karma-runner.github.io/0.12/config/configuration-file.html
var webpack = require('webpack');
var webpackConfig = require('./config/webpack.config.js')(false);
module.exports = function(config) {
function isCoverage(argument) {
return argument === '--coverage';
}
/... |
module.exports = function(config){
config.set({
basePath : './',
files : [
'public/javascripts/lib/angularjs-1.5.0/angular.js',
'public/javascripts/lib/angularjs-1.5.0/angular-mocks.js',
'public/javascripts/lib/angularjs-1.5.0/angular-resource.js',
'public/javascripts/lib/angularjs-1... |
/*
* Copyright (c) 2014 DataTorrent, Inc. 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 required by... |
angular.module('myapp.services', [])
.factory('UsersService', function($http) {
var result = [];
return {
getusers: function() {
return $http.get('http://localhost:4730/readyapp/users/teama');
},
send: function(sentobj) {
... |
(function(e){if(typeof exports==="undefined"){this.sejs=e}else{module.exports=exports=e}})(function(e){e=e.replace("\r","");var n=e.split("\n");var s=[];var a=[];var r=[];var t=1;var i=false;var u=false;var l=-1;var f=e.length;var h=function(){if(s.length){s=s.join("");if(u){s=s.trim();a.push(i?"(n="+t+",l='"+n[t-1]+"'... |
/**
* Problem: https://leetcode.com/problems/image-smoother/description/
*/
/**
* @param {number[][]} M
* @return {number[][]}
*/
var imageSmoother = function(M) {
const result = [];
for (let i = 0; i < M.length; i++) result.push([]);
const { floor } = Math;
const calc = (i, j) => {
let count = 1;
... |
// --------------------------------------------------------
// Pretty Photo for Lightbox Image
// --------------------------------------------------------
$(document).ready(function() {
$("a[data-gal^='prettyPhoto']").prettyPhoto();
});
// --------------------------------------------------------
// Scroll Up
... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
import angular from 'angular';
export class TourDataService {
/** @ngInject */
constructor($http, $log) {
this.$http = $http;
this.$log = $log;
}
getYearData(year) {
return this.data.find(elt => {
return elt.year === year;
});
}
getPersonData(name) {
return this.persons.find(el... |
'use strict';
/**
* Module dependencies
*/
var mongoose = require('mongoose'),
path = require('path'),
config = require(path.resolve('./config/config')),
Schema = mongoose.Schema,
crypto = require('crypto'),
validator = require('validator'),
generatePassword = require('generate-password'),
owasp = requ... |
function checkType () {
console.log("Checking type. document.readyState: " + document.readyState + ". window.location.href: " + window.location.href);
if (document.readyState === "complete") {
// BC bypasses the readyState. Fix later!
var href = window.location.href.substring(48, (window.location.href.length - 5)... |
(function () {
'use strict';
function rdLoading() {
var directive = {
restrict: 'AE',
template: [
'<div class="loading">'
, '<div class="double-bounce1"></div>'
, '<div class="double-bounce2"></div>'
, '</div>'].joi... |
import Widget from 'static/js/widget.js';
import dialog from 'widget/classComponent/dialog/dialog.js';
import alertDialog from 'widget/classComponent/dialog/alert.js';
var style = __inline('./header.inline.less');
var tpl = __inline('./header.tpl');
require.loadCss({
name: 'usersys-widget-header-style',
conte... |
var DBS;
(function (DBS) {
(function (ns) {
function ready() {
window.removeEventListener('load', ready);
var lazyLoads = document.querySelectorAll('*[data-display="lazy"]');
for (var i = 0, n = lazyLoads.length; i < n; i++) {
var el = lazyLoads[i];
... |
const extractLines = doc => {
const lines = doc.split('\n')
return (start, end) => lines.slice(start - 1, end).join('\n')
}
export default extractLines
|
var dotNeTS;
(function (dotNeTS) {
function createList(startArray) {
return new dotNeTS.List(startArray);
}
dotNeTS.createList = createList;
})(dotNeTS || (dotNeTS = {}));
//# sourceMappingURL=Factory.js.map
|
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/**
* Initialization Code and shared classes of library sap.ui.dt.
*/
sap.ui.define([
'jquery.sap.global',
'sap/ui/core/librar... |
(function() {
function config($stateProvider, $locationProvider) {
$locationProvider
.html5Mode({
enabled: true,
requireBase: false
});
$stateProvider
.state('chat', {
url: '/',
controller:... |
import assert from "assert";
import max from "../../../src/scapi/operators/max";
import createNode from "../../../src/scapi/utils/createNode";
import isSCNode from "../../../src/scapi/utils/isSCNode";
describe("scapi/operators/max(a, b)", () => {
it("numeric", () => {
const a = 10;
const b = 20;
const no... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var BitmapText = require('./DynamicBitmapText');
var BuildGameObject = require('../../BuildGameObject');
var GameObjec... |
var dms = require('./../src/documentManager');
var seeds = require('./seeds');
var model = require('./../server/models/index.models');
// model instancies
var User = model.User,
Role = model.Role,
Document = model.Document;
describe("Document Management System", function() {
beforeEach(function(done) {
User... |
version https://git-lfs.github.com/spec/v1
oid sha256:1182211a30cd2d1d03d8c90aa63f20f8615cb9bb6078ff004c9fcebd16b91936
size 2377
|
/**
* Unit tests for the Orator Server
*
* @license MIT
*
* @author Steven Velozo <steven@velozo.com>
*/
var Chai = require("chai");
var Expect = Chai.expect;
var Assert = Chai.assert;
var libSuperTest = require('supertest');
var _MockSettings = (
{
Product: 'MockOratorRequestLogging',
APIServerPort: 8085... |
/*
* (c) shopware AG <info@shopware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Shopware UI - Migration database form
* DatabaseSelection fieldset
*/
// {namespace name=backend/swag_migration/main}
// {block name="... |
/* jshint
browser: true, jquery: true, node: true,
bitwise: true, camelcase: false, curly: true, eqeqeq: true, esversion: 6, evil: true, expr: true, forin: true, immed: true, indent: 4, latedef: true, newcap: true, noarg: true, noempty: true, nonew: true, quotmark: single, regexdash: true, strict: true, sub:... |
/*
caso 1: arrastrando desde el opfolders.com
- original: no se mueve. Queda ahi donde estaba.
- padre: crea una copia del target y la arrastra.
- hermano: on start drag tiene que decir si acepta o no el drop.
- drop: si el frame que recibe el drop lo acepta, hace algo con la info. Si no, no pasa nada.
caso 2: Idem ca... |
//
// aspx::hex 编码模块
//
// 把除了密码的其他参数都 hex 编码一次
//
'use strict';
module.exports = (pwd, data, ext = null) => {
let randomID;
if (ext.opts.otherConf['use-random-variable'] === 1) {
randomID = antSword.utils.RandomChoice(antSword['RANDOMWORDS']);
} else {
randomID = `${antSword['utils'].Rand... |
var g_arrRTLs={"0":"he",1:"ar",2:"fa"},g_arrXML={};function GetLink(a,b,c,e,f,d,i){var g="";""!=f&&(g="data:"==f.substr(0,5)?'<a href="#" title="'+c+'" id="'+e+'"><IMG ALT="'+c+'" class="'+d+'" style="background:url(\''+f+"') no-repeat top left;\"></a>":'<a href="#" title="'+c+'" id="'+e+'"><IMG SRC="image/'+f+'" ALT="... |
var Dataset = require('./Dataset');
var Statistics = require('./Statistics');
function sort(labels, values, cmp) {
'use strict';
var currentLabel;
var currentValue;
var j;
for (var i = 1; i < labels.length; i += 1) {
currentLabel = labels[i];
currentValue = values[i];
j = i - 1;
while (j >= 0... |
/**
* Copies images to .tmp/images after compressing them.
*
* ---------------------------------------------------------------
*
*
*/
module.exports = function(gulp, plugins, growl) {
gulp.task('images', function() {
return gulp.src('assets/images/**/*')
.pipe(plugins.imagemin({ optimizati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.