code
stringlengths
2
1.05M
return { HTMLGenerator: HTMLGenerator, Lexer: Lexer, Token: Token, TokenFactory: TokenFactory, macros: macros, patterns: patterns, Parser: Parser, COMMENT: COMMENT, MACRO: MACRO, IMACRO: IMACRO, BREAK: BREAK, TEXT: TEXT, EMPTY: EMPTY }; }));
// JavaScript Jquery PlugIns Document /* -------------------------- ・UI共通プラグイン  →UI動作で必要な実装 ・ライトボックス  →モーダルウィンドウの実装 ・バリデート  →メールのバリデート実装 ・メールフォーム  →メールフォームのレイアウト、挙動に関わる実装 ・サジェスト  →検索からサジェストを出す実装 ・言語切り替え  →Cookieを利用した言語切替実装 ・SNS API  →Twitter、FacebookなどのSNS API ・特定端末対応  →PC版とのレイアウトや挙動の切替、SPの特定端末における挙動対策等 ----...
import { autobind } from 'core-decorators' import { Component } from 'react' import PropTypes from 'prop-types' const propTypes = { inputClassName: PropTypes.string, value: PropTypes.string, valueKey: PropTypes.string, labelKey: PropTypes.string, options: PropTypes.array, disabled: PropTypes.bool, name: ...
'use strict'; /** * Various utility functions used throughout Mocha's codebase. * @module utils */ /** * Module dependencies. */ const {nanoid} = require('nanoid/non-secure'); var path = require('path'); var util = require('util'); var he = require('he'); const MOCHA_ID_PROP_NAME = '__mocha_id__'; /** * Inhe...
import { serializeFilterNumber } from "sharp-files"; export function getCropDataFromFilters({ filters, imageWidth, imageHeight }) { const rotate = filters?.rotate?.angle ?? 0; let rw = imageWidth, rh = imageHeight; if(Math.abs(rotate) % 180) { rw = imageHeight; rh = imageWidth; } ...
$(document).ready(function () { $('body').on('click', '.popular-next', function (e) { e.preventDefault(); var caller = $(this), container = $('.popular-container'), page = caller.data('page') + 1, url = caller.attr('href'), request = { ...
'use strict'; var q = require('q'), MongoClient = require('mongodb').MongoClient, ObjectID = require('mongodb').ObjectID, logger = require('./logger'); module.exports = { buildConfig: buildConfig, testConnection: testConnection, createSampleData: createSampleData }; function buildConfig(url){...
// Inspired by base2 and Prototype (function(){ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; // The base Class implementation (does nothing) this.Class = function(){}; // Create a new Class that inherits from this class Class.extend = function(prop) { var _su...
const Stack = require('../libs/Stack'); const stack = new Stack(); console.log(stack.isEmpty); stack.push(5); stack.push(8); console.log(stack.peek); stack.print(); stack.push(11); console.log(stack.size); console.log(stack.isEmpty);
var chai = require('chai'); var sinond = require('sinon'); var chai$ = require('chai-jquery'); chai.use(chai$);
/* eslint-disable, no-use-before-define */ /* eslint no-underscore-dangle: off*/ /* eslint "arrow-body-style": off */ /* eslint "no-use-before-define": off */ /* eslint prefer-template: off */ import { GraphQLList, GraphQLObjectType, GraphQLSchema, GraphQLString, GraphQLInt, GraphQLNonNull, GraphQLEnumTyp...
/* * MIXITUP - A CSS3 and JQuery Filter & Sort Plugin * Version: 1.5.5 * License: Creative Commons Attribution-NoDerivs 3.0 Unported - CC BY-ND 3.0 * http://creativecommons.org/licenses/by-nd/3.0/ * This software may be used freely on commercial and non-commercial projects with attribution to the author/copyright holde...
;xpmanager.options = {}; xpmanager.options.risk = new (function($) { this.get_risk_options = function(anddothis, object) { $.ajax({ url: '/risk/get', type: 'POST', dataType: 'json', }) .done(function(risk_options) { anddothis.call(object, risk_options); }); }; }...
var { Router,Route,IndexRoute,IndexLink,Link} = ReactRouter; var {browserHistory} = ReactRouter.browserHistory; var Header = React.createClass({ render: function() { return ( <div> <div className='header'> <h1>Weather Application</h1> </div> <div className='col-md-6 col-md-offset-3' ><u...
import config from 'config'; import http from 'lib/http'; export default class UsersSource { static urlRoot = `${config.apiTarget}/users`; static create(user) { return http.post({ url: this.urlRoot, body: user }) .then(result => result.json()); } }
/* eslint-disable flowtype/require-valid-file-annotation */ module.exports = require('../lib/Spinner');
/* * grunt-replacebyfilename * https://github.com/zhengzhaolong/replacebyfilename * * Copyright (c) 2016 YCell * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/crea...
goog.provide('Viewer.Wrangler'); /** * @class This is a resource manager and loads individual models. * * @param {Object} params * @param {Viewer.MessageBus} MessageBus * @struct * @constructor */ Viewer.Wrangler = function (params, MessageBus) { this.context = params.context; this.currentModel = null; ...
var GameData = { // --- Begin Pages ---------------------------------------------------------- genderImages: { male: 'M.jpg', female: 'F.jpg', }, raceImages:{ human_male: 'M.H.jpg', human_female: 'F.H.jpg', dwarf_male: 'M.D.jpg', elf_female: 'F.E.jpg', troll_male: 'M.T.j...
/* global hljs, TimePicker */ /* eslint-disable import/unambiguous */ const focusPicker = new TimePicker('#input1'); const triggerPicker = new TimePicker('#link'); const triggerInput = document.getElementById('input2'); window.focusPicker = focusPicker; window.triggerPicker = triggerPicker; triggerPicker.on('change',...
var app = app || {}; (function(){ app.TestButton = React.createClass({displayName: "TestButton", handleClick: function() { this.props.submitTestTask(this.props.btnType); }, render: function() { return ( React.createElement("button", {onClick: this.handleClick, ...
$(function(){ $('.tags').tagEditor({ delimiter: ';', forceLowercase: false, placeholder: 'Entre com os itens, separados por ; ...' }); });
/*! * Clean Blog v1.0.0 (http://startbootstrap.com) * Copyright 2014 Start Bootstrap * Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE) */ // Contact Form Scripts $(function() { $("input,textarea").jqBootstrapValidation({ preventSubmit: true, ...
/** * * SelectMany * */ import React from 'react'; import Select from 'react-select'; import PropTypes from 'prop-types'; import 'react-select/dist/react-select.css'; import { isArray, isNull, isUndefined, get, findIndex } from 'lodash'; import request from 'utils/request'; import templateObject from 'utils/templ...
import AsiniRepo from "asini/lib/Repository"; import progressBar from "asini/lib/progressBar"; import RemoteRepo from "./RemoteRepo"; import execSync from "./execSync"; import ConfigurationError from "./ConfigurationError"; export default class Changelog { constructor() { this.c...
{ if (contentPlaceholder === void 0) contentPlaceholder = "<!--vue-ssr-outlet-->"; if (typeof template === "object") { return template; } var i = template.indexOf("</head>"); var j = template.indexOf(contentPlaceholder); if (j < 0) { throw new Error("Content placeholder not found in template....
import React from 'react' import { Router, Route, browserHistory } from 'react-router' import { Landing, ActivateAccount, RegisterPage, Home } from '../pages' import App from './App' export const LANDING = '/' export const ACTIVATE_ACCOUNT = '/activate-account' export const REGISTER = '/register' export const HOME = '...
var searchData= [ ['driver_5fcan_2ec',['Driver_CAN.c',['../Driver__CAN_8c.html',1,'']]], ['driver_5fcan_2eh',['Driver_CAN.h',['../Driver__CAN_8h.html',1,'']]], ['driver_5fcommon_2ec',['Driver_Common.c',['../Driver__Common_8c.html',1,'']]], ['driver_5fcommon_2eh',['Driver_Common.h',['../Driver__Common_8h.ht...
var http = require("http"); var fs = require("fs"); var handlerNames = fs.readdirSync("./handlers"); handlerNames = handlerNames.map(function(file){return file.replace(".js", "")}); var argv = require('yargs') .usage('Usage: $0 <command> [options]') .demand('handler') .describe('handler', 'Choose a h...
/* Language: Ruby Author: Anton Kovalyov <anton@kovalyov.net> Contributors: Peter Leonov <gojpeg@yandex.ru>, Vasily Polovnyov <vast@whiteants.net>, Loren Segal <lsegal@soen.ca> */ function(hljs) { var RUBY_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?'; var RUBY_KE...
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertThrows } = Assert; // 13.3: Property Definition Evaluation for getters not updated to use DefinePropertyOrThrow // https://bugs.ecmascript.o...
/* PlayCanvas Engine v0.98.5 revision 8051c4c470ed http://playcanvas.com Copyright 2011-2012 PlayCanvas Ltd. All rights reserved. Do not distribute. */ var pc = {config: {},common: {},apps: {},data: {},unpack: function() { window.m4 = pc.math.mat4; window.v2 = pc.math.vec2; window.v3 = pc.m...
/** * Module dependencies */ var superagent = require('superagent'); var envs = require('envs'); var netrc = require('netrc'); var join = require('path').join; var USERNAME = envs('GITHUB_USERNAME'); var PASSWORD = envs('GITHUB_PASSWORD'); var TOKEN = envs('GITHUB_TOKEN'); /** * Initialize ENV from source on gith...
import 'antd/lib/empty/style/index';
/** * @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 the complete reference: // http://docs.ckeditor.com/#...
import * as virtualTypes from "./path/lib/virtual-types"; import * as messages from "babel-messages"; import * as t from "babel-types"; import clone from "lodash/clone"; /** * explode() will take a visitor object with all of the various shorthands * that we support, and validates & normalizes it into a common format...
/** * Module dependencies. */ var EventEmitter = require('events').EventEmitter , MongooseError = require('./error') , MixedSchema = require('./schema/mixed') , Schema = require('./schema') , ValidatorError = require('./schematype').ValidatorError , utils = require('./utils') , clone = utils.cl...
Object.defineProperty (module.exports, "__esModule", { value: true }); module.exports.URLLoaderDataFormat = module.exports.default = { BINARY: "binary", TEXT: "text", VARIABLES: "variables" };
import { createAction } from 'redux-actions'; export const getPosts = createAction('GET_POSTS', () => { return { promise: fetch('/api/posts', { method: 'get' }) }; }); export const getCategories = createAction('GET_CATEGORIES', () => { return { promise: fetch('/api/post...
import BrushBase from 'brush-base'; import {commonRegExp} from 'syntaxhighlighter-regex'; export default class Brush extends BrushBase { static get aliases() { return ['test_brush_v4_es6']; } constructor() { super(); this.regexList = [ { regex: /'.*$/gm, css: 'comments' }, { regex: /^\s...
import React from 'react' import { browserHistory } from 'react-router' import RaisedButton from 'material-ui/RaisedButton' import { AppBar } from 'material-ui' import css from './Auth.css' const Auth = (props) => { const { auth } = props.route const logOut = () => { auth.logout() browserHistory.push('/')...
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
const REQUEST_FETCH = 'products/REQUEST_FETCH'; const RESPONSE_FETCH = 'products/RESPONSE_FETCH'; const RESET_FILTER = 'products/RESET_FILTER'; const INVALIDATE = 'products/INVALIDATE'; const PRODUCT_DELETED = 'products/PRODUCT_DELETED'; const PRODUCT_FETCHED = 'products/PRODUCT_FETCHED'; import { Map, fromJS } f...
var app = require('app'); var BrowserWindow = require('browser-window'); app.commandLine.appendSwitch('--ignore-gpu-blacklist'); app.on('window-all-closed', function () { if (process.platform != 'darwin') { app.quit(); } }); var mainWindow = null; app.on('ready', function () { mainWindow = new B...
'use strict'; // chai-virtual-dom var chaiVirtualDom = require('chai-virtual-dom'); chai.use(chaiVirtualDom); // virtual-dom var h = require('virtual-dom/h'); // Get components var BpmnQuestionnaire = require('../../../lib/BpmnQuestionnaire'), Results = require('../../../l...
if (typeof Object.create !== 'function') { Object.create = function(obj) { function F() {} F.prototype = obj; return new F(); }; } (function($, window, document, undefined) { $.fn.socialfeed = function(_options) { var defaults = { plugin_folder: '', // a folder...
require('../../test_helper'); describe('2.3 #FindMiddle', function () { describe('return middle Node', function () { var sll; beforeEach(function() { sll = new MyLinkedList(); for(var i=1; i < 6; i++) { sll.addNode( i + 'Node', null); } }); afterEach(function() { sll ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.2-master-71674b0 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.swipe * @description Swipe module! */ /** * @ngdoc directive * @module material.components.swi...
import { CHANGE_FILE, CLEAR_FILE, LOAD_ERROR } from '../actions/file' export default function file(state = {name: null, type: null, error: false}, action) { switch (action.type) { case CHANGE_FILE: return Object.assign({}, state, { name: action.file.name, type: action.file.type, err...
/** * A tag class. All components in the system must extend this class. * Extended components are required to set a different componentType for each component type */ var component = base.extend({ create: function () { return Object.create(this); } }); Object.defineProperty(component, "componentType", { v...
'use strict'; /** * Module dependencies. */ require('should'); var http = require('../lib/http'); /** * Tests */ describe('index', function() { describe('reply', function() { beforeEach(function() { var self = this; self.opts = {}; self.statusCode = 200; self.body = { hello: 'wo...
require('./utils/spellcheck.js'); require('./utils/zoom.js'); const { ipcRenderer } = require('electron'); var notificationMap = {}; var service = null; var globalNotification = true; function getMessages() { var newNotifications = document.getElementsByClassName('new-notifications'); var t = 0; if (new...
//前后端分离工具MockJS import Mock from 'mockjs'; //模拟登陆账户名、密码 const LoginUsers = [ { id: 1, username: 'admin', password: '123456', avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png', name: '管理员'//管理员账户 }, { id: 2, username: '黄国强', passwor...
function increment(selector) { let container = $(selector); let fragment = document.createDocumentFragment(); let textArea = $('<textarea>'); let incrementBtn = $('<button>Increment</button>'); let addBtn = $('<button>Add</button>'); let list = $('<ul>'); //Textarea formation textArea.v...
var app = app || {}; (function() { app.androidLayout = app.androidLayout || {}; app.androidLayout.screenScaler = 0.75; // the higher the number, the wider the range of suggestions (and the less accurate) app.androidLayout.suggestionSensitivity = 3; // hash of error names and their full text app.androidLayout....
'use strict'; module.exports = { set: function (v) { this.setProperty('baseline-shift', v); }, get: function () { return this.getPropertyValue('baseline-shift'); }, enumerable: true };
/** * Kony namespace * @namespace kony */ if (typeof(kony) === "undefined") { kony = {}; } /** * Constructor for creating the kony client instance. * @class * @classdesc kony Class * @memberof kony */ kony.sdk = function() { this.mainRef = {}; this.tokens = {}; this.currentClaimToken = null; ...
'use strict' var thunk = require('..').thunk var result = [] var thunkFn = thunk(1) function callback (error, value) { if (error != null) throw error result.push(value) return thunk(function (callback2) { setTimeout(function () { callback2(null, value * 2) }, 1000) }) } console.time('thunk_series') for (v...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
var Crawler = require('crawler'); var jsdom = require('jsdom'); var utils = require('./utils'); var current_book = {}; var c = new Crawler({ jQuery:jsdom, maxConnections:100, forceUTF8:true, callback:function(error,result,$) { var urls = $('.booklist span a'); //console.log(urls); current_book.ti...
import { createTileUrlFunctionFromTemplates } from 'ol-tilecache' import { XYZ as XYZSource } from 'ol/source' import { createXYZ } from 'ol/tilegrid' import { EPSG_3857, extentFromProjection } from '../ol-ext' import { and, coalesce, isArray, isFunction, isNumber, noop, or } from '../utils' import source from './sourc...
const API_ROOT = `${process.env.API_URL || '/api/v1'}`; function callApi (endpoint, params) { const fullUrl = (endpoint.indexOf(API_ROOT) === -1) ? API_ROOT + endpoint : endpoint; // @todo: PAS We have two problems here. // 1. fetch according to a friend of mine does not support timeout and can we cancel...
/** * Connects to the MongoDB database and stores the * returned instance for future references. * * @author Andreas Willems * @version 14 JAN 2016 */ var MongoClient = require('mongodb').MongoClient; var logger = require('../helpers/logger'); var db_singleton = null; module.exports = function getConnection(uri...
(function() { var decimal_gt; decimal_gt = function(x, y) { return (1 * x) > (1 * y); }; module.exports = { decimal_gt: decimal_gt }; }).call(this);
'use strict'; const pathJoin = require('path').join; module.exports = function getProjectDir() { // NOTE: // Given I am in <projectDir> // When I run the command 'npm install --save-dev publish-please' // Then __dirname = <projectDir>/node_modules/publish-please/lib/utils // // Given I cloned...
(function (root, factory) { // For Node.js or CommonJS compatible loaders if (typeof module === 'object' && module.exports) { module.exports = factory(); // AMD - Anonymous module for RequireJS and compatible } else if (typeof define === 'function' && define.amd) { define(factory); ...
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version', 'ngAnimate', 'ui.bootstrap' ]). config(['$routeProvider', function ($routeProvider) { $routeProvider.otherwise({redirectTo: '/...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Caterer = mongoose.model('Caterer'), agent = request.agent(app); /** * Globals */ var credentials, user, caterer; /** * Caterer routes t...
const defaultTheme = require('tailwindcss/defaultTheme'); const colors = require('tailwindcss/colors'); module.exports = { darkMode: 'class', content: [ 'app/resources/**/*.{js,scss}', 'app/src/**/*.php', 'app/views/**/*.twig', ], theme: { extend: { colors: {...
module.exports = function(grunt) { "use strict"; // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', lint: { files: ['grunt.js', 'lib/**/*.js'] }, watch: { files: '<config:lint.files>', tasks: 'default' }, jshint: { options: { curly: tru...
var express = require('express'), path = require('path'), favicon = require('static-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), session = require('express-session'), /* Componentes Adicionais */ load = require('expr...
//>>built define("dojorama/layers/nls/storage_en-us",{"dojorama/ui/storage/mixin/nls/_StorageBreadcrumbsMixin":{homeLabel:"Home",storageIndexLabel:"Storage"}}); //@ sourceMappingURL=storage_en-us.js.map
/** * Outbox Controller * * @description controller for outbox page. */ (function() { 'use strict'; angular .module('starter.controllers') .controller('OutboxCtrl', OutboxCtrl); OutboxCtrl.$inject = ['$rootScope', '$scope', '$ionicLoading', '$timeout', 'logger', 'OutboxService', 'SyncService', 'Netw...
#pragma strict /// <summary> /// Title screen script /// </summary> private var skin : GUISkin; function Start() { // Load a skin for the buttons skin = Resources.Load("GUISkin") as GUISkin; } function OnGUI() { var buttonWidth : int = 128; var buttonHeight : int = 60; // Set the skin to use GUI.skin = skin...
// All symbols in the `Inherited` script as per Unicode v7.0.0: [ '\u0300', '\u0301', '\u0302', '\u0303', '\u0304', '\u0305', '\u0306', '\u0307', '\u0308', '\u0309', '\u030A', '\u030B', '\u030C', '\u030D', '\u030E', '\u030F', '\u0310', '\u0311', '\u0312', '\u0313', '\u0314', '\u0315', '\u0316', ...
'use strict'; // -------------------------------------------------------------------- // Imports // -------------------------------------------------------------------- const Failure = require('./Failure'); const TerminalNode = require('./nodes').TerminalNode; const assert = require('./common').assert; const {PExpr, ...
describe('Browser version tests', function() { it("lodash is not exported globally", function () { if (typeof window !== "undefined") { expect(_).to.be.undefined; } }); });
/** * @author Swagatam Mitra */ /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define, document, console, brackets, $, Mustache */ define(function (require, exports, module) { "use strict"; var AppInit = brackets.getModule("utils/AppInit"); ...
import {appendResults} from 'utils' import Rx from 'Rx' let cold = Rx.Observable.interval(500) , hot = Rx.Observable.interval(500).publish().refCount() cold.subscribe(x => appendResults(x, 'cold1')) setTimeout(function(){ cold.subscribe(x => appendResults(x, 'cold2')) }, 1500) hot.subscribe(x => appendResults(x...
/** * Pull the list of types out of the `types` property of a JSDoc doclet. * @param {Object} types - JSDoc type definition. * @returns {String[]} List of types. */ module.exports = types => { if (!types || !types.names) { return []; } return types.names; };
/** * Plural rules for the gd (Scottish Gaelic; Gaelic, Gàidhlig) language * * This plural file is generated from CLDR-DATA * (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) * using js-simple-plurals and universal-i18n * * @param {number} p * @return {number} 0 - one, 1 - two...
/** * JustMakeItBig.js * v0.1.4 */ (function($){ var JustMakeItBig = { // HTML5 Fullscreen API _fullscreen: { canFullScreen: function(){ return ( !!document.exitFullscreen || !!document.msExitFullscreen || !!document.webkitExitFullscreen || !!document.webkitCancelFullS...
'use strict'; var accessToken; const checkin = require('../functions/checkin'); const comment = require('../functions/comment'); module.exports = (router, foursquare, config) => { router.get('/api', function(req, res) { res.writeHead(303, { 'location': foursquare.getAuthClientRedirectUrl() }); res.end(); ...
export class usersubscription { constructor(){ this.hello = 'Welcome to the Aurelia Navigation App!'; } }
const pets = ['cat', 'dog', 'rat'] for (let i = 0; i < pets.length; i++) { pets[i] = pets[i] + 's' } console.log(pets)
OC.L10N.register( "core", { "Please select a file." : "Seleccione un ficheiro.", "File is too big" : "O ficheiro é grande de máis", "Invalid file provided" : "O ficheiro fornecido non é válido", "No image or file provided" : "Non forneceu ningunha imaxe ou ficheiro", "Unknown filetype" : "Ti...
import * as React from 'react'; import { createClientRender, describeConformanceV5 } from 'test/utils'; import TimelineDot, { timelineDotClasses as classes } from '@material-ui/lab/TimelineDot'; describe('<TimelineDot />', () => { const render = createClientRender(); describeConformanceV5(<TimelineDot />, () => (...
var fetchog = require('./index'); fetchog.fetch('http://www.yahoo.com', function(err, meta) { if (err) { console.log(err); } else { console.log('title: ', meta.title); console.log('description: ', meta.description); console.log('image: ', meta.image); console.log('url: ', meta.url); } });...
"use strict"; var container; var content; var bgExit; {{vars}} // i.e. Giving them Instance Names like in Flash - makes it easier function assignInstanceNames() { container = document.getElementById('adkit_container'); content = document.getElementById('adkit_contemt'); bgExit = document.getElementById('...
'use strict'; // Modules require('should'); var supertest = require('supertest'); var express = require('express'); // Subject var otto_method_override = require('../lib/index.js'); // New Express App var app = express(); // Add Method Override app.use(otto_method_override); // POST Request app.post('/metho...
'use strict'; /** * Expose an object with some iTunes artist IDs. */ module.exports = { pop: [ 119258059 //2Face , 274725761 //9ice , 481383337 // Yemi Alade , 973451696 // Adekunle Gold , 26089928 // Asa , 260802864 //Cobhams Asuquo , 158227126 //Banky W , 833...
emq.globalize(); App.setupForTesting(); App.injectTestHelpers(); setResolver(Ember.DefaultResolver.create({ namespace: App })); moduleFor('controller:pathwaysCompounds', 'Pathways Compounds Controller', { needs: ['controller:application', 'controller:flash'] }); test('can see the application controller', function...
/* Detects which experience to serve to a user based on the client browser. Docs: https://github.com/knation/browser-survey Version 0.0.1 Kirk Morales (http://www.kirkmorales.com) Copyright 2013. All Rights Reserved. @license MIT LICENSE */ (function(a,f,e){function l(){if(f&&f.documentElement&&f.documentEleme...
var proxy = require("ui/core/proxy"); var dependencyObservable = require("ui/core/dependency-observable"); var viewModule = require("ui/core/view"); var observable = require("data/observable"); var observableArray = require("data/observable-array"); var weakEvents = require("ui/core/weak-event-listener"); var types = r...
/*! * FormValidation (http://formvalidation.io) * The best jQuery plugin to validate form fields. Support Bootstrap, Foundation, Pure, SemanticUI, UIKit and custom frameworks * * @version v0.7.0-dev, built on 2015-06-04 4:32:33 PM * @author https://twitter.com/formvalidation * @copyright (c) 2013...
import controller from './firmas-form.controller'; import template from './firmas-form.html'; const firmasFormComponent = { bindings: { data: '<', event: '<', onSave: '&', }, controller, template }; export default firmasFormComponent;
// Generated by CoffeeScript 1.3.3 /* 2D Vector */ var Vector; Vector = (function() { /* Adds two vectors and returns the product. */ Vector.add = function(v1, v2) { return new Vector(v1.x + v2.x, v1.y + v2.y); }; /* Subtracts v2 from v1 and returns the product. */ Vector.sub = function(v1, v2) ...
Ext.define('Ext.app.Application', { extend: 'Ext.app.Controller' });
'use strict'; // InwardEntry controller angular.module('inward-entries').controller('InwardEntriesController', ['$scope', '$stateParams', '$location', 'Authentication', 'InwardEntries', function($scope, $stateParams, $location, Authentication, InwardEntries) { $scope.authentication = Authentication; // Create ne...
/** * Module dependencies. */ var start = require('./common') , Query = require('../lib/query') , mongoose = start.mongoose , DocumentObjectId = mongoose.Types.ObjectId , Schema = mongoose.Schema , should = require('should') var Comment = new Schema({ text: String }); var Product = new Schema({ ...