code stringlengths 2 1.05M |
|---|
module.exports = function(hljs) {
var VARIABLE = {
className: 'variable', begin: '\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
};
var STRINGS = [
hljs.inherit(hljs.APOS_STRING_MODE, {illegal: null}),
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
{
className: 'string',
begin: ... |
/*! =======================================================
VERSION 6.0.1
========================================================= */
"use strict";
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
/*! ===... |
/*!
* meny 1.4
* http://lab.hakim.se/meny
* MIT licensed
*
* Created by Hakim El Hattab (http://hakim.se, @hakimel)
*/
var Meny = {
// Creates a new instance of Meny
create: function( options ) {
return (function(){
// Make sure the required arguments are defined
if( !options || !options.menuElement ||... |
var Class = require('../../core/class');
var Transform = require('../../core/transform');
var Container = require('../../dom/container');
var Node = require('./node');
module.exports = Class(Node, Container, {
element_initialize: Node.prototype.initialize,
initialize: function(width, height){
this.element_init... |
module.exports={title:"Roots Sage",slug:"rootssage",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Roots Sage icon</title><path d="M7.384 4.232l1.71 5.075-4.478-3.136L0 9.403l1.753 5.2.01.03H7.3L2.82 17.77l1.754 5.2.01.03h5.705L12 17.925l1.7 5.045.01.03h5.707l1.763-5.23-4.48-3.137h5.... |
/*!
* socket.io-node
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Test dependencies.
*/
var io = require('../')
, parser = io.parser
, http = require('http')
, https = require('https')
, WebSocket = require('../support/node-websocket-client/lib/websocket').WebSocket;
/**... |
var ctx = require('./$.ctx')
, call = require('./$.iter-call')
, isArrayIter = require('./$.is-array-iter')
, anObject = require('./$.an-object')
, toLength = require('./$.to-length')
, getIterFn = require('./core.get-iterator-method');
module.exports = function(iterable, entries, fn, t... |
define([
"../core",
"./var/rnumnonpx",
"./var/rmargin",
"./var/getStyles",
"../selector" // contains
], function( jQuery, rnumnonpx, rmargin, getStyles ) {
function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret,
style = elem.style;
computed = computed || getStyles( elem );
... |
CKEDITOR.plugins.setLang("image2","fr",{alt:"Texte alternatif",btnUpload:"Envoyer sur le serveur",captioned:"Image légendée",captionPlaceholder:"Légende",infoTab:"Informations sur l'image",lockRatio:"Conserver les proportions",menu:"Propriétés de l'image",pathName:"image",pathNameCaption:"légende",resetSize:"Réinitiali... |
module.exports = function _pipeP(f, g) {
return function() {
var ctx = this;
return f.apply(ctx, arguments).then(function(x) {
return g.call(ctx, x);
});
};
};
|
/**
* React (with addons) v15.3.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef... |
window.$ = $telerik.$;
$(document).ready(function() {
movePageElements();
var text = $('textarea').val();
if (text != "")
$('textarea').attr("style", "display: block;");
else
$('textarea').attr("style", "display: none;");
//cleanup
text = null;
});
function movePageElements() {
var num = null;
var pagenum = $(".pa... |
'use strict';
var global = require('./_global');
var dP = require('./_object-dp');
var DESCRIPTORS = require('./_descriptors');
var SPECIES = require('./_wks')('species');
module.exports = function (KEY) {
var C = global[KEY];
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
configurable: true,
get:... |
/**
* vue-validator v1.4.2
* (c) 2014-2015 kazuya kawaguchi
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(fac... |
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var User = new Schema({
github: {
id: String,
displayName: String,
username: String,
publicRepos: Number
},
nbrClicks: {
clicks: Number
}
});
module.exports = mongoose.model('User', User);
|
var ElementType = require("domelementtype");
var re_whitespace = /\s+/g;
function DomHandler(callback, options, elementCB){
if(typeof callback === "object"){
elementCB = options;
options = callback;
callback = null;
} else if(typeof options === "function"){
elementCB = options;
options = defaultOpts;
}
... |
/**
* Copyright (c) 2015-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 strict... |
"use strict";
var _index = require("./index");
var _index2 = _interopRequireDefault(_index);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _index2.default)("AnyTypeAnnotation", {
aliases: ["Flow", "FlowBaseAnnotation"],
fields: {}
});
(0, _index2.default)("... |
define(
"dojo/cldr/nls/zh-tw/gregorian", //begin v1.x content
{
"months-standAlone-narrow": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12"
],
"quarters-format-wide": [
"第1季",
"第2季",
"第3季",
"第4季"
],
"eraAbbr": [
"西元前",
"西元"
],
"dateFormat-medium": "yyyy/M/d",
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'find', 'nl', {
find: 'Zoeken',
findOptions: 'Zoekopties',
findWhat: 'Zoeken naar:',
matchCase: 'Hoofdlettergevoelig',
matchCyclic: 'Doorlopend z... |
//
// simple testing interface
// written by Einar Lielmanis, einar@jsbeautifier.org
//
// usage:
//
// var t = new SanityTest(function (x) { return x; }, 'my function');
// t.expect('input', 'output');
// t.expect('a', 'a');
// output_somewhere(t.results()); // good for <pre>, html safe-ish
// alert(t.results_raw()); ... |
/*
* Translated default messages for the jQuery validation plugin.
* Locale: MK (Macedonian; македонски јазик)
*/
$.extend( $.validator.messages, {
required: "Полето е задолжително.",
remote: "Поправете го ова поле",
email: "Внесете правилна e-mail адреса",
url: "Внесете правилен URL.",
date: "Внесете правилен ... |
/**
* React v0.4.2
*/
(function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa... |
"use strict";
var levels = require("./levels");
var DEFAULT_FORMAT = ':remote-addr - -' +
' ":method :url HTTP/:http-version"' +
' :status :content-length ":referrer"' +
' ":user-agent"';
/**
* Log requests with the given `options` or a `format` string.
*
* Options:
*
* - `format` Format string, see... |
YUI.add("lang/datatype-date-format_zh-Hans",function(e){e.Intl.add("datatype-date-format","zh-Hans",{a:["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],A:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\... |
/*!
* Qoopido.js library v3.2.1, 2014-0-10
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(t){window.qoopido.register("support/css/transform/3d",t,["../../../support","../transform"])}(function(t,s,r,o,e,n){"use strict";var p=t.support;return p.addTest("/css/... |
/* **********************************************
Begin prism-core.js
********************************************** */
var _self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
: {} ... |
YUI.add('anim-base', function(Y) {
/**
* The Animation Utility provides an API for creating advanced transitions.
* @module anim
*/
/**
* Provides the base Anim class, for animating numeric properties.
*
* @module anim
* @submodule anim-base
*/
/**
* A class for constructing animation instances.
* @cla... |
var semver = require("semver")
var parseGitHubURL = require("github-url-from-git")
var depTypes = ["dependencies","devDependencies","optionalDependencies"]
var extractDescription = require("./extract_description")
var url = require("url")
var typos = require("./typos")
var coreModuleNames = require("./core_module_names... |
/*!
* # Semantic UI 1.12.1 - Progress
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
"use strict";
$.fn.progress = function(parameters) {
var
$all... |
(function($) {
/**
* Traditional Chinese language package
* Translated by @tureki
*/
FormValidation.I18n = $.extend(true, FormValidation.I18n, {
'zh_TW': {
base64: {
'default': '請輸入有效的Base64編碼'
},
between: {
'default': '請... |
/*global describe:true, it:true, before:true, after:true */
var
demand = require('must'),
Grill = require('../index'),
endpoints = require('../lib/endpoints'),
env = require('node-env-file')
;
env(__dirname + '/../.env');
describe('emancipation-grill', function()
{
describe('construc... |
let ScreenNameInput;
const React = require('react')
, template = require('./../../templates/screen-name-form.jsx');
module.exports = ScreenNameInput = React.createClass({
getInitialState: function() {
return { screenName: '' };
}
, handleSubmit: function(event) {
event.preventDefault();
let s... |
import React from 'react';
import { View, Text } from 'react-native';
import { render } from '../helpers';
jest.dontMock('../../src/renderers/NotAnimatedContextMenu');
const { default: NotAnimatedContextMenu} = require('../../src/renderers/NotAnimatedContextMenu');
describe('NotAnimatedContextMenu', () => {
const ... |
/**
* DIRECTIVES
*
* Miscellaneous directives go in this file.
*/
var module = angular.module('directives', ['popup']);
/**
* Inline edit
*/
module.directive('inlineEdit', function() {
var previewTemplate = '<span ng-hide="mode">{{model}}</span>';
var editTemplate = '<input ng-show="mode" ng-model="model" /... |
'use strict';
var DEFAULT_FEE = 10000;
function doTransaction(keypair, toAddress, callback) {
var txBuilder = new bitcoin.bitcoin.TransactionBuilder();
var fromAddress = keypair.getAddress();
var amount = 0;
$.get('https://bitcoin.toshi.io/api/v0/addresses/' + fromAddress + '/transactions').done(func... |
/*
* ! UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.P13nItem.
sap.ui.define([
'jquery.sap.global', './library', 'sap/ui/core/Element'
], function(jQuery, lib... |
/**
* AppBuilder3
* Copyright (c) 2017 Callan Peter Milne
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS"... |
/* dot notation for global
{"type":"Program",
"body":[
{"type":"VariableDeclaration",
"declarations":[
{"type":"VariableDeclarator",
"id":{"type":"Identifier",
"name":"a"},
"init":{"type":"Literal",
"value":7,
"raw":"7"}}],
"kind":"var"},... |
"use strict";
var fs = require('fs'),
path = require('path'),
mkdirp = require('mkdirp'),
template = require('../template'),
config = require('../config'),
logger = require('../log'),
utils = require('../utils'),
Processor = require('../Processor');
function Render(session) {
//We calculate this because it's... |
riot.tag2('rg-include', '<div> {responseText} </div>', '', '', function(opts) {
const fetch = () => {
const req = new XMLHttpRequest();
req.onload = resp => {
if (opts.include.unsafe) this.root.innerHTML = req.responseText;else this.responseText = req.responseText;
this.update();
this.trigger('loaded')... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.layout.HorizontalLayout.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './library'],
functio... |
import test from 'ava';
import mathClamp from './index.js';
test('main', t => {
t.is(mathClamp(1, {minimum: 1, maximum: 1}), 1);
t.is(mathClamp(2, {minimum: 1, maximum: 3}), 2);
t.is(mathClamp(1, {minimum: 2, maximum: 4}), 2);
t.is(mathClamp(5, {minimum: 1, maximum: 4}), 4);
});
|
/* Copyright (c) 2013 Richard Rodger */
"use strict";
// mocha entity.test.js
var util = require('util')
var seneca = require('..')
var async = require('async')
var gex = require('gex')
var assert = require('chai').assert
describe('entity', function(){
it('parsecanon', function(){
var si = sene... |
const v = require('../../../src/validator')
const Contract = require('../../../src/core/contract')
let services = new Map()
/**
* Create service
*/
let createRequirements = new Map()
createRequirements.set('username', [
{
name: 'typeOf string',
validator: v.typeOf,
params: {typeOf: 'string'}
},
{
... |
import forOwn from "lodash/forOwn";
import appendCacheControl from "./headers/appendCacheControl";
import appendContentEncoding from "./headers/appendContentEncoding";
import appendContentType from "./headers/appendContentType";
/**
* Add raw headers defined as key=string in options.
*/
function appendRaw(file: Obje... |
import * as actions from '../actions';
import { gridDetails } from '../config/app-constants';
const initialState = {
makeData: {
isFetching: false
},
yearData: {
isFetching: false
},
modelData: {
isFetching: false
},
componentData: {
isFetching: false
},
... |
const Command = require("../base/Command");
const {inspect} = require("util"); // eslint-disable-line no-unused-vars
// To get the player's arena info (Adapted from shittybill#3024's Scorpio)
class MyArena extends Command {
constructor(Bot) {
super(Bot, {
name: "myarena",
category: ... |
// Karma configuration
// Generated on Wed Nov 23 2016 00:44:49 GMT+0100 (CET)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword... |
/*!
* Main
*
* Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph>
* Licensed under MIT
*/
const path = require('path');
const imageProcessor = require('./lib/image-processor');
// resolve the path to the images
const resolvedImgsPath = path.join(process.cwd(), 'assets/img/forms');
// resolve the pa... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('admin-footer', 'Integration | Component | admin footer', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle a... |
/******************************************************************************
* AdapTable Custom Element
* Author: John Stegall
* Copyright: 2016 John Stegall
* License: MIT
*
* Supporting behaviors for the <dragline-adaptable> custom element. Adds
* various customizations to a TABLE element.
************************... |
(function promoSlider(){
"use strict";
var that = {};
//configs for the slider
var sliderConf = {
min : 1, //minimum number of images
max : 5, //maximum number of images
current : 1, //start image position
currPos : 0, //custom attribute that stores current TranslateX positi... |
let a = { }
a.a = a
let str = JSON.stringify(a)
console.log(str) |
var fs = require('fs');
var PhantomJSBrowser = function(baseBrowserDecorator, config, args) {
baseBrowserDecorator(this);
var options = args && args.options || config && config.options || {};
var flags = args && args.flags || config && config.flags || [];
this._start = function(url) {
// create the js f... |
describe('Desolation', function() {
integration(function() {
describe('Desolation\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
provinces: ['magistrate-station'],
... |
var fs = require('fs');
var path = require('path');
var mkdirp = require('mkdirp');
var request = require('request');
// First, look for the download link.
/*jshint maxlen:false */
var binPath;
var filePath;
var detailsPath;
var isWin = (process.platform === 'win32' || process.env.NODE_PLATFORM === 'windows') ? t... |
var express = require('express');
var http = require('http');
var path = require('path');
var pushServer = require('./pushServer');
var consoleLoger = require('./consoleLogger');
var socketIoLogger = require('./socketIoLogger');
var app = express();
var server = http.createServer(app);
var io = require('socke... |
Object.assign = Object.assign || require("react/lib/Object.assign.js");
// from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
if (!String.prototype.includes) {
String.prototype.includes = function() {'use strict';
return String.prototype.indexOf.apply(this, arg... |
define([
'amber/deploy',
// --- packages to be deployed begin here ---
'amber-contrib-web/Web',
'zendo/Zendo',
'zendo/Boomerang'
// --- packages to be deployed end here ---
], function (amber) {
return amber;
});
|
const EventEmitter = require('events').EventEmitter;
const ST_INITED = 0;
const ST_CLOSED = 1;
/**
* Socket class that wraps socket.io socket to provide unified interface for up level.
*/
class SioSocket extends EventEmitter
{
constructor(id, socket)
{
super();
this.id = id;
this.socket = socket;
this.... |
if (typeof kaboom == "undefined"){
var kaboom = {};
}
kaboom.createActor = function(name, sprite, posX, posY){
var a = Object.create(kaboom.actor);
a.init(name, sprite, posX, posY);
return a;
}
kaboom.actor = {
init: function(name, sprite, posX, posY){
this.name = name;
this.sprite... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------*/
'use strict';
var vscode = require('vscode... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var lessMiddleware = require('less-middleware');
//handlebars engine
var hbs = require('express-hand... |
import React from 'react';
import data from '../data';
import classes from './FeIcons.scss';
import getRandom from '../../../utils/getRandom';
/**
* React component implementation.
*
* @author dfilipovic
* @namespace ReactApp
* @class FeIcons
* @extends ReactApp
*/
export class FeIcons extends React.Component {... |
'use strict';
angular.module('newhomezapp.module')
.factory('Listing', ['$resource', function($resource) {
return $resource('listings/:id', {
id: '@id'
}, {
update: {
method: 'PUT',
url: 'listings/:id'
}
});
}]); |
export const PLUGIN_KEY = 'cropit';
export const CLASS_NAMES = {
PREVIEW: 'cropit-preview',
PREVIEW_IMAGE_CONTAINER: 'cropit-preview-image-container',
PREVIEW_IMAGE: 'cropit-preview-image',
PREVIEW_BACKGROUND_CONTAINER: 'cropit-preview-background-container',
PREVIEW_BACKGROUND: 'cropit-preview-backgro... |
import React, { PropTypes } from 'react';
import { List } from 'immutable';
import { TargetableHero, BoardSideDropTarget, CustomDragLayer } from 'containers';
import { Hand, BoardSide } from 'components';
import styles from './Player.scss';
const Player = ({ name, character, hand, board, exhaustedMinionIds, yourTurn,... |
"use strict";
window.Record = (function () {
var record = function (op1, op2, method, answer, success) {
if (hostCheck()) {
jQuery.post(
'record.php',
JSON.stringify({
op1,
op2,
method,
... |
'use strict';
import Color from 'color';
import cssColors from 'colors.css';
import { sortBy } from 'lodash';
import bows from 'bows';
import ColorThief from 'exports-loader?ColorThief!color-thief';
import loadImage from './loadImage';
const { Image } = window;
const log = bows('base64ToColors');
const first = (arr,... |
/**
* Created by nebras on 18/11/16.
*/
function checkPw(form) {
pw1 = form.inputPassword.value;
pw2 = form.confirmPassword.value;
console.log(pw1);
console.log(pw2);
if (pw1 != pw2) {
alert ("\nLe mot de passe renseigné n'est pas le même.")
pw2 = form.confirmPassword.value = ""
... |
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} node
* @return {void} Do not return anything, modify node in-place instead.
*/
var deleteNode = function(node) {
node.val = node.next.val;
node.next ... |
exports.DEFAULT_LOGLEVEL = 0x2;
exports.DEFAULT_URL = process.env['STAGE_URL'] ||
'http://127.0.0.1:8080/';
// Intercom op-codes
exports.SOP_INSTALL = 0x10;
exports.COP_INSTALL = 0x11;
exports.SOP_SETUP = 0x12;
exports.COP_SETUP ... |
var gulp = require('gulp');
var concat = require('gulp-concat');
var sass = require('gulp-dart-sass');
var uglify = require('gulp-uglify');
var paths = {
js: ['js/**.js'],
sass: {
src: ['css/sass/**.scss'],
build: 'css/'
}
};
function generateJs() {
return gulp.src(paths.js... |
import { AppRegistry } from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('Reddit_Mobile', () => App); |
///<reference path="../../../typings/tsd.d.ts" />
///<reference path="../services/data-services.ts" />
var app;
(function (app) {
var controllers;
(function (controllers) {
var HomeController = (function () {
function HomeController($sce, GlobalServices, YoutubeServices, SoundcloudServices, ... |
(function(){
'use strict';
var Request = function($http, $q){
var o = {};
// make a blood request
o.makeRequest = function(requestFormData){
console.log(requestFormData);
var dfd = $q.defer();
$http.post('/api/requests', requestFormData)
.success(function(res){
dfd.resolve(res.data);
}... |
'use strict';
/*
Copyright 2017 Google 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
var app = angular.module("exploreModule", []);
|
require(['es6!src/class']); |
/*Module Dependencies*/
var Pieza = require('../piezas/Pieza'),
Caballo = require('../piezas/Caballo'),
Peon = require('../piezas/Peon'),
Reina = require('../piezas/Reina'),
Rey = require('../piezas/Rey'),
Torre = require('../piezas/Torre'),
Analizer = require('./Analizer');
/*
*================================... |
define(
"famous-animation/Sequence",
[
"require",
"exports",
"module"
],
function (t, i, e)
{
function s() {
this.startTime = 0, this.setupPos = 0, this.schedule = [], this.seqLoc = -1
}
s.prototype._execute = function (t) {
for (this.seqLoc... |
var css = new Peggy(
{
"sheet": ["rules"],
"rules": ["+", "rule"],
//"medias": ["*", "media"],
//"imports": ["*", "import"],
"rule": [ "ruleName", "openBracket", "ruleBody", "closeBracket" ],
"ruleName": [/\w+/, ["*", "whitespace"]],
"openBracket": [/\{/, ["*", "whitespace"]],
"ruleBody": ["*", "proper... |
import React, { useEffect, useState } from "react";
import { useParams } from "react-router-dom";
import { Link } from "react-router-dom";
import store from "store2";
import { maxHistoryLength } from "./consts";
import decodeCategories from "categories/decodeCategories";
import ShortcutPicker from "./ShortcutPicker";
... |
import React from 'react';
import PropTypes from 'prop-types';
import { ThemeProvider } from 'react-css-themr';
import { EVENT_ID_INIT, EVENT_ID_DATA } from '../';
class ReactCSSThemr extends React.Component {
constructor(props) {
super(props);
this.onReceiveData = this.onReceiveData.bind(this);
this.st... |
if (process.env.NODE === 'production') {
module.exports = require('./prod.js');
} else {
module.exports = require('./dev.js');
}
|
var gulp = require('gulp'),
webserver = require('gulp-webserver'),
stylus= require('gulp-stylus'),
newer = require('gulp-newer'),
nib = require('nib'),
imagemin= require('gulp-imagemin'),
minify = require('gulp-minify-css'),
watch = require('gulp-watch'),
browserify = require('browserify'),
source = requi... |
window.points = [{ x: 612,
y: 310,
src: 'N0001_612_310.jpg'
},
{ x: 806,
y: 138,
src: 'N0002_806_138.jpg'
},
{ x: 278,
y: 398,
src: 'N0003_278_398.jpg'
},
{ x: 421,
y: 315,
src: 'N0004_421_315.jpg'
},
{ x: 278,
y: 279,
src: 'N0005_278_279.jpg'
},
{ x: 831,
y: 290,
src: 'N0006_831_290.jpg'
},
{ ... |
// JavaScript Document
$(function(){
//导航部分开始
(function(){
var oNav=document.getElementById('nav');
var oBg = oNav.children[0];
var aLi=oNav.children[1].children;
for(var i=0;i<aLi.length;i++)
{
aLi[i].onmouseover=function ()
{
move(oBg, this.offsetLeft);
};
}
var left=0;
var spee... |
'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'OK',
clear: 'Zmazať'
},
datepicker: {
now: 'Teraz',
today: 'Dnes',
cancel: 'Zrušiť',
clear: 'Zmazať',
confirm: 'OK',
selectDate: 'Vybrať dátum',
selectTime: 'V... |
// var gomoku = (function(){
// var units = [];
// var initUnits = (function(i,j){
// for (var i = 0; i < 15; i++) {
// units.push([]);
// for(var j = 0; j<15 ; j++){
// units[i].push({
// checked: false,
// color: ... |
"use strict";
var test = require("tape").test
var filter = require("../")
var spigot = require("stream-spigot")
var concat = require("concat-stream")
test("ctor", function (t) {
t.plan(2)
var Filter = filter.ctor(function (record) {
return !record.skip
})
function combine(records) {
t.equals(record... |
require([
"../../../_util/router.js",
"../../../_util/data/release-creator.js",
"routed/Request",
"dojo/on",
"dojorama/service/release-store",
"dojorama/ui/release/widget/ReleaseGridWidget",
"dojo/domReady!"
], function (
router,
releaseCreator,
Request,
on,
releaseStore,... |
import actions from './actions';
export const dispatchInitialShell = (ctx, dispatch) => {
// If user is a bot, or if user has a "nojs" querystring or cookie, do full
// server-side rendering. Otherwise, use logic to bypass API requests.
const isBot = (ctx.headers['user-agent'] || '').indexOf('bot') > -1;
const... |
// Generated by CoffeeScript 1.7.1
(function() {
module.exports = {
'person': 'pet',
'pet': 'feed'
};
}).call(this);
|
var WindowManager = require('helper/WindowManager');
var Utils = require('helper/Utils');
var Cloud = require('ti.cloud');
WindowManager.include(
'/views/likes/create',
'/views/likes/remove'
);
exports['Likes'] = function(evt) {
var win = WindowManager.createWindow({
backgroundColor: 'white'
});
var table = Ti.... |
/**
* katia-requests
*
* @description A middleware to easily call server functions from an Angular application.
* @author Loïc Poullain <loic.poullain@centraliens.net>
* @copyright 2015 Loïc Poullain
* @license MIT
*/
/* Module dependencies */
// Middlewares
var express = require('express');
var bodyParser ... |
/**
* Created by peter on 19/12/2016.
*/
import React, {Component} from 'react';
import dismissKeyboard from 'dismissKeyboard';
import {Actions} from 'react-native-router-flux';
import DatePicker from 'react-native-datepicker';
import * as helpers from '../helpers';
import * as components from '../';
import * as con... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const vscode_1 = require("vscode");
const gmlGlobals = require("./gmlGlobals");
const GMLHoverProvider = ((() => {
class GMLHoverProvider {
provideHover(document, position, token) {
let enable = vscode_1.workspace.getCo... |
import React from 'react';
import renderer from 'react-test-renderer';
import EventList from './EventList';
describe('<EventList />', () => {
const Jul_10_2017 = 1499662800000;
const Jul_11_2017 = 1499749200000;
let props;
const eventList = () => renderer.create(<EventList {...props} />);
beforeEach(() => ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.