code stringlengths 2 1.05M |
|---|
/**
* @module helpers/lut
*/
export default class HelpersLut {
constructor(containerID,
lut = 'default',
lutO = 'linear',
color = [[0, 0, 0, 0], [1, 1, 1, 1]],
opacity = [[0, 0], [1, 1]],
discrete = false) {
// min/max (0-1 or real intensit... |
var express = require('express'),
fs = require('fs'),
app = express(),
lessMiddleware = require('less-middleware'),
_ = require('underscore')
assert = require('assert'),
path = require('path'),
regexp = require('node-regexp'),
morgan = require('morgan');
//Require config.js, check config.js for minimal configu... |
(function() {
var jisp, compile;
jisp = require("./jisp");
jisp.require = require;
compile = jisp.compile;
jisp.eval = (function(code, options) {
if ((typeof options === 'undefined')) options = {};
options.wrap = false;
return eval(compile(code, options));
});
jisp.run = (function(code, option... |
steal(function( steal ) {
var comments = /\/\*.*?\*\//g,
newLines = /\n*/g,
space = /[ ]+/g,
spaceChars = /\s?([;:{},+>])\s?/g,
lastSemi = /;}/g;
steal.cssMin = function( css ) {
//remove comments
return css.replace(comments, "").replace(newLines, "").replace(space, " ").replace(spaceChars, '$1').replac... |
/**
* Fix most common html formatting misbehaviors of browsers implementation when inserting
* content via copy & paste contentEditable
*
* @author Christopher Blum
*/
import dom from "../dom";
var cleanPastedHTML = (function() {
// TODO: We probably need more rules here
var defaultRules = {
// When pasti... |
import { mount } from '@vue/test-utils';
import Index from '../../views/DeviceIndex';
import { makeAvailableChannelsPageStore } from '../../../test/utils/makeStore';
import router from '../../../test/views/testRouter';
function makeWrapper() {
const wrapper = mount(Index, {
store: makeAvailableChannelsPageStore(... |
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
(function() {
var scope = window.PolymerLoader = {};
var flags = {};
// convert url arguments to flags
if (!flags.noOpts) {
location.search.s... |
/**
* @license
* Copyright 2017 Palantir Technologies, Inc.
*
* 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... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let InsertInvitation = props =>
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z" />
</S... |
//Here's an example of a customize LESS task -- this compiles the files using the private_connect.less / private_config.less setup, rather than the default.
module.exports = {
development: {
options: {
paths: "<%= _lessPaths %>",
cleancss: false,
dumpLineNumbers: "commen... |
/* eslint max-nested-callbacks: 0, no-console: 0 */
'use strict';
var assert = require('assert'),
fs = require('fs'),
Imbo = require('../../'),
path = require('path'),
request = require('request');
var fixtures = path.join(__dirname, '..', 'fixtures'),
imageId = /^[A-Za-z0-9_-]{1,255}$/,
catMd... |
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var HighlightRules = require("./pml_highlight_rules").HighlightRules;
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
var FoldMode = require("./folding/cstyle").FoldMo... |
import baseAssignValue from './baseAssignValue.js'
import eq from '../eq.js'
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The v... |
"use strict";
const $ = require("jquery");
const socket = require("../socket");
const render = require("../render");
const templates = require("../../views");
const sidebar = $("#sidebar");
const utils = require("../utils");
socket.on("network", function(data) {
render.renderNetworks(data, true);
sidebar.find(".ch... |
var chai = require('chai');
var expect = chai.expect;
var http = require('http');
var app = require('../../../server/app');
var Promise = require('bluebird');
var dbUtils = Promise.promisifyAll(require('../../../server/db/dbUtils'));
var config = process.env.DATABASE_TEST_URL || require('../../../server/config/config'... |
version https://git-lfs.github.com/spec/v1
oid sha256:73acc7dcebd016c365d096c5bcde9d198e6a7be2fd8842a79a13162a99c59c26
size 5453
|
'use strict';
module.exports = exports = function send(req, res) {
res.send = function(message, type) {
let detectedType;
if (typeof message === 'object') {
detectedType = 'application/json';
message = JSON.stringify(message);
} else if (message.startsWith('<!DOCTYPE html>')) {
detected... |
/**
* Created by chenqiu on 15/12/26.
*/
var math = require("./math");
var parser = math.parser();
module.exports = function(pCur, r, p) {
var M = p.length;
parser.set('pCur', pCur);
parser.set('r', r);
parser.set('S', p);
parser.set('M', M);
parser.eval('rCur = zeros(M)');
... |
import { makeOptions, rawSend } from './apiBase/APIRequestUtils';
// import captcha from './apis/captcha';
// import modListing from './apis/modListing';
// import multis from './apis/multis';
// import multiSubscriptions from './apis/multiSubscriptions';
// import reports from './apis/reports';
// import stylesheets ... |
'use strict';
/**
@module ember-cli
*/
var Promise = require('../ext/promise');
var path = require('path');
var findup = Promise.denodeify(require('findup'));
var resolve = Promise.denodeify(require('resolve'));
var fs = require('fs');
var find = require('lod... |
'use strict';
/**
* @ngdoc overview
* @name loopbackExampleFullStackApp
* @description
* # loopbackExampleFullStackApp
*
* Main module of the application.
*/
angular
.module('loopbackExampleFullStackApp', [
'ngRoute'
])
.config(function ($routeProvider, $locationProvider) {
Object.keys(window.CONF... |
// Generated by CoffeeScript 1.4.0
(function() {
var escape;
escape = function(str) {
return String(str).replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>');
};
window.plugins.code = (function() {
var load;
function code() {}
load... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
import Register from './Register';
export default Register;
|
import JasmineMatchers from '../../vendor/jasmine-expect/dist/jasmine-matchers';
import JasmineJQuery from '../../vendor/jasmine-jquery/lib/jasmine-jquery';
import $ from 'jquery';
import {module, inject} from '../mocks';
describe('playlistItem directive', function () {
let $compile;
let $rootScope;
let $h... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ImageHdrStrong = React.createClass({
displayName: 'ImageHdrStrong',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M17 6c-3.31 0-6 2.69-6 ... |
var searchData=
[
['carte',['Carte',['../class_carte.html#a06daaca86c31c80f8308f4a81d46dc9b',1,'Carte::Carte()'],['../class_carte.html#aa9dbe7013e77d06af96ed4e4e0c4d551',1,'Carte::Carte(int pdv, int pa, std::string nom, int coutmana, bool charge, bool provoc, bool sort, int f, std::string des)']]],
['chasseur',['Ch... |
(function () {
angular.module('common.router',['common.logger','ui.router']);
})();
|
(function (root) {
var Module = function (parentID, fullscreenCallback, vrToggleCallback ) {
this.fullscreenCallback = fullscreenCallback;
this.vrToggleCallback = vrToggleCallback;
this.view = document.getElementById(parentID);
this.vrToggle = document.getElementById('vrToggle');
this.fullscreenToggle = d... |
{
step1Title:"Step 1: Select a Data Source",
step2Title:"Step 2: Make Selections",
step3Title:"Step 3: Customize Selections",
step4Title:"Step 4: Report Settings",
goBtnTxt:"Go",
okBtnTxt:"Ok",
cancelBtnTxt:"Cancel",
searchBtnTxt:"Search",
backBtnTxt:"Back",
nextBtnTxt:"Next",
saveBtnTxt:"Save",
saveAsBtnTx... |
///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJS - http://autobahn.ws, http://wamp.ws
//
// A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Licensed under the MIT Licens... |
'use strict';
/**
* The config module is responsible for setting any constant variable that is needed in the application. There are
* 2 ways to set the configuration values for grasshopper.
*
* * Pass in the options to the function
* * Set an environment variable with GHCONFIG (soon to be deprecated) or GRASSHOPPE... |
//>>built
define({status:"${start}\u2013${end}/${total} tulemust",gotoFirst:"Liigu esimesele lehele",gotoNext:"Liigu j\u00e4rgmisele lehele",gotoPrev:"Liigu eelmisele lehele",gotoLast:"Liigu viimasele lehele",gotoPage:"Liigu lehele",jumpPage:"H\u00fcppa lehele"}); |
function RetailerBalanceController(
$scope,
$rootScope,
EthereumBalancesService
) {
EthereumBalancesService
.getFullRetailerBalances($rootScope.user)
.then(function (balances) {
$scope.balances = balances;
})
.catch(function (err) {
console.log(er... |
/* ==========================================================================
Prototype Tools -- Version: 1.9.0.2 - Updated: 1/20/2014
========================================================================== */
// For DEMO site only - DO NOT EVER INGEST THESE !!
window.onload = getPageLoadTime;
// Calculate ... |
module.exports={title:"Qgis",slug:"qgis",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Qgis icon</title><path d="M12.879 13.006v3.65l-3.004-3.048v-3.495h3.582l2.852 2.893h-3.43zm10.886 7.606V24h-3.654l-5.73-5.9v-3.55h3.354l6.03 6.062zm-10.828-1.448l3.372 3.371c-1.309.442-2.557.726-4... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M6.15 9.97c-.46-.46-.38-1.24.18-1.57.4-.22.88-.4 1.42-.4.8 0 1.39.39 1.81.67.31.21.51.33.69.33.13 0 .26-.05.39-.12.39-.22.88-.16 1.2.16.46.46.38 1.24-.18 1.... |
describe("Sparc", function () {
var capstone = require("..");
var CODE_SPARC = new Buffer([
0x80, 0xa0, 0x40, 0x02, 0x85, 0xc2, 0x60, 0x08,
0x85, 0xe8, 0x20, 0x01, 0x81, 0xe8, 0x00, 0x00,
0x90, 0x10, 0x20, 0x01, 0xd5, 0xf6, 0x10, 0x16,
0x21, 0x00, 0x00, 0x0a, 0x86, 0x00, 0x40, 0... |
version https://git-lfs.github.com/spec/v1
oid sha256:9099a238eba79d2c037abe040cd508b540bc99e4d5e2a7a1fa7b464990f53ed0
size 4883
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.BrowserESModuleLoader = factory());
}(this, (function () { 'use strict';
/*
* Environment
*/
var isBrowser = typeof windo... |
var Scanner = require("../Scanner");
var Parser = require("../topDown/Parser");
var json = require("./json");
var fs = require("fs"), path = require("path"), zlib = require("zlib");
var scanner = new Scanner(),
parser = new Parser(json);
fs.readFile(path.resolve(__dirname, "sample.json.gz"), function(err, data){... |
module.exports = function(app, express){
var router = express.Router(),
userRoutes = require('../routes/users')(router),
calorieRoutes = require('../routes/calories')(router);
router.use(function(req, res, next) {
next();
});
app.use('/api', router);
}; |
var printer = require("../lib"),
util = require('util'),
printerName = 'Foxit Reader PDF Printer',
printerFormat = 'TEXT';
printer.printDirect({
data:"print from Node.JS buffer", // or simple String: "some text"
printer:printerName, // printer name
type: printerFormat, // type: RAW, TEXT, PDF, JPEG, ... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
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] =... |
define(function() {
var Application = function() {
/*
this.data
this.node
*/
var node,
data,
init = function(_node, _data) {
this.node = _node;
this.data = _data;
var currExecute = $.proxy(this, "execute");
this.node.click(currExecute);
$("div.title", this.node).text(this.data.title).trunk8()... |
module("callbacks", { teardown: moduleTeardown });
(function() {
var output,
addToOutput = function( string ) {
return function() {
output += string;
};
},
outputA = addToOutput( "A" ),
outputB = addToOutput( "B" ),
outputC = addToOutput( "C" ),
tests = {
"": "XABC X XABCABCC X... |
this.primereact = this.primereact || {};
this.primereact.megamenu = (function (exports, React, utils, ripple) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
func... |
import { __decorate, __metadata } from 'tslib';
import { ɵɵdefineInjectable, ɵɵinject, Injectable } from '@angular/core';
import { Angulartics2 } from 'angulartics2';
let Angulartics2Piwik = class Angulartics2Piwik {
constructor(angulartics2) {
this.angulartics2 = angulartics2;
if (typeof (_paq) ==... |
;(function(exports) {
// Written for Ludum Dare #31 (December 2014)
var WALL_COLOR = "#000";
var WHEEL_COLOR = "#000";
var BACKGROUND_COLOR = "#fff";
var TEXT_COLOR = "#000";
var COUNTDOWN_COLORS = ["#0f0", "#fc0", "#f00"];
function Game() {
this.size = { x: 1000, y: 500 };
this.c = new Coquette... |
/*
* Globalize Culture vi-VN
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this f... |
import React from 'react';
import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js';
import Environment from '../environment/environment.js';
import './block.less';
export const Block = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin... |
(function () {
var text = 'A name that identifies an electronic post office box on a network where e-mail can be sent. Different types of networks have different formats for e-mail addresses. On the Internet, all e-mail addresses have the form: For example, webmaster@sandybay.com, "pesho_e_pich@gosho.com" or "pis... |
export default {
entry: '../../dist/packages-dist/core/mojiito/core.es5.js',
dest: '../../dist/packages-dist/core/bundles/core.umd.js',
format: 'umd',
exports: 'named',
moduleName: 'mj.core',
context: 'this'
};
|
Package.describe({
name: 'orionjs:dictionary',
summary: 'Meteor collection with some magic',
version: '1.1.0',
git: 'https://github.com/orionjs/orion'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'orionjs:base@1.1.0',
'aldeed:simple-schema@1.3.2',
'aldeed:collection2@2.... |
var through = require('through2');
var deploy = require("gulp-gh-pages");
var shell = require("gulp-shell");
var gulp = require('gulp');
var webpack = require('gulp-webpack');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
var uglify = require('gulp-uglify');
var _ = require("./src/util.js");
v... |
import {set} from 'cerebral/operators'
import {state, props} from 'cerebral/tags'
import {startTimer, stopTimer} from './actions'
export const mounted = [
startTimer,
set(state`clock.light`, true)
]
export const unMounted = stopTimer
export const secondTicked = set(state`clock.lastUpdate`, props`now`)
|
/**
* Created by Hendrik Strobelt (hendrik.strobelt.com) on 3/1/15.
*/
// DO NOT MODIFY
testSuite = function(){
this.t1a_Selector = "#t1a"
this.t1b_Selector = "#t1b"
}
testSuite.prototype.allLoaded =function(perDayData, metaData){
var passed = false;
if (perDayData != null && perDayData.length >... |
import commonUrl from 'shared/constants/commonLinks';
const questions = {
general: [
{
question: 'When was Operation Code founded?',
answer:
'The first line of code for the Operation Code site was pushed on August 21, 2014. Operation Code formally became a 501(c)3 nonprofit on May 4, 2016.'
... |
YUI.add("gallery-user-patch-2532141",function(a){a.Plugin.ResizeConstrained.ATTRS.constrain={setter:function(b){if(b&&(b instanceof a.Node||b.nodeType||(a.Lang.isString(b)&&b!=="view"))){b=a.one(b);}return b;}};},"gallery-2012.04.18-20-14",{requires:["resize"]}); |
exports.myParent = module.parent;
|
// CubeGeometry
THREE._CubeGeometry = THREE.CubeGeometry;
THREE.CubeGeometry = function ( width, height, depth, segmentsWidth, segmentsHeight, segmentsDepth, materials, flipped, sides ) {
var geometry = new THREE._CubeGeometry( width, height, depth, segmentsWidth, segmentsHeight, segmentsDepth, materials, flipped, s... |
$(function() {
function fix_header(){
header_width = Math.round($('header').width());
name_width = Math.round($('header h1').outerWidth());
bio_width = (header_width - name_width) - 20;
bio = $('header p');
bio.css('width', bio_width);
}
fix_header();
function ... |
(function(){var g,h,f,c;g=function(){var a;a={};Error.captureStackTrace(a,g);return a.stack};f=function(a){var b;b=a.length;return".js"===a.slice(b-3)?a.slice(0,b-3):".coffee"===a.slice(b-7)?a.slice(0,b-7):a};c=window.twoside=function(a){var b,d,e;b=a.lastIndexOf("/");0<=b?(e=a.slice(0,b),d=f(a.slice(b+1))):(e=a,d="");... |
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* 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... |
var User = require('../models/user')
var when = require('when')
var _ = require('lodash')
function AssetService(assetModel) {
this._model = assetModel
}
AssetService.prototype.list = function() {
return this.find()
}
AssetService.prototype.count = function(filter) {
var dfd = when.defer()
this._model.count(filt... |
'use strict';
const Controller = require('trails-controller');
const Boom = require('boom');
/**
* @module CategoryController
* @description TODO Category Controller.
*/
module.exports = class CategoryController extends Controller {
getAll (request, reply) {
this.app.services.CategoryService.getAll()
... |
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
'use strict';
/**
* Return a shallow copy of the given object
*
* @public
* @function shallowCopy
* @param {Object} obj - the object to copy
* @returns {Object} the new copy of the object
*/
function shallowCopy(obj) {
if (!obj) {
r... |
'use strict';
module.exports = function (grunt) {
// load all grunt tasks
require('load-grunt-tasks')(grunt);
var config = {
pkg: grunt.file.readJSON('package.json'),
env: process.env
};
grunt.util._.extend(config, loadConfig('./tasks/options/'));
grunt.initConfig(config);
grunt.loadTasks('tasks');
};
... |
/*
* # Semantic - Modal
* http://github.com/jlukic/semantic-ui/
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
$.fn.modal = function(parameters) {
var
$allModals = $(this),
$document ... |
(function (global, module) {
var exports = module.exports;
/**
* Exports.
*/
module.exports = expect;
expect.Assertion = Assertion;
/**
* Exports version.
*/
expect.version = '0.3.1';
/**
* Possible assertion flags.
*/
var flags = {
not: ['to', 'be', 'have', 'include', 'only... |
import React from 'react';
import { StyleSheet, View, Text, ScrollView } from 'react-native';
class CollapsingHeader extends React.Component {
static navigatorStyle = {
drawUnderTabBar: true,
navBarButtonColor: '#ffffff',
navBarTextColor: '#ffffff',
collapsingToolBarImage: require(... |
(function () {
var autoresize = (function () {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
var clone = function () {
return Cell(get());
};
return {
get: ge... |
module.exports = determinant
/**
* Calculates the determinant of a mat2
*
* @alias mat2.determinant
* @param {mat2} a the source matrix
* @returns {Number} determinant of a
*/
function determinant(a) {
return a[0] * a[3] - a[2] * a[1]
}
|
/*global describe, it*/
'use strict';
var assert = require('assert');
var helpers = require('./helpers');
var pako_utils = require('../lib/utils/common');
var pako = require('../index');
var samples = helpers.loadSamples();
function randomBuf(size) {
var buf = new pako_utils.Buf8(size);
... |
'use strict';
var
coveralls = require('gulp-coveralls'),
del = require('del'),
gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jshint = require('gulp-jshint'),
mocha = require('gulp-mocha'),
sequence = require('run-sequence');
gulp.task('clean', function (callback) {
return del(['coverage'], cal... |
angular.module('app', [
'ngRoute',
'config',
'base',
'signup',
'login',
'account',
'admin',
'services.i18nNotifications',
'services.httpRequestTracker',
'security',
'templates.app',
'templates.common',
'ui.bootstrap'
]);
// Node.js Express backend csurf module csrf/xsrf token cookie name
ang... |
step1list = new Array();
step1list["ΦΑΓΙΑ"] = "ΦΑ";
step1list["ΦΑΓΙΟΥ"] = "ΦΑ";
step1list["ΦΑΓΙΩΝ"] = "ΦΑ";
step1list["ΣΚΑΓΙΑ"] = "ΣΚΑ";
step1list["ΣΚΑΓΙΟΥ"] = "ΣΚΑ";
step1list["ΣΚΑΓΙΩΝ"] = "ΣΚΑ";
step1list["ΟΛΟΓΙΟΥ"] = "ΟΛΟ";
step1list["ΟΛΟΓΙΑ"] = "ΟΛΟ";
step1list["ΟΛΟΓΙΩΝ"] = "ΟΛΟ";
step1list["ΣΟΓΙΟΥ"] = "ΣΟ";
step1l... |
(function() {
var ThreeUVModifierPlugin = E2.plugins.three_uv_modifier = function(core, node) {
Plugin.apply(this, arguments)
this.desc = 'Adjust a texture\'s UV coordinates'
this.input_slots = [{
name: 'texture',
dt: core.datatypes.TEXTURE,
def: new THREE.Texture()
}, {
name: 'u offset',
dt: ... |
API_DEFINITION = {
'1.3.2': API_1_3_2('1.3.2', '1.3.1'),
'1.3.1': API_1_3_1('1.3.1'),
'1.3.0': API_1_3_0('1.3.0', '1.2.2'),
'1.2.2': API_1_2_2('1.2.2'),
'1.2.1': API_1_2_2('1.2.1', '1.2.2'),
'1.2.0': API_1_2_2('1.2.0', '1.2.2')
};
DEFAULT_API = '1.3.2'; |
import { expect } from 'chai';
import sinon from 'sinon';
global.expect = expect;
global.sinon = sinon;
|
/*global Stem, describe, it */
describe('Content Model', function () {
'use strict';
it('should provide the correct API for a full content profile', function() {
var ContentModel = new Stem.Models.Content({id: 'c:si:QkWTIFXev'});
ContentModel.url().should.equal(
Stem.config.oae.p... |
/**
* Created by tranvietthang on 12/4/16.
*/
var sessions = {};
var hash = window.location.hash;
var page = 1;
var numberOfPages = $("#number-of-pages").text();
$(document).ready(function () {
if (hash && hash.substring(0, 5) == '#page') {
page = parseInt(hash.substring(6));
}
$('#pagination'... |
tinymce.PluginManager.add("code",function(e){function t(){e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",500),value:e.getContent({source_view:!0}),spellcheck:!1},onSubmit:function(t){e.undoMan... |
var path = require("path");
var webpack = require("webpack");
var exec = require("child_process").exec;
var execSync = require("child_process").execSync;
var webpack = require("webpack");
var fs = require("fs");
var FarmBotRenderer = require("./farmBotRenderer");
// WEBPACK BASE CONFIG
exec("mkdir -p public/app");
ex... |
/**
* @license Angular v2.2.3
* (c) 2010-2016 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/operator/toPromise'), require('rxjs/Subject'), require('rxjs/Obse... |
/*
* @flow
* @lint-ignore-every LINEWRAP1
*/
import {suite, test} from 'flow-dev-tools/src/test/Tester';
export default suite(({addFile, addFiles, addCode}) => [
test('Requiring a .css file', [
addFile('foo.css')
.addCode("import './foo.css'")
.noNewErrors(),
]),
test('.css extension cannot... |
application.setInterface({
process : function(input, code, cb) {
var result = {
output: null,
error: null
};
try {
eval('method = '+code);
eval('data = '+ input);
result.output = method(data);
} catch(e) {
resul... |
/* global define */
define([
'can/util/library',
'can/component',
'../models/Todo',
'can/route'
], function (can, Component, Todo, route) {
'use strict';
var ESCAPE_KEY = 27;
return Component.extend({
// Create this component on a tag like `<todo-app>`
tag: 'todo-app',
scope: {
// Store the Todo mode... |
(function(punymce) {
punymce.plugins.TextColor = function(ed) {
var colors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99... |
// This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import fetchConfigURL from 'indico-url:rb.config';
import {indicoAxios} from 'indico/utils/axios';
... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
|
module.exports = function(app) {
app.factory('Resource', ['$http', 'handleError', function($http, handleError) {
var Resource = function(resourceArr, errArr, baseUrl, options) {
if (!this instanceof Resource) {
return new Resource.apply(null, arguments); // eslint-disable-line
}
this.da... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.modalClasses = void 0;
var _objectWit... |
var settingsCache = require('../../server/services/settings/cache'),
_ = require('lodash');
function getContextObject(data, context) {
/**
* If the data object does not contain the requested context, we return the fallback object.
*/
const blog = {
cover_image: settingsCache.get('cover_im... |
/*
YUI 3.7.2 (build 5639)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('history-html5', function (Y, NAME) {
/**
* Provides browser history management using the HTML5 history API.
*
* @module history
* @submodule history-html5
* @since 3... |
const path = require('path');
const deepMerge = require('deepmerge');
const { BannerPlugin } = require('webpack');
const baseConfig = require('./webpack.config.base');
const { name, version, author, homepage } = require('./package.json');
const arrayMerge = (target, source) => [...source, ...target];
const prodConfi... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: If x is -Infinity, Math.ceil(x) is -Infinity
es5id: 15.8.2.6_A5
description: Checking if Math.ceil(x) is -Infinity, where x is -Infinity
---*/
// CHECK#1
var x = -Infinity;
i... |
/******************************************************
* jQuery plug-in
* Easy Pinned Footer
* Developed by J.P. Given (http://johnpatrickgiven.com)
* Useage: anyone so long as credit is left alone
******************************************************/
(function($) {
// plugin definition
$.fn.pinFooter = functi... |
Clazz.declarePackage ("J.modelset");
Clazz.load (["JU.M3", "$.P3"], "J.modelset.Orientation", ["J.util.Escape"], function () {
c$ = Clazz.decorateAsClass (function () {
this.saveName = null;
this.rotationMatrix = null;
this.xTrans = 0;
this.yTrans = 0;
this.zoom = 0;
this.rotationRadius = 0;
this.center = null... |
version https://git-lfs.github.com/spec/v1
oid sha256:327bd8f9945a74a79458afe4625c642d692e2a5d4e114179b3a8ca2039c1dcf5
size 733
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.