code stringlengths 2 1.05M |
|---|
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var CommunicationPresentToAll = React.createClass({
displayName: 'CommunicationPresentToAll',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M... |
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
///<reference path="typings/babylon.2.2.d.ts" />
///<reference path="typings/jquery/jquery.d.ts" />
///<reference path="IAppView.ts" />
var app3DView = (function () {
function app3DView() {
... |
define({
"page1": {
"selectToolHeader": "Zvolte metodu výběru záznamů k dávkové aktualizaci.",
"selectToolDesc": "Widget podporuje 3 metody generování vybrané sady záznamů k aktualizaci. Můžete zvolit pouze jeden z nich. Potřebujete-li více než jednu metodu, vytvořte novou instanci widgetu.",
"selectBySha... |
var _ = require('lodash'),
cheerio = require('cheerio'),
util = require('../../util'),
htmlTag = util.html_tag,
format = util.format;
var metaTag = function(name, content){
var data = {};
switch (name.split(':')[0]){
case 'og':
case 'fb':
data.property = name;
break;
default:
... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 7h8v4h-8z" opacity=".3" /><path d="M8 8H6v7c0 1.1.9 2 2 2h9v-2H8V8z" /><path d="M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-8V7h8v4zM4 12H... |
var gulp = require('gulp');
var pandoc = require('gulp-pandoc');
var webserver = require('gulp-webserver');
gulp.task('default', function() {
gulp.src('./index.md')
.pipe(pandoc({
from: 'markdown',
to: 'slidy',
ext: '.html',
args: [
'--standalone',
'--include-in-header=in... |
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../actions/index.jsx';
import HostTickets from '../components/Host/HostTickets.jsx';
const mapStateToProps = state => ({
});
const mapDispatchToProps = dispatch => bindActionCreators(actionCreators, dis... |
'use strict';
// Last time updated at Sep 07, 2014, 08:32:23
// Latest file can be found here: https://cdn.webrtc-experiment.com/getScreenId.js
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// Documentation - https://github.com/muaz-khan/WebRTC-Experiment/tree/ma... |
function NodeUI(parent_node, x, y) {
this.parent_node = parent_node;
this.x = x;
this.y = y;
this.sl = E2.app.scrollOffset[0];
this.st = E2.app.scrollOffset[1];
this.plugin_ui = null;
var nid = 'n' + parent_node.uid, dom = this.dom = make('table');
dom.addClass('plugin');
dom.addClass('graph-node');
dom.a... |
import classnames from 'classnames'
import _styles from './styles/_media.scss'
function MediaLeft (props) {
let classNames = classnames(_styles['media-left'], _styles[`media-${props.align}`])
return (
<div style={props.style} className={classNames}>
{props.children}
</div>
)
}
function MediaRight (... |
'use strict';
var path = require('path'),
fs = require('fs'),
yaml = require('js-yaml'),
_ = require('lodash'),
GeminiError = require('../errors/gemini-error'),
BrowserConfig = require('./browser-config'),
parseOptions = require('./options');
/**
* @param {Object|String} configData data of t... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" /></React.Fragment>
, 'ArrowForward');
|
var searchData=
[
['id_5f',['id_',['../interface_p_b_biometry_user.html#af432918d1b07e1e695e826b397a674ba',1,'PBBiometryUser']]]
];
|
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.7.2 (c) Oliver Folkerd */
var Mu... |
/**
* Created by hen on 3/18/14.
*/
function BrushableScale(ctx, svg, width, updateFunctionNameInCtx, redrawFunctionNameInCtx, scaleNameInCtx, params){
// var svg = d3.select("#vis").append("svg").attr({
// width:800,
// height:800
// })
var offsetX=0,
offsetY=0;
var distance... |
console.warn("start spec");
describe("less.js main tests", function() {
testLessEqualsInDocument();
it("the global environment", function() {
expect(window.require).toBe(undefined);
});
});
|
$(function () {
$('[data-toggle="popover"]').popover();
$('.popover-dismiss').popover({
trigger: 'focus'
});
});
|
(function(){
var factory = function (exports) {
var lang = {
name : "en",
description : "Open source online Markdown editor.",
tocTitle : "Table of Contents",
toolbar : {
undo : "Undo(Ctrl+Z)",
redo ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.1.3.3_A2.2_T1;
* @section: 15.1.3.3;
* @assertion: If string.charAt(k) in [0x0080 - 0x07FF], return 2 octets (00000yyy yyzzzzzz -> 110yyyyy 10zzzzzz);
* @descr... |
version https://git-lfs.github.com/spec/v1
oid sha256:101fe07ed27aef2396a78b39275e437030bf995a8a7a3819339eabfbf08665a0
size 14390
|
/**
* Copyright (c) 2015, 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.
*/
require('babe... |
var src = './app/',
dist = './web/';
module.exports = {
server: {
root: dist + '',
watch: dist + '**/*.*'
},
views: {
src: src + 'views/**/*.*',
dist: dist + '',
task: 'pages'
},
scripts: {
src: src + 'assets/scripts/**/*.*',
entry: src + ... |
/*
* Code generated by Microsoft (R) AutoRest Code Generator 1.2.1.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* The custom domain assigned to this storage account. This can be set via
* Update.
*
*/
class CustomDomain {
/**
* Create a Cust... |
this.asArrowFuncArgList = function(argList) {
var i = 0, list = argList;
while (i < list.length)
this.asArrowFuncArg(list[i++]);
};
this.asArrowFuncArg = function(arg) {
var i = 0, list = null;
if (this.firstNonSimpArg === null && arg.type !== 'Identifier')
this.firstNonSimpArg = arg;
if (arg === t... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: SPACE (U+0020) between any two tokens is allowed
es5id: 7.2_A1.4_T2
description: Insert real SPACE between tokens of var x=1
---*/
//CHECK#1
eval("\u0020var x\u0020= 1\u0020"... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
/*eslint no-console:0 */
const monk = require('monk');
const fs = require('fs');
const _ = require('underscore');
const CardService = require('../services/CardService.js');
let db = monk('mongodb://127.0.0.1:27017/throneteki');
let cardService = new CardService(db);
let files = fs.readdirSync('thronesdb-json-data/pac... |
import d3 from 'd3';
import {identity, noop} from '../../util/fn';
import bucket from './bucket';
export default function() {
var dataBucketer = bucket(),
x = identity,
y = identity;
var largestTriangleOneBucket = function(data) {
if (dataBucketer.bucketSize() >= data.length) {
... |
'use strict';
(function($) {
var throwError = function(msg) {
throw new Error('Sign2Pay: ' + msg);
}
var Sign2Pay = (function () {
/**
* Sign2Pay constructor
*
* @param object settings
*/
function Sign2Pay(settings) {
this.baseUrl ... |
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
(function (factory) {
// AMD. Register as an anonymous module.
module.exports = factory(require('../datepicker'));;
}(function (datepicker) {
datepicker.regional['el'] = {
... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 (NumminorihSF) Konstantine Petryaev
*
* 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';
module.exports = {
app: {
title: 'project-x',
description: 'First prototype with Rethinkdb, Express, Angular and Node.js',
keywords: 'Rethinkdb, Express, AngularJS, Node.js'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions',
asset... |
const solid = require('../')
const path = require('path')
solid
.createServer({
webid: true,
sslCert: path.resolve('../test/keys/cert.pem'),
sslKey: path.resolve('../test/keys/key.pem'),
errorHandler: function (err, req, res, next) {
if (err.status !== 200) {
console.log('Oh no! There i... |
define(function(require) {
'use strict';
var Backbone = require('backbone');
var AppRouter = Backbone.Router.extend({
routes: {
'': 'MainCtrl',
'hello/:name(/)': 'HelloCtrl',
'devpage': 'DevpageCtrl',
... |
/// <reference path="../extern/three.d.ts"/>
/// <reference path="../src/shortestpaths.ts"/>
/// <reference path="../src/linklengths.ts"/>
/// <reference path="../src/descent.ts"/>
var cola3;
(function (cola3) {
var Graph = (function () {
function Graph(parentObject, n, edges, nodeColour) {
var ... |
{
"translatorID": "631ff0c7-2e64-4279-a9c9-ad9518d40f2b",
"label": "Stuff.co.nz",
"creator": "Sopheak Hean (University of Waikato, Faculty of Education)",
"target": "^https?://(www\\.)?stuff\\.co\\.nz/",
"minVersion": "2.1.9",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"brow... |
var GetRight = require('../bounds/GetRight');
var GetTop = require('../bounds/GetTop');
var SetLeft = require('../bounds/SetLeft');
var SetTop = require('../bounds/SetTop');
var ToRightTop = function (gameObject, parent, offsetX, offsetY)
{
if (offsetX === undefined) { offsetX = 0; }
if (offsetY === undefined)... |
var data = {
"width": 633,
"height": 506,
"offX": 0,
"offY": 0,
"sourceW": 633,
"sourceH": 506,
"frames": [
{
"file": "keweizhua_0.png"
},
{
"file": "keweizhua_2.png"
},
{
"file": "keweizhua_3.png"
}
],
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m21.41 11.41-8.83-8.83c-.37-.37-.88-.58-1.41-.58H4c-1.1 0-2 .9-2 2v7.17c0 .53.21 1.04.59 1.41l8.83 8.83c.78.78 2.05.78 2.83 0l7.17-7.17c.78-.78.78-2.04-.01-... |
/* globals Stats, dat, AMI*/
var LoadersVolume = AMI.default.Loaders.Volume;
var CamerasOrthographic = AMI.default.Cameras.Orthographic;
var ControlsOrthographic = AMI.default.Controls.TrackballOrtho;
var HelpersLut = AMI.default.Helpers.Lut;
var HelpersStack = AMI.default.Helpers.Stack;
// Shaders
// Data
var Shader... |
export default {
extensions: ['ts'],
require: ['ts-node/register']
};
|
'use strict';
dragula([single1], { removeOnSpill: true }).on('remove', function (el) {
alert('dropped!');
});
|
/* */
var ElementType = require("domelementtype");
var re_whitespace = /\s+/g;
var NodePrototype = require("./lib/node");
var ElementPrototype = require("./lib/element");
function DomHandler(callback, options, elementCB) {
if (typeof callback === "object") {
elementCB = options;
options = callback;
callb... |
import defs from '../../_core/defs';
import seempleError from '../../_helpers/seempleerror';
import processPush from './processpush';
import processUnshift from './processunshift';
import processRecreate from './processrecreate';
import processSort from './processsort';
import processRemove from './processremove';
impo... |
var cache = {
getUrl: function () {
return false;
}
};
module.exports = cache;
|
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalHotel = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 11.6c3.7 0 6.8 3.1 6.8 6.8v15h-3.4v-5h-30v5h-3.4v-25h3.4v15h13.4v-11.8h13.2z m-20 10c-2.7 0-5-2.2-5-5s2.3-5 5-5 5 2.3 5 5-2.2 5-5 5z"/></g>
</Icon>
)
ex... |
/*
* Copyright (c) 2013-2014 node-coap contributors.
*
* node-coap is licensed under an MIT +no-false-attribs license.
* All rights not explicitly granted in the MIT license are reserved.
* See the included LICENSE file for more details.
*/
var parameters = require('./parameters')
, util = requ... |
;modjewel.define("weinre/target/ElementHighlighter", function(require, exports, module) { // Generated by CoffeeScript 1.3.3
var ElementHighlighter, canvasAvailable, currentHighlighterElement, fromPx, getMetricsForElement, highlighterClass, supportsCanvas;
canvasAvailable = null;
highlighterClass = null;
currentHigh... |
import { readFileSync, writeFileSync } from 'fs';
import { join } from 'path';
import glob from 'glob';
import { transformFileSync } from 'babel-core';
const componentFilesPattern = join(
__dirname, '..', '..', 'src', 'frontend', 'bundles', '*', 'components', '*', '*.js'
);
const localeFilesPattern = join(
__dirna... |
'use strict'
|
var chai = require('chai');
var should = chai.should();
var coordinatesRequest = require('../../../lib/model/request/coordinatesRequest');
describe('coordinatesRequest model test', function () {
var lat = 'lat';
var lon = 'lon';
it('should create model', function (done) {
var coordinatesRequestModel = new... |
import consoleFunc from './internal/consoleFunc';
/**
* Logs the result of an `async` function to the `console`. Only works in
* Node.js or in browsers that support `console.log` and `console.error` (such
* as FF and Chrome). If multiple arguments are returned from the async
* function, `console.log` is called on ... |
/**
Copyright 2011 Red Hat, Inc.
This software is licensed to you under the GNU General Public
License as published by the Free Software Foundation; either version
2 of the License (GPLv2) or (at your option) any later version.
There is NO WARRANTY for this software, express or implied,
including the implied war... |
/*global define*/
define(['jquery', 'underscore', 'orotranslation/js/translator', './abstract-action'
], function ($, _, __, AbstractAction) {
'use strict';
/**
* Allows to export grid data
*
* @export orodatagrid/js/datagrid/action/export-action
* @class orodatagrid.datagrid.action.... |
/*!
* Bootstrap-select v1.7.5 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Registe... |
var fnObj = {};
var ACTIONS = axboot.actionExtend(fnObj, {
PAGE_SEARCH: function (caller, act, data) {
axboot.ajax({
type: "GET",
url: ["commonCodes"],
data: caller.searchView.getData(),
callback: function (res) {
caller.gridView01.setData(res)... |
function LoginController(){
$('#login-form #forgot-password').click(function(){
$('#get-credentials').dialog('open');
});
$('#login-form #sign-up').click( function(){
$('#login-container').hide();
$('#account-form-container').show();
});
$('#get-credentials').dialog({
autoOpen: false,
mo... |
import React from 'react';
import {
storiesOf,
action
} from '@storybook/react';
import TextareaBox from './TextareaBox';
import {
wrapComponentWithContainerAndTheme,
colors,
} from "../styles";
function renderChapterWithTheme(theme) {
return {
info: `
Usage
~~~
import React ... |
var test = require('tape');
var db = require('level-test')()('out-of-order');
var fdb = require('../')(db);
var expected = [];
expected.push([
{ type: 'put', key: [ 'key', 'woo' ], value: 0 },
{ type: 'put', key: [ 'hash', 'aaa' ], value: 0 },
{ type: 'put', key: [ 'head', 'woo', 'aaa' ], value: 0 }
]);
ex... |
// Generated by IcedCoffeeScript 1.4.0c
(function() {
var extend, flatten, _ref;
exports.starts = function(string, literal, start) {
return literal === string.substr(start, literal.length);
};
exports.ends = function(string, literal, back) {
var len;
len = literal.length;
return literal === st... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.6.2_A1_T3;
* @section: 15.10.6.2;
* @assertion: RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular express... |
/*global define,jasmine,describe,it,expect*/
/*jslint white:true,browser:true*/
define([
'common/monoBus'
], function (Bus) {
'use strict';
// Setting a shorter timeout pretty much forces us to set a timeout explicitly
// per async test which falls outside of this reasonable setting for "normal"
... |
import {
atRuleParamIndex,
isRangeContextMediaFeature,
isStandardSyntaxMediaFeatureName,
report,
ruleMessages,
validateOptions,
} from "../../utils"
import mediaParser from "postcss-media-query-parser"
export const ruleName = "media-feature-name-case"
export const messages = ruleMessages(ruleName, {
exp... |
/* jshint node: true */
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
var app = new EmberAddon({
vendorFiles: {
'handlebars.js': null
}
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different asset... |
var global_text = {
Ok : "Ok",
header : {
Status : "Status",
Server : "Server",
New : "Add a new server",
Hide: "Hide",
AddServer : "Add a new server",
Connect : "Connect",
Context : "Context",
Index : "Index",
AllIndex : "All Index",
Search : "Search",
AutoRefresh : "AutoRefresh",
Hits : "Hi... |
//todo random full lenght top images with scrolling logo and more button
//remove absolute links when moved into trunk remove jquery as a dependency
//var homeBgImg = ["#b6c4d0 url(images/sc9bg1A.jpg) top right fixed", "#b6c4d0 url(images/sc9bg1B.jpg) top right fixed"];
function getRandomArr(arr) {
return ... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['./Binding'],function(B){"use strict";var C=B.extend("sap.ui.model.ContextBinding",{constructor:function(m,p,c,P,e){B.c... |
'use strict';
const mm = require('egg-mock');
const {
webpackReady,
assertCSR,
assertDevResource,
} = require('../utils/helper');
describe('test/controller/asset.test.js', () => {
let app;
before(async () => {
mm.env('local');
app = mm.app();
await app.ready();
await webpackReady(app);
});
... |
version https://git-lfs.github.com/spec/v1
oid sha256:36113a1d3807a36d5be72917baad00f596e44c5840a5234266057a794d7ff4b0
size 2246
|
var __ = require('underscore'),
Backbone = require('backbone'),
$ = require('jquery'),
loadTemplate = require('../utils/loadTemplate'),
baseVw = require('./baseVw');
module.exports = baseVw.extend({
className: "flexRow borderBottom",
events: {
},
initialize: function(options){
if (!optio... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.fi');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Lisää kommentti";
Blockly.Msg.AUTH = "Valtuuta tämä ohjelma jotta voit tallettaa työsi ja jakaa sen.";
Blockly.Msg.CHANGE_VALUE_TITLE = "Muuta arvoa:";
Bloc... |
$(document).ready(function() {
$(".subCol > a, .imgPane > a").click(function(e) {
e.preventDefault(); //the browser won't open the link
console.log("prevented default");
var href = $(this).attr("href");
console.log('<img src="' + href + '"/>');
/*in case the lightbox already exists (we don't want two elemtn... |
// @flow
const f = require('./function_decl_with_statics');
(f: empty); // err
(f.x: empty); // err
f.missing; // err
|
'use strict';
/**
* Gen 1 mechanics are fairly different to those we know on current gen.
* Therefor we need to make a lot of changes to the battle engine for this game simulation.
* This generation inherits all the changes from older generations, that must be taken into account when editing code.
*/
exports.Battle... |
"use strict";
var core_1 = require('@angular/core');
var common_1 = require('@angular/common');
var ng_table_component_1 = require('./table/ng-table.component');
var ng_table_filtering_directive_1 = require('./table/ng-table-filtering.directive');
var ng_table_paging_directive_1 = require('./table/ng-table-paging.direc... |
import React from 'react'
import invariant from 'invariant'
import { routerShape } from './PropTypes'
import { ContextSubscriber } from './ContextUtils'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {... |
import flatMap from 'lodash/flatMap';
import Mediator from '../src/mediator';
import SCORM from '../src/SCORM';
describe('SCORM hashi shim', () => {
let scorm;
let mediator;
beforeEach(() => {
mediator = new Mediator(window);
scorm = new SCORM(mediator);
});
describe('__setData', () => {
it('shou... |
app.controller('NoteCtrl', ['$scope', '$http', function($scope, $http) {
$http.get('js/app/note/notes.json').then(function (resp) {
$scope.notes = resp.data.notes;
// set default note
$scope.note = $scope.notes[0];
$scope.notes[0].selected = true;
});
$scope.colors = ['primary', 'info', '... |
import { PropTypes, Component } from 'react'
export class AddDayForm extends Component {
constructor(props) {
super(props)
this.submit = this.submit.bind(this)
}
submit(e) {
e.preventDefault()
console.log('resort', this.refs.resort.value)
console.log('date', this.refs.date.value)
console.log('powder'... |
export { default, classState } from 'ember-stickler/helpers/class-state';
|
module.exports = {
hiddenFields: {
companiesHouse: {
name: '[data-test="companiesHouseName"]',
number: '[data-test="companiesHouseNumber"]',
address1: '[data-test="companiesHouseAddress1"]',
address2: '[data-test="companiesHouseAddress2"]',
town: '[data-test="companiesHouseAddressTow... |
/**
* @class Core
*/
/**
* A function that does nothing.
*
* @property anim8.noop
*/
function noop() {}
/**
* Returns true if the given variable is defined.
*
* **Examples:**
*
* anim8.isDefined( 0 ); // true
* anim8.isDefined( false ); // true
* anim8.isDefined(); // false
*
*... |
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is found in controllers.js
ang... |
/**
* jQuery Unveil
* A very lightweight jQuery plugin to lazy load images
* http://luis-almeida.github.com/unveil
*
* Licensed under the MIT license.
* Copyright 2013 Luís Almeida
* https://github.com/luis-almeida
*/
;(function($) {
$.fn.unveil = function(threshold, callback) {
var $w = $(window),
... |
export const selectLibrary = (libraryId) => {
return {
type: 'select_library',
payload: libraryId
};
};
|
/**
* Returns the first string value as a Javascript Number
* @param element - The group/element of the element (e.g. '00200013')
* @param [defaultValue] - The default value to return if the element does not exist
* @returns {*}
*/
DICOMWeb.getNumber = function(element, defaultValue) {
if(!element) {
return ... |
// Manipulating JavaScript Objects
// I worked on this challenge: [by myself, with: ]
// There is a section below where you will write your code.
// DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES!
var terah = {
name: "Terah",
age: 32,
height: 66,
weight: 130,
hairColor: "brown",
eye... |
import { app, BrowserWindow } from 'electron';
export var fileMenuTemplate = {
label: 'File',
submenu: [{
label: "New pad",
accelerator: "CmdOrCtrl+N",
click: function () { app.padController.create() }
},{
type: "separator"
},{
label: "All Quit",
accelera... |
var user_profile = function(cnf) {
this.id = cnf.id,
this.email = cnf.email,
this.username = cnf.username,
this.picture = cnf.picture,
this.post_count = cnf.post_count,
this.followers = cnf.followers,
this.following = cnf.following
};
module.exports = user_profile;
//Notice that this profile does not co... |
cm.model.types = {
"CM_Model_Language": 5,
"CM_Model_Location": 6,
"CM_Model_Splitfeature": 7,
"CM_Model_Splittest": 8,
"CM_Model_SplittestVariation": 9,
"CM_Model_User": 10,
"CM_Model_Splittest_RequestClient": 11,
"CM_Model_Splittest_User": 12,
"CM_Model_Stream_Publish": 13,
"CM... |
function init(userInfo,callbacks) {
if (!userInfo.appKey || !userInfo.token){
return false;
}
//公有云初始化
RongIMLib.RongIMClient.init(userInfo.appKey);
var instance = RongIMClient.getInstance();
//连接状态监听器
RongIMClient.setConnectionStatusListener({
onChanged: function (status)... |
for (var i = 0; i < 5; i ++)
console.log ("hello world");
|
"use babel";
// @flow
import type { Range } from "../../LanguageServerProtocolFeature/Types/standard";
import Uri from "vscode-uri";
export type JumpToAction = () => void;
export function jumpTo(
path: string,
range: Range,
pending: boolean,
): JumpToAction | void {
if (path.length > 0) {
let uri = Uri.p... |
var assert = require('../../../../../double-check').assert;
var func = function() {
console.log("This is a message 2!");
}
assert.pass("dummy2Level1", func); |
/*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights... |
#!/usr/bin/env node
var path = require('path'),
optimist = require('optimist'),
usage = require('./usage'),
commands = require('../lib/commands'),
properties = require('../lib/properties'),
version = require('../package.json').version;
var die = function(msg) {
console.error('\n', msg, '\n');
... |
TeX: {
extensions: ["color.js"]
}
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
|
//>>built
define({smiley:"\u0e41\u0e17\u0e23\u0e01\u0e44\u0e2d\u0e04\u0e2d\u0e19\u0e41\u0e2a\u0e14\u0e07\u0e2d\u0e32\u0e23\u0e21\u0e13\u0e4c",emoticonSmile:"\u0e22\u0e34\u0e49\u0e21",emoticonLaughing:"\u0e2b\u0e31\u0e27\u0e40\u0e23\u0e32\u0e30",emoticonWink:"\u0e02\u0e22\u0e34\u0e1a\u0e15\u0e32",emoticonGrin:"\u0e22\u0... |
'use strict';
// 测试环境配置
// ===========================
module.exports = {
mongo: {
uri: 'mongodb://localhost/jackblog-test'
},
redis: {
db: 2
},
port: process.env.PORT || 8080,
seedDB: true
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.