code stringlengths 2 1.05M |
|---|
let objectify = require('./objectifier')
module.exports = function processResult (result) {
if (console && console.warn) {
result.warnings().forEach(warn => {
let source = warn.plugin || 'PostCSS'
console.warn(source + ': ' + warn.text)
})
}
return objectify(result.root)
}
|
"use strict";
var Client = require("./../lib/index");
var testAuth = require("./../testAuth.json");
var github = new Client({
debug: true,
headers: {
"Accept": "application/vnd.github.loki-preview+json"
}
});
github.authenticate({
type: "oauth",
token: testAuth["token"]
});
github.repos.... |
/**
* A selection model that renders a column of checkboxes that can be toggled to
* select or deselect rows. The default mode for this selection model is MULTI.
*
* @example
* var store = Ext.create('Ext.data.Store', {
* fields: ['name', 'email', 'phone'],
* data: [{
* ... |
var gulp = require('gulp');
// Finds index.js file
var gae = require('../');
var path = require('path');
if (argv.clear_datastore) {
params.clear_datastore = true;
}
if (argv.enable_sendmail) {
params.enable_sendmail = argv.enable_sendmail;
}
gulp.task('gulp-serve', function() {
gulp.src('app/app.yaml')
.p... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M14 1H4c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 19H4V4h10v16zM20.63 8.26c-.26-.32-.74-.36-1.04-.06l-.03.03c-.2... |
version https://git-lfs.github.com/spec/v1
oid sha256:f3786d388e21669dd8a7c421ec384b38e0cf895226c2d892476caf2671a0a80a
size 549
|
/**
* Test injectors
*/
import { memoryHistory } from 'react-router-dom';
import { put } from 'redux-saga/effects';
import { shallow } from 'enzyme';
import React from 'react';
import configureStore from '../../configureStore';
import injectSaga from '../injectSaga';
import * as sagaInjectors from '../sagaInjectors... |
import nanoid from 'nanoid';
import format from 'nanoid/format';
import generate from 'nanoid/generate';
import url from 'nanoid/url';
const id1: string = nanoid();
// $FlowExpectedError
const id2: number = nanoid();
nanoid(10)
// $FlowExpectedError
nanoid('10')
const random = () => [''];
const f1: string = forma... |
(function () {
'use strict';
angular
.module('professions')
.controller('ProfessionsListController', ProfessionsListController);
ProfessionsListController.$inject = ['ProfessionsService'];
function ProfessionsListController(ProfessionsService) {
var vm = this;
vm.professions = ProfessionsSer... |
var intervalId,
handleReceptacle = {},
observerIds = [],
// This is the same value as server.get.js
sampleUri = "/a/iotivity-node-observe-sample",
iotivity = require( "iotivity-node/lowlevel" );
// Start iotivity and set up the processing loop
iotivity.OCInit( null, 0, iotivity.OCMode.OC_SERVER );
iotivity.OCSe... |
import React from 'react';
import { shallow } from 'enzyme';
import { Auth } from 'containers/Auth';
describe('user toggle the authType', () => {
let wrapper;
it('should be LoginForm initially', () => {
wrapper = shallow(<Auth authType="Login" dispatch={jest.fn()} />);
expect(wrapper.name()).toBe('LoginFo... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.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 a... |
'use strict';
exports.__esModule = true;
exports.noop = noop;
exports.hasOwn = hasOwn;
exports.toObject = toObject;
exports.getPropByPath = getPropByPath;
var hasOwnProperty = Object.prototype.hasOwnProperty;
function noop() {};
function hasOwn(obj, key) {
return hasOwnProperty.call(obj, key);
};
function extend(... |
import DropdownMenu from 'src/modules/Dropdown/DropdownMenu'
import * as common from 'test/specs/commonTests'
describe('DropdownMenu', () => {
common.isConformant(DropdownMenu)
common.rendersChildren(DropdownMenu)
})
|
describe('StarterCtrl', function() {
it('should pass a test', function() {
expect(true).to.equal(true);
});
});
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var GameEvents = require('../../core/events');
/**
* @classdesc
* A Bitmap Mask combines the alpha ... |
define(['./_arrayFilter', './_baseFilter', './_baseIteratee', './isArray', './negate'], function(arrayFilter, baseFilter, baseIteratee, isArray, negate) {
/**
* The opposite of `_.filter`; this method returns the elements of `collection`
* that `predicate` does **not** return truthy for.
*
* @static
*... |
/**
* @author mrdoob / http://mrdoob.com/
* @author zz85 / http://joshuakoo.com/
* @author yomboprime / https://yombo.org
*/
import {
BufferGeometry,
Color,
FileLoader,
Float32BufferAttribute,
Loader,
Matrix3,
Path,
ShapePath,
Vector2,
Vector3
} from "../../../build/three.module.js";
var SVGLoader = fun... |
var sendHtml = require("send-data/html")
var homePage = require("../templates/home.js")
module.exports = home
function home(req, res) {
sendHtml(req, res, homePage({ title: "Route seperation example"}))
}
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12... |
'use strict';
/**
* Module dependencies.
*/
var profiles = require('../controllers/profiles.server.controller');
module.exports = function (app) {
// Profiles collection routes
app.route('/api/profiles')
.get(profiles.list)
.post(profiles.create);
// Single profile routes
app.route('/api/profiles/:... |
import React from 'react';
import { mount } from 'enzyme';
import { BigButton } from '../../../forms/inputs';
describe('<BigButton>', () => {
it('renders Button with overridden props', () => {
const child = <span>Click me!</span>;
const button = mount(
<BigButton
className={ `test` }
o... |
var has = require("./has.js")
var isObject = require("./is-object.js")
var nativeKeys = Object.keys
module.exports = nativeKeys || keys
function keys(obj) {
if (!isObject(obj)) {
return []
}
if (nativeKeys) {
return nativeKeys(obj)
}
var k = []
for (var key in obj) {
... |
Fireball.addTemplate({
name: "Well",
description: "Text well",
template: 'fireball_basic_well',
type: 'component',
settings: {
text: {
name: 'Text',
type: 'html'
}
}
}); |
function getData(...props) {
return function (req, res, next) {
if (!req.body) {
res.writeHead(400);
return res.end();
}
const data = props.concat('origin').reduce((data, prop) => {
if (!data || !req.body[prop]) {
return null;
... |
describe('I refresh the page', function() {
before(function() {
browser.manage().timeouts().implicitlyWait(100);
return browser.get('http://localhost:9001/');
});
describe('regex', function() {
before(function() {
stepPattern = 'I refresh the page';
});
it('should match "I refresh the... |
// Generated by IcedCoffeeScript 1.3.1b
(function() {
var key, val, _ref;
_ref = require('./coffee-script');
for (key in _ref) {
val = _ref[key];
exports[key] = val;
}
}).call(this);
|
var markzero = require('markzero');
var abs = markzero.links.abs;
var isAbsolute = markzero.links.isAbsolute;
var isHash = markzero.links.isHash;
var anchor = markzero.links.anchor;
/**
* @func absolute(token)
*
* @api private
*
* Modifies URLs to be absolute within inline text blocks.
*
* @param The meta d... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17.5 10.5h2v1h-2v-1zm-13 0h2v3h-2v-3zM23 3H1v18h22V3zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.85 0 1.5.65 1.5 1.5v3zm4.62 1.5h-1.5L9.37 9h1.5l1 3... |
(function ($) {
'use strict';
// Vars
var accordion = $('.accordion'),
accordionHeader = $('.accordion__header'),
accordionContent = $('.accordion__content'),
showOneAnswerAtATime = false;
/**
* Save question focus
*/
var saveFocus = function (elem, thisAccordionHeaders) {
// Reset o... |
var searchData=
[
['flags',['flags',['../structENetPacket.html#afe56ea0c19dcbcdb3e48361a8b9ef190',1,'ENetPacket::flags()'],['../structENetPeer.html#acaf5ebc41ab85dc406f43ffff989ea90',1,'ENetPeer::flags()']]],
['fragmentcount',['fragmentCount',['../structENetIncomingCommand.html#a045997566fdb38517b7a775355e5be95',1,... |
version https://git-lfs.github.com/spec/v1
oid sha256:d18b16702f9f10cffff340b2eb999c417a492418987f6cc0563e9f3d158da4e5
size 8342
|
'use strict';
/**
* hojs
*
* @author Zongmin Lei <leizongmin@gmail.com>
*/
const assert = require('assert');
const Schema = require('../schema');
const { getCallerSourceLine } = require('../utils');
const debug = require('../debug').core;
module.exports = function extendRegister() {
this.api.override = {};
... |
({
__proto__: a,
__proto__: a,
a: a = 1
})
|
import Helper from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Has Many | Named Reflexive | new', function(hooks) {
hooks.beforeEach(function() {
this.helper = new Helper();
this.schema = this.helper.schema;
});
test('the parent accepts a saved child id', function(asse... |
'use strict';
var MACROUTILS = require( 'osg/Utils' );
var BufferArray = require( 'osg/BufferArray' );
var Geometry = require( 'osg/Geometry' );
var NodeVisitor = require( 'osg/NodeVisitor' );
var PrimitiveSet = require( 'osg/PrimitiveSet' );
var Vec3 = require( 'osg/Vec3' );
var osg = MACROUTILS;
var TangentSpaceGe... |
import React from 'react';
import { i18n } from 'gutenberg/utils/helpers';
import isEmpty from 'lodash/isEmpty';
import { getRawContent } from 'gutenberg/utils/data';
// We should use this... but no time for now
// import { __ } from '@wordpress/i18n';
import { RawHTML } from '@wordpress/element';
import edit from './e... |
{
"name": "notification.js",
"url": "https://github.com/timseverien/notification.js.git"
}
|
'use strict';
var ShelfHelper = require('../../lib/shelf-helper.js').ShelfHelper;
var AssertsHelper = require ('../../lib/asserts-helper.js').AssertsHelper;
var EditorHelper = require ('../../lib/editor-helper.js').EditorHelper;
describe('shelf',function(){
var shelf = new ShelfHelper();
var designerAsserts = new ... |
/**
* Download vendor deps
*/
'use strict';
// Intrinsic mods
var path = require('path');
var https = require('https');
// Npm mods
var _ = require('lodash');
var fs = require('fs-extra');
// Pkg.json
var pkgJson = require('./../package.json');
// Files we need and the projects from whence they came.
// @todo:... |
var config = require( './config' );
var Winston = require( 'winston' );
// Build new Winston logger and return
module.exports = new (Winston.Logger)({
transports: [
new (Winston.transports.Console)({
colorize: true,
timestamp: true
}),
new (Winston.transports.File)({
filename: config.b... |
(function() {
'use strict';
angular
.module('echarliApp')
.factory('DateUtils', DateUtils);
DateUtils.$inject = ['$filter'];
function DateUtils ($filter) {
var service = {
convertDateTimeFromServer : convertDateTimeFromServer,
convertLocalDateFromServe... |
$(document).ready(function() {
window.TABLE = $('#references-table').DataTable({
"iDisplayLength": 25,
fixedHeader: {headerOffset: 50},
responsive: true,
"order": [[2, "asc"]],
"aoColumnDefs": [
{
"className": "dt-center",
"bSortabl... |
define(['./_baseGet', './_baseSlice'], function(baseGet, baseSlice) {
/**
* Gets the parent value at `path` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Array} path The path to get the parent value of.
* @returns {*} Returns the parent value.
*/
function pa... |
export default /* glsl */`
void normalOffsetPointShadow(vec4 shadowParams) {
float distScale = length(dLightDirW);
vec3 wPos = vPositionW + dVertexNormalW * shadowParams.y * clamp(1.0 - dot(dVertexNormalW, -dLightDirNormW), 0.0, 1.0) * distScale; //0.02
vec3 dir = wPos - dLightPosW;
dLightDirW = dir;
}
... |
var gridOptions = {
columnDefs: [
{ field: 'country', rowGroup: true, hide: true },
{ field: 'year', rowGroup: true, hide: true },
{ field: 'sport', minWidth: 200 },
{ field: 'gold' },
{ field: 'silver' },
{ field: 'bronze' },
{ field: 'total' },
{ fie... |
/*eslint no-console: 0*/
'use strict';
var Core = require('../core/core');
var Track = require('../core/track');
var f = require('util').format;
var uniqueId = require('unique-id');
function noop() {
return this.name;
}
function pad(s, n) {
s = String(s);
while (s.length < n) {
s = '0' + s;
... |
import test from 'ava';
import resolveData from '../lib/data';
test('w/o options', t => resolveData('test/fixtures/duplicate-1.jpg')
.then((resolvedDataUrl) => {
t.is(resolvedDataUrl.slice(0, 32), 'data:image/jpeg;base64,/9j/4AAQS');
t.is(resolvedDataUrl.slice(-32), 'GWbO3rSpUIsvhA1vsPh/WlSpVprP/9k=');
})... |
import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";export function alignProperty(r){var e=r.size,n=r.grid,t=e-e%n,o=t+n;return e-t<o-e?t:o};export function fontGrid(r){var e=r.lineHeight;return r.pixels/(e*r.htmlFontSize)};export function responsiveProperty(r){var e=r.cssProperty,n=r.min,t=r.max,o=r... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@materia... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { DomHandler, classNames, ObjectUtils, IconUtils } from 'primereact/utils';
import { Dialog } from 'primereact/dialog';
import { Button } from 'primereact/button';
import { localeOption } from 'primereact/api';
import { Portal } from 'pr... |
var Code = require('code'),
Lab = require('lab'),
lab = exports.lab = Lab.script(),
describe = lab.experiment,
before = lab.before,
after = lab.after,
it = lab.test,
expect = Code.expect,
nock = require("nock"),
users = require('../../fixtures').users;
var MockTransport = require('nodemailer-mock-tra... |
module.exports = require('./build/index.js'); |
// Copyright 2021 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Meroitic_Cursive`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Uni... |
/*! jQuery UI - v1.10.4 - 2014-06-07
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.de={closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","... |
// Copyright 2021 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Meetei_Mayek`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode... |
import { test } from 'tap';
import { ensureBoolean, ensureNumber, ensureString } from '../src/server/lib/ensure-type';
test('ensureBoolean', (t) => {
t.equal(ensureBoolean({}), true);
t.equal(ensureBoolean(true), true);
t.equal(ensureBoolean(false), false);
t.equal(ensureBoolean(0), false);
t.equal... |
YUI.add('jsonp-tests', function(Y) {
var suite = new Y.Test.Suite("JSONP"),
// For the tests, replace Y.Get.js with an object that calls the
// appropriate callback based on the url and sets a _getConfig property
// on the test object for inspection. This test suite is not testing
// the Get module. A... |
'use strict';
var parts = ['Apps', 'Users', 'Keys', 'Tokens', 'Snapshots', 'Databases', 'Logs', 'Client'];
parts.forEach(function forEach(k) {
exports[k] = require('./client/' + k.toLowerCase())[k];
});
//
// ### function createClient(options)
// #### @options {Object} options for the clients
// Generates a new AP... |
version https://git-lfs.github.com/spec/v1
oid sha256:70aef9ee46cfbf27bbb9ab240880aae6629ce0ec00251489518fd537c49f1615
size 41919
|
StartTest(function (t) {
t.expectGlobals('0', '1')
var innerWin, innerExt;
t.getHarness([
{
preload : [
'../../../extjs-4.2.1/resources/css/ext-all.css',
'../../../extjs-4.2.1/ext-all.js'
],
url : 'testfiles/604_ex... |
'use strict';
angular.module('copayApp.controllers').controller('addressesController', function($scope, $log, $stateParams, $state, $timeout, $ionicHistory, $ionicScrollDelegate, configService, popupService, gettextCatalog, ongoingProcess, lodash, profileService, walletService, bwcError, platformInfo, appConfigService... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
/*
original script from: https://github.com/ocangelo/roll20
*/
/*jshint -W069 */
/*jshint -W014 */
/*jshint -W083 */
const WS_API = {
NAME : "WildShape",
VERSION : "1.3.1",
REQUIRED_HELPER_VERSION: "1.3.1",
STATENAME : "WILDSHAPE",
DEBUG : false,
// storage in the state
DATA_CONFIG : "c... |
var session = require('./session');
var rest = require('./rest');
var useragent = require('./useragent');
var livedb = require('livedb');
if (!require('semver').gte(process.versions.node, '0.10.0')) {
throw new Error('ShareJS requires node 0.10 or above.');
}
/** This encapsulates the sharejs server state & exposes... |
require('require-dir')('build/tasks')
|
var bar = {x: true};
var foo = bar;
reassignFooX();
var baz = {x: true};
var foo = baz;
reassignFooX();
function reassignFooX() {
foo.x = false;
}
if (bar.x) assert.fail('bar was not reassigned');
if (baz.x) assert.fail('baz was not reassigned');
|
// flow-typed signature: 89f8074b9679446826e4641701539150
// flow-typed version: <<STUB>>/aphrodite_v1/flow_v0.68.0
/**
* This is an autogenerated libdef stub for:
*
* 'aphrodite'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* comm... |
module.exports = function(error, request, response) {
if(typeof error === 'string') {
error = { message: error, errors: [] };
}
//setup an error response
response.message = JSON.stringify({
error: true,
message: error.message,
validation: error.errors || [] });
//trigger that a response has been made... |
import React from 'react';
import SigmetsContainer from './SigmetsContainer';
import { mount } from 'enzyme';
import moxios from 'moxios';
describe('(Container) Sigmet/SigmetsContainer', () => {
beforeEach(() => {
moxios.install();
});
afterEach(() => {
moxios.uninstall();
});
it('renders a SigmetsCo... |
/*
* Copyright (c) 2013 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 ri... |
'use strict';
module.exports = {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/*{ strapi }*/) {},
/**
* An asynchronous bootstrap function that runs before
* your application gets st... |
exports.level = {
"name": 'Git 커밋 소개',
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\":{\"parents\":[\"C2\"],\"id\... |
define([
"thirdparty/filer/dist/filer.min",
"EventEmitter",
"bramble/client/PathCache"
], function(Filer, EventEmitter, PathCache) {
"use strict";
var Path = Filer.Path;
function ProjectStats(options) {
this.root = options.root;
this.capacity = options.capacity;
}
Proje... |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
var http = require('http')
, exec = require('child_process').exec
, fs = require('fs')
, Connect = require('connect')
, dispatch = require('dispatch')
, mime = require('mime')
, getMime = function(ext) {
return mime.lookup(ext == 'jsonp' ? 'js' : ext)
}
var routes = {
'/': function (req, res) {... |
// js acts as a wrapper to the c++ bindings
// prefer to do error handling and other abstrctions in the
// js layer and only go to c++ when we need to hit libxml
var bindings = require('./lib/bindings');
// document parsing for backwards compat
var Document = require('./lib/document');
/// parse an xml string and ret... |
(function(__global) {
var tmp0, tmp1, tmp2, tmp3, tmp4, tmp5;
tmp5 = "jQuery";
tmp1 = __global[tmp5];
tmp2 = "wait";
tmp3 = tmp1[tmp2];
tmp4 = 1;
tmp0 = tmp3 - tmp4;
tmp1[tmp2] = tmp0;
})(typeof global === 'undefined' ? this : global); |
export default /* glsl */`
#if defined( RE_IndirectDiffuse )
#ifdef USE_LIGHTMAP
vec4 lightMapTexel = texture2D( lightMap, vUv2 );
vec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;
#ifndef PHYSICALLY_CORRECT_LIGHTS
lightMapIrradiance *= PI;
#endif
irradiance +... |
/**
* Import(s)
*/
var Vue = require('../../node_modules/vue/dist/vue')
/**
* Export(s)
*/
/**
* Wrap template
*
* @param {String} target
* @param {tag} tag
* @return {String} validator tag
*/
var wrapTemplate = exports.wrapTemplate = function (target, tag) {
tag = tag || 'form'
return '<' + tag + '... |
version https://git-lfs.github.com/spec/v1
oid sha256:c79ec7c19fc556c7fe7870d79f159abbd442388cfad28dd4c34173ab9fb972f8
size 16229
|
/*! jQuery UI - v1.10.4 - 2014-03-23
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional["zh-TW"]={closeText:"關閉",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月",... |
/*
* 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.
*/
'... |
'use strict';
Connector.playerSelector = '#radioPlayer';
Connector.artistSelector = '#showDescription';
Connector.trackSelector = '#showName';
Connector.trackArtSelector = '#poster';
Connector.pauseButtonSelector = '#playButton.stop';
|
import { Resource } from '../api-resource';
export default class RemoteChannelResource extends Resource {
static resourceName() {
return 'remotechannel';
}
getKolibriStudioStatus() {
return this.client({
path: this.urls[`${this.name}-kolibri-studio-status`](),
method: 'GET',
});
}
}
|
/**
* Module dependencies
*/
var actionUtil = require('../actionUtil');
/**
* Create Record
*
* post /:modelIdentity
*
* An API call to find and return a single model instance from the data adapter
* using the specified criteria. If an id was specified, just the instance with
* that unique id will be returne... |
const jsonSchema = require('@tryghost/admin-api-schema');
/**
*
* @param {Object} apiConfig "frame" api configruation object
* @param {string} apiConfig.docName the name of the resource
* @param {string} apiConfig.method API's method name
* @param {Object} frame "frame" object with data attached to it
* @param {... |
(function() {
'use strict';
module.exports = function(gulp, args, ifs, print, jshint, jscs, util, handleErrors, logger, config ) {
gulp.task('jscshint', function() {
logger(util, 'Analyzing source with JSHINT and JSCS');
return gulp
.src(config.alljs)
.pipe(ifs(args.verbose, print()... |
// Measure the time it takes for the HTTP client to send a request body.
var common = require('../common.js');
var http = require('http');
var bench = common.createBenchmark(main, {
dur: [5],
type: ['asc', 'utf', 'buf'],
bytes: [32, 256, 1024],
method: ['write', 'end']
});
function main(conf) {
var dur = +... |
/* */
"format global";
/**
* Copyright 2015 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
describe('ez-file-tree', function() {
var el, el2, $scope, rows, $timeout;
beforeEach(module('ez.fileTree'));
beforeEach(inject(function(_$compile_, $rootScope, _$timeout_) {
$compile = _$compile_;
$timeout = _$timeout_;
$scope = $rootScope.$new();
el = angular.element(
'<div id="fileTree"... |
/**
* @fileoverview Tests for the no-restricted-exports rule
* @author Milos Djermanovic
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("../../..... |
describe('TableView', function() {
var $ = jQuery;
it('renders a table with rows of cells for collection items', function() {
var collection = new Backbone.Collection([{firstName: 'Claire'}, {firstName: 'John'}]);
var tableView = new pageflow.TableView({
collection: collection,
columns: [
... |
// Generated on 2015-09-08 using generator-angular 0.12.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'flash', 'ka', {
access: 'სკრიპტის წვდომა',
accessAlways: 'ყოველთვის',
accessNever: 'არასდროს',
accessSameDomain: 'იგივე დომენი',
alignA... |
"use strict";
var _br = require('rocambole-linebreak');
var _tk = require('rocambole-token');
var _ws = require('rocambole-whitespace');
exports.format = function VariableDeclaration(node) {
var insideFor = node.parent.type === 'ForStatement';
node.declarations.forEach(function(declarator, i) {
var idStartT... |
jQuery("#lists2").jqGrid({
url:'server.php?q=2',
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name asc, invdate', width:100},
{name:'am... |
function metisButton() {
window.prettyPrint && prettyPrint();
$.each($('.inner a.btn'), function () {
$(this).popover({
placement: 'bottom',
title: this.innerHTML,
content: this.outerHTML,
trigger: 'hover'
});
});
}
|
var Bookshelf = require('bookshelf').mysqlAuth;
var Coupon = Bookshelf.Model.extend({
tableName: 'coupons',
owner: function(){
return this.belongsTo('User');
}
});
module.exports = Bookshelf.model('Coupon', Coupon);
|
(function(root, factory) {
if(typeof define === 'function' && define.amd) {
define(['ember'], function(Ember) { return factory(Ember); });
} else if(typeof exports === 'object') {
factory(require('ember'));
} else {
factory(Ember);
}
})(this, function(Ember) {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.