code stringlengths 2 1.05M |
|---|
"use strict";
angular.module('myApp', ['ionic','ngCordova','myApp.controllers'])
.run(function($ionicPlatform, $cordovaStatusbar) {
// どうもうまく動作しない
// $ionicPlatform.ready(function() {
// });
// document.addEventListener("deviceready", function() {
// $cordovaStatusbar.overlaysWebView(true);
// }, false);
... |
var express = require('express');
var request = require('request');
var cheerio = require('cheerio');
var cache = require('memory-cache');
var config = require('../config');
var routes = function (s) {
var productRouter = express.Router();
var prds = [] ;
var item = {} ;
var scrape = function(html){
... |
import React, { Component } from 'react';
import FitImage from 'react-native-fit-image';
import {
StyleSheet,
View,
ListView,
} from 'react-native';
import {
MoviePoster,
} from '../';
export default class MovieGrid extends React.Component {
constructor(props) {
super(props);
const rows = createRo... |
// Default Settings
jqueryPopup = Object();
jqueryPopup.defaultSettings = {
centerBrowser:0, // center window over browser window? {1 (YES) or 0 (NO)}. overrides top and left
centerScreen:0, // center window over entire screen? {1 (YES) or 0 (NO)}. overrides top and left
height:500, // sets the height in pixels o... |
var fs = require('fs')
, path = require('path')
, jsonParser = require('./jsonparser')
, crypto = require('crypto');
/** Function: storeScreenShot
* Stores base64 encoded PNG data to the file at the given path.
*
* Parameters:
* (String) data - PNG data, encoded in base64
* (String) file ... |
export default class Mailer {}
|
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
'use strict';
/**
* Handles matching page URL with defined connectors and injecting scripts into content document
*/
define([
'connectors',
'config',
'objects/injectResult',
'customPatterns'
], function (connectors, config, injectResult, customPatterns) {
/**
* Creates regex from single match pattern
*
* ... |
/**
* Logger with winston
* require: var log = require('log')
* ex: log.info("something")
* */
var winston = require('winston');
// log
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({
name: 'info-file',
filename: './log/winston-info.log',
... |
var asteroids = asteroids || {};
asteroids.Asteroid = function(ctx) {
return {
position: {
x: 0,
y: 0
},
parts: [
[
[0, 100], [75, 100], [100, 0], [75, 25], [50, -100], [0, -100], [-25, -100], [-25, -50], [-100, 0], [0, 100]
]
... |
module.exports = function(grunt){
"use strict";
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
banner: '/*!\n' +
'*@concat.min.css\n' +
'*@CSS Document for ... |
'use strict';
const Mongoose = require('mongoose');
const RestHapi = require('rest-hapi');
const Config = require('../config');
exports.register = function(server, options, next) {
RestHapi.config = Config.get('/restHapiConfig');
server.register({
register: RestHapi,
options: {
m... |
var gulp = require('gulp');
var del = require('del');
var connect = require('gulp-connect');
var gulpNgConfig = require('gulp-ng-config');
var includeSources = require('gulp-include-source');
var runSequence = require('run-sequence');
var proxy = require('http-proxy-middleware');
var inject = require('gulp-injec... |
/* Copyright (c) 2013-2014 Richard Rodger, MIT License */
"use strict";
var _ = require('underscore')
var express = require('express')
var cookieparser = require('cookie-parser')
var qs = require('qs')
var bodyparser = require('body-parser')
var session = require('express-session')
// middle... |
var options = {
port_range_start:7000,
port_range_end:7999,
};
module.exports = options;
|
function grid(pattern){
this.currentGrid = pattern;
this.nextGrid = [];
this.details = {
width : pattern[0].length,
height : pattern[0].length
};
this.generation = 0;
}
grid.prototype.isValidLocation = function(row, col){
var grid = this.currentGrid;
var validLocation = true,
rowLength = ... |
'use strict';
module.exports = Module._createSub('header');
module.exports.prototype.init = (function() {
var setOptions = (function() {
var params = {
el: null,
el_main: null,
data: {}
};
return function(options) {
options = $.extend({}, para... |
import Vue from 'vue'
import Router from 'vue-router'
import Cmd from '@/components/Cmd'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'Cmd',
component: Cmd
}
]
})
|
'use strict';
const chai = require('chai');
const chaiStuff = require('chai-stuff');
const nock = require('nock');
const Taxjar = require('../dist/taxjar');
const rateMock = require('./mocks/rates');
const taxMock = require('./mocks/taxes');
const customerMock = require('./mocks/customers');
const orderMock = require... |
import { expect } from 'chai';
import { parseDialogue } from '../../src/parser/dialogue.js';
import { compileDialogues } from '../../src/compiler/dialogues.js';
import { compileStyles } from '../../src/compiler/styles.js';
import { eventsFormat } from '../../src/utils.js';
describe('dialogues compiler', () => {
cons... |
var STATES = {
HOME: "home",
COURSEINFO: "courseInfo",
COURSEINFO_CREATE: "courseInfo.create",
COURSEINFO_MANAGE: "courseInfo.manage",
COURSEINFO_STUDENT: "courseInfo.student",
COURSEINFO_SENDMAIL: "courseInfo.Sendmail",
OTHERS: "others",
OTHERS_CERTIFICATION: "others.certification... |
import {customElement} from 'aurelia-templating';
@customElement('test-element')
export class TestElement {
}
|
// js/modules/search/shsearch.js
define(['modules/media/jrpadHandler', 'indeed', 'indeedKey'], function(Ads) {
// if there is a problem loading the Indeed tracking api, indeedTracking.js will be loaded as the fallback where var blocked is defined.
if (typeof blocked !== 'undefined') {
require(['modules/media/adblo... |
// Filename: models/comment
define([
'underscore',
'backbone',
'scripts/main/collections/comment'
], function (_, Backbone, CommentCollection) {
var CommentModel = Backbone.Model.extend({
urlRoot : '/j/comment',
url : function (url){return this.urlRoot + ( this.id ? ('/' + this.id ... |
import { fabric } from 'fabric';
import extend from 'tui-code-snippet/object/extend';
import isExisty from 'tui-code-snippet/type/isExisty';
import forEach from 'tui-code-snippet/collection/forEach';
import Component from '@/interface/component';
import { stamp } from '@/util';
import { componentNames, eventNames as ev... |
var {vowelsCount} = require('../questions/vowelsCount.js');
describe('统计给定的字符串中的元音被字母(a, e, i, o, u)的数量', function(){
it('null值返回', function(){
var count = vowelsCount(null);
expect(count).toBe(0);
});
it('不含元音字母的情况', function(){
var count = vowelsCount('b');
expect(count).t... |
jQuery(document).ready(function($){
jQuery.ajax
({
type : "post",
dataType : "html",
url : AsposeDocParams['aspose_files_url'],
data : {appSID: AsposeDocParams['appSID'], appKey : AsposeDocParams['appKey']},
success: function(response) {
$('#aspose_c... |
/*
* Test File
*/
/* another comment on dancing.js */
var unused;
/**
* some more comments
*/
var x = function () {
return 1 + 1;
};
x();
// i am not important
console.log('Yeyyy... this is great!') |
// --------------------------------------------------------------------------------------------------------------------
//
// coupon-code.js : An implementation of Perl's Algorithm::CouponCode for NodeJS.
//
// Author : Andrew Chilton
// Web : http://www.chilts.org/blog/
// Email : <an... |
import parseTemplate from '~/template';
import ValueType from './';
/**
* @extends ValueType
* @deprecated
*/
export default class TemplateType extends ValueType {
static typeName = 'template';
getTemplate() {
return this.options.get('template');
}
getValue(renderData) {
return parseTemplate(this... |
'use strict';
/**
* @ngdoc function
* @name todoApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the todoApp
*/
angular.module('todoApp')
.controller('MainCtrl', function ($scope,localStorageService) {
var todosInStore = localStorageService.get('todos');
$scope.todos = todosInS... |
module.exports = function(grunt) {
grunt.initConfig({
nodewebkit: {
options: {
build_dir: './build', // Where the build version of my node-webkit app is saved
credits: './public/credits.html',
mac: true, // We want to build it for mac
win: false, // We want to build it for w... |
/* eslint-env mocha */
import expect from 'expect';
import fFunction from '../../src/types/function.js';
describe('function', () => {
context('.name', () => {
it('is "function"', () => {
expect(fFunction.name).toEqual('function');
});
});
context('.checker', () => {
it('accepts a function', (... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDevConfig = function (_wco) {
return {};
};
//# sourceMappingURL=/users/johnny/myfiles/angular-cli/models/webpack-configs/development.js.map |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
dist: {
src: ['src/**/*.js', '!src/**/*.spec.js'],
dest: 'dist/<%= pkg.name %>.j... |
// Posts
export const LOAD_POSTS_REQUEST = 'LOAD_POSTS_REQUEST';
export const LOAD_POSTS_SUCCESS = 'LOAD_POSTS_SUCCESS';
export const LOAD_POSTS_FAILURE = 'LOAD_POSTS_FAILURE';
// Single Post
export const LOAD_POST_REQUEST = 'LOAD_POST_REQUEST';
export const LOAD_POST_SUCCESS = 'LOAD_POST_SUCCESS';
export const LOAD_P... |
import React, { Component } from 'react';
import './index.scss'
class SearchSuggestion extends Component {
render() {
return (
<div className="suggestionComponent"
onClick={() => this.props.onAddSuggestion(this.props.suggestion)}>
{this.props.suggestion}
</div>
);
}
}
// Expor... |
version https://git-lfs.github.com/spec/v1
oid sha256:b356402019f09eac66a06773861cc287e74ce3639293742832155fa8316c6367
size 31143
|
/* Thing > CreativeWork > MediaObject - An image, video, or audio object embedded in a web page. Note that a creative work may have many media objects associated with it on the same web page. For example, a page about a single song (MusicRecording) may have a music video (VideoObject), and a high and low bandwidth audi... |
// All symbols in the `Katakana` script as per Unicode v4.1.0:
[
'\u30A1',
'\u30A2',
'\u30A3',
'\u30A4',
'\u30A5',
'\u30A6',
'\u30A7',
'\u30A8',
'\u30A9',
'\u30AA',
'\u30AB',
'\u30AC',
'\u30AD',
'\u30AE',
'\u30AF',
'\u30B0',
'\u30B1',
'\u30B2',
'\u30B3',
'\u30B4',
'\u30B5',
'\u30B6',
'\u30B7',
'... |
import React from 'react'
import { shallow } from 'enzyme'
import LoadingDots from './LoadingDots'
describe('ClassName', () => {
test('Applies custom className if specified', () => {
const customClass = 'piano-key-neck-tie'
const wrapper = shallow(<LoadingDots className={customClass} />)
expect(wrapper.... |
import * as THREE from "three";
import * as Tags from "../tags";
import * as MathUtil from "../util/math";
import mouseWheel from "mouse-wheel";
import query from "../util/query-string";
export default function UserZoomSystem(world, props) {
const e = world.entity("UserZoomEntity").add(Tags.UserZoom, props);
... |
import React from 'react';
import PropTypes from 'prop-types';
const DeveloperTopStarredRepos = ({ data }) => (
<div>
<h1 className="title">En Çok Star Alan Repolar</h1>
<h2 className="subtitle">
Bu geliştiricinin en çok start alan repoları
</h2>
<hr />
{data.length > 0 &&
<table cla... |
module.exports = {
'list|10': [{
name: 'name'
}],
content: 'Hello M1!'
};
|
'use strict';
// --------------------------------------------------------------------
// Imports
// --------------------------------------------------------------------
const assert = require('../src/common').assert;
// --------------------------------------------------------------------
// Private stuff
// --------... |
(function() {
'use strict';
var module = angular.module('ui.grid.filldown', ['ui.grid']);
module.directive('uiGridFilldown', ['$timeout', 'gridUtil', 'uiGridConstants', function ($timeout, gridUtil, uiGridConstants) {
return {
require: 'uiGrid',
scope: false,
... |
export default async function constructReport(results) {
const report = [];
results.forEach(({ name: target, result }) => {
result.forEach(({ component, variant, url, width, height, snapRequestId }) => {
report.push({
component,
variant,
url,
width,
height,
... |
process.env.NODE_ENV = process.env.NODE_ENV || 'testing';
process.env.WEBHOOK_SECRET = process.env.WEBHOOK_SECRET || 'TEST_STRIPE_WEBHOOK_SECRET';
require('../../core/server/overrides');
const {mochaHooks} = require('@tryghost/express-test').snapshot;
exports.mochaHooks = mochaHooks;
|
/**
*
* - send: 1210 -----------
* - send: 1723 ----------|----
* - send: 1513 ----------|---|----
* ---- recv: 1723 <------|----
* - send: 1164 ----------|------------
* - send: 1146 ----------|----------------
* - send: 1926 ----------|--------------------
* ---- recv: 1164 |
* - send: 1841 ------... |
'use strict';
angular.module('grtyrApp')
.factory('Auth', function Auth($rootScope, $http, User, $cookieStore, $q) {
/**
* Return a callback or noop function
*
* @param {Function|*} cb - a 'potential' function
* @return {Function}
*/
var safeCb = function(cb) {
return (angul... |
const { ValidationError } = require("moleculer").Errors;
module.exports = async function(ctx) {
const userId = ctx.meta.user ? ctx.meta.user.id : null;
if(!userId) {
throw new ValidationError('Not Authorized!', 401);
}
const scriptId = ctx.params.id
let response = await ctx.call('league.get', {
id: ... |
import { CancellableAction } from './Action'
export default function trifurcate (f, r, c, p, promise) {
// assert: promise.token == null
p._when(p._whenToken(new Trifurcation(f, r, c, promise)))
return promise
}
class Trifurcation extends CancellableAction {
constructor (f, r, c, promise) {
super(f, promise)
... |
/**
* @fileOverview
* @module weekTool
* @author hisland hisland@qq.com
* @description 周选择控件
* <pre><code>
* API:
* $.week(); //获得对象,默认使用当前时间
* $.week(2001);, $.week('2001'); //获得对象,使用2001年和第1周
* $.week(2001, 5);, $.week('2001', 5); //获得对象,使用2001年和第5周
* $.week('2011-5-6'); //获得对象,使用2011-5-6进行初始化
*
* v... |
;( function ( root, factory ) {
"use strict";
// UMD for a Backbone plugin. Supports AMD, Node.js, CommonJS and globals.
//
// - Code lives in the Backbone namespace.
// - The module does not export a meaningful value.
// - The module does not create a global.
var supportsExports = typeof ... |
import _GenresHandler from './GenresHandler';
export { _GenresHandler as GenresHandler };
import _RecommendationsHandler from './RecommendationsHandler';
export { _RecommendationsHandler as RecommendationsHandler };
|
'use strict';
angular.module('mean.demo')
.directive('myDirective', function() {
return {
restrict: 'EA',
replace: false,
scope: {
myUrl: '@',
myLinkText: '@'
},
template: '<a href="{{ myUrl }}"> {{ myLinkText }... |
import Ember from 'ember';
export default Ember.Component.extend({
/**
The CSS properties for the 'spotlight' element over the current target element
@property spotlightCSS
@type String
*/
spotlightCSS: '',
/**
The point at which the tour will start
@property firstTourStep
@type Integer... |
'use strict';
(function () {
angular.module('app', ['ngRoute']).config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.when('/dashboard', {
template: '<dashboard></dashboard>'
}).when('/register', {
template: '<register></register>'
}).whe... |
/**
* Add delayed event of setting velocity for an object
* @param {Number} delay dekay
* @param {String} objectId object's id
* @param {Number} velX x velocity
* @param {Number} velY y velocity
*/
SituationStage.prototype.addEventVelocity = function (delay, objectId, velX, velY, accelX, accelY) {
... |
(function () {
'use strict';
var module = angular.module('sticky', []);
// Directive: sticky
//
module.directive('sticky', ['$window', function ($window) {
return {
restrict: 'A', // this directive can only be used as an attribute.
link: function linkFn($scope, $elem, $attrs) {
... |
/**
* Copyright (c) 2017-present, Liu Jinyong
* All rights reserved.
*
* https://github.com/huanxsd/MeiTuan
* @flow
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ListView, Image, InteractionManager } from 'react-native';
import { c... |
module.exports={A:{A:{"2":"K C G E B WB","132":"A"},B:{"1":"D u Y I M H"},C:{"2":"UB z SB","4":"0 1 2 3 4 5 6 7 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","8":"F J RB"},D:{"2":"F J K","4":"0 1 2 3 4 5 6 7 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... |
// ==UserScript==
// @name Slack Full Theme plugin
// @namespace http://mrkannah.com/
// @version 1.0.2
// @description Applies the side bar colors for slack to the entire application
// @author Fadee Kannah
// @match https://*.slack.com/*
// @grant GM_setValue
// @grant GM_g... |
search_result['1033']=["topic_000000000000025D.html","SystemManagementController.SetStatusOrganizationSite Method",""]; |
import {StickyStatesPlugin} from '@uirouter/sticky-states';
import {DSRPlugin} from '@uirouter/dsr';
import {visualizer} from "@uirouter/visualizer";
import {app} from './app.states';
/* @ngInject */
export function uiRouterPluginsConfig($uiRouterProvider) {
$uiRouterProvider.plugin(StickyStatesPlugin);
$uiRouter... |
'use strict';
app.factory("DataFactory", ($http, $q) => {
const getAllPlayers = function () {
return $q((resolve,reject) => {
$http({
method: 'GET',
url: 'https://nss-pingpong-api20161212012918.azurewebsites.net/api/Players/'
}).then(function success... |
/**
* Created by Obsidean on 06/11/2015.
*/
var mod = angular.module('Vp.YearPart', []);
mod.directive('vpYearPart', function(){
return {
restrict: 'E',
scope:{YearInfo:'=yearinfo'},
templateUrl: 'app/Partials/Directives/YearPart.html',
controller:function($scope,$attrs){
... |
'use strict';
var constants = require('../lifx').constants;
var packets = require('./packets');
var utils = require('../lifx').utils;
var _ = require('lodash');
/*
Package headers 36 bit in total consisting of
size - 2 bit
frameDescription - 2 bit
source - 4 bit
target - 6 bit
00 00 -
site - 6 bit
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... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ensureProps = ensureProps;
var _lodash = require('lodash');
var _lodash2 = _interopRequireDefault(_lodash);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* ensure object has... |
// # models
var models = module.exports = {
User: require('./user')
}
|
var Project = React.createClass({displayName: "Project",
render: function() {
var data = this.props.data;
return (
React.createElement("a", {href: data.href},
React.createElement("div", {className: "project"},
React.createElement("img", {src: data.src, alt: data.alt}),
Rea... |
/*
Databinder
@version 0.7
@author Sylvain Pollet-Villard
@license MIT
@website http://syllab.fr/projets/web/databinder/
*/
;(function(global){
var BINDING_ATTRIBUTE = "data-bind";
var BINDING_GLOBAL = "databind";
var BINDINGS_REGEX = /(?:^|,)\s*(?:(\w+):)?\s*([\w\.\/\|\'\"\s-]+|{.+})+/g;
function getTypeO... |
var app_data = require('./app_data.js');
module.exports = {
remove_dir : function(){
return {command: 'rm -rf ' + app_data.paths.ios + '/*'};
},
cordova_cli: function(){
return {
options: {
path: app_data.paths.ios
},
cre... |
var isArray = require('lodash.isarray');
var levenshtein = require('levenshtein-dist');
/**
* Remove reference 'noise' from a string
* @param string a The string to remove the noise from
* @return string The input string with all noise removed
*/
function stripNoise(a) {
return a
.replace(/[^a-z0-9]+/i, ' ')
.rep... |
HappeningsProjectEmberClient.Router.map(function () {
// this.route('happening', { path: '/' });
this.resource('happening', { path: '/all'}, function() {
// this.route('show', { path: '/details/:id'});
this.route('when', {path: '/'});
this.route('when', {path: '/:category'});
this.route('whe... |
/**
* Created with JetBrains WebStorm.
* User: a.demarchi
* Date: 17/04/13
* Time: 14.09
* To change this template use File | Settings | File Templates.
*/
app.routers.router = Backbone.Router.extend({
routes: {
'': 'index',
':lang': 'index',
... |
define(["require", "exports"], function (require, exports) {
"use strict";
var WebGLRenderer = (function () {
function WebGLRenderer() {
}
return WebGLRenderer;
}());
exports.WebGLRenderer = WebGLRenderer;
});
|
var matchbox = require("matchbox")
var Header = matchbox.region.extend({
name: "Header",
constructor: function (){
this.appBar = this.component("appBar")
this.appBar.hello()
this.deleage("event", "appBar", function( e, appBar ){
appBar.hello()
})
this.event("click", function(){})
t... |
/*
* Guerilla
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the MIT License.
*
* An abstraction of a task.
*/
var path = require('path');
var async = require('async');
var utilities = require('./utilities');
function Task (params) {
this.errors = [];
this.output = {};
this.params = params || {};
}... |
RelationError = Error.progeny('RelationError', { init: function(m) { this.name = this.className; this.message = m; } });
var extend = require('extend'),
noop = function() {};
Relation = Object.progeny('Relation', {
init: function(modelClass, model) {
this.modelClass = modelClass;
model ? (this.model = mo... |
/**
* Created by USER: tarso.
* On DATE: 23/12/16.
* By NAME: app01.js.
*
* Source: https://github.com/typicode/json-server
*/
'use strict';
var jsonServer = require('json-server');
var server = jsonServer.create();
var router = jsonServer.router('db.json');
var middlewares = jsonServ... |
define(['exports', './bindables'], function (exports, _bindables) {
'use strict';
exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var ControlProperties = (function () {
fun... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
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] =... |
/**
* @license
* PlayCanvas Engine v1.45.3 revision 895add4b6
* Copyright 2011-2021 PlayCanvas Ltd. All rights reserved.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(... |
'use strict'
require('babel-register')({
plugins: [ 'transform-async-to-generator' ]
})
require('./errors.es7')
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
Ext.define('sisprod.view.AnnullableWorkOrder.ListAnnullableWorkOrder', {
extend: 'sisprod.view.base.TabPanelGridItem',
require: [
'sisprod.view.base.TabPanelGridItem'
],
alias: 'w... |
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... |
import React from 'react';
import ReactShallowRenderer from 'react-test-renderer/shallow';
import SlideInChild from 'chamel/transition-groups/SlideInChild';
/**
* Test rendering the SlideInChild
*/
describe("SlideInChild Component", () => {
// Basic validation that render works in edit mode and returns children
... |
/**
* @license AngularJS v1.3.0-beta.13
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {'use strict';
/**
* @description
*
* This object provides a utility for producing rich Error messages within
* Angular. It can be called as fol... |
/**
* @license Highcharts JS v9.3.2 (2021-11-29)
*
* Old IE (v6, v7, v8) module for Highcharts v6+.
*
* (c) 2010-2021 Highsoft AS
* Author: Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['defa... |
/**
* @license Highmaps JS v8.1.2 (2020-06-16)
* @module highcharts/highmaps
*
* (c) 2011-2018 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import Highcharts from './highcharts.src.js';
import './modules/map.src.js';
Highcharts.product = 'Highmaps';
export default Highcharts;
|
/* 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);
}
}... |
!function(){"use strict";jQuery.ime.register({id:"nb-normforms",name:"Norsk normal transliterasjon",description:"Norwegian input method with most common form transliterated",date:"2012-12-04",URL:"http://www.evertype.com/alphabets/bokmaal-norwegian.pdf",author:"John Erling Blad",license:"GPLv3",version:"1.0",contextLen... |
import deprecate from 'util-deprecate';
import Preview from './preview';
const preview = new Preview();
export const storiesOf = preview.storiesOf.bind(preview);
export const setAddon = preview.setAddon.bind(preview);
export const addDecorator = preview.addDecorator.bind(preview);
export const configure = preview.con... |
'use strict';
angular.element(document).ready(function() {
//Fixing facebook bug with redirect
if (window.location.hash === '#_=_') window.location.hash = '#!';
//Then init the app
angular.bootstrap(document, ['mean']);
});
// Dynamically add angular modules declared by packages
var packageModules = [];
for... |
tinymce.addI18n('zh_CN.GB2312', {
'Cut': '\u526a\u5207',
'Heading 5': '\u7ae0\u8282\u6807\u98985',
'Header 2': '\u6807\u98982',
'Your browser doesn\'t support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.': '\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u8bbf... |
var _initProto;
const dec = () => {};
class Foo {
static {
[_initProto] = babelHelpers.applyDecs(this, [[dec, 2, "a"], [dec, 2, "a"]], []);
}
constructor(...args) {
_initProto(this);
}
a() {
return 1;
}
a() {
return 2;
}
}
|
'use strict';
var path = require('path'),
fs = require('fs'),
ss = require( '../../../../lib/socketstream'),
Router = require('../../../../lib/http/router').Router,
options = ss.client.options,
defineAbcClient = require('../abcClient');
var responseStub = {
writeHead: function() {},
end: fu... |
PlainTemplate = {};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.