code stringlengths 2 1.05M |
|---|
import express from 'express'
import {
getNewsletter,
} from './newsletter.controller'
const router = express.Router()
router.get('/', getNewsletter)
module.exports = router
|
const roles = require('../../config/roles'),
unirest = require('unirest');
exports.run = (bot, message, args) => {
unirest.get('https://random.dog/woof.json')
.end((result) => {
if (result.error || typeof result.body !== 'object') {
bot.log(result.error, result.body);
... |
let path = require('path')
let express = require('express')
let morgan = require('morgan')
let cookieParser = require('cookie-parser')
let bodyParser = require('body-parser')
let session = require('express-session')
let mongoose = require('mongoose')
let requireDir = require('require-dir')
let flash = require('connect-... |
/**
* Welcome to your gulpfile!
* The gulp tasks are split into several files in the gulp directory
* because putting it all here was too long
*/
'use strict';
var fs = require('fs');
var gulp = require('gulp');
/**
* This will load all js or coffee files in the gulp directory
* in order to load all gulp ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import firebase, {firebaseRootRef} from 'ipmaps/firebase/';
export const IPMAP_SELECTED = 'IPMAP_SELECTED';
export const IPMAP_SEARCHED = 'IPMAP_SEARCHED';
export const IPMAP_CREATED = 'IPMAP_CREATED';
export const IPMAPS_FETCH = 'IPMAPS_FETCH';
export const IPMAP_REMOVED = 'IPMAP_REMOVED';
export const IPMAP_CHANGED =... |
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import userResults from './userResults';
import searchInFlight from './searchInFlight';
import reposByUser from './reposByUser';
import adminAccess from './adminAccess';
export default combineReducers({
userResults,
search... |
'use strict';
app.directive('dirty', [function () {
return {
restrict: 'A',
link: function (scope, element, attrs, controller) {
element.on('keydown keyup focus blur', function () {
if ($(this).val() !== '') {
$(this).addClass('input--dirty');
} else {
$(this).removeClass('input--dirty');
... |
var Dictionary = require('dictionaryjs');
var dictData = new Dictionary();
try {
var TestData = require("../../data/TestData/" + browser.params.testEnv + ".GoogleUKStartEnd.data.js");
var testData = new TestData();
testData.load(dictData);
} catch(err) {
console.log(err)
}// --------------------------... |
/// <reference path="../scripts/angular.min.js" />
var myApp = angular.module('myApp', []);
myApp.factory('Avengers', function() {
var Avengers = {};
Avengers.cast = [
{
name: "Robert Downey Jr.",
character: "Tony Stark / Iron Man"
},
{
name: "Chris E... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
const assert = require('assert');
const should = require('should');
const {TEST_STRING, TEST_STRING_EDITED, EXPECT_OUTCOME} = require('./params.js');
describe('HTML-Differences', function(){
const differ = require('../index').differ;
describe('#differ()', function(){
var result = differ(TEST_STRING, TEST_STRING_ED... |
import Helper from '@ember/component/helper';
import RSVP from 'rsvp';
export default class extends Helper {
compute(params) {
const args = Array.isArray(params[0]) ? params[0] : params;
return RSVP.all(args);
}
}
|
/**
* @fileoverview Package exports for @eslint/eslintrc
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const {
ConfigArrayFactory,
... |
var Util = require('util');
var Client = require('./Client');
var Constants = require('./Constants');
var RestParameterValidator = require('./RestParameterValidator');
var UploadClient = require('./UploadClient');
/**
* Creates an instance of RestClient.
*
* @constructor
* @this {RestClient}
* @param {String} con... |
define([ 'module_base', 'bootstrap' ], function (mod_base) {
return mod_base.extend({
api_root: "/api/mod/markup",
initialize: function (el, o, callback) {
var self = this;
self.base_initialize(el, o, function () {
if (self.manifest.options.src && !self.manife... |
'use strict';
var module = angular.module('jsonSchemaDoc', []);
module.directive('jsonDoc', function () {
return {
restrict: 'EA',
template: '<div class="">' +
' <h2 class="" ng-if="showTitle">{{schema.title}}</h2>' +
' <span class="" ng-if="showDescription" ng-bind=... |
// utils
var deepMerge = require('../utils/deepMerge');
// config
var overrides = require('../../config/images');
var assets = require('./common').paths.assets;
/**
* Image Building
* Configuration
* Object
*
* @type {{}}
*/
module.exports = deepMerge({
paths: {
watch: [
assets.src + '/im... |
function sortByKey(array, key) {
return array.sort((a, b) => {
const x = a[key]; const y = b[key];
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
});
}
export default sortByKey;
|
import {NgAttributeError} from '../src/class/ng-attribute-error';
describe('NgAttributeError', function() {
it('Should create an instance', function() {
var node = {
node: {
type: 'div'
},
qName: {
localName: 'value',
uri: ... |
/**
* Credits: https://css-tricks.com/snippets/jquery/smooth-scrolling/
*/
$(function () {
$('body').on('click', 'a[href*=#]:not([href=#])', function () {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.h... |
'use strict';
var fs = require('fs');
var should = require('should');
var matter = require(__dirname + '/..');
var fixtures = __dirname + '/fixtures/';
var normalCheck = function (obj, fromFile) {
should(obj).be.ok;
obj.should.have.ownProperty('src');
obj.should.have.ownProperty('body');
obj.should.have.ownP... |
import PropTypes from 'prop-types';
import React, { Component, Children } from 'react';
import classnames from 'classnames';
import { areNextPropsDifferent } from '../../helpers/props';
import * as ScrollerHelpers from '../../helpers/scroller';
import { canUseRAF } from '../../helpers/window';
import styles from './Car... |
Listeners.Mask = {
run: function(){
$('[data-mask]').each(function(){
$(this).mask($(this).data('mask'));
});
}
}; |
import {
TextureLoader,
ShaderMaterial,
LinearFilter,
Vector2,
DoubleSide,
} from "three";
function NOOP() {}
const vs = `
#include <common>
varying vec2 vUv;
uniform bool uLeft;
uniform float uRotation;
void main() {
// vec3 centerWorldPos = (modelMatrix * vec4(vec3(0.0), 1.0)).xyz;... |
import _ from 'lodash';
import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function average(data) {
return _.round(_.sum(data)/data.length);
}
export default (props) => {
return (
<div>
<Sparklines height={120} width={180} data={props.data}>
... |
/// <reference path="../_references.d.ts" />
(function () {
"use strict";
var app = angular.module("app");
app.directive("widgetHeader", [function () {
//Usage:
//<div widget-header title="vm.map.title"></div>
var directive = {
link: link,
restrict: "A",
... |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.... |
/**
* @file flash-source-buffer.js
*/
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false... |
import SMTPConnection from 'smtp-connection';
class GoogleUserValidator {
constructor(options, domain) {
this._options = options;
this._domain = domain;
}
// Public Methods
validate(username, password, callback) {
const smtpConnection = this._setupSMTPConnection();
smtpConnection.connect(() ... |
var morgan = require('morgan');
var bodyParser = require('body-parser');
var helpers = require('./helpers.js');
module.exports = function (app, express) {
var eventRouter = express.Router();
app.use(morgan('dev'));
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());
app.use(expr... |
'use strict'
const soma = require('./modules/soma')
const subtracao = require('./modules/subtracao')
const multiplicacao = require('./modules/multiply')
const divisao = require('./modules/divisao')
function calculadora(total = 0) {
const calc = fn => (...n) => calculadora(fn(...[total].concat(n)))
const plus = calc... |
$(document).ready(function() {
var form = $('form#new_drop');
form.on('submit', function(e) {
if($('input#sc_url').val() == '' && $('select#drop_sc_track').val() == '') {
var message = $("<li>SoundCloud track and SoundCloud link can't both be blank</li>");
var ul = $('<ul>').append(message);
v... |
// Load modules.
var Strategy = require('./strategy')
, AuthorizationError = require('./errors/authorizationerror')
, TokenError = require('./errors/tokenerror')
, InternalOAuthError = require('./errors/internaloautherror');
/**
* Framework version.
*/
require('pkginfo')(module, 'version');
/**
* Expose Stra... |
'use strict';
angular.module('toastio')
.config(function($stateProvider) {
$stateProvider
.state('files', {
parent: 'content',
url: '/files',
template: '<div ui-view=""></div>',
abstract: true
})
.state('fil... |
// flow-typed signature: 1727ed769886e0c8275ecf191d324212
// flow-typed version: cc8af4672f/jest_v18.x.x/flow_>=v0.33.x
type JestMockFn = {
(...args: Array<any>): any,
/**
* An object for introspecting mock calls
*/
mock: {
/**
* An array that represents all calls that have been made into this moc... |
(function () {
'use strict';
angular
.module('forums')
.controller('ForumsListController', ForumsListController);
ForumsListController.$inject = ['ForumsService'];
function ForumsListController(ForumsService) {
var vm = this;
vm.forums = ForumsService.query();
}
}());
|
$("[name='my-checkbox']").bootstrapSwitch();
$('#dimension-switch').bootstrapSwitch('setSizeClass', 'switch-mini'); |
import { isNumber, isUndefined } from 'utils/is';
// This function takes an array, the name of a mutator method, and the
// arguments to call that mutator method with, and returns an array that
// maps the old indices to their new indices.
// So if you had something like this...
//
// array = [ 'a', 'b', 'c', 'd'... |
var express = require('express')
, passport = require('passport')
, LinkedinStrategy = require('../lib').Strategy;
// API Access link for creating client ID and secret:
// https://www.linkedin.com/secure/developer
var LINKEDIN_CLIENT_ID = process.env.LINKEDIN_CLIENT_ID;
var LINKEDIN_CLIENT_SECRET = process.env.LIN... |
$(function(){
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
var lang = g... |
!function(e){"function"==typeof define?define("cookie",["jq"],function(){return e}):e(jQuery)}(function(e){console.log(e),e.cookie=function(n,o,t){if(arguments.length>1&&(null===o||"object"!=typeof o)){if(t=e.extend({},t),null===o&&(t.expires=-1),"number"==typeof t.expires){var i=t.expires,r=t.expires=new Date;r.setDat... |
//const graphTools = require('graphql-tools');
const typeDefs = `
type Person {
personId: Int
firstName: String
lastName: String
knownAs: String
jobTitle: String
status: Int
active: String
kenUsername: String
phone1: String
email1: String
language: String
adUsername: S... |
var Application;
(function (Backbone, Application) {
var Views = Application.Views || (Application.Views = {});
Views.MembershipChildForm = Backbone.View.extend({
events: {
'submit': 'onSubmit'
},
handleError: function(jqxhr) {
throw new Error('Not Impl... |
var md = false;
var color = tinycolor('#840000');
$(document).ready(function(){
$.ajaxSetup({ cache: false });
$('.unicorn').draggable({ handle: "h1" });
$(document)
.on('mousedown',function(e){md=true;})
.on('mouseup',function(e){md=false;});
$('table').on('dragstart',function(e){
e.preventDefault();
retu... |
export default {
enterNewShortcut: 'New shortcut...',
containedOnlyOneCharacter: ' shortcut contained only one character!',
onlyControls: ' shortcut hasn\'t contained non control character!',
alreadyUsed: 'Hotkey was already used in '
}; |
module.exports = function (grunt) {
var path = require('path');
var sourceDir = path.join(__dirname, 'src/gollery/ui');
var buildDir = path.join(__dirname, 'src/gollery/ui-build');
var destDir = path.join(__dirname, 'src/gollery/static');
var src = function(name) {
return path.join(sourceDir, (name || ''));
}... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="amd" -o ./modern/`
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud and Inv... |
var _ = require('lodash');
var Promise = require('bluebird');
var RemotePartition = function (client, partitionId) {
this._client = client;
this._partitionId = partitionId;
};
RemotePartition.prototype._promisify = function (value, callback) {
return Promise.resolve(value).nodeify(callback);
};
RemotePartition... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.WatsonSpeech =... |
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of files / patterns to l... |
import { connect } from 'react-redux';
import React from 'react';
let userID;
let password;
let SignIn = ({ onSubmit }) => (
<form action="" method="post" enctype="multipart/form-data" onSubmit={onSubmit}>
<fieldset>
<label for="userID">User ID</label>
<br />
<input type=... |
module.exports = {
data: {
ticket: 'ticket',
token: '1111',
},
msg: '操作成功',
status: 1,
}
|
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
Platform
} from 'react-native';
import Logo from '../common/Logo';
import Button from '../common/Button';
export default class AppointmentCanceled extends Component {
_openMain() {
this.props.navigator.pop();
}
... |
import expect from 'expect'
import { shallow } from 'enzyme'
import React from 'react'
import ComicItem from '../../src/components/ComicItem'
describe('<ComicItem />', () => {
let props
beforeEach(() => {
props = {
comic: {
id: 1,
title: 'A title',
coverUrl: 'A cover url',
... |
module.exports = function() {
var fieldClass = "VF-Field--" + ucfirst(this.fieldType);
var classes = {
'VF-Field--required':this.rules.required || this.isRequired,
'VF-Field--disabled':this.disabled,
'has-error':this.errors.length,
'has-feedback':this.hasFeedback,
'has-success':... |
var express = require("express")
var app = express();
var fs = require("fs");
var http = require("http");
var reqIdx = 0;
//server main page1 - video stream based
app.get("/", (req, res) => {
res.sendfile('index.html')
});
app.get("/test", (req, res) => {
res.sendfile('test.html')
});
app.listen(5000, () => {
co... |
Package.describe({
name: 'spencern:context-menu',
summary: 'Meteor package for Sudhanshu Yadav\'s contextMenu.js',
version: '1.1.3',
git: 'http://github.com/spencern/meteor-context-menu.git'
});
Package.onUse(function(api) {
api.versionsFrom('METEOR@0.9.0.1');
api.use('jquery');
api.addFiles('contextMe... |
//======================================================================
// REQUIREMENTS
//======================================================================
var Damn = require("../damn");
var _ = require("lodash");
//======================================================================
// LOGGER
//==============... |
{
"field": "product",
"attributes": [
{
"field": "tenantId",
"index": true,
"isRequired": true,
"instance": "String"
},
{
"field": "productId",
"index": {
"unique": true,
"background":... |
/**
* Created by danie on 31/12/2016.
*/
angular.module('myApp.directives', ['myApp.services']); |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react'
import {
StyleSheet,
Text,
View
} from 'react-native'
import {
Scene,
Router,
Actions,
Reducer,
Tabs,
ActionConst
} from 'react-native-router-flux'
import Home from './Pa... |
import gulp from 'gulp';
import browserify from 'browserify';
import babelify from 'babelify';
import source from 'vinyl-source-stream';
import gutil from 'gulp-util';
import dir from '../shared/directories';
gulp.task('scripts', function () {
browserify({debug: false})
.transform(babelify)
... |
// Copyright 2016-2021, University of Colorado Boulder
/**
* a type that models an incandescent light bulb in an energy system
*
* @author John Blanco
* @author Andrew Adare
*/
import merge from '../../../../phet-core/js/merge.js';
import { Image } from '../../../../scenery/js/imports.js';
import Tandem from '..... |
let f = require('./f');
let x1 = f.f;
let x2 = f.toString;
|
"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")... |
//WebGL fingerprinting
//Code from https://github.com/Valve/fingerprintjs2
try {
var fa2s = function(fa) {
gl.clearColor(0.0, 0.0, 0.0, 1.0);
gl.enable(gl.DEPTH_TEST);
gl.depthFunc(gl.LEQUAL);
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
return "[" + fa[0] + ", " + fa... |
import { Link } from "gatsby";
import PropTypes from "prop-types";
import React, { useState } from "react";
import { ExternalLink } from "react-feather";
import logo from "../images/logo.png";
function Header({ siteTitle }) {
const [isExpanded, toggleExpansion] = useState(false);
return (
<nav className="">
... |
const mongoose = require('mongoose')
let graphicSchema = mongoose.Schema({
category: { type: String, required: true},
name: { type: String, required: true },
description: { type: String },
image: { type: String, required: true },
author: { type: mongoose.Schema.Types.ObjectId, required: true, ref: ... |
// Generated by CoffeeScript 1.7.1
(function() {
var $, $split_and_skip, P, TEXT, TRM, TYPES, alert, badge, debug, echo, help, info, log, njs_fs, rainbow, route, rpr, urge, warn, whisper;
njs_fs = require('fs');
TYPES = require('coffeenode-types');
TEXT = require('coffeenode-text');
TRM = require('coffeen... |
'use strict';
var sqlutil = require('../lib/sqlutil'),
expect = require('chai').expect;
describe('sql helpers', function () {
it('should create sql statement', function () {
var records = [ {foo: 'bar', baz: 123},
{foo: 'ble', baz: 456}];
expect(sqlutil.toInsertSql('myTable', records))
.to.equal('INS... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.1-master-eacca5e
*/
goog.provide('ng.material.components.menuBar');
goog.require('ng.material.components.menu');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.menu-bar
*/
angular.modul... |
var Context = function (options) {
};
Context.prototype.translate = function (message, subkey) {
return message;
};
module.exports = Context; |
// View event binding
_.init = function() {
_.persistent = new LocalStoragePersistent();
// Load data
var current = _.persistent.get('current');
if (!current) {
_.user = User.create('anonymous', '', true);
_.project = Project.get(_.user.defaultProject);
var current = {id: 'current', key: ... |
const gulp = require('gulp');
const babel = require("gulp-babel");
const del = require('del');
const budo = require('budo');
const babelify = require('babelify');
const errorify = require('errorify');
const garnish = require('garnish');
const rename = require("gulp-rename");
const ghPages = require('gulp-gh-pages');
g... |
'use strict';
var urltils = require('../util/urltils')
, logger = require('../util/logger').child('common.error')
;
var MAX_ERRORS = 20;
function createError(action, exception, customParameters, config) {
// the collector throws this out, so don't bother setting it
var timestamp = (new Date()).getTi... |
import React from 'react';
import ReactDOM from 'react-dom';
import ReactAddons from 'react/addons';
var testUtils = ReactAddons.addons.TestUtils;
import Page from '../../../client/components/common/Page';
describe("Page", function () {
var page;
it("should render the children passed to it", function () {
... |
export default class RotateCanvasObject {
execute(editors, obj) {
let rotation = editors.get("Rotation");
obj.on("rotating", function(e) {
let angle = this.get("angle");
rotation.value = angle;
rotation.changed();
});
}
} |
var fs = require('fs'),
path = require('path');
var getThemeHead = exports.getThemeHead = function() {
var html = fs.readFileSync(path.join(__dirname, '../public/theme/head.html'), 'utf8');
// Remove relative <link> and <script> tags
html = html.replace(/<link[^>]*href="(\/public[^"]+)"[^>]... |
"use strict";
var _toolsProtectJs2 = require("./../../tools/protect.js");
var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2);
exports.__esModule = true;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { i... |
import { RestartStep } from './RestartStep'
export default RestartStep; |
// Generated by CoffeeScript 1.9.0
var Contact, async, cozydb, log, stream, stream_to_buffer_array,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
cozydb = require('cozydb');
async = require('async');
stream_to_... |
const path = require('path');
const { URL } = require('url');
const http = require('http');
const ecstatic = require('ecstatic');
const puppeteer = require('puppeteer');
const viewport = {
// Using a 16:9 ratio here by default to match Twitter's image card dimensions
// 1216 was chosen as the width because of ... |
$(document).ready( function() {
$(".filter-engage-disingage").click( function() {
$(".filters").toggle();
});
});
|
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require('react');
var ReactMarkdown ... |
var test = require('tape');
var parallel = require('run-parallel');
var potter = require('./lib/potter.js');
test('potter help', function t(assert) {
potter('help', function onHelp(err, stdout, stderr) {
assert.ifError(err);
assert.equal(stderr, '');
assert.notEqual(stdout.indexOf('potte... |
/**
* Created by weixing on 2015/11/10.
*/
var redisClient = require('./redis').redisClient;
/**
*
* @param params
* object {
* roomid:
* start:
* offset:
* }
* @param cb callback function
*/
var getFriendChatRecord = function(room,start,end,cb){
redisClient.lrange(room,start,end,function(error,rec... |
module.exports = function(grunt) {
grunt.config.set('eslint', {
dev: [
'assets/js/**/*.js',
'!assets/js/lib/**/*.js',
'!assets/js/templates.js',
],
options: {
configFile: './.eslintrc.js',
},
});
grunt.loadNpmTasks('grunt-eslint');
};
|
import decorator, * as decoratorHelpers from './decorator';
import * as url from './url';
import * as selectors from './selectors';
import * as actions from './actions';
import * as transforms from './transforms';
export default decorator;
export const buildUrl = url.buildUrl;
export const exists = decoratorHelpers.e... |
module.exports = { success: jest.fn(() => { }) };
|
import { __decorate, __metadata } from "tslib";
import * as au from "../aurelia";
let ValidationContainer = class ValidationContainer {
constructor(element, coloursService) {
this.element = element;
this.coloursService = coloursService;
this.validateResults = [];
this.mdUnrend... |
'use strict';
var path = require('path');
var autoprefixer = require('autoprefixer-core');
module.exports = function(gulp, plugins, args, config, taskTarget, browserSync) {
var dirs = config.directories;
var entries = config.entries;
var dest = path.join(taskTarget, dirs.styles.replace(/^_/, ''));
// Sass co... |
define([
"../core",
"../utils/addToUrl"
], function (mjp, addToUrl) {
function setHeaders(xhr, headers) {
var fullheaders = {"X-Requested-With": "XMLHttpRequest"};
mjp.extend(fullheaders, headers);
for(var prop in fullheaders) {
if (fullheaders.hasOwnProperty(prop)) {
... |
describe('angularjs homepage', function() {
beforeEach(function() {
return browser.ignoreSynchronization = true;
});
it('should have a title', function() {
browser.ignoreSynchronization = true;
browser.get('/');
expect(browser.getTitle()).toEqual('Transform Admins');
});
});
|
/**
* @file: player.js
* @author: yanglei07
* @description ..
* @create data: 2016-10-10 14:37:19
* @last modified by: yanglei07
* @last modified time: 2016-10-26 18:04:48
*/
/* global Vue, _, yog */
define(function (require) {
var $ = require('zepto');
var mediator = require('./mediator');
var ... |
function crestAPIService($http, AppSettings) {
'ngInject'
const MARKET_TYPES_ENDPOINT = '/market/types/';
const METHODS = {
GET: 'GET',
POST: 'POST',
PUT: 'PUT',
DELETE: 'DELETE'
};
const service = {};
service.getAllMarketTypes = getAllMarketTypes;
return service;
function g... |
/*! Flickbook - v0.2.0 - 2013-01-24
* Copyright (c) 2013 Rhys Evans; Licensed MIT */
;(function ( $, window, document, undefined ) {
var pluginName = 'flickbook',
binder = $.fn.on ? "on": "bind"; // ensures backwards compatibility with versiosn prior to 1.7
/**
* @name Plugin
* @construc... |
// Generated by CoffeeScript 1.3.3
/*
knockback.js 0.15.4
(c) 2011, 2012 Kevin Malakoff.
Knockback.js is freely distributable under the MIT license.
See the following for full license details:
https://github.com/kmalakoff/knockback/blob/master/LICENSE
Dependencies: Knockout.js, Backbone.js, and Underscor... |
/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.8.0r4
*/
/**
* @description <p>Creates a Image Cropper control.</p>
* @namespace YAHOO.widget
* @requires yahoo, dom, dragdrop, element, event, resize
* @module imagecro... |
version https://git-lfs.github.com/spec/v1
oid sha256:42a59b22ec5b5070976d6c65f2b2bddf9f13b42da53b87ef2d316aa7148d4a49
size 2923
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.