code stringlengths 2 1.05M |
|---|
/*
Mocha test for: documents
*/
var chai = require('chai'),
assert = chai.assert,
documents = require('../lib/documents.js'),
mani = require('../lib/index.js');
// test options for index constructor
var options = {
'text': [
{'path': 'title', 'boost': 20},
{'path... |
/*
Copyright (c) 2012-2014 Open Lab
Written by Roberto Bicchierai and Silvia Chelazzi http://roberto.open-lab.com
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, incl... |
/* @flow */
import {
type BinaryWriter,
type DeserializeWireBaseOptions,
type DeserializeWireOptions,
type SerializeWire,
type SerializableWire,
type UInt256,
BinaryReader,
InvalidFormatError,
Witness,
createSerializeWire,
} from 'neo-blockchain-core';
export type ConsensusPayloadAdd = {|
version... |
var path = require('path');
var webpack = require('webpack');
var webpackConfig = require('./webpack.config');
module.exports = function(app, callback) {
// Enabled hotload mechanism
webpackConfig.forEach(function(config) {
if (config.name != 'Browser')
return;
if (!(config.entry.app instanceof Array)) {
... |
var noop = function () {};
var log = require('debug')('servicebus:test');
var retry = require('../index');
var should = require('should');
var util = require('util');
describe('retry', function() {
describe('MemoryStore', function () {
var bus = require('servicebus').bus();
bus.use(bus.correlate());
bu... |
"use strict";
/* global describe it */
const { assert } = require("chai");
const { ObjSerialize } = require("../index");
describe("ObjSerialize", () => {
describe("flatten", () => {
it("should convert flat object to environment variable object", () => {
const opts = {
keyForma... |
module.exports = {
/** The url of the OTP REST API */
otpServer: 'http://localhost:8080/otp',
mapWidth: "100%",
mapHeight: "100%",
/** walking speed, meters/second */
walkingSpeed: 1.333,
/** minumum transfer time, seconds */
minTransferTime: 2 * 60,
/** maximum transfer time before this is no long... |
module.exports = {
task: {
src: [
'./dist/public/index.html'
],
ignorePath: '../../client'
}
}; |
define(['jquery', 'atomjs/lang', 'atomjs/dom', 'atomjs/log'], function (jquery, lang, dom, log) {
"use strict";
var loader;
function Control () {
this.__classes = [];
this.__id = 0;
}
Control.loader = function (_loader) {
loader = _loader;
};
Control.allowOverrideProperties = ['id', 'onLoad', 'onInit',... |
var util = require('util');
var path = require('path');
var fse = require('fs-extra');
var crypto = require('crypto');
var easyimg = require('easyimage');
var async = require('async');
var PDFImage = require("pdf-image").PDFImage;
PDFImage.prototype.constructGetInfoCommand = function () {
return util.format(
"... |
var tape = require('tape')
var etcdjs = require('etcdjs')
var flatten = require('etcd-flatten')
var cp = require('child_process')
var path = require('path')
var wrench = require('wrench')
var async = require('async')
var fs = require('fs')
var etcdAddress = process.env.ETCD_ADDRESS || '127.0.0.1:4001'
var etcd = etcd... |
'use strict';
(function() {
/**
* @ngdoc overview
* @name webApp
* @description
* # webApp
*
* Main module of the application.
*/
var env = {};
// Import variables if present (from env.js)
if(window){
Object.assign(env, window.__env);
}
angular
.module('webApp', [
'n... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
View,
WebView
} = React;
var createReactClass = require('create-react-class');
var WebViewBridge = require('react-native-webview-bridge');
const injectScri... |
export default {
product: {
title: '',
description: '',
price: null
}
}
|
module.exports = (path, types, attributes, children) => {
let { identifier, memberExpression, callExpression } = types;
let { alpha } = attributes;
return path.replaceWith(
callExpression(
memberExpression(
identifier('e2d'),
identifier('globalAlpha')
),
[alpha].concat(child... |
import styled from 'styled-components';
import { breakSmall } from './../../common-styles/layout';
const cardHeight = 400;
// const mainColor = `rgb(28, 117, 188);`;
export const Wrapper = styled.div`
background-color: #fff;
border: 1px solid rgb(238, 238, 238);
border-radius: 5px;
box-shadow: 0;
box-sizing... |
import Api from './api';
import discover from './discover';
import sendRequest from './request';
jest.mock('./request');
jest.mock('./discover');
describe('The API handler', () => {
let api: Api;
beforeEach(() => {
api = new Api('an-ip-address');
});
afterEach(() => {
sendRequest.mockClear();
});
... |
/**
* @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 Color = require('./Color');
/**
* Converts a hex string into a Phaser Color object.
*
* The hex string c... |
'use strict';
const moment = require('moment');
const chrono = require('chrono-node');
module.exports = (timestamp) => {
let unix, natural, time;
if (/[a-z]/gi.test(timestamp)) {
time = moment(chrono.parse(timestamp)[0].start.date());
} else {
time = moment.unix(+timestamp);
}
if (time.isValid()) ... |
!function($){
"use strict";
var Typed = function(el, options){
// for variable scope's sake
self = this;
// chosen element to manipulate text
self.el = $(el);
// options
self.options = $.extend({}, $.fn.typed.defaults, options);
// text content of element
self.text = self.el.text();
// typing... |
import { fromJS } from 'immutable';
import BlockFormatter from '../BlockFormatter';
describe('BlockFormatter', () => {
describe('#applyMarkups', () => {
it('returns text if no formatting applied', () => {
const format = new BlockFormatter('a string of some text');
const expected = 'a string of some... |
$(function() {
// http://stackoverflow.com/a/979995/689559
var QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
var query_string = {};
var query = window.location.search.substring(1);
v... |
var UserModel = require("./UserModel");
var EventEmitter = require("events");
var Form = function (formElement) {
this._form = formElement;
this._emitter = new EventEmitter();
this._form.addEventListener("submit", this.onSubmit.bind(this));
};
Form.prototype.onSubmit = function (e) {
e.preventDefault... |
/**
* Copyright (c) 2014,Egret-Labs.org
* 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 conditio... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
Ext.define('sisprod.view.Employee.UploadDigitalSignature', {
extend: 'sisprod.view.base.BaseDataWindow',
alias: 'widget.uploadDigitalSignature',
require: [
'sisprod.view.base.Ba... |
var TICKS_IN_MILLISECONDS = 10000,
MILLISECONDS_IN_HOUR = 60 * 60 * 1000,
NET_START_DATE = new Date("0001-01-01").getTime(),
MAX_TICKS = 3155378975999999999,
MIN_TICKS = 0;
exports.netTicksToDate = function (ticks, timezoneOffsetHours) {
var netMilliseconds, timezoneOffsetMilliseconds;
... |
var templates = function() {
var handlebars = window.handlebars || window.Handlebars,
Handlebars = window.handlebars || window.Handlebars,
cache = {};
function get(name) {
var promise = new Promise(function(resolve, reject) {
if (cache[name]) {
resolve(cache[... |
/**
* @member module:JGL.rangeContains
* @function
* @param {module:JGL~Range} rng
* @param {Integer} idx
* @returns {Boolean}
*/
module.exports = function rangeContains (rng, idx) {
var from = rng.from || 0,
to = rng.to,
val = parseInt(idx, 10);
return !isNaN(val) &&
val === idx ... |
import EmberRouter from '@ember/routing/router';
import config from 'dummy/config/environment';
class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(() => {});
|
import Ember from 'ember';
import RecordArray from "ember-data/-private/system/record-arrays/record-array";
import cloneNull from "ember-data/-private/system/clone-null";
/**
@module ember-data
*/
const { get } = Ember;
/**
Represents an ordered list of records whose order and membership is
determined by the a... |
// Copyright (c) 2015 Uber 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, modify, merge... |
var DIET_TIME_ZERO = 5 * 60;
var DIET_ALLOWANCE_00_05 = 0.00; // 00 – 05 hours: 0.00 €
var DIET_TIME_SMALL = 12 * 60;
var DIET_ALLOWANCE_05_12 = 4.00; // 05 – 12 hours: 4.00 €
var DIET_TIME_MEDIUM = 18 * 60;
var DIET_ALLOWANCE_12_18 = 6.00; // 12 – 18 hours: 6.00 €
var DIET_TIME_LARGE = Infinity;
var DIET_ALLOWANCE... |
require('babel-register')
const express = require('express')
const React = require('react')
const ReactDOMServer = require('react-dom/server')
const ReactRouter = require('react-router')
const ServerRouter = ReactRouter.ServerRouter
const _ = require('lodash')
const fs = require('fs')
const PORT = 5050
const baseTempl... |
var arr = ['Laranja', 'Limão', 'Pera', 'Morango', 'Goiaba', 'Pessêgo'];
var x = arr.indexOf('Goiaba');
console.log(x); |
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"33":"0 1 2 3 4 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","164":"UB z SB RB"},D:{"2":"0 1 2 3 4 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p ... |
import Ember from 'ember';
import { module, test } from 'qunit';
import Numericality from 'ember-validations/validators/local/numericality';
import Mixin from 'ember-validations/mixin';
import buildContainer from '../../../helpers/build-container';
var model, Model, options, validator, container;
var set = Ember.set;
... |
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
document.write('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</sty... |
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var camera, controls, scene, renderer, cube, line, normal, plane, ellipse, ellipse2, group, gyro, thats = [], constScale;
init();
animate();
function init() {
normal = new THREE.Vector3(0,1,0);
constScale = new THREE.Vector3(1,1,1);
scene = new THRE... |
import test from 'ava';
import sinon from 'sinon';
import onKeyDown from './input';
test('should trigger callback if keydown is return', t => {
const callback = sinon.spy();
onKeyDown({ keyCode: 13 }, callback);
t.true(callback.called);
});
test('should not trigger callback if keydown is not return', t => {
... |
// The MIT License (MIT)
// Copyright (c) 2016 – 2019 David Hofmann <the.urban.drone@gmail.com>
//
// 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 limitati... |
'use strict';
var blogApp = angular.module('blogApp');
blogApp.controller('NewCtrl', function ($scope, $http, $state, $sce, $timeout, Story) {
$scope.story = {};
Story.getStory().then(function(story) {
$scope.story = story;
}, function(err) {
console.error(err);
});
$scope.story.d... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.8.0 (2021-05-06)
*/
(function () {
'use strict';
... |
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import nock from 'nock';
import { expect } from 'chai';
import {
SAVE_SETTINGS_BEGIN,
SAVE_SETTINGS_SUCCESS,
SAVE_SETTINGS_FAILURE,
SAVE_SETTINGS_DISMISS_ERROR,
} from 'features/home/redux/constants';
import {
saveSettings,
... |
import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
import formatMessage from 'format-message';
import callingOptions from 'ringcentral-integration/modules/CallingSettings/callingOptions';
import 'font-awesome/css/font-awesome.css';
import styles from './styles.scss';
import i18n ... |
/** @namespace H5P */
H5P.VideoHtml5 = (function ($) {
/**
* HTML5 video player for H5P.
*
* @class
* @param {Array} sources Video files to use
* @param {Object} options Settings for the player
* @param {Object} l10n Localization strings
*/
function Html5(sources, options, l10n) {
var self... |
/**
* Created by flftfqwxf on 16/5/27.
*/
var m=require('./a');
|
'use strict';
var React = require('React');
var StyleSheet = require('StyleSheet');
var Text = require('Text');
var View = require('View');
var StyleInspector = function (_React$Component) {
babelHelpers.inherits(StyleInspector, _React$Component);
function StyleInspector() {
babelHelpers.classCallCheck(this... |
"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)... |
const Express = require('express');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
const webpackConfig = require('../../config/webpack-dev');
module.exports = function createHttpDevServer(config) {
//... |
var mongoose = require('mongoose');
module.exports = function(schema, options) {
schema.add({ created: { type: Date, default: Date.now } });
schema.add({ modified: { type: Date, default: Date.now } });
schema.add({ deleted: Date});
schema.add({ deletedBy: { type: mongoose.Schema.Types.ObjectId, ref: 'User' } }... |
/**
* Fuse.js v6.0.0 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2020 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
'use strict';
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "... |
/*! lightgallery - v1.9.1-beta-0 - 2020-10-29
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2020 Sachin N; Licensed GPLv3 */
/*! lightgallery - v1.9.1-beta-0 - 2020-10-29
* http://sachinchoolur.github.io/lightGallery/
* Copyright (c) 2020 Sachin N; Licensed GPLv3 */
(function (root, factory) {
if (ty... |
module.exports = {
cargar: function(){
var i;
for(i=1;i<=70000;i++){
console.log('i = '+i);
}
return parseInt(i-1);
}
}; |
/*
* handlebars.js
*
* Copyright (c) 2012 "PerfectWorks" Ethan Zhang
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
*/
'use strict';
module.exports = function (grunt) {
var compile = require('../lib/handlebars').compile;
/**
* Convert mustache template... |
Modernizr.addTest("bgpositionxy",function(){return Modernizr.testStyles("#modernizr {background-position: 3px 5px;}",function(e){var t=window.getComputedStyle?getComputedStyle(e,null):e.currentStyle,n=t.backgroundPositionX=="3px"||t["background-position-x"]=="3px",r=t.backgroundPositionY=="5px"||t["background-position-... |
if(typeof exports === 'object') {
var assert = require("assert");
var alasql = require('../alasql.js');
};
describe('Test 06', function() {
it('Fiddle test ', function(done){
var db = new alasql.Database();
db.exec('CREATE TABLE person (name STRING, sex STRING, income INT)');
db.tables.person.data = [
... |
/**
* Console History v1.5.1
* console-history.js
*
* Licensed under the MIT License.
* https://git.io/console
*/
'use strict'
/* Allow only one instance of console-history.js */
if (typeof console.history !== 'undefined') {
throw new Error('Only one instance of console-history.js can run at a time.')
}
/* S... |
"use strict"
/**
* Accept a string that contains shell expansions and add it as the only item in the `expansions` array property.
*
* Example input: '/path/to/{file1,dir1/{file2,file3,dir2{/dir3,}/file4}}'
*
* @param {string} input String containing shell expansions
*/
var ShellBraceExpander = function(input){
... |
/**
* Created by anubhavshrimal on 24/5/16.
*/
var app = angular.module("myApp",[]);
app.controller("firstCtrl",function ($scope,$rootScope) {
$scope.color="blue";
$rootScope.color="black";
$scope.send = function () {
console.log($scope.color);
}
});
app.controller("secondCtrl",function ($... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['supermodel', 'backbone', 'underscore'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS
var Supermodel = require('supermodel'),
Backbone = requir... |
function showImage(){
var rand_no = Math.random();
rand_no = rand_no * 27;
rand_no = Math.ceil(rand_no);
var img=document.getElementById("home");
img.innerHTML='<img src="../public/img/'+rand_no+'.png">';
}
function swap(i) {
$('ul#tips li').css('left','-1477px');
$(i).addClass('select');
$(i).an... |
const test = require('ava')
const index = require('../..')
test('methods should be unique', t => {
const methods = []
for (const key in index) {
for (const method in index[key]) {
methods.push(method)
}
}
t.truthy(methods.length === new Set(methods).size)
})
|
/*!
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 2.2.2
* @requires billboard.js
* @summary billboard.js plugin
*/
(function webpackUniversalModuleDefinition(ro... |
import 'nanoid/non-secure';
import './Debug-81a98185.js';
import 'redux';
import './turn-order-406c4349.js';
import 'immer';
import 'lodash.isplainobject';
import './reducer-95b86815.js';
import 'rfc6902';
import './initialize-6ecd151b.js';
import './transport-ce07b771.js';
export { C as Client } from './client-76f5188... |
typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... |
typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... |
/**
* @license Angular v0.10.0
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
(function (factory) {
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(function () {
'use strict';
/**
* @license
* Copyright Google Inc. All Rights Reserved.
... |
/* Riot v4.6.4, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.riot = {}));
}(this, function (exports) { 'use strict... |
/*
Highcharts JS v8.0.3 (2020-03-05)
Data module
(c) 2012-2019 Torstein Honsi
License: www.highcharts.com/license
*/
(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/data",["highcharts"],function(u){b(u);b.Hi... |
import * as i0 from '@angular/core';
import { forwardRef, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, Output, NgModule } from '@angular/core';
import * as i1 from '@angular/common';
import { CommonModule } from '@angular/common';
import { NG_VALUE_ACCESSOR } from '@angular/for... |
/*
keymage.js - Javascript keyboard bindings handling
http://github.com/piranha/keymage
(c) 2012-2016 Alexander Solovyov under terms of ISC License
*/
(function(h,u){h(function(){function h(b){var a=b.split(/-(?!$)/),c=a[a.length-1],e={code:l[c]};if(!e.code)throw'Unknown key "'+c+'" in keystring "'+b+'"';for(var f... |
import Stats from 'stats-js'
import GridGraphic from './graphics/GridGraphic'
import MapGraphic from './graphics/MapGraphic'
import gridGeometry from './geometry/GridGeometry'
import metrics from './Metrics'
import {devicePixelRatio, canvasDimensions, settings} from './constants'
import {createElement, isDevEnvironmen... |
var vm = require("vm"),
smash = require("./smash");
// Loads the specified files and their imports, then evaluates the specified
// expression in the context of the concatenated code.
module.exports = function(files, expression, sandbox, callback) {
if (arguments.length < 4) callback = sandbox, sandbox = null;
... |
'use strict';
var express = require('express'), //minimalist framwork for requests, responses, etc.
bodyParser = require('body-parser'), //access information passed in url or body
morgan = require('morgan'),
helmet = require('helmet'), //Helmet helps you secure your Express apps by setting various HTTP hea... |
/**
* Initialization of jquery autocomplete
*
* @author Nikolay Georgiev
* @version 1.0
*/
jQuery(document).ready(function(){
// building categories
jQuery.widget( "custom.catcomplete", jQuery.ui.autocomplete, {
_renderMenu: function( ul, items ) {
var that = this,
currentCa... |
module.exports={title:'Ethereum',slug:'ethereum',svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Ethereum icon</title><path d="M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"/></svg>',get path(){return this.svg.matc... |
version https://git-lfs.github.com/spec/v1
oid sha256:030e4cb2b3d11cfda3ab6e90e21e801f51fc01018279db9ca6e7da5ac9fd5779
size 2577
|
// The 'run' function is called by LaunchBar when the user opens the action.
function run(arguments)
{
var reverse = LaunchBar.options.shiftKey;
// Sort the lines:
var lines = arguments.sort(function(line1, line2) {
if (reverse) {
r... |
function init_problems() {
$('.screen_view').each(function() {
initProblemScreen($(this));
});
}
function initProblemScreen(context) {
var doc = create_VIM_DOCUMENT(context);
var messager = create_VIM_MESSAGER();
var context_help = create_VIM_CONTEXT_HELP(context);
var executor = create_VIM_EXECUTOR(d... |
'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
let mainWindow = null;
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit();
});
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 400, heigh... |
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('<SplitButton>', () => {
const simple = (
<SplitButton title="Titl... |
/*!
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
var localConfig = {
product: 'touchjs', //项目名,用于md5后的资源 如<%- staticBase %>/xx/a.js替换成<%- staticBase %>/xx/a.131.js
srcDir: '', //源文件的目录, 编译文件 的来源 grunt.option('p')
releaseDir: 'dist/'
};
module.exports = function(grunt) {
'use strict';
// require('time-grunt')(grunt);
var path = require('path'... |
/**
* Template: Side drawer nav (reveal)
* @desc Creates layers, interactions, and animations for a side drawer nav UI, where the side bar is revealed by swiping the view or tapping a menu button
* @author Pixate, Inc.
* @version 1.0
*/
//set up
var revealAmount = Screen.width - 100;
// create the status bar
... |
import { StyleSheet } from "aphrodite";
export default StyleSheet.create({
"nav-bar": {
zIndex: 102,
"@media screen and (max-width: 480px)": {
position: "fixed",
maxHeight: "50px",
display: "flex",
justifyContent: "center",
width: "100%",
},
"@media screen and (max-hei... |
(function() {
if (document.readyState == "complete") {
measure();
} else {
window.addEventListener("load", measure);
}
function measure() {
setTimeout(function() {
var t = performance.timing;
var start = t.redirectStart == 0 ? t.fetchStart :... |
// Copyright, 2013-2014, by Tomas Korcak. <korczis@gmail.com>
//
// 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, cop... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 5C4.19 5 2 9.48 2 12c0 3.86 3.13 7 6.99 7h6.02C17.7 19 22 16.92 22 12c0 0 0-7-10-7zm0 2c7.64 0 7.99 4.51 8 5H4c0-.2.09-5 8-5zm2.86 10H9.14c-2.1 0-3.92-1... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M18 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-2.5 4c0-1.38 1.12-2.5 2.5-2.5.42 0 .8.11 1.15.29l-3.36 3.36c-.18-.35-.29-.73-.29-1.15zm2.5 2.5c-... |
/**
* app消息提示语
* date:2016-11-18
*/
export default {
erro404:'404 Not Found!',
}
|
var hostedwebapp = {
loadManifest: function (successCallback, errorCallback, manifestFileName) {
cordova.exec(successCallback, errorCallback, "HostedWebApp", "loadManifest", [manifestFileName]);
},
getManifest: function (successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "... |
'use strict';
require('../../models/user');
module.exports = {
regularQuest: {
title: 'Заголовок',
description: 'Описание',
tags: ['Екатеринбург', 'Граффити']
},
questWithoutRequiredFields: {},
questForSearch: {
title: 'Описание',
description: 'Описание',
... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'notification', 'de-ch', {
closed: 'Benachrichtigung geschlossen.'
} );
|
var axolotl = require("./axolotl/")
exports.axolotl = axolotl.proto;
|
import {
messages,
ruleName,
} from ".."
import rules from "../../../rules"
import { testRule } from "../../../testUtils"
const rule = rules[ruleName]
testRule(rule, {
ruleName,
config: [[
"extend",
"supports",
"keyframes",
]],
accept: [ {
code: "a { color: pink; }",
description: "So... |
beforeEach(function() {
jasmine.addMatchers({
toHaveOwnProperty: function() {
return {
compare: function (actual, expected) {
return {
pass: _.has(actual, expected)
};
}
};
}
});
});
|
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
* Copyright (C) 2009 Joseph Pecoraro
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" /></React.Fragment>
, 'SubjectTwoTone');
|
/**
* Copyright 2015 Telerik AD
*
* 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 applicable law or agreed to ... |
var util = require("util");
var BaseTrigger = require("./baseTrigger.js").BaseTrigger;
/*
Punishes spammers. Assigns a penalty to every message in a groupchat, and when a certain score is reached, it penalizes the user.
Options:
ignores - array of strings([]) = users that won't be penalized (trigger effectively won't s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.