code stringlengths 2 1.05M |
|---|
function runningLogger(){
console.log("I am running");
}
runningLogger();
function multiplyByTen(num){
console.log(num*10);
}
multiplyByTen(20);
function stringReturnOne(){
return 'One';
}
function stringReturnTwo(){
return 'two';
}
console.log(stringReturnOne(), stringReturnTwo());
fun... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
module.exports = function (gulp = require("gulp"), options) {
require("./build/")(gulp, options);
require("./watch/")(gulp, options);
};
|
/**
* @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... |
module.exports = {
app: 'src/main/webapp/',
dist: 'build/www/',
test: 'src/test/javascript/',
scss: 'src/main/webapp/scss/',
sassSrc: 'src/main/webapp/scss/**/*.{scss,sass}',
sassVendor: 'src/main/webapp/scss/vendor.scss',
cssDir: 'src/main/webapp/content/css',
bower: 'src/main/webapp/bo... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function() {
CKEDITOR.dialog.add('pastetext', function(a) {
return{title:a.lang.pasteText.title,minWidth:CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,minHeig... |
/**
* @fileoverview Validate strings passed to the RegExp constructor
* @author Michael Ficarra
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var eslintTester = require("eslint-tes... |
var express = require ('express'),
bodyParser = require('body-parser'),
rand = require('generate-key'),
app = express(),
data = {
users: [],
chirps: [],
};
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
function authUser (username, key) {
var user = dat... |
var inflect = require('i')();
module.exports = function defineField(Proto, Klass, fieldName) {
var prop = Proto[fieldName]
, columnName = !!Klass.underscored ? inflect.underscore(fieldName) : fieldName;
if (!!prop.columnName && fieldName !== prop.columnName) {
Klass.aliases.push({ fieldName:... |
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
formlyConfig: {
hostname: 'localhost', // change to 0.0.0.0 to listen on all connections
base: 'src',
port: 4000,
livereloadport: 35701
},
connect: {
dev: {
... |
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to... |
var getMeshMixin = require('../getMeshMixin');
var registerPrimitive = require('../registerPrimitive');
var utils = require('../../../utils/');
registerPrimitive('a-image', utils.extendDeep({}, getMeshMixin(), {
defaultComponents: {
geometry: {
primitive: 'plane'
},
material: {
color: '#FFF',... |
let p;
let a = function () {
var _ret;
while (p = p.parentPath) {
if (a) {
_ret = 'a';
} else {
_ret = 'b';
}
}
return _ret;
}();
|
/**
* HD-keret Tab
*
* @description Tab-kezelő
* @requires jQuery
* @example
* HTML-CSS: http://blog.webprog.biz/jquery-tabok
* const tab = new HD.Site.Tab({
* $trigger : $('ul.tab li'),
* activeClass : 'selected'
* });
* tab.init();
*/
/* global $ */
'use strict';
var HD = window.HD || {};... |
var _ = require('lodash');
module.exports = {
formatObjectKeys: function (o) {
var nO = {};
_.forIn(o, function (v, k, o) {
nO[ _.camelCase(k) ] = v;
});
return nO;
}
}; |
import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
render(
<Provider... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
function Animator(target, animations) {
var anims, // list of all animations
cursor, // pointer to the current animation
events = {
/*
This event fires whenever the current animation is c... |
'use strict';
/**
* Benchmark dependencies.
*/
var microtime = require('microtime')
, benchmark = require('benchmark')
, yaml = require('yamlparser')
, path = require('path')
, fs = require('fs');
/**
* Useragent parsers.
*/
var useragent2 = require('../')
, useragent = require('useragent');
/**
* Fi... |
//easyUi三级级联菜单 作者:chenhu
var menu1Data;
var menu2Data;
var menu3Data;
/**
*
* @param m1(1级菜单)
* @param m2(2级菜单)
* @param m3(3级菜单)
*/
function initMenu(m1,m2,m3){
var value1=$("#"+m1).val();
if(value1==""||value1==undefined){
value1='c1';
}
var srmCombx = $("#"+m1).combobox({
loader:function(param,succe... |
require("requirish")._(module);
var _ = require("underscore");
var should = require("should");
var server_engine = require("lib/server/server_engine");
var resolveNodeId = require("lib/datamodel/nodeid").resolveNodeId;
var DataValue = require("lib/datamodel/datavalue").DataValue;
var Variant = require("lib/datamodel/... |
// Copyright (c) 2005 Thomas Fuchs (http://mir.aculo.us)
//
// 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, m... |
/*! jQuery UI - v1.10.3 - 2013-10-05
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.it={closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio"... |
version https://git-lfs.github.com/spec/v1
oid sha256:100a892c56984f35e6998ee87a41df5bba6cc5f68c5fbdde5688c75bfb64ea4a
size 15974
|
define([
"dojo",
"dojox",
"dojo/_base/connect",
"dojo/_base/declare"
], function(dojo, dojox) {
dojo.declare("dojox.editor.plugins._SpellCheckParser", null, {
lang: "english",
parseIntoWords: function(/*String*/ text){
// summary:
// Parse the text into words
// text:
// Plain text without html tags
... |
'use strict';
import path from 'path';
export default function(gulp, plugins, args, config, taskTarget, browserSync) {
let dirs = config.directories;
// Watch task
gulp.task('watch', () => {
if (!args.production) {
// Styles
gulp.watch([
path.join(dirs.source, dirs.styles, '**/*.{scss,s... |
define(function(require, exports, module)
{
var Class = require('class'),
pv = require('pgui.validation'),
_ = require('underscore');
exports.ModalOperationLink = Class.extend({
init: function(container, parentGrid)
{
this.parentGrid... |
'use strict';
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Ob... |
function* G() {
yield 'hi';
yield 'there';
}
function f(...args) {
return args;
}
var result = f(0, ...[1, 2], 3, ...G());
expect(result).toEqual([0, 1, 2, 3, 'hi', 'there']);
result = f(...G());
expect(result).toEqual(['hi', 'there']);
function g() {
'use strict';
expect(this).toBeUndefined();
}
g();
g(... |
rf.StandaloneDashboard(function(db){
var chart = new ChartComponent('someid');
chart.setDimensions (4, 4);
chart.setCaption("Expenses incurred on Food Consumption by Year");
chart.setLabels (["2009", "2010", "2011"]);
chart.addSeries ("beverages", "Beverages", [1355, 1916, 1150]);
chart.addSeries ("packaged_foods... |
//used for the media picker dialog
angular.module("umbraco").controller("Umbraco.Overlays.TreePickerController",
function ($scope, entityResource, eventsService, $log, searchService, angularHelper, $timeout, localizationService, treeService) {
var tree = null;
var dialogOptions = $scope.model;
$s... |
var objLoader = new yOSON.Components.Loader(schema);
objLoader.init(yOSON.module, yOSON.controller, yOSON.action);
|
(function () {
'use strict';
var home = angular.module("flexget.home", ['angular.filter']);
registerPlugin(home);
home.run(function (route) {
route.register('home', '/home', 'home');
});
})();
|
const { test } = QUnit;
export default function(message, testFn) {
const isPhantom = navigator.userAgent.indexOf('PhantomJS') !== -1;
if (isPhantom) {
message = '[SKIPPED in PhantomJS] ' + message;
testFn = (assert) => assert.ok(true);
}
test(message, testFn);
}
|
IonicModule
.directive('ionHeaderBar', tapScrollToTopDirective())
/**
* @ngdoc directive
* @name ionHeaderBar
* @module ionic
* @restrict E
*
* @description
* Adds a fixed header bar above some content.
*
* Can also be a subheader (lower down) if the 'bar-subheader' class is applied.
* See [the header CSS d... |
import { ChangeDetectionStrategy, Component, ContentChildren, ContentChild, Directive, ElementRef, EventEmitter, Input, Optional, Output, Renderer, ViewEncapsulation, NgZone } from '@angular/core';
import { isPresent, swipeShouldReset } from '../../util/util';
import { Item } from './item';
import { List } from '../lis... |
var controlCajaApp = angular.module('controlCajaApp', ['ngRoute']);
controlCajaApp.config(function ($routeProvider) {
$routeProvider
.when('/', {
controller: 'ControlCajaCtrl',
controllerAs: 'controlCaja',
templateUrl: 'total.html'
})
.when('/nuevo', {
... |
var _ = require('underscore');
var util = require('util');
var fs = require('fs');
var mkdirp = require('mkdirp');
var getGames = function(data) {
var yearsKey = data.start.substring(2) + '-' + data.end.substring(2);
var items = _.filter(data.matches,
{ 'Div': data.division, 'Years': yearsKey }
);
item... |
var gulp = require('gulp');
var path = require('path');
var $ = require('gulp-load-plugins')();
var del = require('del');
var environment = $.util.env.type || 'development';
var isProduction = environment === 'production';
var webpackConfig = require('./webpack.config.js')[environment];
var port = $.util.env.port || ... |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.format.GPX');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.proj');
goog.require('ol.source.BingMaps');
goog.require('ol.source.GPX');
goog.require('ol.style.Circle');
goog.require('ol.style.Fill');
goog.require('ol.sty... |
import {UPDATE_JWT, UNAUTHENTICATED_ERROR} from 'src/common/actions/types'
const initialState = {
currentUser: null,
lgJWT: null,
isBusy: false,
}
export default function auth(state = initialState, action) {
switch (action.type) {
case UNAUTHENTICATED_ERROR:
return Object.assign({}, state, {
... |
/**
*
* Get tag name of a DOM-element found by given selector.
*
* <example>
:index.html
<div id="elem">Lorem ipsum</div>
:getTagNameAsync.js
client.getTagName('#elem').then(function(tagName) {
console.log(tagName); // outputs: "div"
});
:getTagNameSync.js
it('should demonstrat... |
define(['jquery', 'domReady!'], function ($) {
'use strict';
/**
* scroll to the bottom of text
*/
function consoleScroll() {
var logData = document.getElementById('log_data'),
dh = logData.scrollHeight,
ch = logData.clientHeight;
if (dh > ch) {
... |
/**
* @author Adam Meadows [@job13er](https://github.com/job13er)
* @copyright 2015 Ciena Corporation. All rightst reserverd.
*/
/* eslint-disable max-nested-callbacks */
import _ from 'lodash';
import $ from 'jquery';
import React from 'react/addons';
import rewireComponents, {createStubComponent} from 'beaker/li... |
/* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['../core'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('../core'));
} else { // Browser
root.Blockly.Msg = factory(root.Blockly);
}
}... |
define(
//begin v1.x content
{
"dateFormatItem-Ehm": "E, h:mm a",
"days-standAlone-short": [
"не",
"по",
"ут",
"ср",
"че",
"пе",
"су"
],
"months-format-narrow": [
"ј",
"ф",
"м",
"а",
"м",
"ј",
"ј",
"а",
"с",
"о",
"н",
"д"
],
"field-second-relative+0": "сада",
"quarters-stand... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
Copyright (c) 2009 Jason Booth
http://www.cocos2d-x.org
Permission is hereby granted, free of... |
run_spec(__dirname, ["json"], { insertPragma: true });
|
var path = require('path');
var isProduction = process.env.NODE_ENV === 'production';
var config = {
entry: path.resolve(__dirname, 'src/Cerebral.js'),
devtool: 'eval-source-map',
output: {
path: path.resolve(__dirname, isProduction ? 'dist' : 'build'),
libraryTarget: 'umd',
library: 'Cerebral',
... |
var gulp = require('gulp');
var config = require('../../config');
gulp.task('$usemin', ['$inject-files'], function () {
var usemin = require('gulp-usemin');
var minifyCss = require('gulp-minify-css');
var ngAnnotate = require('gulp-ng-annotate');
var inject = require('gulp-inject');
var processhtml... |
require(['requirescript'], function() {
require(['init_youtubeviewer'], function (init_youtubeviewer) {
require(['launch']);
});
});
|
/**
* UIFactory is an factory object used to keep the keystone field elements
* somewhat DRY.
* @alias UIFactory
* @param {Object} types The keystone.Field.Types object.
* @constructor
*
*/
module.exports = function UIFactory(types) {
var _cons = function(opts) {
opts = opts || {};
return opts;
};
/**
... |
/**
* Copyright Marc J. Schmidt. See the LICENSE file at the top-level
* directory of this distribution and at
* https://github.com/marcj/css-element-queries/blob/master/LICENSE.
*/
;
(function() {
// Only used for the dirty checking, so the event callback count is limted to max 1 call per fps per sensor.
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
(function(){CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",lang:"en",init:function(a){if(!a.blockless){var b;b=new CKEDITOR.dialogCommand("numberedListStyle",{re... |
import Rectangle from "src/dataTypes/geometry/Rectangle";
import StringList from "src/dataTypes/strings/StringList";
import NumberListOperators from "src/operators/numeric/numberList/NumberListOperators";
function NumberListDraw() {}
export default NumberListDraw;
/**
* draws a simple graph
* @param {Rectangle} fr... |
'use strict';
var Collection = require('ampersand-collection');
var LodashMixin = require('ampersand-collection-lodash-mixin');
module.exports = Collection.extend(LodashMixin);
|
var searchData=
[
['integer_20functions',['Integer functions',['../a00787.html',1,'']]],
['i16',['i16',['../a00721.html#ga3ab5fe184343d394fb6c2723c3ee3699',1,'glm']]],
['i16vec1',['i16vec1',['../a00721.html#gafe730798732aa7b0647096a004db1b1c',1,'glm']]],
['i16vec2',['i16vec2',['../a00721.html#ga2996630ba7b... |
define(
({
loading: 'Betöltés...',
loadMore: 'Továbbiak betöltése'
})
);
|
import Head from 'next/head'
import Post from '../components/post'
export async function getStaticProps() {
// fetch list of posts
const response = await fetch(
'https://jsonplaceholder.typicode.com/posts?_page=1'
)
const postList = await response.json()
return {
props: {
postList,
},
}
... |
/*!
* CanJS - 2.2.7
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Fri, 24 Jul 2015 20:57:32 GMT
* Licensed MIT
*/
/*can@2.2.7#control/plugin/plugin*/
define([
'jquery',
'can/util/library',
'can/control'
], function ($, can) {
$ = $ || window.$;
var i, isAControllerOf = function (instance,... |
function ResourceManager(options) {
var t = this;
// exports
t.fetchResources = fetchResources;
t.setResources = setResources;
t.mutateResourceEvent = mutateResourceEvent;
// locals
var resourceSources = [];
var cache;
// initialize the resources.
setResources(options.resources);
// add the resour... |
export default {
selectedTypes (state = [], action) {
const { t } = action
const index = state.indexOf(t)
const newState = [...state]
if (index === -1) {
newState.push(t)
} else {
newState.splice(index, 1)
}
switch (action.type) {
case 'SELECT_TYPE':
return newS... |
/**
* mvi - methods to perform multivariate interpolation
*
* Copyright (c) 2013 Cameron Beccario
* The MIT License - http://opensource.org/licenses/MIT
* https://github.com/cambecc/air
*
* Thin plate spline code adapted from TPSDemo, Copyright (c) 2003, 2004, 2005 by Jarno Elonen.
* http://elonen.iki.fi/code/t... |
import { addCallback } from 'meteor/vulcan:core';
// limit the number of items that can be requested at once
function CommentsMaxLimit (parameters, terms) {
var maxLimit = 1000;
// if a limit was provided with the terms, add it too (note: limit=0 means "no limit")
if (typeof terms.limit !== 'undefined') {
_.... |
/**
* @license Highcharts JS v7.0.0 (2018-12-11)
*
* Indicator series type for Highstock
*
* (c) 2010-2018 Daniel Studencki
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof define =... |
module.exports = {
'.react-tabs [role=tablist]': {
'border-bottom': '1px solid #aaa',
'margin': '0 0 10px',
'padding': '0'
},
'.react-tabs [role=tab]': {
'display': 'inline-block',
'border': '1px solid transparent',
'border-bottom': 'none',
'bottom': '-1px',
'position': 'relative'... |
var Terminal = (function() {
var history = (localStorage.getItem("history") ? localStorage.getItem("history").split(",") : []),
historyIndex = history.length;
self = {};
var KEY_UP = 38,
KEY_DOWN = 40,
KEY_TAB = 9;
// Auxiliary functions
var resetPrompt = function(t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.nil = exports.UUID = undefined;
var _crypto;
function _load_crypto() {
return _crypto = require("crypto");
}
const invalidName = "options.name must be either a string or a Buffer";
const moreThan10000 = "can not generate mo... |
it("should allow wasm with unused exports", function() {
return import("./module").then(function(module) {
const result = module.run();
expect(result).toEqual(42);
});
});
|
/*!
* froala_editor v2.9.3 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory)... |
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: []
}
|
console.log("Hello World");
console.log(require('./content-1.js'));
if(window.location.href.indexOf('load') !== -1 ) {
console.log(require('./content-2.js'));
}
|
'use strict';
var request = require('request');
var fs = require('fs');
var sca = "https://soichi7.ppa.iu.edu/api";
var jwt = fs.readFileSync('/home/hayashis/.sca/keys/cli.jwt', {encoding: 'ascii'}).trim();
request.get({
url: sca+"/sca/resource/best",
json: true,
headers: { 'Authorization': 'Bearer '+jwt... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
var SimpleDom = require('simple-dom'),
Renderer = require('mobiledoc-dom-renderer').default,
config = require('../config'),
logging = require('../logging'),
errors = require('../errors'),
defaults = require(config.get('paths').internalAppPath + 'default-cards'),
options = {... |
// Load modules
var Utils = require('./utils');
// Declare internals
var internals = {
delimiter: '&',
arrayPrefixGenerators: {
brackets: function (prefix, key) {
return prefix + '[]';
},
indices: function (prefix, key) {
return prefix + '[' ... |
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
'use strict';
// Flags: --expose-internals
// This test ensures that the type checking of ModuleMap throws
// errors appropriately
require('../common');
const assert = require('assert');
const { URL } = require('url');
const { Loader } = require('internal/modules/esm/loader');
const ModuleMap = require('internal/mod... |
/*!
* Bootstrap-select v1.13.6 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof... |
var resemblejs = require('resemblejs');
var canvas = require('canvas');
var imageType = require('image-type');
module.exports = function() {
//override FileReader
this.FileReader = function(){};
this.FileReader.prototype.readAsDataURL = function(buffer) {
this.onload({
target: {
... |
/* Blob.js
* A Blob implementation.
* 2014-07-24
*
* By Eli Grey, http://eligrey.com
* By Devin Samarin, https://github.com/dsamarin
* License: MIT
* See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
*/
/*global self, unescape */
/*jslint bitwise: true, regexp: true, confusion: true, e... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { Angulartics2UirouterModule, UIRouterTracking } from './public_api';
//# sourceMappingURL=data:application/json;base64,ey... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Typography from '../Typograp... |
import CodeMirror from 'codemirror';
import 'codemirror/addon/runmode/runmode';
import 'codemirror/mode/jsx/jsx';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, browserHistory} from 'react-router';
import Root from './src/Root';
import routes from './src/Routes';
import 'bootstrap/less/... |
Clazz.declarePackage ("J.constant");
Clazz.load (["java.lang.Enum"], "J.constant.EnumAnimationMode", null, function () {
c$ = Clazz.declareType (J.constant, "EnumAnimationMode", Enum);
Clazz.defineEnumConstant (c$, "ONCE", 0, []);
Clazz.defineEnumConstant (c$, "LOOP", 1, []);
Clazz.defineEnumConstant (c$, "PALINDR... |
$(document).click(function (event) {
if (
$('.toggle > input').is(':checked') &&
!$(event.target).parents('.toggle').is('.toggle')
) {
$('.toggle > input').prop('checked', false);
}
}); |
define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var lang = require("../lib/lang");
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
var HtmlHighlightRules = require("./html_highlight_rules").HtmlHighlightRules;
var CSharpHighli... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'vi', {
alt: 'Chú thích ảnh',
btnUpload: 'Tải lên máy chủ',
captioned: 'Ảnh có chú thích',
captionPlaceholder: 'Caption', // MISSING
in... |
var assert = require('assert');
describe('csscomb methods', function() {
it('getConfig()', function() {
var config = require('../../../config/csscomb.json');
assert.equal(this.Comb.getConfig(), config);
});
it('getConfig(number)', function() {
assert.throws(function() {
... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("./Compilation")} Compilation */
/** @typedef {import("./NormalModule")} NormalModule */
/** @typedef {Record<string, any>} PreparsedAst */
/**
* @typedef {Object} ParserStateBase
... |
var parent = require('../../actual/string/fixed');
module.exports = parent;
|
import type { Action } from "../actions/types";
import { SET_INDEX } from "../actions/list";
export type State = {
list: string
};
const initialState = {
list: [
"React Native Starter Kit",
"React Navigation",
"NativeBase Easy Grid",
"NativeBase",
"CodePush",
"Redux"
],
selectedIndex: ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
suite('rb/resources/models/ValidateDiffModel', function() {
var model;
beforeEach(function() {
model = new RB.ValidateDiffModel();
});
describe('methods', function() {
describe('url', function() {
it('Without local site', function() {
expect(_.result(model, ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
/* global toastr:false, moment:false */
(function () {
'use strict';
angular
.module('app.core')
.constant('moment', moment)
.constant('toastr', toastr);
})();
|
/**
* 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 _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; };
/* Tabulator v4.1.1 (c) Oliver Folkerd */
var Va... |
import React, {Component} from "react";
import App from "../components/App";
class Root extends Component {
constructor() {
super();
}
render() {
return (
<div className="boilerplate-app personaBar-mainContainer">
<App />
</div>
);
}
}
e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.