code stringlengths 2 1.05M |
|---|
/* */
(function(process) {
var EventEmitter = require("events").EventEmitter;
var spawn = require("child_process").spawn;
var path = require("path");
var dirname = path.dirname;
var basename = path.basename;
exports = module.exports = new Command();
exports.Command = Command;
exports.Option = Option;
... |
//= require mxit_rails/jquery-1.8.0.min
//= require mxit_rails/jquery.cookie
//= require mxit_rails/jquery.history
Emulator = (function() {
// history.js setup
var History = window.History; // Note: We are using a capital H instead of a lower h
History.Adapter.bind(window,'statechange',function(){ // Note: We ar... |
/* @flow */
import { cachedEscape } from '../util'
import {
isDef,
isUndef
} from 'shared/util'
import {
isBooleanAttr,
isEnumeratedAttr,
isFalsyAttrValue
} from 'web/util/attrs'
export default function renderAttrs (node: VNodeWithData): string {
let attrs = node.data.attrs
let res = ''
let parent ... |
// Getting Started with p5.js
// Lauren McCarthy, Casey Reas, Ben Fry
// Example 2-9: images
var img;
function preload() {
img = loadImage("lunar.jpg");
}
function setup() {
createCanvas(600, 400);
}
function draw() {
image(img, 0, 0);
} |
smalltalk.addPackage('Compiler-AST');
smalltalk.addClass('Node', smalltalk.Object, ['position', 'nodes', 'shouldBeInlined', 'shouldBeAliased'], 'Compiler-AST');
smalltalk.Node.comment="I am the abstract root class of the abstract syntax tree.\x0a\x0aposition: holds a point containing lline- and column number of the sym... |
$(function ()
{
$('.adminCheckboxAll').change(function ()
{
var checked = $(this).is(':checked');
$('.adminCheckboxRow').prop('checked', checked).filter(':first').change();
});
$(document).delegate('.adminCheckboxRow', 'change', function ()
{
var selected = [];
$('.adminCheckboxRow:checked').each(function ... |
/*jshint browser: true, globalstrict: true*/
/*global angular, console*/
'use strict';
/* Controllers */
function MainCtrl($scope, $rootScope, $route, $location) {
$rootScope.loading = false;
$scope.showSideBar = true;
$rootScope.$on('$routeChangeError', function(event, curr, prev, rejection) {
if (!prev) ... |
(function () {
var resultsSet = [],
requestCount = 0; // Once this is equal to the # of AJAX requests sent to ~/audits.json - switch to results table
return {
requests: {
getAuditWithSideLoadTicket: function(id) {
return {
url: '/api/v2/tickets/' + id + '/audits.json?include=ti... |
var common = require('./lib/common');
describe('Whitelisted commands', function() {
'use strict';
var client;
var server;
var options = {
allowedCommands: [
'USER',
'PASS',
'PASV',
'LIST',
'NOOP',
],
};
beforeEach(function(done) {
server = common.server(options);... |
import {noop, NULL, TRUE, FALSE, EMPTY, hasWindow} from './util'
const config = {
// 是否异步,默认是,只针对ajax有效
async: TRUE,
// 默认参数
data: {},
// 请求完成钩子函数
didFetch: noop,
// 预处理回调
fit: function (response) {
this.toReject({
message: 'onerIO config `fit` method is required !'
})
},
// 自定义he... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc.5-master-2ddeb91
*/
function mdContentDirective(e){function o(e,o){this.$scope=e,this.$element=o}return{restrict:"E",controller:["$scope","$element",o],link:function(o,t){t.addClass("_md"),e(t),o.$broadcast("$mdContentLo... |
// this downloads speaker photos from the url they supplied
var fs = require('fs')
var path = require('path')
var nugget = require('nugget')
var photos = []
var speakers = fs.readFileSync('./speakers.json')
.toString().trim().split('\n')
.map(function (s) { return JSON.parse(s) })
.map(function (s) {
var photo = s... |
// This file was generated by GenerateJavaScriptI18nTask from javascript/lang/src/mi.js.
// See https://github.com/silverstripe/silverstripe-buildtools for details
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else {
... |
// RULE CHECKING FUNCTIONS, PROPOSITIONAL LOGIC
// =============================================
// Note: the value n that is the second parameter in the functions below sets whether
// certain rule-specific line properties need to be set (with value n of 0), or not (with
// value n of 1). (The userio function ckpro... |
/*! jQuery UI - v1.10.3 - 2013-09-04
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(t){t.effects.effect.fade=function(e,i){var s=t(this),n=t.effects.setMode(s,e.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}... |
import htmlEscape from './htmlEscape';
export default function printStack(error) {
if ( ! error instanceof Error) {
throw new Error('printStack must be passed an Error instance.');
}
var stack = error.stack.replace(error, '');
stack = htmlEscape(stack);
stack = stack
.split('\n')
.map( line =>... |
version https://git-lfs.github.com/spec/v1
oid sha256:54ab4ce928ba7415bcd8b39d5b83ce5ab4fe8ec937c983fcab50644deec29267
size 21557
|
import { ADD_SLIDE, EDIT_SLIDE, DELETE_SLIDE, INSERT_SLIDE, UPDATE_SLIDE } from '../constants/ActionTypes'
const initialState = [];
module.exports = function(state = initialState, action) {
/* Keep the reducer clean - do not mutate the original state. */
switch(action.type) {
case ADD_SLIDE:
return [
... |
/**
* Modulo administrador, controlador de la boleta
*/
angular.module('adminModule')
.controller('ticketCtrl', function($scope,$location,$routeParams,$compile,ReserveResources,FleetCarResources,DriverResources) {
checkUserType($location.absUrl());
/* config object */
$scope.valueID = $ro... |
/**
* webpack.common
*/
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var helpers = require('./helpers');
module.exports = {
entry: {
'polyfills': './src/polyfills.ts',
'vendor': './src/ve... |
import React from 'react';
import IconButton from 'react-mdl/lib/IconButton';
export default (props) => <IconButton ripple name="first_page" {...props}>...</IconButton>;
|
import Ember from 'ember';
import { module, test } from 'qunit';
import ArrayController from 'ember-legacy-controllers/array';
import expectAssertion from 'ember-dev/test-helper/assertion';
const { get, set } = Ember;
module('ArrayController');
test('defaults its `model` to an empty array', function (assert) {
var... |
smalltalk.addPackage('Kernel-Announcements', {});
smalltalk.addClass('AnnouncementSubscription', smalltalk.Object, ['block', 'announcementClass'], 'Kernel-Announcements');
smalltalk.addMethod(
"_announcementClass",
smalltalk.method({
selector: "announcementClass",
category: 'accessing',
fn: function (){
var self=this;
... |
/*
* Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the
* National Aeronautics and Space Administration. All rights reserved.
*
* The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... |
function findThirdDigit(args) {
var number = +args[0],
thitdDigit = ((number % 1000) / 100) | 0;
if (thitdDigit === 7) {
return true;
} else {
return false + ' ' + thitdDigit;
}
}
console.log(findThirdDigit(['5']));
console.log(findThirdDigit(['701']));
console.log(findThirdDig... |
import namedMediaQuery from '../index'
describe('Named media query plugin', () => {
it('should replace named media queries with real media queries', () => {
const style = {
width: 20,
desktop: {
color: 'red'
}
}
expect(
namedMediaQuery({
desktop: '@media (min-widt... |
function sayToUser(level, message) {
switch (level) {
case 'success':
$().toastmessage('showSuccessToast', message);
break;
case 'warning':
$().toastmessage('showWarningToast', message);
break;
case 'error':
$().toastmessage('showE... |
/*START.DEV_ONLY*/
'use strict';
/*END.DEV_ONLY*/
/*START.TESTS_ONLY*/
exports.Config = /*END.TESTS_ONLY*/ {
isUtc: false,
direction: {
d: 'asc',
m: 'asc',
y: 'desc'
},
YEARS_COUNT: 30,
START_DAY: 1,
START_MONTH: 0,
END_MONTH: 11,
daysList: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thur... |
Slideshow = Class.create();
Object.extend(Object.extend(Slideshow.prototype, Abstract.prototype), {
initialize: function(element, images, options){
this.timer = null;
this.element = $(element);
this.options = Object.extend({
frequency: 4,
transition: true
}, options || {});
this.counter = 0... |
"use strict";
var cbhData = {
"inputSelector": "#testInput",
"outputSelector": "#testOutput",
"anchorSelector": ".cbh-nav-anchor",
"emojiWrapper": "#emojiReferenceWrapper",
"fullEmojiListButton": "#btnFullEmojiList"
};
$(document).ready(function() {
$(cbhData.inputSelector).bind('input change', function() {
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = corridorsResponse;
function corridorsResponse(data) {
return data.map(function (corridor) {
return {
corridorId: corridor.cc,
name: corridor.nc
};
});
} |
import PlainBackdrop from "../src/plain/PlainBackdrop.js";
export default class ElixBackdrop extends PlainBackdrop {}
customElements.define("elix-backdrop", ElixBackdrop);
|
// graphs.module.js
(function()
{
'use strict';
angular
.module('app.cctool.graphs',
[
'cctoolColors',
'colorbrewer',
'jsnx',
'menu'
]);
})(); |
(function(exports){
'use strict';
var fs = require('fs');
var breezeSequelize = require('breeze-sequelize');
var uuid = require('node-uuid');
var Promise = require('bluebird');
var SequelizeManager = breezeSequelize.SequelizeManager;
var SequelizeQuery = breezeSequelize.SequelizeQuery;
... |
/**
* Module dependencies.
*/
var mime = require('connect').mime
, crc32 = require('buffer-crc32');
/**
* Return ETag for `body`.
*
* @param {String|Buffer} body
* @return {String}
* @api private
*/
exports.etag = function(body){
return '"' + crc32.signed(body) + '"';
};
/**
* Mak... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.6.2_A1;
* @section: 12.6.2;
* @assertion: Expression from "while" IterationStatement is evaluated first; "false", "0", "null", "undefined" and "empty" strings used ... |
import { combineReducers } from 'redux';
import {
SELECT_EVENT, INVALIDATE_EVENT, REQUEST_EVENTS, RECEIVE_EVENTS, SEARCH_EVENTS, RECEIVE_SEARCH_EVENTS, SEARCH_EVENTS_RESULTS, CHECK_ADDRESS, ERROR_ADDRESS,
} from '../actions/index.jsx';
const selectEvent = (state = [], action) => {
switch (action.type) {
case ... |
var _ = require('lodash');
var Promise = require('bluebird');
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil');
var takeAliases = _.partial(_.pluck, _, 'alias');
var populateAliases = function (model, alias) {
return model.populate(alias);
};
/**
* Find Records
* GET /:model
*
* An API call to ... |
'use strict';
var Steppy = require('twostep').Steppy,
fs = require('fs'),
path = require('path'),
_ = require('underscore'),
utils = require('./utils'),
SpawnCommand = require('./command/spawn').Command,
validateParams = require('./validateParams'),
EventEmitter = require('events').EventEmitter,
inherits = req... |
'use strict';
var _request = require('request');
var _request2 = _interopRequireDefault(_request);
var _log = require('./log');
var _log2 = _interopRequireDefault(_log);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* SimianReporter Constructor
*
* @param {... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
module.exports = function(app) {
// User Routes
var users = require('../../app/controllers/users');
var tickets = require('../../app/controllers/tickets');
// Setting up the users profile api
app.route('/users/me').get(users.me);
... |
import React, { useMemo, useEffect } from 'react';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import { useForm } from '../../../../client/hooks/useForm';
import CustomFieldsAdditionalForm from './CustomFieldsAdditionalForm';
const getInitialValues = (data) => ({
type: data.type ... |
"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")... |
'use strict';
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../../base/Page'); /* jshint ignore:line */
var deserialize = require(
'../../../../../base/deserialize'); /* jshint ignore:line */
var values = require('../../../../../... |
/* global $ */
'use strict';
describe('Husky', function() {
it('should inject js', function() {
expect($).toBeDefined();
});
});
|
(function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return e(f,window,document)}):"object"===typeof exports?module.exports=function(f, c){f||(f=window);if(!c||!c.fn.dataTable)c=require("datatables.net")(f,c).$;c.fn.dataTable.Buttons||require("datat... |
var NAVTREEINDEX2 =
{
"struct_jmcpp_1_1_server_exception.html":[2,0,0,54],
"struct_jmcpp_1_1_server_exception.html#a13a4091e6bb78791e07ca9b0941703b6":[2,0,0,54,5],
"struct_jmcpp_1_1_server_exception.html#a2593e803c65456dedc18176d415a0aa8":[2,0,0,54,0],
"struct_jmcpp_1_1_server_exception.html#a4501c400cf4900f3d646575f1e... |
module.exports={A:{A:{"1":"H D G E A B EB"},B:{"1":"C p x J L N I"},C:{"1":"1 2 3 4 5 6 8 9 s t u v w y","2":"0 YB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r WB QB"},D:{"1":"0 1 2 3 4 5 6 8 9 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n ... |
angular
.module('tas')
.filter('objToArr', function () {
return function (obj) {
if (obj) {
return Object.keys(obj).map(function (key) {
obj[key]['_id'] = key;
return obj[key];
});
}
};
})
.filter('toRansomCase', function () {
return function (element)... |
import React from 'react';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';
import { colorSteps } from '../../../../utils';
import LinearGradient from '../src/linear-gradient';
chai.use(chaiEnzyme());
describe('ChoroplethLegend <LinearGradient />', () => {
... |
lychee.define('lychee.effect.Color').exports((lychee, global, attachments) => {
/*
* HELPERS
*/
const _rgb_to_color = function(r, g, b) {
let strr = r > 15 ? (r).toString(16) : '0' + (r).toString(16);
let strg = g > 15 ? (g).toString(16) : '0' + (g).toString(16);
let strb = b > 15 ? (b).toString(16) : '... |
var React = require('react');
/*
* Section Component
* @type {Section}
*
*/
var Section = React.createClass({
componentDidMount: function () {
this.props.registerSection(this.props.target, this.getId());
},
getId: function () {
return this.props.target + (this.props.idSuffix || '');
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0s1.56-4.1 0-5.66l-5.66 5.66zM20 2.01L4 2v20h16V2.01zM10 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM7... |
// @flow
import mongoose from 'mongoose';
const Schema = new mongoose.Schema({
name: {
type: String,
required: true,
},
password: {
type: String,
hidden: true,
},
email: {
type: String,
required: false,
index: true,
},
active: {
type: Boolean,
default: true,
},
las... |
function generateDashboard(data,geom){
var map = new lg.map('#map').geojson(geom).nameAttr('name').joinAttr('id').zoom(4).center([10,35]);
var coping = new lg.column('COPINGCAPACITY').label('Lack of Coping').domain([0,10]);
var grid = new lg.grid('#grid')
.data(data)
.width($('#grid').widt... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ContextDependency = require("./ContextDependency");
const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId");
class RequireContextDependency extends Contex... |
import React from 'react'
import { Glyphicon, OverlayTrigger, Tooltip } from 'react-bootstrap'
import styles from './Help.css'
const Help = ({ text }) => {
const tooltip = <Tooltip>{text}</Tooltip>
return (
<OverlayTrigger overlay={tooltip} delayShow={300} delayHide={150}>
<Glyphicon className={styles.... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
function getStyles(props, context, state) {
const verticalPosition = props.verticalPosition;
const horizontalPosition = props.horizontalPosition;
const touchMarginOffset = props.touch ? 10... |
import Directive from './directive';
import {FILE_UPLOAD_NAME, FILE_UPLOAD_LABEL_NAME, CAN_UPLOAD_NAME} from '@grid/view/definition';
import {AppError, EventListener, EventManager} from '@grid/core/infrastructure';
class FileUpload extends Directive(FILE_UPLOAD_NAME) {
constructor($scope, $element) {
super();
th... |
$.extend(prototype, {
render: function () {
this.initContainer();
this.initCanvas();
this.initCropBox();
this.renderCanvas();
if (this.cropped) {
this.renderCropBox();
}
},
initContainer: function () {
var $this = this.$element,
$container = t... |
'use strict';
/**
* Expose `Type`.
*/
module.exports = Type;
/**
* Module dependencies.
*/
var utils = require('../../utils'),
Abstract = require('./abstract')
;
/**
* Initialize a new type data interpreter.
*/
function Type() {
}
utils.extend(Abstract, Type);
/**
* @interface {danf:manipulation.dataInt... |
/**
* @file Ingress-ICE, the main script
* @author Nikitakun (https://github.com/nibogd)
* @version 3.2.1
* @license MIT
* @see {@link https://github.com/nibogd/ingress-ice|GitHub }
* @see {@link https://ingress.divshot.io/|Website }
*/
"use strict";
//Initialize
var system = require('system');
var args = syste... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M6 6.5c.31 0 .7.15.9.56.24.5.02 1.1-.47 1.34-.14.06-.28.1-.43.1-.3 0-.7-.15-.89-.56-.17-.34-.1-.63-.05-.78.05-.14.18-.4.51-.56.14-.06.28-.1.4... |
export default (() => {
let o;
return [
{
['offset']: 0,
['dst']: false,
['abbrev']: 'UTC',
['until']: Infinity,
['format']: 'UTC',
},
];
})();
;
|
describe('<md-tooltip> directive', function() {
beforeEach(module('material.components.tooltip', 'ngAnimateMock'));
function findTooltip() {
return angular.element(document.body).find('md-tooltip');
}
it('should show and hide when visible is set', inject(function($compile, $rootScope, $animate) {
var... |
// @flow
declare module '@reach/auto-id' {
declare export function useId(): number;
}
|
/**
* Select2 Greek translation.
*
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/
(function ($) {
"use strict";
$.fn.select2.locales['el'] = {
formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; },
formatInputTooShort: function (input, min) { var n = min - input.length;... |
/**!
* AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort,
* progress, resize, thumbnail, preview, validation and CORS
* @author Danial <danial.farid@gmail.com>
* @version <%= pkg.version %>
*/
if (window.XMLHttpRequest && !(window.FileAPI && FileAPI.shouldLoad... |
hxManager.SubscriberMOJO = hxManager.Inject(
[
MOJO,
'TimingMOJO',
'NULL',
'defProp',
'descriptor',
'length'
],
function(
MOJO,
TimingMOJO,
NULL,
defProp,
descriptor,
length
){
var TIMING = 'timing';
var SUBSCRIBERS = 'subscribers';
function SubscriberMOJO... |
tinyMCE.addI18n('he.fullpage_dlg',{
title:"Document properties",
meta_tab:"\u05F3\u203A\u05F3\u009C\u05F3\u009C\u05F3\u2122",
appearance_tab:"Appearance",
advanced_tab:"Advanced",
meta_props:"Meta information",
langprops:"Language and encoding",
meta_title:"\u05F3\u203A\u05F3\u2022\u05F3\u00D7\u05F3\u00A8\u05F3\... |
/**
* @namespace
*/
var WebAudiox = WebAudiox || {}
//////////////////////////////////////////////////////////////////////////////////
// WebAudiox.GameSounds
//////////////////////////////////////////////////////////////////////////////////
/**
* a specific helpers for gamedevs to make WebAudio API easy to use ... |
define(['mout/number/toInt'], function (toInt) {
describe('number/toInt()', function(){
it('should remove decimal digits', function(){
expect( toInt(1.25) ).toEqual(1);
expect( toInt(0.75) ).toEqual(0);
expect( toInt(-0.55) ).toEqual(0);
expect( toInt(2.999)... |
version https://git-lfs.github.com/spec/v1
oid sha256:a934e6ae7d0b4c0ec33981e0bb309b96571c0c18935def61325115292f9e3230
size 17532
|
$(function () {
// Prepare demo data
var data = [
{
"hc-key": "nl-3557-gm0381",
"value": 0
},
{
"hc-key": "nl-3557-gm0377",
"value": 1
},
{
"hc-key": "nl-3557-gm0363",
"value": 2
},
{... |
module.exports.xyz = function(){
return "This is b module's method xyz!"
} |
'use strict'
var shimmer = require('../shimmer')
var logger = require('../logger.js').child({component: 'director'})
var NAMES = require('../metrics/names.js')
function nameTransaction(segment, partialName, res) {
if (!segment) return logger.error("No New Relic context to set Director route name on.")
if (!partia... |
// Controller for both server and client.
'use strict';
var assign = require('es5-ext/object/assign')
, matchUser = require('../utils/user-matcher')
, submit = require('mano/utils/save');
module.exports = assign(exports, require('../user'));
exports['user-add'] = {
submit: function (data) {
data[... |
"use strict";
var __ = require("./translate");
var message = require("./message");
var isDeleted = require("./is-deleted");
var modal = require("./modal");
(function ($) {
if (isDeleted) return;
$("#move-page").click(function (e) {
e.preventDefault();
var handleSubmit = function (e) {
... |
google.load("visualization", "1", {packages:['corechart', 'imagechart']});
// Visualization to show current power data.
function Makahiki_PowerMeter(server_url, wattdepot_version, source, refresh_interval, viz_id, options) {
// http://code.google.com/apis/visualization/documentation/gallery/genericimagechart.html
... |
// This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
/* eslint-disable max-len */
/* global getParamsFromSelectors:false, inlineAjaxForm:false, updateHtm... |
export { default } from 'ember-cli-vtkui/components/g-panel'; |
import { ModuleNames } from "@ag-grid-community/core";
import { EnterpriseCoreModule } from "@ag-grid-enterprise/core";
import { HorizontalResizeComp } from "./sideBar/horizontalResizeComp";
import { SideBarComp } from "./sideBar/sideBarComp";
import { SideBarButtonsComp } from "./sideBar/sideBarButtonsComp";
import { ... |
'use strict';
var React = require('react');
var d3 = require('d3');
var DataSeries = require('./DataSeries');
var common = require('../common');
var Chart = common.Chart;
var XAxis = common.XAxis;
var YAxis = common.YAxis;
var mixins = require('../mixins');
var CartesianChartPropsMixin = mixins.CartesianChartPropsMixi... |
define({
"instruction": "Az üdvözlőablak az alkalmazás megnyitása előtt jelenik meg.",
"defaultContent": "Itt adhatja hozzá a szövegeket, linkeket és kis méretű grafikákat.",
"requireConfirm": "Megerősítés kérése a folytatáshoz",
"noRequireConfirm": "Ne kérjen megerősítést a folytatáshoz",
"optionText": "Beál... |
import React from 'react'
import { Reactor, Store, toImmutable } from 'nuclear-js'
import Code from './code'
const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js'
import React from 'react'
const reactor = new Reactor({ debug: true });
reactor.registerStores({
typeFilter: Store({
getInitia... |
function do_i_work() {
console.log("yes i do");
}
//if enter key is clicked and input fields are not empty, click event is triggered on first visible button
function enter_key_clicks_first_visible_button_if_inputs_not_empty() {
$(document).keyup(function (e) {
//if 'enter' key is pressed'
if (e... |
'use strict';
module.exports = function(config, specificOptions) {
config.set({
frameworks: ['jasmine'],
autoWatch: true,
logLevel: config.LOG_INFO,
logColors: true,
browsers: ['Chrome'],
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 2,
browserNoActivityTimeout: 20000,
... |
angular.module('merchello.providers.resources').factory('braintreeResource',
['$http', 'umbRequestHelper',
function($http, umbRequestHelper) {
var baseUrl = Umbraco.Sys.ServerVariables["merchelloPaymentsUrls"]["merchelloBraintreeApiBaseUrl"];
return {
getClientRequ... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
DeletePlaylist
Deletes a YouTube playlist.
*/
var DeletePlaylist = function(session) {
/*
Create a new instance of the DeletePlaylist Choreo. A TembooSession object, containing a valid
set of Temboo c... |
/// <reference path="../disposables/disposable.ts" />
(function () {
var s;
var d = s.scheduleRecursive('state', function (s, a) { return Rx.Disposable.empty; });
var d = s.scheduleRecursiveFuture('state', 100, function (s, a) { return Rx.Disposable.empty; });
});
//# sourceMappingURL=scheduler.recursive.js... |
/*
* @example An iframe-based dialog with custom button handling logics.
*/
( function() {
CKEDITOR.plugins.add( 'MediaEmbed',
{
requires: [ 'iframedialog' ],
init: function( editor )
{
var me = this;
CKEDITOR.dialog.add( 'MediaEmbedDialog', function (editor)
... |
var stats = {}
require('seneca')()
.add('role:shop,info:purchase',function( msg, respond ) {
var product_name = msg.purchase.name
stats[product_name] = stats[product_name] || 0
stats[product_name]++
console.log(stats)
respond()
})
.listen({port:9003,pin:'role:shop,info:purchase'})
|
//
// The code that follows was originally sourced from:
// https://www.khronos.org/registry/webgl/sdk/debug/webgl-debug.js
//
module.exports = stateReset
/*
** Copyright (c) 2012 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or assoc... |
var _ = require('lodash'),
Promises = require('./../../promises'),
path = require('path'),
CONSTANTS = require('./../../constants'),
util = require('util'),
async = require('async'),
minimatch = require('minimatch');
function Service(container, name, fromModule) {
this.container = container;
this.m... |
'use strict';
describe('select', function() {
var scope, formElement, element, $compile, ngModelCtrl, selectCtrl, renderSpy, optionAttributesList = [];
function compile(html) {
formElement = jqLite('<form name="form">' + html + '</form>');
element = formElement.find('select');
$compile(formElement)(sc... |
'use strict';
/* deps: mocha */
var assert = require('assert');
var should = require('should');
var App = require('..');
var app;
describe('view.option()', function () {
beforeEach(function () {
app = new App();
app.engine('tmpl', require('engine-lodash'));
app.create('page');
})
it('should emit ev... |
function expose(helpers) {
for (var method in helpers) {
if (helpers.hasOwnProperty(method)) {
exports[method] = helpers[method];
}
}
}
expose(require('./tag'));
expose(require('./url'));
|
/*
Siesta 2.0.5
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
/**
@class Siesta.Test.Action.Tap
@extends Siesta.Test.Action
@mixin Siesta.Test.Action.Role.HasTarget
This action can be included in the `t.chain` call with "tap" shortcut:
t.chain(
... |
var fs = require('fs'),
minimatch = require('minimatch'),
path = require('path'),
jshint = require('./../packages/jshint/jshint.js'),
_reporter = require('./reporters/default').reporter,
_cache = {
directories: {}
};
function _lint(file, results, config, data) {
var buffer,
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'is', {
button: 'Sniðmát',
emptyListMsg: '(Ekkert sniðmát er skilgreint!)',
insertOption: 'Skipta út raunverulegu innihaldi',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.