code stringlengths 2 1.05M |
|---|
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'uploadwidget', 'cs', {
abort: 'Nahrávání zrušeno uživatelem.',
doneOne: 'Soubor úspěšně nahrán.',
doneMany: 'Úspěšně nahráno %1 s... |
/**
* Chirashi.js v6.3.0-rc
* (c) 2017 Alex Toudic
* Released under MIT License.
**/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Chirashi = global.Chir... |
var baseDifference = require('./_baseDifference'),
baseFlatten = require('./_baseFlatten'),
baseIteratee = require('./_baseIteratee'),
isArrayLikeObject = require('./isArrayLikeObject'),
last = require('./last'),
rest = require('./rest');
/**
* This method is like `_.difference` except that it acc... |
/**
* @fileoverview Helper to locate and load configuration files.
* @author Nicholas C. Zakas
*/
/* eslint no-use-before-define: 0 */
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------... |
/*jshint browser:true */
/*global jQuery */
(function($) {
"use strict";
var XmlRpcFault = function() {
Error.apply(this, arguments);
};
XmlRpcFault.prototype = new Error();
XmlRpcFault.prototype.type = 'XML-RPC fault';
var xmlrpc = $.xmlrpc = function(url, settings) {
if (arguments.length === 2) {
sett... |
/*
* CKFinder
* ========
* http://cksource.com/ckfinder
* Copyright (C) 2007-2015, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file, and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying, or ... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'nl', {
auto: 'Automatisch',
bgColorTitle: 'Achtergrondkleur',
colors: {
'000': 'Zwart',
'800000': 'Kastanjebruin',
'8B4513': ... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'quicktable', 'af', {
more: 'Meer...'
}); |
'use strict';
describe('jstd-adapter', function() {
var fakeJSTD = { pluginRegistrar: { register: function() {} } },
originalNavigateTo = angular.scenario.Application.prototype.navigateTo;
/**
* Reverts hack on angular.scenario.Application.navigateTo
* We should revert this hack after any single call ... |
"use strict";
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)... |
YUI.add('unicode-wordbreak', function(Y) {
/**
* Provides utility methods for splitting strings on word breaks and determining
* whether a character represents a word boundary, using the algorithm defined
* in the Unicode Text Segmentation guidelines
* (<a href="http://unicode.org/reports/tr29/#Word_Boundaries">Un... |
define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(in... |
module.exports = function (grunt) {
grunt.registerTask('prod', [
'compileAssets',
'concat',
'uglify',
'cssmin',
'sails-linker:prodJs',
'sails-linker:prodStyles',
'sails-linker:devTpl'
]);
};
|
require('coffee-script/register');
require('./server.coffee');
|
/*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy ... |
/*Copyright (c) 2014, TT Labs, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following di... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("placeholder","ca",{title:"Propietats del marcador de posició",toolbar:"Marcador de posició",name:"Nom del marcador de posició",i... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("_"));
else if(typeof define === 'function' && define.amd)
define(["React", "_"], factory);
else if(typeof exports === 'object')
exports["... |
/**
* Slovenian (Slovenščina) language functions
*/
( function ( $ ) {
'use strict';
$.i18n.languages.sl = $.extend( {}, $.i18n.languages[ 'default' ], {
convertGrammar: function ( word, form ) {
switch ( form ) {
// locative
case 'mestnik':
word = 'o ' + word;
break;
// instrumental
... |
(function($) {
$.extend($.summernote.lang, {
'nb-NO': {
font: {
bold: 'Fet',
italic: 'Kursiv',
underline: 'Understrek',
clear: 'Fjern formatering',
height: 'Linjehøyde',
name: 'Skrifttype',
strikethrough: 'Gjennomstrek',
subscript: 'Subscript',... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = zoomCursor;
var _getPrefixedValue = require('../utils/getPrefixedValue');
var _getPrefixedValue2 = _interopRequireDefault(_getPrefixedValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {... |
for (obj.prop of arr) {
}
|
(function(w,t,J){function D(a,b){function e(){}e.prototype=a;var c=new e,E;for(E in b)c[E]=b[E];b.toString!==Object.prototype.toString&&(c.toString=b.toString);return c}function d(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=K++);var e;null==a.hx__closures__?a.hx__closures__={}:e=a.hx__closures__[b.__id__];nul... |
var assert = require('assert');
var common = require('../../common');
common.getTestConnection(function (err, connection) {
assert.ifError(err);
assert.notStrictEqual(connection.threadId, null);
assert.notStrictEqual(connection.threadId, 0);
connection.end(function (err) {
assert.ifError(err);
assert.... |
/**
* @license Highcharts JS v6.0.3 (2017-11-14)
* Accessibility module
*
* (c) 2010-2017 Highsoft AS
* Author: Oystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
... |
/**
* Sinon.JS 1.15.4, 2015/06/27
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
*
* Redistribution... |
// Generated by CoffeeScript 1.7.1
(function() {
var $, checkForCountryChange_, formatBack_, formatForPhone_, formatUp_, format_, formats, formattedPhoneNumber_, formattedPhone_, isEventAllowedChar_, isEventAllowed_, mobilePhoneNumber, prefixesAreSubsets_, restrictEventAndFormat_, supportSelectionEnd,
__slice = [... |
app.controller('PathsDecorationsSimpleController', [ '$scope', function($scope) {
angular.extend($scope, {
london: {
lat: 51.505,
lng: -0.09,
zoom: 8
},
decorations: {
mark... |
var fs = require('fs');
var read = fs.readFileSync;
var path = require('path');
var resolve = path.resolve;
var expect = require('expect.js');
var normal = read(resolve(__dirname, '../../build/auth0-lock.js'));
var minified = read(resolve(__dirname, '../../build/auth0-lock.min.js'));
var altSpace = String.fromCharCod... |
/*
* jQuery Highlight Regex Plugin v0.1.0
*
* Based on highlight v3 by Johann Burkard
* http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
*
* (c) 2009-10 Jacob Rothstein
* MIT license
*/(function(a){var b=function(c){if(!!c&&!!c.childNodes){var d=a.make... |
;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
var vows = require("vows"),
_ = require("../../"),
load = require("../load"),
assert = require("../assert");
var suite = vows.describe("d3.geom.hull");
suite.addBatch({
"hull": {
topic: load("geom/hull").expression("d3.geom.hull"),
"the default hull layout": {
topic: function(hull) {
... |
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
... |
(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... |
(function(){if (!Date.now) Date.now = function() {
return +new Date;
};
try {
document.createElement("div").style.setProperty("opacity", 0, "");
} catch (error) {
var d3_style_prototype = CSSStyleDeclaration.prototype,
d3_style_setProperty = d3_style_prototype.setProperty;
d3_style_prototype.setProperty =... |
/*
LumX v0.3.55
(c) 2014-2015 LumApps http://ui.lumapps.com
License: MIT
*/
/* global angular */
angular.module('lumx.utils', [
'lumx.utils.transclude',
'lumx.utils.transclude-replace'
]);
angular.module('lumx', [
'lumx.utils',
'lumx.ripple',
'lumx.notification',
'lumx.dropdown',
'lumx.... |
(function($) {
/**
* Belgium (Dutch) language package
* Translated by @dokterpasta
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Geef een geldige base 64 encoded tekst in'
},
between: {
'defau... |
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M416 153h-25v-25h-14v25h-25v14h25v25h14v-25h25zM363.3 363.9c-12.9-4.6-31.4-6.2-43.2-8.8-6.8-1.5-16.7-5.3-20-9.2-3.3-4-1.3-40.9-1.3-40.9s6.1-9.6 9.4-18c3.3-8.4 6.9-31.4 6.9-31.4s6.8 0 9.2-11.9c2.6-13 6.6-18.4 6.1... |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use st... |
'use strict';
angular.module('users').controller('ChangePasswordController', ['$scope', '$http', '$location', 'Users', 'Authentication',
function($scope, $http, $location, Users, Authentication) {
$scope.user = Authentication.user;
// Change user password
$scope.changeUserPassword = function() {
$scope.succ... |
new new foo()
|
var eos = require('end-of-stream')
var shift = require('stream-shift')
module.exports = each
function each (stream, fn, cb) {
var want = true
var error = null
var ended = false
var running = false
var calling = false
stream.on('readable', onreadable)
onreadable()
if (cb) eos(stream, {readable: true,... |
//= require ./lib/_energize
//= require ./app/_lang
//= require ./app/_toc
|
// Raw
// -------
module.exports = function(client) {
var Raw = require('../../raw');
var inherits = require('inherits');
// Inherit from the `Raw` constructor's prototype,
// so we can add the correct `then` method.
function Raw_SQLite3() {
this.client = client;
Raw.apply(this, arguments);
}
inherits(Raw_SQLite3... |
(function ($) {
$.extend($.summernote.lang, {
'he-IL': {
font: {
bold: 'מודגש',
italic: 'נטוי',
underline: 'קו תחתון',
clear: 'נקה עיצוב',
height: 'גובה',
name: 'גופן',
strikethrough: 'קו חוצה',
subscript: 'כתב תחתי',
superscript: 'כתב... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/ar', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.EL... |
// Underscore.js
// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the terms of the MIT license.
// Portions of Underscore are inspired by or borrowed from Prototype.js,
// Oliver Steele's Functional, And John Resig's Micro-Templating.
// For all details and documentation:
// ... |
/*!
* Bootstrap-select v1.7.0 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Nic nie zaznaczono',
non... |
/* global define */
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var HtmlMode = require("./html").Mode;
var HandlebarsHighlightRules = require("./handlebars_highlight_rules").HandlebarsHighlightRules;
var HtmlBehaviour = require("./behaviour/html").HtmlBehaviour;
var Ht... |
e => {
print("hello world");
};
(e1, e2, e3) => {
print("hello world");
};
e => e;
(e1, e2, e3) => e;
e => {};
e => 20 + 20;
|
YUI.add('loader-base', function (Y, NAME) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLER... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ModuleDependency = require("./ModuleDependency");
class PrefetchDependency extends ModuleDependency {
constructor(request) {
super(request);
}
get type() {
return "prefetch";
}
}
module.exp... |
require('./angular-locale_teo-ke');
module.exports = 'ngLocale';
|
YUI.add('widget-stack', function(Y) {
/**
* Provides stackable (z-index) support for Widgets through an extension.
*
* @module widget-stack
*/
var L = Y.Lang,
UA = Y.UA,
Node = Y.Node,
Widget = Y.Widget,
ZINDEX = "zIndex",
SHIM = "shim",
VISIBLE = "visible",
... |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0r2
*/
/**
* The dom module provides helper methods for manipulating Dom elements.
* @module dom
*
*/
(function() {
YAHOO.env._id_counter = YAHOO.env._id_counter ... |
YUI.add('event-mouseenter', function(Y) {
/**
* Adds support for mouseenter/mouseleave events
* @module event
* @submodule event-mouseenter
*/
var Event = Y.Event,
Lang = Y.Lang,
plugins = Y.Env.evt.plugins,
listeners = {},
eventConfig = {
on: function(type, fn, el) {
var args = Y.Array(argume... |
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
(function(t){"use strict";var e={2:function(t){return t?"dva":"dvě"},3:function(){return"tři"},4:function(){return"čtyři"}};t.extend(t.fn.select2.defaults,{formatNoMatches:function(){return"Nenalezeny žádné položky"},formatInputTooShort:function(t,r){var n=r-t.length;return 1==n?"Prosím zadejte ještě jeden znak":4>=n?"... |
!function(t){"use strict";t.fn.select2.locales["zh-CN"]={formatNoMatches:function(){return"没有找到匹配项"},formatInputTooShort:function(t,n){var o=n-t.length;return"请再输入"+o+"个字符"},formatInputTooLong:function(t,n){var o=t.length-n;return"请删掉"+o+"个字符"},formatSelectionTooBig:function(t){return"你只能选择最多"+t+"项"},formatLoadMore:fun... |
(function(d){function l(a){var e={__KEYS:[]};f(a,function(b){b=b.replace("://","__").split("/");var c=e;f(b,function(b){c[b]||(c[b]={__KEYS:[]},c.__KEYS.push(b));c=c[b]})});var g=[];f(e.__KEYS,function(b){var c=b;b=e[b];for(var a=b.__KEYS;1===a.length;)c+="/"+a[0],b=b[a[0]],a=b.__KEYS;a.length&&g.push([c.replace("__","... |
describe('iD.uiFieldLocalized', function() {
var context, selection, field;
before(function() {
iD.fileFetcher.cache().languages = {
de: { nativeName: 'Deutsch' },
en: { nativeName: 'English' }
};
iD.fileFetcher.cache().territory_languages = {};
});
after(fu... |
// @author jonatkins
// @name Highlight inactive portals
// @category Highlighter
// @version 0.1.0
// @description Use the portal fill color to denote if the portal is unclaimed with no recent activity. Shades of red from one week to one month, then tinted to purple for longer. May al... |
var handlers = {
stats: function (args, channel, persona_name, message, chatObject) {
var self = this;
var userId = chatObject.account_id;
if (!this.userCollection.ready) return;
this.userCollection.get(userId, function(user) {
self.userCollection.getRank(userId, function... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import store from '@/store'
import ParametersForm from '@/components/parameters/ParametersForm'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Dashboard',
component: () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard.v... |
import { existsSync, readFileSync } from 'fs';
import path from 'path';
import { deprecate } from 'util';
import Koa from 'koa';
import compress from 'koa-compress';
import serve from 'koa-static';
import _config, { Config } from 'alp-config';
export { Config } from 'alp-config';
import errors from 'alp-errors-node';
i... |
"use strict";
let $http = require("http-client-promise");
let options = {
hostname: "api.openweathermap.org",
port: 80,
method: "GET",
path: "/data/2.5/weather?q=london,uk&units=imperial&appid=2de143494c0b295cca9337e1e96b00e0"
};
$http.request(options).then(function (res) {
return res.getData().then(functio... |
import mod539 from './mod539';
var value=mod539+1;
export default value;
|
'use strict';
var through = require('through'),
File = require('vinyl'),
vfs = require('vinyl-fs'),
slugg = require('slugg'),
Remarkable = require('remarkable'),
fs = require('fs'),
path = require('path'),
Handlebars = require('handlebars'),
extend = require('extend'),
combine = require('stream-combi... |
const xtend = require('xtend');
module.exports = function(lng = 0, lat = 0, eventProperties = {}) {
const e = {
originalEvent: xtend({
stopPropagation: function() {},
preventDefault: function() {},
button: 0,
clientX: lng,
clientY: lat
}, eventProperties),
point: {x: lng, y:... |
"use strict";
var QuestionRoute = require('./api/routes/QuestionRoute');
var SubjectRoute = require('./api/routes/SubjectRoute');
var TestRoute = require('./api/routes/TestRoute');
(function() {
var _route = function(app) {
app.use('/api/question', QuestionRoute());
app.use('/api/subject', SubjectRoute());
... |
"use strict";
const e = new Error("I should not be taken");
e.code = "MODULE_EXISTS";
throw e;
|
/* global __coverage__ */
var fs = require('fs')
var glob = require('glob')
var micromatch = require('micromatch')
var mkdirp = require('mkdirp')
var Module = require('module')
var appendTransform = require('append-transform')
var cachingTransform = require('caching-transform')
var path = require('path')
var rimraf = r... |
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./sass/style.sass')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./public/css'));
});
gulp.task('sass:watch', function () {
gulp.watch('./sass/*.sass', ['sass']);
}); |
(function (window, document) {
var layout = document.getElementById('layout')
var menu = document.getElementById('menu')
var menuLink = document.getElementById('menuLink')
function toggleClass (element, newClass) {
var classes = Array.from((element.className).split(/\s+/))
var length = classes.length
... |
import React, { Component } from 'react'
import toastr from 'toastr'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import classnames from 'classnames'
import { addSongToPlaylist, setSongIndex } from '../../actions/searchActions'
import apiConfig from '../../config/apiConfig'
class Me... |
var co = require('co')
var path = require('path')
var assert = require('assert')
var Walker = require('..')
function fixture(name) {
return path.join(__dirname, 'fixtures', name, 'index.js')
}
function defaults(walker, options) {
options = options || {}
walker.use(Walker.plugins.text(options))
walker.use(Wa... |
import React, { PureComponent } from 'react'
import { graphql } from 'gatsby'
import { Divider, Header, Label, Table } from 'semantic-ui-react'
import { Footer, Markdown } from '../components'
import Layout from './index'
class Reference extends PureComponent {
renderMethod(method) {
const fragment = [
<D... |
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
devtool: 'eval-source-map',
devServer: {
publicPath: '/assets/',
host: 'localhost',
port: 3000,
hot: true,
he... |
/* */
var test = require('tape');
var functionBind = require('../implementation');
var getCurrentContext = function() {
return this;
};
test('functionBind is a function', function(t) {
t.equal(typeof functionBind, 'function');
t.end();
});
test('non-functions', function(t) {
var nonFunctions = [true, false, []... |
function exchange(a, b){
if(b < a){
var temp;
temp = a;
a = b;
b = temp;
return 'Values were exchanged: ' + a + ' ' + b;
}
else
return 'Values were not exchanged: ' + a + ' ' + b;
}
console.log(exchange(5, 2));
console.log(exchange(3, 4));
console.log(exchange(5.... |
/* helper functions */
function validateEmail(email){
var emailReg = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.... |
var util = require('./util');
function CLIError(message) {
CLIError.super_.call(this);
this.message = message || '';
}
module.exports = util.inherits(CLIError, Error, {
name: 'CLIError'
});
|
import Selectivity from "../selectivity";
const DIACRITICS = {
"\u24B6": "A",
A: "A",
À: "A",
Á: "A",
Â: "A",
Ầ: "A",
Ấ: "A",
Ẫ: "A",
Ẩ: "A",
Ã: "A",
Ā: "A",
Ă: "A",
Ằ: "A",
Ắ: "A",
Ẵ: "A",
Ẳ: "A",
Ȧ: "A",
Ǡ: "A",
Ä: "A",
Ǟ: "A",
Ả: "A... |
//triggered when modal is about to be shown
$(document).ready(function() {
$('#editUrlsModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var theid = button.data('url-id');
$.getJSON( "/api/urls/" + theid, function( data ) {
$.each(data, functio... |
// function statement
function greet(name) {
console.log('Hello ', name);
}
greet('Will');
// function expression
var greetFunc = function(name) {
console.log('Hello ', name);
};
greetFunc('Will');
// immediately invoked function express (IIFE)
// See the parenthesis at the end? That invokes it immediately afte... |
// @flow
import merge from '../utils/merge.js';
import isFunction from '../utils/isFunction.js';
import Promise from '../utils/promise.js';
/**
* Simple wrapper for native
* XMLHttpRequest
*
* BEWARE: Does not do any url checking,
* this should be implemented by the user
*/
export default class Fetch {
url: ... |
'use strict';
var EventEmitter = require('events')
.EventEmitter,
colors = require('colors'),
debug = require('debug')('server'),
util = require('util');
var config = require('./config/config'),
db = require('./config/db'),
expressConf = require('./config/express');
util.inherits(Server, EventEmitter);
... |
var BOWER_DIR = 'bower_components';
require.config({
paths: {
text: BOWER_DIR + '/requirejs-text/text',
jquery: BOWER_DIR + '/jquery/jquery',
backbone: BOWER_DIR + '/backbone/backbone',
underscore: BOWER_DIR + '/underscore/underscore',
lodash: BOWER_DIR + '/lodash/lodash',
marionette: BOWER_D... |
/**
The MIT License (MIT)
Shaheed Ahmed Dewan Sagar
Email : sdewan64@gmail.com
Ahsanullah University of Science and Technology,Dhaka,Bangladesh.
Copyright (c) 2014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation ... |
import * as types from '../constants/ActionTypes';
export function setCode(code = '') {
return {
type: types.SET_CODE,
code: code
};
}
|
import {
GET_OFFENDER_ASSESSMENTS,
SELECT_OFFENDER,
STORE_PRISONER_SEARCH_RESULTS,
} from '../constants/actions';
const defaultState = {
selected: {},
assessments: [],
searchResults: [],
};
export default (state = defaultState, { type, payload }) => {
switch (type) {
case GET_OFFENDER_ASSESSMENTS:
... |
import $ from 'jquery';
import _ from 'underscore';
require('geonames-server-jquery-plugin/jquery.geonames.js');
const geonameDatasource = (services) => {
const {configService, localeService, recordEditorEvents} = services;
const tabContainerName = 'geonameTabContainer';
let autoActivateTabOnce = true;
... |
(function(f){function k(a){a=r.call(a);return"[object Object]"===a||"[object Array]"===a}function t(a,b){if(b&&-1===u.indexOf(b))throw Error("Unsupported type. Not saved. Condemned.");this.type=b||typeof a;this.value=a}function g(a){for(var b in a)l(b,a[b],void 0);return e}function l(a,b,m){c.setItem(a,v(new t(b,m)));r... |
import getStringDay from 'src/lib/transformPaths/transformers/getStringDay';
/**
* Generates string uppercase day from meta data.
* @param {object} fileMetaData Remediator meta data object.
* @returns {string} Returns string version of day in all uppercase.
*/
export default function getStringDayUpp... |
var searchData=
[
['polyblep',['polyBlep',['../class_wave_gen.html#ac27146def7ca149aca0ec7373a6d773d',1,'WaveGen']]]
];
|
//-------------------------------------------------------------------------------------
//Name:tipsWindow 2.2
//Author:By Await
//Date:2010-12-18
//WebSite:http://leotheme.cn
//---------------------------------------------------------------------------------------
;(function(){
$.tipsWindow=function(options){
d... |
let isUndefined = a => typeof a === 'undefined'
export default function (elem, {perspective, start, step, end, units = 'px', beginSet = true} = {}) {
perspective = isUndefined(perspective) ? 1000 : perspective
start = isUndefined(start) ? 0 : start
step = isUndefined(step) ? 1 : step
end = isUndefined(end) ? ... |
// Gruntfile.js
// our wrapper function (required by grunt and its plugins)
// all configuration goes inside this function
exec = require('exec');
//var exec = require('child_process').exec
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// ==================================================... |
// @flow
"use strict";
import { Dispatcher } from "flux";
import type { NavigationActionType } from "./NavigationStore.js";
import type { OffsetActionType } from "./PageOffsetStore.js";
import type { LinkListActionType } from "./LinkListStore.js";
import type { FormFieldsActionType } from "./FormFieldsStore.js";
impo... |
/* eslint-disable no-console */
import React, { PureComponent } from 'react';
import {
FamilyStructure,
SingleComponentSideBySide,
NotDefined,
NotDeveloped,
singleComponentSizes,
} from '../sharedComponents';
import { inputsSymbolsToComponents } from '../../../symbolsComponentsMapping/families/inputsFamily';... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.