code stringlengths 2 1.05M |
|---|
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
return queryInterface.removeConstraint('Ite... |
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0pr1
*/
/////////////////////////////////////////////////////////////////////////////
//
// YAHOO.widget.DataSource Backwards Compatibility
//
///////////////////////////... |
define([
'backbone',
'marionette',
'App'
], function(Backbone, Marionette, App) {
'use strict';
return Marionette.Behavior.extend({
events: {
'click a': 'showResource'
},
showResource: function(e) {
e.preventDefault();
App.vent.trigger('admin:' + this.options.resourceName + ... |
var util = require('util');
var uuid = require('uuid');
var client = require('../lib/dist');
const adminCredentials = new client.UserCredentials("admin", "changeit");
function createRandomEvent() {
return client.createJsonEventData(uuid.v4(), {a: uuid.v4(), b: Math.random()}, {createdAt: Date.now()}, 'testEvent');
}... |
import User from './user.model';
import isNumeric from 'isnumeric';
import _ from 'lodash';
import generatePassword from 'password-generator';
import reportError from '../error-reporter';
var validationError = function(res, err) {
return res.status(422).json(reportError(err));
};
User.on('error', err => reportError... |
import PlainHamburgerMenuButton from "../src/plain/PlainHamburgerMenuButton.js";
export default class ElixHamburgerMenuButton extends PlainHamburgerMenuButton {}
customElements.define("elix-hamburger-menu-button", ElixHamburgerMenuButton);
|
version https://git-lfs.github.com/spec/v1
oid sha256:7813efc69631978ae730f5fbd13c58f01adc961ef4c5db27af3caff40227e9dd
size 41720
|
/*
* Mandelbrot which uses a minimum of mechanisms
* (an early test).
*/
/*---
{
"slow": true
}
---*/
/* Computed with Rhino, verified against V8 */
/*===
................................................................................
........................................................................... |
var searchData=
[
['get',['get',['../classSparseMatrix.html#aec4a3f41c42d29d0dd12099120a3aef5',1,'SparseMatrix']]]
];
|
(function($) {
var cultures = $.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["ar"] = $.extend(true, {}, en, {
name: "ar",
englishName: "Arabic",
nativeName: "العربية",
language: "ar",
isRTL: true,
numberForma... |
import { moduleFor, test } from 'ember-qunit';
import config from '../../../config/environment';
moduleFor('adapter:application', 'Unit | Adapter | application', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});
// Replace this with your real tests.
test('it exists', f... |
'use strict';
module.exports = {
up: function (queryInterface, DataTypes) {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
*/
return queryInterface
.createTable
( 'routeRoles'
, { routeId:
{ type: DataTypes... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* 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
*
... |
var chai = require('chai'),
expect = chai.expect,
ast = require('../../../lib/ast_constructors/ast_constructors');
describe('EquivalenceNode AST Constructor', function() {
it('should exist', function() {
expect(ast.EquivalenceNode).to.exist;
});
var locData = {
first_line: 11,
last_line: 1... |
const should = require('should');
const sinon = require('sinon');
const Promise = require('bluebird');
const rewire = require('rewire');
const pagination = rewire('../../../../core/server/models/plugins/pagination');
describe('pagination', function () {
let paginationUtils;
afterEach(function () {
sin... |
var image = "quilt/etcd";
function Etcd(n) {
var refContainer = new Container(image);
this.etcd = new Service("etcd", refContainer.replicate(n));
var children = this.etcd.children();
var peers = children.join(",");
for (var i = 0; i < this.etcd.containers.length; i++) {
this.etcd.containers... |
'use strict';
var _ = require('lodash');
var cssKeywords = require('../../source/css-keywords');
var lengths = [
'1em',
'1rem',
'1%',
'1px',
'1pt',
'1cm',
'1mm',
'1in',
'1pc',
'1ex',
'1ch',
'1vh',
'1vw',
'1vmin',
'1vmax'
];
var calcsWithDivision = [
'ca... |
'use strict';
var virtualbox = require('../lib/virtualbox'),
async = require('async'),
args = process.argv.slice(2),
vm = args[0],
key = args.length > 1 && args[1],
sequence = undefined,
delay = 250;
var SCAN_CODES = virtualbox.SCAN_CODES;
var fns = [];
/**
... |
define([
'aeris/errors/errortypefactory'
], function(ErrorTypeFactory) {
/**
* @class aeris.errors.APIResponseError
* @extends aeris.errors.AbstractError
*/
return new ErrorTypeFactory({
name: 'APIResponseError'
});
});
|
import Renderable from './Renderable'
export default class Component extends Renderable {
constructor(object, property, options = {}, domString = '') {
options.classNames = options.classNames || []
options.classNames.push('guigui-component')
if (!object) {
throw new Error('Cannot create a componen... |
const chalk = require('chalk')
console.log(chalk.yellow('This should be in yellow color'))
|
import isExpressionResultUsed from '../../src/utils/isExpressionResultUsed';
import parse from '../../src/utils/parse';
import { ok } from 'assert';
describe('isExpressionResultUsed', () => {
it('is true for operands in a binary operator', () => {
const ast = parse('a + b');
ok(isExpressionResultUsed(ast.bod... |
/**
* @license
* Copyright 2016 Palantir Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
define(['jquery', 'findRightItem'], function($, findRightItem) {
//将返回的json转化为html片段
function createInnerBoxFragment(data, table) {
var innerBoxHTML = "";
$.each(data, function(index, value) {
// alert(index);
var id = $(value).attr("id");
var title = $... |
const ProtocolAction = require('./_base-action.js');
/**
* Get the element on the page that currently has focus. The element will be returned as a [Web Element](https://www.w3.org/TR/webdriver1/#dfn-web-elements) JSON object.
*
* @example
* module.exports = {
* 'demo Test' : function(browser) {
* browser.el... |
'use strict';
var Drone = require('../');
var noble = require('noble');
var knownDevices = [];
noble.startScanning();
noble.on('discover', function(peripheral) {
if (!Drone.isDronePeripheral(peripheral)) {
return; // not a rolling spider
}
var details = {
name: peripheral.advertisement.localName,
... |
var editor;
function startApp() {
var domProgress = document.getElementById('page-preload');
editor = new b3e.editor.Editor();
angular.bootstrap(document, ['app']);
} |
function pbrf_ajax(blank) {
jQuery("#ajax_running").show();
jQuery.ajax({
url: '/modules/blockpbrf/helper.php',
type: 'post',
data: 'action=pbrf&blank=' + blank + '&order_id=' + jQuery('#pbrf_order_id').val() + '&cen=' + jQuery('#cen').val() + '&nalojka=' + jQuery('#nalojka').val(),... |
"use strict";
var _toolsProtectJs2 = require("./../tools/protect.js");
var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2);
exports.__esModule = true;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (... |
module.exports = errorHandler
module.exports.exit = exit
var cbCalled = false
var log = require('npmlog')
var npm = require('../npm.js')
var itWorked = false
var path = require('path')
var wroteLogFile = false
var exitCode = 0
var rollbacks = npm.rollbacks
var chain = require('slide').chain
var writeFileAtomic = requ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.10_A3.3_T2;
* @section: 12.10;
* @assertion: No matter how control leaves the embedded 'Statement',
* the scope chain is always restored to its former state;
* @des... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 5C4.19 5 2 9.48 2 12c0 3.86 3.13 7 6.99 7h6.02C17.7 19 22 16.92 22 12c0 0 0-7-10-7zm0 2c7.64 0 7.99 4.51 8 5H4c0-.2.09-5 8-5zm2.86 10H9.14c-2.1 0-3.92-1... |
/* global getAttrs, setAttrs, getSectionIDs, generateRowID, on ,removeRepeatingRow, _, getTranslationByKey */
(function () {
"use strict";
/* Data constants */
const sheetName = "Stars Without Number (revised)";
const sheetVersion = "2.2.0";
const translate = getTranslationByKey;
const attributes = ["strength", "... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4... |
describe('$meteorCamera service', function() {
var MeteorCamera = Package['mdg:camera'].MeteorCamera;
var $meteorCamera;
var $rootScope;
beforeEach(angular.mock.module('angular-meteor.camera'));
beforeEach(angular.mock.inject(function(_$rootScope_, _$meteorCamera_) {
$meteorCamera = _$meteorCamera_;
... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"
}), 'TextFieldsOutlined'); |
var P = null;
var HORIZONTAL = true;
var texLoader = false;
THREE.ImageUtils.crossOrigin = '';
function report(s)
{
console.log(s);
}
function loadTexture(url)
{
if (!texLoader) {
texLoader = new THREE.TextureLoader();
}
return texLoader.load(url);
}
var imageObjs = [];
//var imageUrl = 'http://www.... |
function Report (warnings, errors) {
this.warnings = warnings || [];
this.errors = errors || [];
}
module.exports = Report; |
//>>built
define("dojo/_base/lang dojo/_base/declare dojo/_base/event dojo/_base/connect dojo/_base/html dojo/dom dojox/lang/functional dojo/keys".split(" "),function(w,r,t,b,u,v,n,c){return r("dojox.geo.charting.KeyboardInteractionSupport",null,{_map:null,_zoomEnabled:!1,constructor:function(a,d){this._map=a;d&&(this.... |
/* ===========================================================
* bootstrap-popover.js v3.0.0
* http://twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"... |
/**
* Terminus.js
* Copyright © 2012 Ramón Lamana
*/
define(function(require) {
'use strict';
var Util = require('core/util');
var OutputLine = require('ui/outputline');
/**
* Client Output class
* @class
*/
var Output = function() {
this.element = document.createElement('div');
this.element.class... |
import React, { PropTypes } from 'react';
class LegendItem extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
used: PropTypes.number,
total: PropTypes.number,
color: PropTypes.string
};
static contextTypes = {
muiTheme: PropTypes.object
};
getStyles() {
... |
import {inject} from 'aurelia-framework';
import {PostService} from '../post-service';
import './home.css!';
@inject(PostService)
export class Home {
latestPosts = [];
latestPostsError = false;
latestComments = [];
latestCommentsError = false;
constructor(PostService) {
this.postService = PostService;
... |
tests.push(['common/space/afterPunctuation', [
['Солнце садилось за горизонт,и поднялся ветер. Вот.', 'Солнце садилось за горизонт, и поднялся ветер. Вот.'],
['Солнце садилось за горизонт,и поднялся ветер!Вот.', 'Солнце садилось за горизонт, и поднялся ветер! Вот.'],
['Солнце садилось за горизонт,и поднялся... |
export default function() {
let testRoot
beforeEach(() => {
testRoot = document.createElement('div')
testRoot.id = 'test-root'
document.body.appendChild(testRoot)
})
afterEach(() => {
testRoot.remove()
})
}
|
'use strict';
module.exports = {
GAME_START: {
name: 'gameStart',
message: 'The game has started.'
},
TURN_CHANGE: {
name: 'turnChange',
message: data => `The turn has changed to player "${data.playerId}".`,
data: {
playerId: 'The "id" of the player the t... |
angular.module('connections', []);
|
(function () {
'use strict';
// parameters are associated correctly
const retained1 = function ( func, obj ) { return func( obj ); };
retained1( obj => obj(), () => () => console.log( 'effect' ) )();
const retained2 = function ( func, obj ) { return func( obj ); };
retained2( obj => ({ foo: obj }), {} ).foo.bar... |
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var port = process.env.PORT || 3000;
app.use(bodyParser.json());
app.use('/bower_components', express.static(__dirname + '/bower_components'));
app.use(express.static(__dirname + '/public'));
app.use('/node_modules', expr... |
import 'jquery';
import handlebars from 'handlebars';
var templates = (function () {
var load = function (name) {
var url = `templates/${name}.handlebars`;
var promise = new Promise(function (resolve, reject) {
$.get(url, function (template) {
var templateHTML = handleba... |
describe('util', function() {
describe('with no overrides', function() {
beforeEach(module('material.core'));
var $rootScope, $timeout, $$mdAnimate;
beforeEach(inject(function(_$animate_, _$rootScope_, _$timeout_) {
$animate = _$animate_;
$rootScope = _$rootScope_;
$timeout = _$timeout... |
'use strict';
var expect = require('chai').expect;
var sinon = require('sinon');
var jws = require('jws');
var startTestApi = require('./utils/test-server');
var lab = exports.lab = require('lab').script();
var testApi;
var dummyBadge = {
slug: 'slug'
};
lab.experiment('get badge', function() {
var sandbox... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Resume = mongoose.model('Resume');
/**
* Globals
*/
var user, resume;
/**
* Unit tests
*/
describe('Resume Model Unit Tests:', function() {
beforeEach(function(done) {
... |
const fs = require('fs');
const os = require('os');
const path = require('path');
const SEP = os.platform() === 'win32' ? '\\\\' : '/';
const EXCLUDED_DIRS = [
'node_modules',
'.git',
'.idea',
'dist'
];
const handlePackageJson = dir => {
const inputPackageJsonPath = `${dir}/_package.json`;
c... |
require('./SnackBar.css');
import Xion from '../../xion/Xion.js';
class SnackBar extends Xion {
controller(opts){
opts = opts || {}
this.toast = null;
this.animationDuration = 300;
this.duration = 5000;
return this;
}
view(){
return [
['div',{clas... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.5.3_A1.28;
* @section: 7.5.3;
* @assertion: The "synchronized" token can not be used as identifier;
* @description: Checking if execution of "synchronized=1" fa... |
/* This file is not necessary to tulito functionality, but is an illustration of
how to use tulito.js and tulito.less for handling and triggering of your
own custom events. */
document.addEventListener('deviceready', function() {
StatusBar.overlaysWebView(false);
StatusBar.hide();
setTimeout(function() {
... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import cx from 'classnames';
import Medallion from '../Medallion/Medallion';
import m from '../../globals/modifiers.css';
import BtnGroup from './BtnGroup';
import Icon from '../Icon/Icon';
import Btn from '../Btn/Btn';
storiesOf('BtnGroup', mod... |
define([], function () {
return {
// column headers associated with features in tsv/csv files
// columnHeaders value indicates whether 1st row in data file contains column headers
// keys are used by tsv/csv reader to determine if file type should be treated as tsv even though it is typed as txt.
// ... |
/**
* Imports
*/
import test from 'tape'
import Playlist from '.'
/**
* <Playlist/> tests
*/
test('<Playlist/> should work', t => {
})
|
/* Brazilian initialisation for the jQuery UI date picker plugin. */
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
jQuery(function($) {
$.datepicker.regional['pt-BR'] = {
closeText: 'Fechar',
prevText: '<Anterior',
nextText: 'Próximo>',
currentText: 'Hoje',
monthNam... |
var dbUtils = require('../db/dbUtils');
var controllerUtils = require('./controllerUtils');
var passport = require('../auth/auth');
var authUtils = require('../auth/authUtils');
var login = function(req, res, next) {
passport.authenticate('local', function(error, user, info) {
if (error) {
console.error(er... |
import { connect } from "react-redux";
import { withRouter } from "react-router";
import { getConfigKey } from "../selectors/app.js";
import App from "../components/App.js";
export default withRouter(
connect(
(state, ownProps) => ({
darkMode: getConfigKey(state, "darkMode")
}),
... |
/**
* @class AjaxBootstrapSelectList
* Maintains the select options and selectpicker menu.
*
* @param {AjaxBootstrapSelect} plugin
* The plugin instance.
*
* @return {AjaxBootstrapSelectList}
* A new instance of this class.
*/
var AjaxBootstrapSelectList = function (plugin) {
var that = this;
/*... |
"use strict";
var _toolsProtectJs2 = require("./../../tools/protect.js");
var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2);
exports.__esModule = true;
var _amd = require("./amd");
var _amd2 = _interopRequireDefault(_amd);
var _strict = require("./_strict");
var _strict2 = _interopRequireDefault(_s... |
const mongoose = require('mongoose');
const chai = require('chai');
const sinon = require('sinon');
require('sinon-mongoose');
const expect = chai.expect;
const User = require('../models/User');
const Restaurant = require('../models/Restaurant');
const Product = require('../models/Product');
const Order = require('../... |
'use strict';
const moment = require('moment');
const url = require('url');
const Case = require('case');
const resultsPerPage = require('../server/config').searchResultsPerPage;
const PRISON_NUMBER_LENGTH = 8;
const acronyms = [
'ARD',
'ARP',
'CRC',
'CJA',
'DTO',
'EPP',
'GOAD',
'HDC',
... |
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
wrap = require('gulp-wrap-umd'),
pkg = require('./package.json'),
stylish = require('jshint-stylish'),
path = pkg.path,
port = 3000;
gulp.task('js', function() {
return gulp.src('./js/*.js')
.pipe($.connect.reload())
... |
module.exports = [
{
"name": "The Dream Is Over",
"artist": "PUP",
"image": "https://f4.bcbits.com/img/a3806482547_11.jpg",
"link": "https://puptheband.bandcamp.com/album/the-dream-is-over"
},
{
"name": "The Bones of a Dying World",
"artist": "If These Trees Could Talk",
"image": "http... |
(function() {
var AsyncBinaryState, EventEmitter, HandshakeManager, PersistentConnection, Promise, random,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } f... |
jsio('import net');
jsio('from net.protocols.buffered import BufferedProtocol');
jsio('import std.utf8 as utf8');
/*
works like this:
OPEN
upstream:
length_after_colon:id,0host,port
downstream:
length_after_colon:id,0
-----
CLOSE
upstream:
length_after_colon:id,1
downstream:
length_after_colon:id,1errcode
-----
DATA... |
// For an introduction to the Page Control template, see the following documentation:
// http://go.microsoft.com/fwlink/?LinkId=232511
(function () {
"use strict";
WinJS.UI.Pages.define("/pages/about/aboutflyout.html", {
// This function is called whenever a user navigates to this page. It
// ... |
var application_root = __dirname + '/../app';
var fs = require('fs');
var express = require("express");
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(function(req, res, next){ console.log((new Date()), re... |
/*
* 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.
*/
'... |
/*********************************************
* @name FormValidator
* @version 1.0
* @author Thomas Champion (thchampi@gmail.com)
* @description Validateur de formulaires
*
* ##### Format du formulaire ######################
*
* <form class="form_validator">
* <div>
* <input type="text" class="va... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*
This is an optimized version of Dojo, built for deployment and not for
development. To get sources and documentation, p... |
/**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
import d3 from 'd3';
// applies the d3.functor to each element of an array, allowing a mixed
// of functions and constants, e.g.
// [0, function(d) { return d.foo; }]
export default function functoredArray(x) {
var functoredItems = x.map(function(item) {
return d3.functor(item);
});
return function... |
/**
* jQuery : 城市联动插件
* @author XiaoDong <cssrain@gmail.com>
* http://www.cssrain.cn
* @example $("#test").ProvinceCity();
* @params 暂无
*/
$.fn.ProvinceCity = function(){
var _self = this;
//定义3个默认值
_self.data("province",["请选择", "请选择"]);
_self.data("city1",["请选择", "请选择"]);
_self.data("city2",["请选择"... |
lychee.define('lychee.codec.JSON').exports((lychee, global, attachments) => {
/*
* HELPERS
*/
const _CHARS_SEARCH = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
const _CHARS_META = {
'\r': '', // FUCK YOU, Microsoft!
... |
import { Matrix4, Geometry, Mesh, MeshLambertMaterial, PlaneGeometry } from 'three';
import {View} from "../../../../engine/graphics/View";
import {Animation} from "../../../../engine/graphics/Animation";
import {TextureManager} from "../../../../engine/graphics/TextureManager";
const WATER_FRAMES = [
'animation_w... |
import Mousetrap from 'mousetrap';
import ShortcutsNavigation from './shortcuts_navigation';
import findAndFollowLink from './shortcuts_dashboard_navigation';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {
super();
Mousetrap.bind('e', ShortcutsWiki.editWiki);
}
static e... |
//Traduccion al ES del datepicker
$(function ($) {
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'N... |
Ext.ns('Tomtalk');
Tomtalk.IdcUI = Ext.extend(Ext.Panel, {
KE: false,
constructor: function (config) {
var me = this;
config = Ext.apply({
style: 'padding:10px;background-color: white;',
border: false
}, config);
me.COMPONENTS = {};
Tomtalk.IdcU... |
App.ProjectListTable = App.SimpleTable.extend({
type : null,
maxros: 20,
clickRoute: null,
clickOn: function (e ) {
/*if (this.get('clickRoute') != undefined) {
AppController.transitionToRoute(this.get('clickRoute'), e);
}*/
},
getRowObject: function(obj) {
... |
//@flow
declare var obj : ?{
foo : number,
'foo.bar.baz' : number,
}
obj.
// ^
|
var gulp = require('gulp');
var useref = require('gulp-useref');
var zetzer = require('gulp-zetzer');
var filter = require('gulp-filter');
var uglify = require('gulp-uglify');
var cleanCss = require('gulp-clean-css');
var config = require('./../config');
gulp.task('useref', function () {
return gulp.src(config.globa... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var component = new Schema({
who: String,
what: String,
when: String
});
var reminderModel = {
createdDate: Date,
updatedDate: Date,
title: String,
moreInfo: String,
performedBy: String,
exceptions: [String],
more... |
var fs = require('fs')
module.exports = constructor
module.exports.stdout = constructor(process.stdout)
module.exports.stderr = constructor(process.stderr)
function log(output, strings, ...values){
for (var i = 0; i < strings.length || i < values.length; i++) {
var str = strings[i]
var value = values[i]
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" /></React.Fragment>
, 'FormatUnderlinedSharp');
|
/**
* TCG & Tabletop: Yugioh wiki plugin
* This is a command that allows users to search the yugioh wiki for cards. It will display the closest match with a given query, or a separate message if there isn't anything found.
* By bumbadadabum with help from ascriptmaster, codelegend and the PS development team.
*/
'use ... |
(function () {
CodeMirror.xmlHints = [];
CodeMirror.xmlHint = function (cm, simbol) {
if (simbol.length > 0) {
var cursor = cm.getCursor();
cm.replaceSelection(simbol);
cursor = {line: cursor.line, ch: cursor.ch + 1};
cm.setCursor(cursor);
}
... |
describe('assessment: inputImageAltIsNotPlaceholder', function () {
var client, assessments, quailResults, cases;
// Evaluate the test page with Quail.
before('load webdrivers and run evaluations with Quail', function () {
return quailTestRunner.setup({
url: 'http://localhost:9999/inputImageAltIsNotP... |
/*!
* bespoke-loop v1.0.0
*
* Copyright 2014, Mark Dalgleish
* This content is released under the MIT license
* http://mit-license.org/markdalgleish
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"un... |
'use strict'
var operation = require('./operation')
/**
* @name pitch.height
*
* @function
* @param {String|Array} pitch - the pitch to get the height from
* @return {Integer} the height of -1 if not valid note
*/
module.exports = operation(function (p) {
if (!Array.isArray(p)) return -Infinity
var f = p[0]... |
var submodule = { export: 'someval', require: 'something else' };
console.log(submodule); |
/* global Ext, expect, jasmine */
describe("Ext.window.Window", function() {
var win,
container;
function makeWindow(config) {
config = Ext.apply({
width: 200,
height: 200,
x: 10,
y: 10
}, config);
win = new Ext.windo... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-... |
import {get} from "ember-metal/property_get";
import {set} from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import {View as EmberView} from "ember-views/views/view";
/**
@module ember
@submodule ember-routing
*/
EmberView.reopen({
/**
Sets the private `_outlets` object on the view.
... |
( function () {
"use strict";
var clean = require( "../../../common/clean" );
var country = require( "../../../common/standardization/country" );
// var logStatus = require( "../../../common/logStatus" );
module.exports = function ( zipcode, countryCode ) {
var postalCodeRegExp;
var countryName;
var clean... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.