code
stringlengths
2
1.05M
!function (context, definition) { if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') { module.exports = definition(module, exports); } else { var mod = { exports: {} }; definition.call(mod.exports, mod, mod.exports); if (typeof define === 'function' && ty...
var expect = require('chai').expect; var manifesto = require('../../dist-commonjs/'); var manifests = require('../fixtures/manifests'); var manifest; describe('LabelValuePair', function() { beforeEach(function(done) { manifesto.loadManifest(manifests['4']).then(function(data) { manifest = mani...
module.exports = function ({ $lookup }) { return { object: function () { return function (object, $step = 0, $i = [], $I = []) { let $_, $bite return function $parse ($buffer, $start, $end) { for (;;) { switch ($step) {...
var DivWin = function () { var winIdCounter=1; function getNewWinId() { return winIdCounter++ } var DivWin = {}; var windowFrameWidth =0; var windowFrameHeight =0; DivWin.getElementDivWin = function (element) { var result = element.owner; if (result) { if (re...
/** * Created by lonelydawn on 2017-05-25. */ app.directive("columnFilter", function () { return { restrict: "AE", template: '<table class="table table-bordered">' + '<thead>' + '<tr>' + '<th class="relative cursor-pointer" ng-repeat="item in table...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedMod...
'use strict'; var NodeIndex = require('./data/NodeIndex'); function DocumentIndex() {} NodeIndex.extend(DocumentIndex); DocumentIndex.filterByType = NodeIndex.filterByType; module.exports = NodeIndex;
import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { constructor(props, context) { super(props, context); this.edit...
import { expect } from 'chai'; import { capitalizeEachWord } from '../app/js/format'; describe('capitalizeEachWord of the named route.', () => { it('Should capitalize all the word in a string, regardless of special char', () => { const state = 'KIPPS LANE / THOMPSON ROAD'; const nextState = capitalizeEachW...
const webpack = require('webpack') module.exports = { output: { library: 'ReactSwitcher', libraryTarget: 'umd', }, externals: [ { react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }, }, ], module: { loaders: [ ...
version https://git-lfs.github.com/spec/v1 oid sha256:076207aefd042b0794779e04737bfce994269244e1b9f54c36b0a756a8d95456 size 67335
var CodingModule = //do not change { name: "Code", bigicon: "imgs/tabicon-code.png", show_sceneview: true, //3d view show_panel: false, //side panel is_sceneview_visible: true, APIs: {}, //here you can register function calls of the API windows: [], //external windows init: function() { t...
// component that renders a single product window.ProductRow = React.createClass({ render: function() { return (<tr> <td>{this.props.product.name}</td> <td>{this.props.product.description}</td> <td>${parseFloat(this.props.product.price).toFixed(2)}</td> <td>{this.props.product.category_nam...
var canvas = document.getElementById('canvas'); var vectorContext = ol.render.toContext(canvas.getContext('2d'), {size: [100, 100]}); var fill = new ol.style.Fill({color: 'blue'}); var stroke = new ol.style.Stroke({color: 'black'}); var style = new ol.style.Style({ fill: fill, stroke: stroke, image: new ol.style...
/** * */ var Vector = require("./Vector"); var utils = require("./mathLib"); function Brush(x1_, y1_, x2_, y2_, vel, life, smearDuration){ this.life = life || 100; this.rgbaValues = []; this.pixelPositions = []; this.angle = 0; //display angle this.dAngle = -Math.PI / 2; //angle for depth, perpendicular ...
export { default } from './components/hyper-search';
version https://git-lfs.github.com/spec/v1 oid sha256:1a891c0c1383c148e74c6f63bbc5f515147190e1ec4fb904726f09d5c45024a5 size 1899870
import React from "react"; import PropTypes from "prop-types"; import injectSheet from "react-jss"; import config from "../../../content/meta/config"; import GithubIcon from "!svg-react-loader!../../images/svg-icons/github.svg?name=GithubIcon"; import FacebookIcon from "!svg-react-loader!../../images/svg-icons/facebo...
import React, { Component } from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import { connect } from 'react-redux'; import { updateSortProp } from '../../actions'; import {F_NAME_ASC, F_NAME_DESC, L_NAME_ASC, L_NAME_DESC, PHONE_ASC, PHONE_DESC, CUSTOM} from '...
/// <reference path="../typings/mocha/mocha.d.ts" /> /// <reference path="../typings/chai/chai.d.ts" /> /// <reference path="../typings/lodash/lodash.d.ts" /> /// <reference path="../typings/source-map-support/source-map-support.d.ts" /> var source_map_support_1 = require('source-map-support'); var V = require('../inde...
function lawl() { var a = 1; if (b) { return c; } if (a) { bar(); return; } if (d) { if (g) { this['s'] = morebutts; return wat; } return boo; } haha(); return butts; }
/** @constructor */ ScalaJS.c.scala_concurrent_duration_package$DurationDouble = (function() { ScalaJS.c.java_lang_Object.call(this); this.d$1 = 0.0 }); ScalaJS.c.scala_concurrent_duration_package$DurationDouble.prototype = new ScalaJS.inheritable.java_lang_Object(); ScalaJS.c.scala_concurrent_duration_package$Dura...
describe(`Lexicon`, function() { beforeEach(function() { cy.visit(`/`); cy.setupStore(`languages`); }); it(`when no language is selected, it renders the Language Chooser`, function() { cy.contains(`#nav li`, `Lexicon`) .click(); cy.get(`#language-chooser`); }); it(`renders the page f...
/*! * Facebook React Starter Kit | https://github.com/kriasoft/react-starter-kit * Copyright (c) KriaSoft, LLC. All rights reserved. See LICENSE.txt */ 'use strict'; var _ = require('lodash'); var webpack = require('webpack'); var argv = require('minimist')(process.argv.slice(2)); var DEBUG = !argv.release; var ...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, PixelRatio, Image, View, } from 'react-native'; import AppIntro from 'react-native-app-intro'; const styles = StyleSheet.create({ slide: { backgroundColor: '#282828' }, column: { flex: 1, flexDirection: 'col...
/** * Talisman stemmers/s-stemmer * ============================ * * Implementation of the English "S-Stemmer". * * [Reference]: * http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.104.9828&rep=rep1&type=pdf * * [Article]: * Donna Harman (1991) How effective is suffixing? * Journal of the American Soc...
////////////////////////////////////////////////////////////////////////////// // // Angel.js // ////////////////////////////////////////////////////////////////////////////// //---------------------------------------------------------------------------- // // Helper functions // function _argumentsToArray( args ) ...
var TOPLOCS = { init: function(){ this.getData(); }, getData: function(){ $.ajax({ url: base_url + "widgets/top_locations/get", dataType: "JSON", success: function(res){ // console.log(res); TOPLOCS.buildDom(res); } }); }, buildDom: function(data){ var...
var _dec, _dec2, _class; import { inject, customAttribute } from 'aurelia-framework'; import { VGrid } from './v-grid'; export let vGridDragDropCol = (_dec = customAttribute('v-drag-drop-col'), _dec2 = inject(Element, VGrid), _dec(_class = _dec2(_class = class vGridDragDropCol { constructor(element, vGrid) { t...
// 어느쪽 데이터가 움직이는지 구분자 function getSiteTypeJson(siteType){ var o = {listurl:"",formurl:"",targetdiv:""}; switch(siteType){ case "official": o.listurl = officialListUrl; o.formurl = officialFormUrl; o.targetdiv = "officialList"; break; case "plugin":...
require('../lib/recurseDirectory'); describe("isFile Tests", function() { it("returns true when filename has dot in the name", function() { var sut = new RecurseDirectory(); expect(sut.isFile('foo.spec.js')).toBe(true); }); it("returns true when filename starts with a dot", function() { var sut = n...
#!/usr/bin/env node 'use strict' require('dotenv').config() const server = require('./server') const signale = require('./utils/signale') const config = require('./utils/config') const connect = require('./utils/connect') const stripUrlAuth = require('./utils/stripUrlAuth') if (config.dbUrl == null) { signale.fatal(...
var qs = require('querystring'); var config = require('../config'); var log = require('../log'); var request = require('superagent'); var fs = require('fs'); var credentials = { site: 'https://connect.gettyimages.com/oauth2/token', callback_url: 'http://localhost:8000/search', ClientId: '<clientid>', ClientSe...
// Core patterns and mechanisms are: // - namespace // - functions // Create only one global to and declare other variables as properties of that global var MYAPP = {}; MYAPP.name = 'MYAPP'; MYAPP.getDescription = function() { return 'MYAPP is my app.'; }; // Create only one global to and declare o...
arrayMappings = {}; arrayMappings[1] = '<a href="javascript:;" title="Non Zero Exit Code" ADD_PROPERTY>NZEC</a>' arrayMappings[0] = '<a href="javascript:;" title="Accepted" ADD_PROPERTY>AC</a>'; arrayMappings[-1] = '<a href="javascript:;" title="Compiler Error" ADD_PROPERTY>CE</a>'; arrayMappings[-2] = '<a href="javas...
$(window).load( function() { $("#admin-form .ui.form").form({ name : { identifier : "name", rules : [ { type : "empty", prompt : "Nincs megadva név!" } ] }, code : { identifier : "code", rules : [ { type : "empty", prompt : "Nincs megadva kód!" } ] ...
var icsFormatter = function() { 'use strict'; if (navigator.userAgent.indexOf('MSIE') > -1 && navigator.userAgent.indexOf('MSIE 10') == -1) { console.log('Unsupported Browser'); return; } var SEPARATOR = (navigator.appVersion.indexOf('Win') !== -1) ? '\r\n' : '\n'; var calendarEve...
$(document).ready(function(){ // Устанавливаем обработчик потери фокуса для всех полей ввода текста $('input#name, input#email, textarea#message').unbind().blur( function(){ // Для удобства записываем обращения к атрибуту и значению каждого поля в переменные var id = $(this).attr('id'); ...
/** * Returns true if heads, false if tails. * * @return {boolean} */ exports.isHeads = function() { return Math.random() > 0.5; }; /** * Returns true if tails, false if heads. * * @return {boolean} */ exports.isTails = function() { return Math.random() > 0.5; }; /** * Returns 'heads' or 'tails'. * ...
(function() { var scene = new cutie.Scene(); scene.preload = function(loader) { loader.loadFile({"id": "spidey", "src": "assets/spiderman-ball.png"}); } scene.init = function(preloaded) { var spidey = new cutie.Bitmap(preloaded.getResult("spidey")); spidey.x = cutie.WIDTH/2 - s...
var maxWidth = function (target, pixels_count) { return css(target, "max-width:" + fromPixel(pixels_count)); }; if (/MSIE\s*[2-7]/.test(navigator.userAgent)) { maxWidth = function (target, pixels_count) { var width = target.style.width; if (String(width).charAt(width.length - 1) === "%") { ...
tinyMCE.addI18n('en.userimages',{ button: 'Add photo' });
/** * PepipostLib * * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). */ 'use strict'; const BaseModel = require('./BaseModel'); /** * Creates an instance of Updatesubaccount */ class Updatesubaccount extends BaseModel { /** * @constructor * @param {Object} obj ...
var CordSharp; (function (CordSharp) { var TaskResult = (function () { function TaskResult() { this.isCompleted = false; } TaskResult.prototype.setTaskId = function (taskId) { this.taskId = taskId; }; TaskResult.prototype.setResult = function (result...
'use strict'; app.controller('UploadCtrl', ['$scope', '$location', 'SunfishSrvc', 'SiafileReaderSrvc', function($scope, $location, SunfishSrvc, SiafileReaderSrvc) { // Initialize the Siafile $scope.siafile = {}; $scope.siafile.listed = true; $scope.siafile.safe = true; $scope.safeClicked = false; ...
'use strict'; const fs = require('fs'); const path = require('path'); const filelist = require('./filelist') const descriptionToFilelistMap = { "children": "Children", "general": "General", "history-art": "History", "mahayana": "Mahayana", "meditation": "Meditation", "theravada": "Theravada" }; var targ...
"use strict"; const States = require("../../../domain/player/states"); const getNext = require("./next-player"); /** * Find the index of the first active player * next to the one, whose index is passed as input. * @name next * @param {Player[]} players * @param {Number} from * @return {Number} */ const next = ...
import { assign } from '@ember/polyfills'; import { copy } from 'ember-copy'; import Mixin from '@ember/object/mixin'; import { isNone, isEmpty } from '@ember/utils'; import { isArray } from '@ember/array'; import { queryParamPropertyName, ajaxOptionsPropertyName } from '../property-names'; const evaluateFunctions...
// Set properties default values if( typeof localStorage['chat_hide'] === 'undefined') localStorage['chat_hide'] = 'false'; if( typeof localStorage['custom_blocks'] === 'undefined') localStorage['custom_blocks'] = 'false'; if( typeof localStorage['jump_unreaded_messages'] === 'undefined') lo...
import sass from 'node-sass'; import path from 'path'; import Q from 'q'; import fs from 'fs'; let parseError = function(errorString) { let matches; let error = errorString; if (matches = errorString.match(/([^\:]+)\:(\d+):(.*)/)) { error = { file : matches[1], line : parseInt(matches[2]),...
// flow-typed signature: 2dfc0b0a85c76728ed0f4ea41be47485 // flow-typed version: <<STUB>>/farce_v^0.2.1/flow_v0.37.0 /** * This is an autogenerated libdef stub for: * * 'farce' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * commun...
import express from 'express'; import webpack from 'webpack'; import WebpackMiddleware from 'webpack-dev-middleware'; import WebpackHotMiddleware from 'webpack-hot-middleware'; import http from 'http'; import fs from 'fs' var log4js =require('log4js') // import React from "react" // import ReactDOMServer from 'react-do...
//https://dmadan86@bitbucket.org/dmadan86/sliderjs.git (function (document, window, undefined, jQuery) { var div = document.createElement('div'), browserPrefixes = 'webkit moz o ms khtml'.split(' '), prefixes = ['-webkit', '-moz', '-o', '-ms'], domPrefixes = ['Webkit', 'Moz', 'O', 'Ms'];...
var uuid = require("uuid") var spaced = require("./lib/spaced.js") module.exports = tupleInput function tupleInput(opts) { opts = normalize("tupleInput", opts) return [".tuple-input.form-elem" + (opts.selector || ""), [ opts.label ? ["label.label", { "for": opts.id }, [ opts.label ]] : null, ...
import React from 'react' import Helmet from 'react-helmet' export default function About () { return ( <div> <Helmet title='About | Hello next.js!' meta={[{ property: 'og:title', content: 'About' }]} /> About the World </div> ) }
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-master-ce33beb */ goog.provide('ngmaterial.components.datepicker'); goog.require('ngmaterial.components.icon'); goog.require('ngmaterial.components.virtualRepeat'); goog.require('ngmaterial.core'); /** * @ngdoc module * @...
const knex = require('knex')({ dialect: 'sqlite3', connection: { filename: 'crumble.sqlite' }, useNullAsDefault: true, debug: true }); const table = 'autologin'; module.exports = { insert: (autologinToken, callback) => { knex(table) .insert(autologinToken) ...
// // Server side activity detection for the session timeout // // Meteor settings: // - staleSessionInactivityTimeout: the amount of time (in ms) after which, if no activity is noticed, a session will be considered stale // - staleSessionPurgeInterval: interval (in ms) at which stale sessions are purged i.e. found and...
const buildExtractStylesLoader = require('./buildExtractStylesLoader'); const fontAwesomeConfig = require('./font-awesome.config.js'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); /** * buildExtractStylesLoader can also deal with options without any trouble as * it converts them to query paramet...
/** * Created by mike on 12/2/2014. */
'use strict'; (function ($) { // Add posibility to scroll to selected option // usefull for select for example $.fn.scrollTo = function (elem) { $(this).scrollTop($(this).scrollTop() - $(this).offset().top + $(elem).offset().top); return this; }; $.fn.dropdown = function (options) { var default...
var _ = require("lodash"); var worker = function(thing) { return _.filter(thing, { 'active': true }); }; module.exports = worker;
/** * @file client entry * @author zqyadam(zqyadam@qq.com) */ import 'babel-polyfill'; import Vue from 'vue'; import FastClick from 'fastclick'; import {createApp} from './app'; import ProgressBar from '@/components/ProgressBar.vue'; // 全局的进度条,在组件中可通过 $loading 访问 let loading = Vue.prototype.$loading = new Vue(Prog...
/* The follwoing code adapted from node's test-dns.js license is as follows */ // Copyright Joyent, Inc. and other Node contributors. // // 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 wi...
Me.define('layout', [ 'jquery' ], function (Me) { var $ = Me.jquery; var SplitLayout = function (bar, left, center, options) { this.bar = bar; this.left = left; this.center = center; this.moveable = false; this.startDragPos = null; this.type = 'splitLayout.'...
require('../../../app'); var IM = require('./image-manager'); var crypto = require('crypto'); var moment = require('moment'); mongoosedbconn.open(function (e, d) { if (e) { console.error(e); } else { if (process.env.NODE_ENV == 'live') { mongoosedbconn.authenticate(process.env.DB_U...
//CUT import React from 'react'; import Formatic from 'formatic'; const fields = []; const pluginA = () => ({}); const pluginB = () => ({}); const pluginC = () => ({}); //CUT const config = Formatic.createConfig(pluginA, pluginB, pluginC); React.render(<Formatic config={config} fields={fields} />, document.body);
Template.bars.helpers({ bars: function () { return Bars.find(); } });
'use strict'; describe('Filter: dateQuery', function () { // load the filter's module beforeEach(module('angularDateFiltersApp')); // initialize a new instance of the filter before each test var dateQuery; beforeEach(inject(function ($filter) { dateQuery = $filter('dateQuery'); })); it('should con...
var buildingIcons = { "house1body": "a", "house1door": "b", "house1roof": "c", "house1windows": "d", "house2body": "e", "house2door": "f", "house2roof": "g", "house2windows": "h", "house3body": "i", "house3doors": "j", "house3roof": "k", "house3windows": "l", "office1body": "m", ...
var table = function () { let data = [ ["1", "2", "3"], ["4", "5", "6"], ["7", "8", "9"] ]; let columns = ["Column 1", "Column 2", "Column 3"]; let editors = [mobiwork.TextInput, mobiwork.TextInput, mobiwork.TextInput]; this.Show1 = function () { let form = new mobi...
var searchData= [ ['datarate',['dataRate',['../struct____attribute____.html#a92ca4d9ae50ee39f6ec1b97239b315af',1,'__attribute__']]] ];
describe('eventRenderWait', function() { it('batches together many event renders', function(done) { var eventSource1 = [ { title: 'event1', start: '2016-12-04T01:00:00', className: 'event1' }, { title: 'event2', start: '2016-12-04T02:00:00', className: 'event2' } ] var eventSource2 = [ ...
import * as model from "./model"; import { getTestRun } from "../testRun/redux"; import { handleActions } from "redux-actions"; // Actions const PREFIX = "STEP_DEFINITIONS"; const GET_STEP_DEFINITIONS = `${PREFIX}/GET_STEP_DEFINITIONS`; const GET_STEP_DEFINITIONS_FULFILLED = `${GET_STEP_DEFINITIONS}_FULFILLED`; // Ac...
import React, { Component, PropTypes } from 'react' import classnames from 'classnames' import MediaPlayer from './MediaPlayer' import styles from './MediaPlayer.less' class Playlist extends Component { _handleTrackClick(track) { this.props.onTrackClick(track) } render() { const { tracks, currentTrack }...
export const text = ` [Script Info] ; Script generated by Aegisub 3.2.2 ; http://www.aegisub.org/ Title: Default Aegisub file ScriptType: v4.00+ WrapStyle: 0 ScaledBorderAndShadow: yes YCbCr Matrix: None [Aegisub Project Garbage] [V4+ Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineCo...
module.exports = { adapter: 'mongodb', attributes: { clientId: { type: 'string', required: false }, discipleId: { type: 'string', required: false }, model: { type: 'string', required: false }, hostname: { type: 'string', required: false ...
"use strict"; const fs = require("fs"); const path = require("path"); const cache = {/* filePath: { exists: true|false, contents: string|object, } */}; /** * Caches file contents so we don't have to find and read the same files * for every entry file. */ module.exports = { findFile, readTe...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ...
var cs = cs || {}; cs.datatype = {}; cs.datatype.constructor = function(feature, key, property){ return cs.datatype.types_[cs.evSchema[key]](property, feature, key); }; cs.datatype.string = function(val, feature, key){ var dt = {}; dt.getValue = function() { return val; }; dt.getFdValu...
define([ 'angular', './base_input', 'common/html', 'text!./templates/selector.html', 'text!./templates/multi-selector.html' ], function (ng, BaseInput, HtmlLib, SelectorTemplate, MultiSelectorTemplate) { "use strict"; // Template for view only rendering var viewOnlyHtml = '<div class="f...
$(document).ready(function() { hideAllSections(); $("#about-content").show(); $(".navItem").click(function(event) { event.preventDefault(); showPanel(this); if (this.id == "resume") { //not showing on hosted version hideResumeSections(); $("#technicalSkills-content").show(); } ...
// Feature/Module index is responsible for maintaining its public API // This is the exposed surface where modules can interface with each other. export { default } from './changeClubView';
var fixtures = require('require-dir')('../../dist/', {recursive : true}) exports.BaseWriter = fixtures['base-writer'] exports.Finder = fixtures.finder exports.Helpers = fixtures.helpers exports.Ld = fixtures['limedocs-wiki-converter'] exports.PdfWriter = fixtures['pdf-writer'] exports.HtmlWriter = fixtures['html-writer...
import { selection } from 'd3-selection'; import './main.scss'; // import firstTest from './firstTest'; import transferDemo from './transferDemo'; const body = selection().select('body'); if (!window.Worker) { body.append('div').classed('error', true) .text('Error. No access to `Worker` global. Cannot run demo.');...
module.exports = function(send, ctrl) { this.send = send; var anaMoveTimeout; var anaDestsTimeout; var anaDestsCache = {}; var handlers = { step: function(data) { ctrl.addStep(data.step, data.path); clearTimeout(anaMoveTimeout); }, stepFailure: function(data) { console.log(da...
module.exports = { root: true, env: { browser: true, node: true, commonjs: true, es6: true }, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, extends: 'eslint:recommended', // required to lint *.vue files plugins: [ 'html', 'import' ], // check if impor...
function OutageMap(mapElement,metricsElement, zoom, centerLocation) { this.mapElement = mapElement; this.zoom = zoom; this.centerLocation = centerLocation; this.centerLocation.lat = parseFloat(this.centerLocation.lat); this.centerLocation.lng = parseFloat(this.centerLocation.lng); this.map = nul...
module.exports = (mongoose) => { const snippet = { name: { type: String, required: true }, code: { type: String, required: false }, blockly: { type: String, required: false }, lastModified...
(function () { 'use strict'; var $ = window.jQuery; var setFontSize = function () { $('body').css({fontSize: ($(window).width() + $(window).height()) / 2}); }; $(window).on('resize', setFontSize); $(setFontSize); })();
const _ = require('underscore'); const Backbone = require('backbone'); const Tone = require('tone'); const Chord = require('model/chord.js'); /** * @module ChordList * @class * * A `ChordList` is a `Collection`of {@link Chord}s. `Chord`s are sorted by their start * time. * * @extends Backbone.Collection */ mo...
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule('weeks');
var resource = require('resource'), ssh = resource.define('ssh'); ssh.schema.description = "ssh interface resource"; exports.ssh = ssh;
var express = require('express'), stylus = require('stylus'), lessMiddleware = require('less-middleware'), passport = require('passport'); module.exports = function(app, config) { function compile(str, path) { return stylus(str).set('filename', path); } app.configure(function() { app.se...
var fs = require("fs"); var path = require("path"); const md5File = require("md5-file"); const http = require("https"); var extract = require("extract-zip"); function getMD5Digest(file) { const hash = md5File.sync(file); return hash.toUpperCase(); } var outputFileName = "charting_library.17.025.02b61a1c.zip";...
const assert = require("assert"); const brie = require('../../lib/brie'); module.exports = function () { describe('#simple evaluation', function () { before(function () { this.checkData = { id: 123456789, hasStringValue: "a string check value", hasNumberValue: 181818, hasOb...
/** * Created by cgcladera on 21/01/14. */ var mongoose = require('mongoose'), Movie = mongoose.model('Movie'), Media = mongoose.model('Media'); exports.add = function(req, res){ //TODO: Check request? var data = { id: req.body.id.toLowerCase(), name: req.body.name, ...
import React from 'react'; import addonDecor from './containers/addonDecorator'; import voting from './containers/voting'; export default function routes(currentStoreCompose) { const AddonDecor = addonDecor(currentStoreCompose); const Voting = voting(currentStoreCompose); return function attach(st...
import { LOAD_ALL_USERS, CHANGE_USERS_PAGE } from './actionTypes' import REST from '../utilities/rest' import { fetchSuccess, fetchError, loading } from './feedbackActions' export function getAllUsers (page = 1) { return (dispatch) => { dispatch(loading(true)) REST.get(`user/all?page=${page}`, true) ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualRepeatNext = exports.VirtualRepeat = undefined; exports.configure = configure; var _virtualRepeat = require('./virtual-repeat'); var _virtualRepeatNext = require('./virtual-repeat-next'); function configure(config) { con...