code stringlengths 2 1.05M |
|---|
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar", "es", {euro: "Símbolo de euro", lsquo: "Comilla simple izquierda", rsquo: "Comilla simple derecha", ldquo: "Comilla doble izquierda",... |
var helloWorldController = function(app){
app.get('/hello/world', function(request, response){
var responseObject = { "hello": "world"}
response.send(responseObject);
});
};
module.exports = helloWorldController; |
(function(){
angular.module('form', ['participants'])
.component('formComp', {
templateUrl: 'components/form/template.html',
bindings: {
addParticipant: '<'
},
controller: function(Participants){
this.participant = {};
this.submit = function(participant){
... |
define(['../../moduleDef', 'angular'], function(module, angular) {
'use strict';
module.provider('$dateParser', function() {
var proto = Date.prototype;
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
var defaults = this.defaults = {
format: 'shortDate',
strict: false
};... |
/**
* @copyright 2013 Sonia Keys
* @copyright 2016 commenthol
* @license MIT
* @module solarxyz
*/
/**
* Solarxyz: Chapter 26, Rectangular Coordinates of the Sun.
*/
import base from './base.js'
import nutation from './nutation.js'
import solar from './solar.js'
/**
* Position returns rectangular coordinates r... |
/**
* New node file
*/
var log4js = require('log4js');
var UserSession = require('./UserSession');
/* Room corresponds to each conference room*/
function UsersRegistry() {
"use strict";
/* If this constructor is called without the "new" operator, "this" points
* to the global object. Log a warning and call it... |
describe('TimeFilter', function () {
beforeEach(module('ngMovies'));
var TimeFilter;
beforeEach(inject(function ($filter) {
TimeFilter = $filter('TimeFilter');
}));
it('should be a filter', function () {
expect(TimeFilter).not.toBe(undefined);
});
it('should convert minutes to hours', functio... |
// import should from 'should';
import { createStore } from 'redux';
import reredeux, { deux, LABELS } from '../src';
const { INIT, SELECT, ACTION, REDUCER, VALUE } = LABELS;
import todo from './todo';
import counter from './counter';
import phonebook from './phonebook';
const app = reredeux('example', [
counter,
... |
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg : grunt.file.readJSON('storelocator.jquery.json'),
banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + p... |
import { expect } from 'chai';
import productReducer from './productReducer';
import * as actions from '../actions/productActions';
import * as types from '../constants/actionTypes';
import initialState from './initialState';
describe('Product Reducer', () => {
it ('should set isFetching to true on all request acti... |
/*
* /MathJax-v2/localization/en/en.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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... |
;(function(){
'use strict'
const express = require('express');
const router = express.Router();
router.post('/', function(req, res){
console.error('route: /create, ip: %s, time: %s', req.ip, new Date().toTimeString().substr(0,9));
console.error(Object.keys(req));
console.error(req.body);
res... |
#!/usr/bin/env node
/* Passphrases | https://github.com/micahflee/passphrases
Copyright (C) 2015 Micah Lee <[email protected]>
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 withou... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var async = require("async");
var path = require("path");
var Tapable = require("tapable");
var ContextModule = require("./ContextModule");
var ContextElementDependency = require("./dependencies/ContextElementDependency... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _from = require('babel-runtime/core-js/array/from');
var _from2 = _interopRequireDefault(_from);
exports.default = sortChunks;
var _toposort = require('toposort');
var _toposort2 = _interopRequireDefault(_toposort);
function _inte... |
"use strict"
const should = require('should')
const rewire = require('rewire')
const IC = rewire('../commands/new.js')
describe('New command',() => {
let mockFS = {
outputFile : (filename,content) => {
console.log(`mock writing to ${filename}`);
return {
then : () => { return { catch : () ... |
'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; };
var _e... |
module.exports = {
entry: {
main: ['babel-polyfill', './lib/index.js'],
test: ['babel-polyfill', 'mocha!./test/index.js'],
},
output: {
path: __dirname,
filename: '[name].bundle.js',
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/... |
/***********************
* WholeCellViz visualizations should extend the Visualization class using this template:
*
* var NewVisualization = Visualization2D.extend({
* getData: function(md){
* this.data = this.getSeriesData('getSeriesData.php', {sim_id:md.sim_id, class_name: md.class_name, attr_name: 'attr_name'});
... |
var webpackConfig = require("./webpack.config.js");
webpackConfig.devtool = "inline-source-map";
delete webpackConfig.externals;
delete webpackConfig.entry;
delete webpackConfig.output;
module.exports = function (config) {
config.set({
basePath: ".",
frameworks: ["es6-shim", "chai", "mocha", "sinon"],
fi... |
import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import Star from 'wix-ui-icons-common/Star';
import * as examples fr... |
"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)... |
jQuery.each(("blur focus focusin focusout click dblclick " +
"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave").split(" "),
function(i, name) {
jQuery.fn[name] = function() {
var el = this[0];
var ev = document.createEvent('MouseEvent');
ev.initMouseEvent(
name,
... |
import React from 'react';
import PropTypes from 'prop-types';
import Header from './Header';
// This is a class-based component because the current
// version of hot reloading won't hot reload a stateless
// component at the top-level.
class App extends React.Component {
render() {
return (
<div className... |
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";var l={"PRY_ASUNCION":[null,"Assun\u00E7\u00E3o"],"BRA_BRASILIA":[null,"Bras\u00EDlia"],"URY_MONTEVIDEO":[null,"Montevid\u00E9u"],"COL_BOGOTA":[null,"Bogot\u00E1"],"TTO_PORT_OF_SPAIN":[null,"Porto de Espanha"],"BRA_SAO... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
extend = require('mongoose-schema-extend'),
Schema = mongoose.Schema,
moment = require('moment'),
crypto = require('crypto');
/**
* A Validation function for local strategy properties
*/
var validateLocalStrategyPrope... |
'use strict';
var assert = require('assert');
var run = require('./helpers').runMocha;
var args = [];
describe('suite w/no callback', function() {
it('should throw a helpful error message when a callback for suite is not supplied', function(done) {
run(
'suite/suite-no-callback.fixture.js',
args,
... |
/*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013, 2014, 2015 School of Business and Engineering Vaud, Comem
* Licensed under the MIT License
*/
/**
* @fileoverview
* @author Francois-Xavier Aeberhard <[email protected]>
* @author Cyril Junod <cyril.junod at gmail.com>
*/
YUI.add('wegas-helper', func... |
/*****************************
ACT I: THE SETUP
1. Hat guy
2. Lovers
// then let's start escalating...
******************************/
function Stage_Start(self){
// Create Peeps
self.world.clearPeeps();
self.world.addBalancedPeeps(20);
}
function Stage_Hat(self){
// A Hat Guy
var hat = new HatPeep... |
'use strict';
describe("Divhide.Obj", function () {
beforeEach(function () {
jasmine.addMatchers(window.JasmineCustomMatchers);
});
it("Divhide.Specs.ObjExample", function () {
Divhide.Specs.ObjExample();
});
/**
*
* Tests for Obj.stringify()
*
*/
describ... |
'use strict';
angular.module('app').service('dialogService', [
'$q',
function($q) {
var remote = require('remote');
var dialog = remote.require('dialog');
function DialogService() {}
DialogService.prototype.showOpenDialog = function() {
var deferred = $q.defer();
dialog.showOpenDialo... |
angular.module('authService', [])
.factory('AuthService',
['$q', '$timeout', '$http', '$rootScope',
function ($q, $timeout, $http, $rootScope) {
// create user variable
var user = null;
// return available functions for use in the controllers
... |
(function() {
'use strict';
/**
* idHeader
*
* This component renders the application header.
*/
angular
.module('app.components')
.component('idHeader', header());
/**
* Internal function that returns the component.
* @returns {object} the angular compone... |
var files =
[
[ "API", "dir_19ea4dbfe8f0e4681f60b9b97f7b5d11.html", "dir_19ea4dbfe8f0e4681f60b9b97f7b5d11" ]
]; |
/*global angular */
/**
* The main controller for the app. The controller:
* - retrieves and persists the model via the todoStorage service
* - exposes the model to the template and provides event handlers
*/
angular.module('todomvc')
.controller('TodoCtrl', function TodoCtrl($scope, $routeParams, $filter, store)... |
version https://git-lfs.github.com/spec/v1
oid sha256:bdecbb5008fcaa6e28cdb99aada4e0c3dc8dfa6bd53bb4d6e63005c7538ee886
size 30020
|
// Load required packages
var express = require('express');
var triggerPageController = require('../controllers/triggerPage');
// Create our Express router
var router = express.Router();
// Create endpoint handlers for trigger pages
router.route('/q/:code')
.get(triggerPageController.getTriggerPagesQr);
router.... |
GridRenderer.prototype.extend(
{
}); |
/**
* Created by admin on 16/10/11.
*/
var a=12,b=12,c=12;console.log(a,b,c,'hello') |
export default { port: 1989 }
|
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['1080',"tlece_ProductPurchased Class","topic_00000000000003F3.html"],['1081',"Properties","topic_00000000000003F3_props--.html"],['1094',"P... |
var mongoose = require('mongoose');
var Post = require('../models/Post').Post;
var config = require('../config');
var http = require('http');
var site = "";
var token = "";
var options = {
host: 'data.zz.baidu.com',
path: '/urls?site=' + site + '&token=' + token,
method: 'POST',
headers: {
'Accept': '*/*'... |
const { shallow, mount } = require('enzyme');
const React = require('react');
function Fixture() {
return (
<div id="root">
<span id="child">Test</span>
</div>
);
}
describe('toHaveHTML', () => {
it('works with `shallow` renders', () => {
const wrapper = shallow(<Fixture />);
expect(wrappe... |
function test(chart) {
// Set hoverPoint
chart.series[0].points[2].onMouseOver();
} |
describe("Related Assets", function(){
let project = require('../fixture')
let subject = project.documents.at('assets/data-source-spec')
it("relates assets across different content collections", function(){
subject.related.data_sources.length.should.equal(2)
})
it("provides a related data summary", func... |
var path = require('path');
var webpack = require('webpack');
var WebpackCleanupPlugin = require("webpack-cleanup-plugin");
module.exports = {
entry: './react/index.jsx',
output: { path: __dirname + '/www', filename: 'bundle.js' },
module: {
loaders: [
{
test: /\.scss$/,
loaders: ["styl... |
'use strict';
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
var chalk = require('chalk');
var _ = require('lodash');
module.exports = yeoman.generators.Base.extend({
/**
* Constructor
* @return {undefined}
*/
constructor: function () {
yeoman.generators.Base.ap... |
'use strict'
require('./controllers/listCtrl.js');
require('./controllers/loginCtrl.js');
require('./services/pageService.js');
angular.module('app.router',
['ui.router', 'app.list', 'app.login'])
.config(configFn);
configFn.$inject = ['$locationProvider', '$stateProvider', '$urlRouterProvider'];
function ... |
/**
* Created by josip on 20.1.2017..
*/
angular.module('mainModule').config(function($routeProvider, $locationProvider){
$routeProvider
.when('/', {
templateUrl: '/home/home.view.html',
controller: 'homeCtrl',
controllerAs: 'vm'
})
.when('/register', {... |
import './mc-project-settings.component';
import './project-settings.service'; |
define(function(require) {
'use strict';
const _ = require('underscore');
const $ = require('jquery');
const __ = require('orotranslation/js/translator');
const BaseView = require('oroui/js/app/views/base/view');
const Confirmation = require('oroui/js/delete-confirmation');
const Attribute... |
import 'whatwg-fetch';
export default function post(url, data) {
return fetch(url, {
method: "POST",
body: JSON.stringify(data),
headers: {
"Content-Type": "application/json"
},
credentials: "same-origin"
}).then(function (response) {
response.status ... |
// Write your tests here!
// Here is an example.
Tinytest.add('Pixedelic Slideshow started', function (test) {
test.isNotNull($('#target').camera, 'camera should exist');
test.equal(true, true);
});
|
/**
* Created by rg12 on 02/05/2016.
*/
/**
* @desc Add to uib-timepicker to fix timezone issues
* @example <uib-timepicker cp-widget-datetimepicker-patch></uib-timepicker>
*/
(function () {
'use strict';
angular
.module('app.widgets')
.directive('cpWidgetDatetimepickerPatch', cpWidgetDatetimepicker... |
/**
* @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... |
(function() {
'use strict';
function MediaGridDirective($filter, mediaHelper) {
function link(scope, el, attr, ctrl) {
var itemDefaultHeight = 200;
var itemDefaultWidth = 200;
var itemMaxWidth = 200;
var itemMaxHeight = 200;
var itemMinWidth... |
'use strict';
// Declare app level module which depends on views, and components
var ntApp = angular.module('ntApp', [
//'ngRoute',
'ui.router',
'ntApp.myDesigns',
'ntApp.designDetail',
'ntApp.myInfo',
'ntApp.couponList',
'ntApp.createDesign',
'ntApp.activities',
'ntApp.management',... |
describe("Fragments", function () {
it('replace node with fragment', function () {
var node = render(
d('div', null,
'Hello',
d('div', null, 'World')
), document.body);
compare(node.dom, div(text('Hello'), div(text('World'))));
node =... |
function supports_html5_storage() {
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
return false;
}
}
function randomString(length) {
var text = "";
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for(var i=0;... |
(function () {
"use strict";
var fs = require("fs"),
path = require("path"),
os = require("os"),
util = require("util"),
Stream = require("stream");
var VALUE = 0,
ERROR = 1,
STREAM = 2,
ERRORSTREAM = 3,
FULLFILLEDPROMISE = 4;
// Create a temporary folder for r... |
import test from 'ava';
import fn from './';
test('to decimal', t => {
t.true(fn(65) === 0.65);
t.true(fn(1234.5) === 12.345);
t.true(fn(0.1) === 0.001);
t.true(fn(12.1245, {digits: 2}) === 0.12);
t.true(fn(6158.4256, {digits: 5}) === 61.58426);
t.true(fn(1234.5, {digits: 0}) === 12);
t.end();
});
|
// app/routes.js
module.exports = function(app, request, Lob) {
var googleApiKey = 'AIzaSyAVcJflF_0GpUzioGph0e8edJQeatd-330';
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
});
app.get('/api/getreps', function(req, res) {
var zip = req.query.zip;
var ur... |
import { combineReducers } from 'redux-immutable';
import gluttonousSnake from 'isomerism/reducers/components/game/gluttonousSnake';
export default combineReducers({
gluttonousSnake,
});
|
'use strict';
/**
* Removes server error when user updates input
*/
angular.module('assassinsApp')
.directive('mongooseError', function () {
return {
restrict: 'A',
require: 'ngModel',
link: function(scope, element, attrs, ngModel) {
element.on('keydown', function() {
return... |
import chai from 'chai';
import nock from 'nock';
import path from 'path';
import dota from '../../src/commands/games/dota2';
import { loadFixtures } from '../_helpers';
chai.should();
const FIXTURES = loadFixtures(path.join(__dirname, '../fixtures/dota2/'));
describe('dota2', () => {
describe('best', () => {
... |
'use strict'
module.exports = function fooPost(req, res, next) {
res.header('name', 'foo');
res.header('method', 'post');
res.send(200);
next();
};
|
/*global document, describe, it, expect, require, window, afterEach */
const jQuery = require('jquery');
require('../../src/browser/place-caret-at-end');
describe('placeCaretAtEnd', () => {
'use strict';
let underTest;
afterEach(() => {
underTest.remove();
});
it('works on contenteditable divs', () => {
unde... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
/*
* 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 rights... |
import store from '../store'
import { mapState } from 'vuex'
import { Scroller, Example } from 'components'
export default {
name: 'Main',
store,
computed: mapState({
name: state => state.name
}),
render() {
const { name } = this
return (
<Scroller>
... |
export { default as invocationsRoute } from './invocations/index.js'
export { default as invokeAsyncRoute } from './invoke-async/index.js'
|
const {capitalize} = require('../capitalize');
const {expect} = require('chai');
describe('capitalize() Capitalizes the first letter of a string', function() {
it('should capitalize the first letter of a string', function(){
expect(capitalize("github")).to.equal("Github")
})
})
|
/**
* @file Defines the on-render callback and the event handler for MD Tabs.
* @author Derek Gransaull <[email protected]>
* @copyright DGTLife, LLC 2017
*/
import { Template } from 'meteor/templating';
import {
currentTab,
initializeTabGroup,
handleClickOnTab
} from '../../api/md-tabs-api.js';
import './md-... |
/*
* Copyright (c) 2013-2016 Chukong Technologies Inc.
*
* 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
* to use, copy, mod... |
/**
* This file is part of the Unit.js testing framework.
*
* (c) Nicolas Tallefourtane <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code
* or visit {@link http://unitjs.com|Unit.js}.
*
* @author Nicolas Tallefourt... |
"use strict";
var React = require("react");
var MainView = require("../views/MainView");
var MainElement = document.getElementById("main");
var socket = require("socket.io-client")();
var Store = require("../views/Store");
var omit = require("lodash/object/omit");
socket.on("initialize", function (data) {
Store.lea... |
'use strict';
module.exports = {
name: 'base',
configure: function(config) {
config.addCommand(require('./SwitchTextTypeCommand'));
config.addCommand(require('./UndoCommand'));
config.addCommand(require('./RedoCommand'));
config.addTool(require('./UndoTool'));
config.addTool(require('./RedoTool... |
'use strict';
angular.module('core').controller('ShortBreakController', ['$scope', '$interval', 'timer', function ($scope, $interval, timer) {
var initialTime = 300000;
$scope.currentTime = initialTime;
$scope.startTimer = function() {
timer.start($scope);
};
$scope.stopTimer = function() {
... |
var dest = './public';
var src = './src';
module.exports = {
browserSync: {
server: {
// Serve up our build folder
baseDir: dest
},
open: false,
https: false
},
sass: {
src: [
src + '/assets/css/*.{sass,scss}',
src + '/assets/css/**/*.{sass,scss}',
src + '/assets/css/**/**/*.{sass,scss}'
... |
/*jslint browser: true */
/*global require, app: true, $, Backbone, window, document */
require([
'router'
], function () {
'use strict';
});
|
// ## Globals
/*global $:true*/
var $ = require('gulp-load-plugins')({rename: {'gulp-jade-php': 'jade' }});
var argv = require('yargs').argv;
var browserSync = require('browser-sync');
var gulp = require('gulp');
var lazypipe = require('lazypipe');
var merge = require('merge-stream');
v... |
// run `node syncSchemaDocs.js` from the lib folder to update/add the schema docs that we specify here
// note the relative path to nano module from where this doc is stored.
// currently this script requires the context docs to already exist in couchdb
// if creating/defining a brand new schema doc - use futon or cu... |
const ESCAPES = {
u: (flags) => {
flags.lowercaseNext = false
flags.uppercaseNext = true
},
l: (flags) => {
flags.uppercaseNext = false
flags.lowercaseNext = true
},
U: (flags) => {
flags.lowercaseAll = false
flags.uppercaseAll = true
},
L: (flags) => {
flags.uppercaseAll = fal... |
// @ag-grid-community/react v25.1.0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map
|
/*
Copyright (c) 2009-2011, Dan "Ducky" Little & GeoMOOSE.org
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
to use, copy, modify, merg... |
angular
.module('platoon.event', [])
.controller('EventController', ['$scope', '$location', '$filter',
function($scope, $location, $filter)
{
$scope.eventTypes = [{
label: 'Private',
type: 'private'
},{
label: 'Company',
type: 'company'
},{
label: 'Wedding',
type: 'wedd... |
/*
© Copyright Adam Aharony (a.k.a. Cringy Adam)
All rights reserved
Twitter: @AdamAharony, Discord: @Cringy Adam#4611
*/
exports.run = (client, message, args) => {
message.delete();
message.channel.send('', {
embed: {
author: {
... |
'use strict';
/**
* This contains a promisified confirmation question
*/
module.exports = function(kbox) {
// Npm modules
var inquirer = require('inquirer');
// Kbox modules
var Promise = require('bluebird');
/*
* Make sure the user wants to proceed with the install/update
*/
return function(st... |
import React from 'react';
import {withStyles} from '@material-ui/core/styles';
import Popover from '@material-ui/core/Popover';
import {VisualQueryManager, PastebinContext} from './Pastebin';
import GraphicalQuery from '../components/GraphicalQuery';
const animationId = `scr-a-graphicalHighlight-${Date.now()}`;
const... |
/**
* butterItemFilterField is a jQuery plugin that filters html element with the css class <code>filterable-item</code>.
* It is applied to the search field.<br/>
* If no filter text is entered, then all filterable-items are displayed. Else the search field value is matched against <b>all</b> text contained by a fi... |
var translations = {
'Mostri spaziali': {
en: 'Space monsters',
},
'Dettagli': {
en: 'Details',
},
'Testa': {
en: 'Head',
},
'Occhi': {
en: 'Eyes',
},
'Naso': {
en: 'Nose',
},
'Bocca': {
en: 'Mouth',
},
'Orecchie': {
... |
// Fuzzy utility
'use strict';
var filter = require('array-filter');
var fuzzy = function(items, key) {
return function (query) {
query = query.toLowerCase();
var re = new RegExp(query, 'i');
return filter(items, function(item) {
return re.test(item[key]);
});
};
};
module.exports = fuzz... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var AssistantList = require('./understand/assistant').AssistantList;
var Version = re... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'font', 'sv', {
fontSize: {
label: 'Storlek',
voiceLabel: 'Teckenstorlek',
panelTitle: 'Teckenstorlek'
},
label: 'Typsnitt... |
function ConnectionList(){
this.client = {};
this.add = function(id, value){
if( id )
this.client[id] = value;
else
throw "Não da pra adicionar um valor [ " + id + " ] ao dicionario hash;";
}
this.remove = function(id){
delete this.client[... |
// Generated by CoffeeScript 1.3.3
(function() {
var MAXSAMPLES, Point, STAGE_LOBBY, STAGE_PLAYING, baseObject, button, calcAvgTick, canvas, delta, difficulty, enemy, explosion, initialize, lastScore, lasttime, lives, missile, missileFired, mouseDown, mouseX, mouseY, nextspawn, objectlist, origin, point, samples, sco... |
import React from 'react';
const Footer = () => (
<div className="col s12 home-inner footer" >
<div className="inner-content center m-auto">
<p> Copyright © 2017 Andela24 News - All rights reserved </p>
</div>
</div>
);
export default Footer;
|
import chai, { expect } from 'chai'
import chaiHttp from 'chai-http'
import server from '../src/index'
import Query from '../src/query'
import { url } from '../src/resources'
chai.use(chaiHttp)
export default (done) =>
{
Query.create({title: 'Task', completed: true})
.then((task) => {
task.title = 'Ta... |
/**
@module ember
@submodule ember-htmlbars
*/
/**
An HTMLBars AST transformation that replaces all instances of
```handlebars
{{#with foo.bar as bar}}
{{/with}}
```
with
```handlebars
{{#with foo.bar keywordName="bar"}}
{{/with}}
```
@private
@class TransformWithAsToHash
*/
function Transf... |
var clientElasticsearch = require("../../../Elasticsearch/ElasticsearchClient");
var ElasticsearchParser = require("../../../Elasticsearch/ElasticsearchParser");
var Q = require('q');
var getSuggestions=function(){
return clientElasticsearch.search({
"index":"source",
"type":"zabbix_host",
"body":{
"query" :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.