code stringlengths 2 1.05M |
|---|
'use strict';
module.exports = function(app) {
// Routing logic
// ...
var filmes=require('../../app/controllers/filmes.server.controller');
//Every request without a parameter
app.route('/filmes')
.get(filmes.list)
.post(filmes.create);
/**
*every request with a filmeId parameter
*/
app.route('/... |
import 'materialize-css/dist/css/materialize.min.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reduxThunk from 'redux-thunk';
import App from './components/App';
import reducers from './reducers';
... |
module.exports = function ({ $incremental, $lookup }) {
return {
object: function () {
return function (object) {
return function ($buffer, $start, $end) {
let $_, $$ = []
if ($end - $start < 1) {
return $incrementa... |
/**
Created by paper on 15/8/5.
Same Tree
https://leetcode.com/problems/same-tree/
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical
and the nodes have the same value.
*/
/**
*... |
/*!
* template-push <https://github.com/jonschlinkert/template-push>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var File = require('vinyl');
var through = require('through2');
var toVinyl = require('to-vinyl');
/**
* Expose `push`
*/
module.exports = push;... |
version https://git-lfs.github.com/spec/v1
oid sha256:b7cf43b9b32219eba17b465209a71eb152b139d706211b6066f44cf1b74d1918
size 92797
|
// Find the mode for an array
// INPUT: take in array of numbers
// OUTPUT: the mode(most common) number in the array
// Pseudo_______________________________________________________
// Create a function
// function will take an Array as an Arg
// Create an empty object called numberRange
// Create a loop that will go ... |
module.exports = {
"selector": "//EmptyStatement",
"version": "3",
"en": {
"name": "EmptyStatement"
}
}; |
var dump = require('./dump.js');
var amazonEmr = require('../awssum-amazon-emr.js');
var emr = new amazonEmr.Emr({
'accessKeyId' : process.env.ACCESS_KEY_ID,
'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
'region' : amazonEmr.US_EAST_1,
});
emr.DescribeJobFlows(function(err, data) {
d... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ArchiveSchema = new Schema({
idUser :{
type : Schema.Types.ObjectId, ref: 'patients'
},
archive :{
type : String
}
});
module.exports = mongoose.model('archive', ArchiveSchema); |
var GeometryGeneratorTetraHedron = require('./GeometryGeneratorTetraHedron');
function Mesher(seedRadius, divisions, densityLookup, iterations) {
this.geometryGenerator = new GeometryGeneratorTetraHedron(seedRadius, divisions, densityLookup, iterations);
}
Mesher.prototype = {
createGeometry: function() {
var geom... |
/*global FormData XMLHttpRequest*/
import ko from "knockout";
import flatten from "lodash/array/flatten";
import api from "../api";
import makeSource from "../typeaheadsource";
import store from "../store";
import user from "./user";
function wrapLectureAlias(alias, canonical) {
return {alias, canonical}
}
export ... |
angular.module('myApp', [])
.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
"*://example.org/*", // BAD
"https://**.example.com/*", // BAD
"https://example.**", // BAD
"https://example.*" // BAD
]);
});
|
angular.module('profile', [])
.config(angular.module('union').control())
.config(function($routeProvider){
$routeProvider.when('/profile', {controller: 'ProfileCtrl', templateUrl: 'app/apps/profile/profile.html'})
})
.controller('ProfileCtrl', function($scope){
console.log("profile ctrl");
})
|
var gulp = require('gulp');
var os = require('os');
var fs = require('fs');
var path = require('path');
/** Clear react-packager cache */
gulp.task('clear-cache', function () {
var tempDir = os.tmpdir();
var cacheFiles = fs.readdirSync(tempDir).filter(function (fileName) {
return fileName.indexOf('react-pack... |
import stream from 'stream'
export function toObj () {
}
export default class Json2obj extends stream.Transform {
constructor (
{
writableObjectMode = true,
readableObjectMode = false
} = {}
) {
super({writableObjectMode, readableObjectMode})
this.internalBuffer = []
this.vertexMap = new Map
t... |
import PropTypes from 'prop-types'
import React, { Component } from 'react'
export default class TagEditor extends Component {
render () {
const { entity } = this.props
return (
<div className='custom-editor'>
<div>
<h1><i className='fa fa-folder' /> {entity.name}</h1>
</div>... |
'use strict';
describe('cards types', function () {
it('counting should work', function () {
var hm = ScrollsTypes.HavingMissingRemainingCards(
[{c: 1, s: {id: 1}}, {c: 1, s: {id: 2}}, {c: 3, s: {id: 4}}, {c: 1, s: {id: 10}}, {c: 3, s: {id: 11}}],
[{c: 1, s: {id: 1}}, {c: 1, s: {id:... |
const _ = require('lodash');
const findSameOrBefore = require('./findSameOrBefore');
const take = (series, path, date) => {
const item = findSameOrBefore(series, path, date);
if(_.isUndefined(item)) {
return;
}
const index = _.findLastIndex(series, item);
if(index > -1) {
return _.slice(series, 0, ... |
'use strict';
/* Services */
var services = angular.module('services', []);
services.service('SharedData', function () {
return {
search: ""
};
});
|
var RedisHandler = function(){
var _self = this;
_self.util = {
notyConfirm: function(message, cb){
var buttons = [
{addClass: 'btn btn-primary', text: 'Ok', onClick: function ($noty) { $noty.close(); cb(); } },
{addClass: 'btn btn-danger', text: 'Cancel', on... |
const _ = require( 'wTesting' );
let Hello = require( './Hello.js' );
//
function routine1( test )
{
test.identical( Hello.join( 'Hello ', 'world!' ), 'Hello world!' );
}
//
function routine2( test )
{
test.case = 'pass';
test.identical( Hello.join( 1, 3 ), '13' );
test.case = 'fail';
test.identical( H... |
import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
Vue.use(Vuex)
const state = {
isLoading: true,
isOnline: true,
dismissedInventoryHelp: false,
dismissedTodayH... |
// @flow strict
export type Pet = {
id: number,
"x-dashes-id"?: string,
snake_case_id?: string,
objectType?: {}
} & NewPet;
export type NewPet = { name: string, tag?: string, category?: Category };
export type ErrorModel = { code: number, message: string };
export type IGenericCollectionPet = { items?: Array<Pe... |
(function($) {
$(document).ready(function() {
var loading = $('#loading');
$.getJSON("/api/v1/years", function(result) {
var dropdown_year = $("#year_id");
$.each(result, function(item) {
dropdown_year.append($("<option />").val(this).text(this));
... |
import { assert } from 'chai';
import Service from '../../../api/services/<%= name %>Service';
describe('services:<%= name %>Service', () => {
it('Should properly export', () => {
assert.isObject(Service);
});
});
|
angular.module('slideshow', [])
.controller('SlideshowController', function($scope, $timeout, $http) {
var pictures = [];
var delay = 2000;
var checkForNewPicturesDelay = 15000;
var currentPictureIndex = 0;
$scope.currentPicture = pictures[currentPictureIndex];
$scope.nextPicture = function()... |
require('proof')(14, function (assert) {
var tz = require('timezone')(require('timezone/de_AT'))
// de_AT abbreviated days of week
assert(tz('2006-01-01', '%a', 'de_AT'), 'Son', 'Sun')
assert(tz('2006-01-02', '%a', 'de_AT'), 'Mon', 'Mon')
assert(tz('2006-01-03', '%a', 'de_AT'), 'Die', 'Tue')
as... |
/**
* Sample VIEW script.
*
* @author Stagejs.CLI
* @created Fri Apr 21 2017 17:18:18 GMT-0700 (PDT)
*/
;(function(app){
app.view('Demo', {
template: '@view/demo.html',
data: 'realdata.json',
//coop: ['e', 'e'],
//poll:
//channels:
//editors:
//svg:
initialize: function(){},
onReady: function... |
import { mount } from '@vue/test-utils'
import Switch from '@/components/Switch'
import Form from '@/components/Form'
import Field from '@/components/Field'
import sinon from 'sinon'
describe('components/Switch', () => {
it('should handle checked prop with `null` value.', done => {
let wrapper = mount(Switch, {
... |
import React from 'react';
import PropTypes from 'prop-types';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
import { Li } from '../styles/style';
import s from '../styles/exampleTwoDeepComponent.style';
|
import styled from "styled-components/native";
export default styled.View`
align-items: center;
height: 100%;
justify-content: center;
width: 100%;
`;
|
import express from 'express'
import graphqlHTTP from 'express-graphql'
import bodyParser from 'body-parser'
import graphqlWhitelist, { Api } from '../../lib'
import {
GraphQLSchema,
GraphQLObjectType,
GraphQLString
} from 'graphql'
const QueryType = new GraphQLObjectType({
name: 'Query',
description: 'Test... |
import {test} from 'ava'
import util from '../lib/util'
test('sort pages', t => {
// 1-100 to ensure both the doc and page are sorted independently
const images = ['img/img-21-9.png', 'img/img-1-1.png', 'img/img-1-100.png']
const sorted = util.sortPages(images)
t.deepEqual(sorted, ['img/img-1-1.png', 'img/img-... |
var express = require('express');
var http = require('http');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var swig = require('swig');
var Firebase = require('firebase');
var io =... |
var Action = require('../action')
module.exports = Action(/^\s*(#|REM )/i, Action.DONE)
|
var assert = require('assert');
var fs = require('fs');
var url = require('url');
var chai = require('chai');
chai.use(require('chai-string'));
var praat = require('../');
var myPackageJson = require('../package.json');
var installCore = require('../install-core');
var expect = chai.expect;
var version = myPackageJso... |
const fs = require("fs");
const path = require("path");
const archiver = require("archiver");
const request = require("request-promise");
const ncp = require("ncp");
const { google } = require("googleapis");
const { Storage } = require("@google-cloud/storage");
module.exports = async ({ server: websomServer, deploy... |
function p2kwiet138013951168_btnCheckin_onClick_seq0(eventobject) {
return addFlight.call(this);
} |
jest.autoMockOff();
describe('Barman', function() {
let Barman = require("../src/barman").default;
class ServiceTest
{
constructor(test, subTest2) {this.test = test; this.subTest2 = subTest2}
}
class SubServiceTest
{
constructor() {}
}
class SubServiceTest2
{
... |
const http = require("http");
const options = {
"method": "POST",
"hostname": "mockbin.com",
"port": null,
"path": "/har",
"headers": {
"Content-Type": "multipart/form-data; boundary=---011000010111000001101001"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("da... |
var mongoose = require( "mongoose" );
var Schema = mongoose.Schema;
var TransitRouteSchema = Schema( {
system: String,
id: String,
name: String,
type: String,
directions: [ String ]
} );
TransitRouteSchema.index( {
system: 1,
type: 1,
id: 1
} );
TransitRouteSchema.statics.query = fu... |
import { createUnarySpacing } from '@material-ui/system';
export default function createSpacing() {
var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;
// Already transformed.
if (spacingInput.mui) {
return spacingInput;
} // Material Design layouts are visually balanc... |
import {RECEIVE_ARTIST_DATA} from '../actions/index';
const defaultState = {};
export default function artistData(state = defaultState, action) {
if (action.type === RECEIVE_ARTIST_DATA) {
return Object.assign({}, state, action.payload);
}
return state;
} |
import Ember from 'ember';
import d3 from 'd3';
function elementToString(el) {
var base = el.tagName;
var cls = el.classList;
if (cls.length) {
cls = Array.prototype.slice.call(cls).join(' ');
base += ` class="${cls}"`;
}
return `<${base}>`;
}
export var make = {
svg(tagName = 'svg') {
retu... |
/*
* GoBoo - GET IT. BOOK IT. [http://goboo.de]
*
* (c) Tristan Lins <t.lins@goboo.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* jquery client for {@link http://goboo.de goboo - GET IT. BOOK IT}
*
* online booking s... |
'use strict';
var proxyquire = require('proxyquire').noPreserveCache();
var campaignItemCtrlStub = {
index: 'campaignItemCtrl.index',
show: 'campaignItemCtrl.show',
create: 'campaignItemCtrl.create',
update: 'campaignItemCtrl.update',
destroy: 'campaignItemCtrl.destroy'
};
var routerStub = {
get: sinon.s... |
angular.module('app', []);
// Serviço para simular as requisições para o servidor.
angular.module('app').factory('service', function() {
var items = [];
for (var i=0; i<100; i++) {
items.push({codigo: i, descricao: 'Descrição: ' + i});
}
return {
get: function(offset, limit) {
... |
;(function ($, window, document) {
"use strict";
$.widget("mm.apeye", {
html:
'<section class="apeye-request ui-widget ui-widget-content ui-corner-left">'+
'<header class="ui-widget-header">'+
'<h4>Request</h4>' +
'</header>' +
'<div class="apeye-row-container apeye-options">' +
'<div class="apey... |
'use strict';
exports.__esModule = true;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopR... |
import React from 'react'
import { inject, observer } from 'mobx-react'
import styled from 'styled-components'
import { Link } from 'mobx-little-router-react'
import Modal from '../../components/Modal'
const ShowRoute = ({ route: { params, query }, className, ShowsStore }) => {
let prevShow, nextShow
if (ShowsSt... |
'use strict';
var rescape = require( './../lib' );
console.log( rescape( '/beep/' ) );
// returns '/beep/'
console.log( rescape( 'beep' ) );
// returns 'beep'
console.log( rescape( '/[A-Z]*/' ) );
// returns '/\\[A\\-Z\\]\\*/'
console.log( rescape( '[A-Z]*' ) );
// returns '\\[A\\-Z\\]\\*'
console.log( rescape( '... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isHorizontal = isHorizontal;
exports.getAnchor = getAnchor;
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefaul... |
// https://leetcode.com/problems/spiral-matrix-ii/description/
/**
* @param {number} n
* @return {number[][]}
*/
var generateMatrix = function (n) {
let result = [];
for (let i = 0; i < n; i++) {
result[i] = [];
}
let endNum = Math.pow(n, 2);
let rowS = 0;
let rowE = n - 1;
let colS = 0;
let co... |
/*!
* global/document.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2018 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.0-beta.54
*/
"function" == typeof define && define.amd ? define(function() {
return document;
}) : "obj... |
// aj.js for andmejalgija testrakendus
"use strict";
/* Global conf set in html, commented out from here */
/*
var queryURL = "proxy"; // url to query from: this here is a relative url
//var queryURL = "http://localhost:8080/dumonitor-query-1.0-SNAPSHOT/proxy"; // use either relative or full path
var pageLength = 50... |
angular.module('tiendaAngular.components.directivas', [])
.directive('backImg', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
attrs.$observe('backImg', function(url) {
element.css({
'background-image': 'url(' + url + ')',
... |
//bind module to global var to get at it in console.
//
//note that require has an api for handling circular
//module refs, in such cases do not use these vars.
var _ui = undefined;
define([
'util', 'dat.gui', 'const', 'vectormath', 'linear_algebra'
], function ui(util, dat1, cconst, vectormath, linear_algebra) {
... |
import render from "./render/client";
export type AppType = {
routes: React$Element<any>,
Html?: (props: PhenomicHtmlPropsType) => React$Element<*>
};
export default (
routes: () => React$Element<any>,
Html?: PhenomicHtmlType
): AppType => {
if (typeof window !== "undefined") {
render(routes);
}
ret... |
var keystone = require('keystone');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
// locals.section is used to set the currently selected
// item in the header navigation.
locals.section = 'location';
// Render the view
view.render(... |
describe("ParseTokens", () => {
const Namespace = require("rewire")("../../Exports.js")
const ParseTokens = Namespace.__get__("ParseTokens")
Namespace.__set__("ParseIntegerToken", (token) => {
expect(token.StartIndex).toEqual(32)
switch (token.Text) {
case "Matches Integer": ret... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['511',"OrganizationProfileController Class","topic_00000000000001E2.html"],['515',"Methods","topic_00000000000001E2_methods--.html"],['5... |
import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import messageSenderMessages from 'ringcentral-integration/modules/MessageSender/messageSenderMessages';
import FormattedMessage from '../FormattedMessage';
import i18n from './i18n';
export default function MessageSenderAlert(props) {
co... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:appointments/create', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});
|
angular.module('app').config(['$validationProvider', function($validation){
var expression = {
phone : /^1[\d]{10}$/,
password : function(value){
var str = value + '';
return str.length > 5
},
required : function(value){
return !!value;
}
};
var defaultMsg = {
phone: {
success: '',
error: ... |
search_result['3192']=["topic_00000000000007A7.html","ApplicantCvDto.JobTitle Property",""]; |
;(function(undefined) {
'use strict';
if (typeof sigma === 'undefined')
throw 'sigma is not declared';
/**
* Sigma ForceAtlas2.5 Supervisor
* =============================
*
* Author: Guillaume Plique (Yomguithereal)
* Version: 0.1
*/
/**
* Feature detection
* ------------------
... |
(function() {
var BeamTab = {
xhr: null,
pendingCallback: null,
channelId : null,
changeDeviceCallback : null,
deviceList : [],
friendList : [],
notifications : {},
queueHost : 'https://queue.stavros.io',
pushEndpoint : '/push/',
streamEndpoint: '/stream/',
adjecti... |
'use strict';
window.onload = function(){
buildGrid();
};
function buildGrid() {
var elem = document.getElementById("container");
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.msRequestFullscreen) {
elem.msRequestFullscreen();
} else if (elem.mozRequestFullScre... |
function Item(txnId, name, sku){
var self = this;
var category = null;
var price = null; // String
var quantity = null; // String
this.txnId = null;
this.name = null;
this.sku = null;
var init = function(txnId, name, sku){
self.txnId = txnId;
self.name = name;
self.sku = sku;
};
this... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./chunk-5094d8df.js"),require("./helpers.js"),require("./chunk-805257cc.js"),require("./chunk-c0ff4e55.js"),require("./chunk-bc189645.js");var __chunk_5=require("./chunk-13e039f5.js");require("./chunk-9295ec8b.js"),require("./chunk-c5b5b708.js... |
/*!
* DevExtreme (dx.messages.en.js)
* Version: 21.1.7
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" === typeof define &... |
export*from"./ts/config/config";export*from"./ts/config/resolved-config";export{ComponentContainer}from"./ts/container/component-container";export{BrowserPopout}from"./ts/controls/browser-popout";export{DragSource}from"./ts/controls/drag-source";export{Header}from"./ts/controls/header";export{Tab}from"./ts/controls/tab... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class Storage{constructor(e){if("undefined"==typeof localStorage||null===localStorage){const t=require("node-localstorage").LocalStorage;this.storage=new t(e.nodeStoragePath,1024*e.nodeStorageSize*1024)}else this.storage=window.localStorage}get(e,t){co... |
/**
* Copyright (c) 2016-2020, The Cytoscape Consortium.
*
* 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 to
* use, copy, m... |
/*!
* pts.js 0.10.3 - Copyright © 2017-2021 William Ngan and contributors.
* Licensed under Apache 2.0 License.
* See https://github.com/williamngan/pts for details.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = facto... |
/*
Highstock JS v9.1.0 (2021-05-03)
Parabolic SAR Indicator for Highcharts Stock
(c) 2010-2021 Grzegorz Blachliski
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/ps... |
/**
* Tom Select v1.1.0
* Licensed under the Apache License, Version 2.0 (the "License");
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../tom-select.ts')) :
typeof define === 'function' && define.amd ? define(['../../tom-select.ts'], factory) :
... |
import Vue from "vue"
import Settings from "./"
describe("Settings", () => {
beforeEach(function() {
this.vm = new Vue({
template: "<settings/>",
components: { Settings }
}).$mount()
})
it("should render correct header", function() {
expect(this.vm.$el.querySelector("h1").textContent)
... |
/**
* Change focus to another frame on the page. If the frame id is null,
* the server should switch to the page's default content.
*
* @param {String|Number|null|WebElement JSON Object} id Identifier for the frame to change focus to.
*
* @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = ... |
////////////////////////////////////////////////////////////////////////////////
// Search Box Control
////////////////////////////////////////////////////////////////////////////////
/*global jQuery */
var app = app || {};
app.controls = function (controls, $, services, data) {
var RE_FILTER_CROP = /[^\s,].*[^\s,]/,... |
const fs = require('fs');
const path = require('path');
const cleanCss = require('../../index.js');
module.exports = {
name : 'SASS function',
this : function () {
const str = fs.readFileSync(path.resolve('test/styles/sass-function.dirty.scss'), 'utf8');
const clean = cleanCss({
css : str
});
... |
import classNames from 'classnames';
import React from 'react';
import warning from 'warning';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
inline: React.PropTypes.bool,
disabled: React.PropTypes.bool,
/**
* Only valid if `inline` is not set.
*... |
/**
* Adds a presenter console to impress.js
*
* MIT Licensed, see license.txt.
*
* Copyright 2012, 2013, 2015 impress-console contributors (see README.txt)
*
* version: 1.3-dev
*
*/
// This file contains so much HTML, that we will just respectfully disagree about js
/* jshint quotmark:single */
/* global nav... |
var async = require('async')
var inquirer = require('inquirer')
var evaluate = require('./eval')
// Support types from prompt-for which was used before
var promptMapping = {
string: 'input',
boolean: 'confirm'
}
/**
* Ask questions, return results.
*
* @param {Object} prompts
* @param {Object} data
* @param ... |
define(['backbone', 'models/Character'], function(Backbone, CharacterModel) {
var CharacterCollection = Backbone.Collection.extend({
model: CharacterModel,
url: '/api/characters'
});
return CharacterCollection;
});
|
module.exports = {
alert: {
id: "Identifiant",
ttl: "Durée",
msg: "Message",
code: "Type"
}
};
|
var questionData = require('../questions.json');
var evaluationCriteria = require('../evaluation.json');
var info = require('../logininfo.json');
exports.viewEvaluation = function(req, res) {
var question = req.query.q;
var name2 = req.query.id;
var curUserIdx = info['curUserIdx'];
var lvl = parseInt(questionData... |
Ext.define('FastExt.view.vfield.VMultipleChoice', {
extend:'Ext.form.field.ComboBox',
valueObject: {},
winCtx:{},
winId:0,
rest:{},
valueField:'id',
displayField:"title",
forceSelection:true,
multiSelect: true,
triggerAction:'all',
editable:false,
selectOnFocus:true,
... |
define(function(){
return {
//"_id" : ObjectId("53243dab58e338fe239b21ee"),
changes : [
{
id: "0",
name : "A",
numBars : "14",
repeat : "1",
endingNumBars : "5",
timeSignature : "",
style : "",
bars : [
... |
module.exports={A:{A:{"1":"G E A B","2":"H C EB"},B:{"1":"D p x J L N I"},C:{"1":"0 1 2 3 4 5 6 8 9 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 s t u v w y","4":"F K H C G E A B D p x J L N","16":"YB BB WB QB"},D:{"4":"0 1 2 3 4 5 6 8 9 V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y KB aB FB a ... |
lychee.define('studio.ui.element.preview.Font').includes([
'lychee.ui.Element'
]).exports((lychee, global, attachments) => {
const _Element = lychee.import('lychee.ui.Element');
const _TEXT = 'The quick brown fox jumps over the lazy dog?! ;*] \\_(-.+)_/ <{@.^}> %|#=~$'.split(' ');
/*
* HELPERS
*/
cons... |
const resolve = require('resolve');
module.exports = function (module, basedir) {
return resolve.sync(module, {basedir: basedir});
};
|
var auto = require('run-auto')
var DHT = require('bittorrent-dht/server')
var fs = require('fs')
var networkAddress = require('network-address')
var parseTorrent = require('parse-torrent')
var test = require('tape')
var WebTorrent = require('../')
var leavesTorrent = fs.readFileSync(__dirname + '/torrents/leaves.torre... |
'use strict';
(function runTests() {
var QUnit = require('qunit'),
$ = require('jquery'),
powerTip = require('./../dist/jquery.powertip.js');
QUnit.module('Browserify');
QUnit.test('powerTip is loaded into $.fn', function(assert) {
var element = $('<a href="#" title="This is the tooltip text"></a>');
asse... |
require.async('./test1', function(test1) {
});
require.async(['./test1'], function(test1) {
});
require('./test1');
// 正常用法
define(function() {
require('./test1');
});
require(['./test1']);
require(['./test1'], function(test1) {
});
|
import React from 'react-native';
const {
Image,
TouchableOpacity,
StyleSheet,
Text,
View,
Component,
TextInput
} = React;
import setQueryAction from '../actions/setQueryAction.js';
import Immutable from 'immutable';
import globalVariables from '../styles/globalVariables.js';
import globalStyles from '../... |
var searchData=
[
['myo',['Myo',['../classmyo_1_1_myo.html',1,'myo']]]
];
|
"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")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.