code stringlengths 2 1.05M |
|---|
module.exports = {
name: 'oreo-icons'
} |
var apiRecipeConfig = null;
var waitingForWords = false;
var apiRecipeConfigLoaded = false;
var shortcutManager = {
hadShortcut: false,
createShortcut: function(recipe) {
return false;
},
hasShortcutCalled: function() {
return false;
},
execExtra: function() {
return fal... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
/**
* Created by 斌 on 2017/4/19.
*/
import {UPDATE_LOADING_STATUS, SHOW_TOAST, HIDE_TOAST, DESTINATION, TEMP_HIDING} from '../../lib/constant'
import _ from 'lodash'
export default {
state: {
isLoading: false,
toast: {
value: false,
time: 1000,
width: '80%',
type: 'text',
posi... |
var http = require("http");
function getWeatherbyID(cityID, callback) {
var options = {
//http:///data/2.5/weather?id=4487042&units=imperial
host: "api.openweathermap.org",
//path: "/data/2.5/weather?id=" + cityID + "&units=imperial",
path: "/data/2.5/weather?q=" + cityID + "&units=imperial",... |
/**
* Here I'm redirect all the server process in server/server.js
* There I will execute all the server stuff.
* autor: mauromandracchia@gmail.com
*
*/
var server = require('./server/server');
server.init();
|
/*
The Quarry Desktop App
*/
angular
.module('quarrydesktop', ['quarry.core', 'quarry.ui', 'quarry.app.digger'])
.config(['$stateProvider', '$routeProvider', '$urlRouterProvider',
function ($stateProvider, $routeProvider, $urlRouterProvider) {
$urlRouterProvider
//.when('/c?id', '/cont... |
$("#mydiv").html('<object data="http://google.com.au"/>');
|
(function () {
"use strict";
angular.module('ngSeApi').factory('seaPatch', ['SeaRequest', 'seaPatchContainer', 'seaPatchViewFilter', 'seaPatchHelper', 'seaPatchTask',
function seaUser(SeaRequest, seaPatchContainer, seaPatchViewFilter, seaPatchHelper, seaPatchTask) {
var request = new SeaReq... |
var DAL = require('../db/DAL').DAL;
var debug = require('debug')('scorm-profile-viewer:util');
module.exports = {
mustBeLoggedIn: function(req, res, next) {
if (req.user) return next();
else res.redirect('/users/login?r=' + encodeURIComponent(req.originalUrl));
},
testAuth: function (req, r... |
class RecoverableError extends Error {
constructor(...args) {
super(...args);
this.name = this.constructor.name;
}
}
class UnrecoverableError extends Error {
constructor(...args) {
super(...args);
this.name = this.constructor.name;
this.unrecoverable = true;
}
}
... |
import map from 'funny-map'
/**
* Partial functions.
*
* @param {Function} fn Function to partial.
* @return {Function} Partially implemented function.
*/
export default function partial (fn, ...partialArgs) {
if (!partialArgs.length) {
return fn
}
return (...args) => {
let index = 0
return... |
var cout = require('../cout.js');
cout.config({
//should only display level 'warn' and 'silly'
cout: ['normal', 'warn'],
timestamp: {
locale: 'ja',
}
});
cout("Hello", "World", {
hello: "world"
}, ['hello', 'world'], 1, 2, 3).end();
cout(['one', 'two', 2], {
hello: "world"
}, ['hello', 'world']).warn... |
/*
*
* login-register modal
* Autor: Creative Tim
* Web-autor: creative.tim
* Web script: http://creative-tim.com
*
*/
function showRegisterForm(){
$('.loginBox').fadeOut('fast',function(){
$('.registerBox').fadeIn('fast');
$('.login-footer').fadeOut('fast',function(){
$('.regist... |
var searchData=
[
['udpconnection',['UdpConnection',['../classcrap_1_1_udp_connection.html#a795feae71a319cc5a82ea1f610e4a494',1,'crap::UdpConnection']]],
['udperrorgenerator',['UdpErrorGenerator',['../classcrap_1_1_udp_error_generator.html#aa20c6432764f4e0498decd46e19ec6c2',1,'crap::UdpErrorGenerator']]],
['udpne... |
(function() {
var canvas = document.querySelector('#canvas');
var context = canvas.getContext('2d');
// Tracer un rectangle de 50 sur 80 pixels
// rectangle plein
// context.fillStyle = "gold";
// context.fillRect(50, 35, 50, 80);
//ou vide
context.lineWidth = "5";
context.strokeStyle = "gold";
co... |
var fs = require('fs'),
request = require('request');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
const GHOST_ENDPOINT = {
protocol: 'https:',
host: '52.49.91.111',
port: 8443,
path: '/ghost'
};
const GHOST_URL = GHOST_ENDPOINT.protocol + '//' + GHOST_ENDPOINT.host + ':' +
GHOST_ENDPOINT.por... |
'use strict';
var superagent = require('superagent');
var assert = require('chai').assert;
var tools = require('../test-tools');
var config = tools.config;
var dataLoader = require('../../test-data/data-loader');
var Category = tools.Category;
var User = tools.User;
var categoriesData = dataLoader.categoriesData;
var... |
'use strict';
/***********************
* Test dependencies
***********************/
const Promise = require('bluebird');
const path = require('path');
const fs = Promise.promisifyAll(require('fs'));
const TranscriptParser = require('../app.js');
const chai = require('chai');
const should = chai.should();
const Reada... |
var searchData=
[
['timedworker',['TimedWorker',['../namespace_sensorberg_s_d_k_1_1_internal_1_1_data.html#a685ae1aafd94a7e47975b9347bb66422a2185f32b38f0ad63b40647aaa92ec5af',1,'SensorbergSDK::Internal::Data']]]
];
|
define('draggabilly',function(require, exports, module) {
/*!
* Draggabilly PACKAGED v1.0.4
* Make that shiz draggable
* http://draggabilly.desandro.com
*/
/*!
* classie - class helper functions
* from bonzo https://github.com/ded/bonzo
*
* classie.has( elem, 'my-class' ) -> true/false
* classie.add( elem, '... |
import { MESSAGES_REQUESTED_BATCH_LOCAL, MESSAGES_RECEIVED_BATCH_LOCAL } from './MessagesConstants';
// TODO: need to deal with error cases
export function fetchAll(callback) {
// NOTE: this could be done without the requested/received pair, but
// kept for consistency
return dispatch => {
d... |
'use strict'
const describe = require('mocha').describe
const music = require('./fixtures/music')
const test = require('./fixtures/test')
const types = Object.keys(music)
describe('Music', () => {
types.forEach(type => {
test(music[type])
})
})
|
(function() {
"use strict";
var image, master, product, store, variants;
module('App.Product', {
setup: function() {
Ember.run(function() {
store = dataStore();
product = store.find('product', 'some-shirt');
});
},
teardown: function() {
store = undefined;
p... |
import ComponentView from '../Base/ComponentView';
/**
* The repeater component creates a component for each model in a collection (its model property)
* modelComponent option is the constructor for the component to make
* modelOptions is the options to pass to each new component
* @constructor
*/
var RepeaterCom... |
'use strict';
const Koa = require('koa');
const Cleantalk = require('../src/middlewares/koa');
const app = new Koa();
|
//aqui começa o hamburger menu
var botaoMenuHamburguer = document.querySelector("#hamburgerMenu");
function abrirMenu() {
this.classList.toggle("clicked");
var menu = document.querySelector("#hamburgerList");
menu.classList.toggle("visible");
}
botaoMenuHamburguer.onclick = abrirMenu;
//aqui começa ... |
"use strict";
module.exports = () => {
/**
* Checks the config has all necessary properties to work with the
* backend-plugin. It will fail loudly if something isn't present.
*
* @param {Object} config
* @param {Function} callback
*/
function validateConfig(config) {
var c... |
import {HttpClient} from 'aurelia-http-client';
import {SERVICES} from 'config/services.js';
export class Customer{
static inject() { return [HttpClient]; }
constructor(http, orangeMoney) {
this.http = http;
this.heading = 'List Customers';
this.customers = [];
}
activate() {
... |
'use strict';
var gulp = require('gulp'),
debug = require('gulp-debug'),
inject = require('gulp-inject'),
tsc = require('gulp-typescript'),
tslint = require('gulp-tslint'),
sourcemaps = require('gulp-sourcemaps'),
rimraf = require('gulp-rimraf'),
Config = require('./gulpfile.config'),
karm... |
var test = require('tape');
var file = require('../src/codility/prefix-sums/minAvgTwoSlice.js');
test('minAvgTwoSlice', function(t) {
t.plan(8);
t.equal(1, file.minAvgTwoSlice([ 4, 2, 2, 5, 1, 5, 8 ]), 'example test');
t.equal(0, file.minAvgTwoSlice([ -10000, -10000 ]), 'two or four elements');
t.equal(0, fil... |
import d3 from 'd3'
import logger from '../logger'
const formatCandleData = (data) => data.map(d => ({
begins_at: d.begins_at,
open_price: parseFloat(d.open_price),
close_price: parseFloat(d.close_price),
high_price: parseFloat(d.high_price),
low_price: parseFloat(d.low_price),
volume: d.volume,
interpol... |
/*!
* ncss - compilers
* Copyright (c) 2011 Wil Asche <wil@wickedspiral.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var deps = {};
/**
* Compiliers
*/
module.exports = {
'css': function(str, path, callback, next) {
callback(str);
},
'styl': function(str, path, callback, next) {
if (... |
const test = require('tape')
const barracks = require('./index.js')
test('.on() should assert input arguments', function (t) {
t.plan(2)
const d = barracks()
t.throws(d.on.bind(null), /string/)
t.throws(d.on.bind(null, ''), /function/)
})
test('.on() should bind functions', function (t) {
t.plan(3)
const ... |
// Avatar.setOptions({
// gravatarDefault: "identicon"
// }); |
// Global javascript (loaded on all pages in Pattern Lab and Drupal)
// Should be used sparingly because javascript files can be used in components
// See https://github.com/fourkitchens/macchiato/wiki/Drupal-Components#javascript-in-drupal for more details on using component javascript in Drupal.
// Typekit Example
/... |
/*jshint boss:true, expr:true, onevar:false */
var ProjectsView;
var VIEW_TITLE = 'Projects';
ProjectsView = Y.Base.create('projectsView', Y.View, [ ], {
// -- Public properties ----------------------------------------------------
/**
* Automagicly created events.
*
* @see {View}
*/
... |
var gulp = require('gulp');
var runSequence = require('run-sequence');
gulp.task('build', function(callback) {
runSequence(
'clean',
['htdocs', 'javascripts', 'templates', 'stylesheets', 'images', 'fonts', 'bower', 'config:development'],
callback
);
});
|
module.exports = function(source) {
return source.replace(/^.*#!.*$/mg, "");
};
|
'use strict';
/*jshint expr: true*/
const path = require('path');
const events = require('events');
const chai = require('chai');
const sinon = require('sinon');
const fs = require('fs-extra');
const expect = require('chai').expect;
const periodic = require('../../../index');
const periodicClass = require('../... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import { UIPanel } from './libs/ui.js';
import { MenubarFile } from './MenubarFile.js';
import { MenubarEdit } from './MenubarEdit.js';
import { MenubarExamples } from './MenubarExamples.js';
import { MenubarHelp } from './MenubarHelp.js';
function Menubar( editor ) {
... |
require('babel-polyfill');
let MOCK_CONFIG = require('../config');
const onenetPassport = require('../index');
const assert = require('power-assert');
MOCK_CONFIG = process.env.NODE_ENV === 'test' ? MOCK_CONFIG.test : MOCK_CONFIG.prod;
describe('onenet-passport-token', () => {
it('getToken', async () => {
const ... |
$(function(){
//To DO: port this to backbone.js
var mapMarkersView = new window.MapMarkersView();
//this handles the tweet submission.
$('#tweet_form').submit(function(e){
e.preventDefault();
e.stopPropagation();
$('#tweet_btn').removeClass('btn-primary').text('Saving...').prop('disabled', true)... |
function setup() {
createCanvas(1000, 600); //Create the canvas
background(0); //Make the background black
fill(255); //Change the fill color to white
ellipse(500, 300, 100, 100); //Draw the circle in the center of the screen
rect(10, 250, 20, 100); ... |
import * as types from '../constants/ActionTypes';
export function fetchDataFailure(error) {
console.error(error);
if (error.response) {
return {
type: types.FETCH_DATA_FAILURE,
payload: {
status: error.response.status,
statusText: error.response... |
/* global require, describe, it */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Matrix data structure:
matrix = require( 'dstructs-matrix' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Validate a value is NaN:
isnan = require( 'validate.io... |
/*jshint node: true, esnext: true*/
const path = require('path');
const MinifyPlugin = require("babel-minify-webpack-plugin");
module.exports = {
entry: {
NuCore: 'nucore.js',
test: 'test.js',
widgets: 'widgets.js',
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'js'),
publicPath: 'j... |
Crafty.viewport.followEdge = (function() {
var oldTarget, offx, offy, edx, edy
function change() {
var scale = Crafty.viewport._scale
// if (this.x > -Crafty.viewport.x + Crafty.viewport.width / 2 + edx - 10) {
Crafty.viewport.scroll('_x', -(this.x + (this.w / 2) - (Crafty.viewport.width / 2 / scale) - offx * ... |
module.exports = {
escape: function(html) {
return String(html)
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
},
unescape: function(html) {
return String(html)
.replace(/&/g, '&')
.repl... |
// The MIT License (MIT)
//
// Copyright (c) 2015-2021 Camptocamp SA
//
// 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
// u... |
import {Ellipse} from '../shapes/ellipse'
import {EllipticalArc} from '../shapes/elliptical-arc'
import {Circle} from '../shapes/circle'
import {EditCircleTool} from './circle'
import {DragTool} from './drag'
import {EllipseTool, STATE_RADIUS} from './ellipse'
export function GetShapeEditTool(viewer, obj, alternative)... |
$(document).ready(function() {
onTableAjaxEscalaFun();
filtrarEscalas();
habilitarEscala();
})
function onTableAjaxEscalaFun(){
var servico = $(".servico").val();
if (!$(".servico").val()){
servico = 0;
}
oTableEscalaFun = $('.table... |
"use strict";
var Disk = require('../');
var disk = new Disk();
disk.init(function() {
disk.getBlockDevice('sdb1', function(err, device) {
console.log('Delete Partition ...');
device.deletePartition(function() {
console.log('Done');
process.exit();
});
});
});
|
require('./dist/config/lib/app').Application.run();
|
var page = require('webpage').create(),
system = require('system'),
address, output, selector;
if (system.args.length < 2) {
console.log('Usage: snapa.js URL output [selector]');
console.log(' opens a page and renders the contents of selector to output file');
phantom.exit(1);
} else {
addre... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "twilio"); |
'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'v... |
/**
* User: Jomaras
* Date: 23.08.12.
* Time: 10:30
*/
var HtmlModelMapping =
{
models: [],
push: function(model)
{
this.models.push(model)
},
getModel: function(url)
{
for(var i = 0; i < this.models.length; i++)
{
var model = this.models[i... |
var config = require("./config");
var mongoose = require("mongoose");
module.exports = function() {
//mongoose.Promise = global.Promise;
var db = mongoose.connect(config.db);
require("../Core/Users/server/models/user.server.model");
require("../GameTracker/server/models/game.server.model");
return db;
};
|
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.presentation',
'myApp.content',
'myApp.version'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/presentation'});
}]);
|
var path = require('path'),
rootPath = path.normalize(__dirname + '/..'),
env = process.env.NODE_ENV || 'development';
var config = {
development: {
root: rootPath,
app: {
name: 'specialblog-node-js'
},
port: 3000,
db: 'mongodb://localhost/specialblog-node-js-development'
},
te... |
module.exports.apiCurrentUserDelete = function(DELETE, urlApiCurrentUser) {
return DELETE(urlApiCurrentUser(), function(currentUser, endForbiddenTokenRequired, deleteUserWhereId, end) {
if (currentUser == null) {
return endForbiddenTokenRequired();
}
return deleteUserWhereId(currentUser.id).then(fun... |
module.exports = {
game:{},
scope:{},
}
|
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ui.router',
'myApp.home',
'myApp.about'
]).
config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
// $urlRouterProvider.otherwise("/view1");
$stateProvider
... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const { API_URL } = require('sharify').data;
export const ArtworkRela... |
'use strict';
jest.mock('../../../src/lib/analytics');
jest.mock('../../../src/lib/create-assets-url');
jest.mock('../../../src/lib/create-deferred-client');
const analytics = require('../../../src/lib/analytics');
const createDeferredClient = require('../../../src/lib/create-deferred-client');
const PreferredPayment... |
!function () {
'use strict';
function CacheProvider() {}
CacheProvider.prototype.startSession = function (cacheKey) {
throw new Error('CacheProvider.startSession must be implemented');
};
CacheProvider.prototype.endSession = function () {
throw new Error('CacheProvider.endSession must be implemente... |
version https://git-lfs.github.com/spec/v1
oid sha256:6a9267589457fe911713acdd6d9af4b893b598e85da38247fbade2026ff99ca6
size 95226
|
import './ChapterHeader.styl'
import Store from './../../../../../../flux/store/mobile/index'
import EventsConstants from './../../../../../../flux/constants/EventsConstants'
class ChapterHeader extends React.Component {
constructor() {
super()
this.state = {
index: '',
title: ''
}
this... |
module.exports = {
Reader: require('./reader')
} |
var express = require('express')
var PORT = 3000
var app = express()
app.get('/', function (req, res) {
res.sendFile(__dirname + '/index.html')
})
app.listen(PORT, function () {
console.log('Patiently waiting for aliens to make contact on port: ', PORT)
})
|
module.exports = {
extends: [
'plugin:vue/recommended'
],
rules: {
// override/add rules' settings here
// see rules at https://www.npmjs.com/package/eslint-plugin-vue#bulb-rules
// modify level: strongly-recommended
//
//
'vue/html-self-closing': ['er... |
"use strict";
const init = require("..");
const amqpBehaviour = {
url: "amqp://localhost",
exchange: "my-excchange",
ack: "true",
prefetch: 10
};
const broker = init(amqpBehaviour);
broker.on("connected", () => {
console.log("Connected to amqp server");
});
broker.on("subscribed", (subscription) => {
c... |
'use strict';
module.exports = {
db: 'mongodb://localhost/worldcup',
app: {
name: 'MEAN - FullStack JS - Development'
},
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callback'
},
twitter: {
... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.0-master-1a99821
*/
(function( window, angular, undefined ){
"use strict";
/**
* @private
* @ngdoc module
* @name material.components.switch
*/
angular.module('material.components.switch', [
'material.core',
'mater... |
'use strict';
// this is the concatenated source from the video
// and includes the HTML partials as javascript objects.
(function ( window, angular, undefined ) {
(function(app) {
app.config([
'$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$stateProv... |
const MnCheckbox = require('../checkbox/checkbox.class.js')
const evaluate = require('evaluate-string')
module.exports = class MnRadio extends MnCheckbox {
constructor(self) {
self = super(self)
return self
}
connectedCallback() {
this.innerHTML = ''
this._setStyle()
super._setLabel()
th... |
(function (window, undefined) {
'use strict';
namespace('Lab');
function EmployeeCollection(json) {
/**
*
* @type {Array<Lab.Employee>}
*/
this.collection = [];
this.init(json);
}
EmployeeCollection.prototype = {
constructor : EmployeeCollection,
/**
*
* @param json {Array}
*/
... |
/**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-07-03 14:20:48
* @Last modified by: yzf
* @Last modified time: 2017-07-03 14:20:51
*/
import React from 'react';
import { findDOMNode } from 'react-dom';
import BaseTable, { Column, ColumnGroup } from './base';
import PropTypes from 'prop-types';
import classNa... |
import React from 'react';
import { Link } from 'react-router-dom';
import Main from '../layouts/Main';
import data from '../data/mooc';
const tableStyle = {
border: '1px solid black',
borderCollapse: 'collapse',
textAlign: 'center',
width: '100%'
}
const tdStyle = {
// border: '1px solid #85C1E9... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
'use strict';
//Setting up route
angular.module('accessrules').config(['$stateProvider',
function($stateProvider) {
// Accessrules state routing
$stateProvider.
state('listAccessrules', {
url: '/accessrules',
templateUrl: 'modules/accessrules/views/list-accessrules.client.view.html'
}).
state('createA... |
"use strict";
var Resolver = require("enhanced-resolve/lib/Resolver");
var SyncNodeJsInputFileSystem = require("enhanced-resolve/lib/SyncNodeJsInputFileSystem");
var CachedInputFileSystem = require("enhanced-resolve/lib/CachedInputFileSystem");
var UnsafeCachePlugin = require("enhanced-resolve/lib/UnsafeCachePlugin");... |
import Vue from 'vue';
import iView from 'iview';
import VueRouter from 'vue-router';
import {routers, otherRouter, appRouter} from './router';
import Vuex from 'vuex';
import Util from './libs/util';
import App from './app.vue';
import Cookies from 'js-cookie';
import 'iview/dist/styles/iview.css';
import VueI18n fro... |
import Route from 'route-parser';
import { formatRoutes } from './formatRoutes';
export const matchRoute = (routeConfig, pathname) => {
const formattedRoutes = formatRoutes(routeConfig.routes);
const foundRoute = formattedRoutes.find(({ route }) => route.match(pathname));
return foundRoute
? { ...foundRoute, pa... |
//define(function(require) {
// 'use strict';
//
// var FormEntities = require('entities/forms');
// //var FormEntity = require('entities/form');
// var forms = new FormEntities();
//
// var FormEntitiesFixtures = {
// GET: {
// forms: [
// {
// templat... |
import { hyphen } from './utils';
/**
* 依赖
*/
export let devDependencies = [];
/**
* 添加依赖
* @param {array|string} dependencies 依赖
*/
export function addDependency(dependencies){
if ( !Array.isArray(dependencies) ){
dependencies = [dependencies];
};
dependencies.map(dependency => {
if ( devDependen... |
import React from 'react'
import {Modal, Form, Input, notification, DatePicker} from 'antd'
import {connect} from 'dva'
import styles from './index.less'
import moment from 'moment'
import {routerRedux} from 'dva/router'
const FormItem = Form.Item;
const {RangePicker} = DatePicker;
class OrderModalForm extends React... |
([])=>1;
|
/**
* remotelog.js
* Copyright (c) 2012 Christian Lobach <Christian.Lobach@gmail.com>
* MIT licensed
*/
var util = require('util');
var remotelog = {
_options: {
port: 1807,
replaceFunctions: true
},
// keep existing functionality
_oldlog: console.log,
_oldinfo: console.info,... |
const rules = require( "../a11y" );
describe( "a11y", function() {
describe( "Extends", function() {
it( "should extend a11y rules", function() {
rules.extends.should.contain( "./rules/a11y.js" );
} );
} );
} );
|
// Synchronous highlighting with highlight.js
marked.setOptions({
highlight: function (code) {
return hljs.highlightAuto(code).value;
}
});
angular.module('plain', ['ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {
re... |
$('.message a').click(function(){
$('form').animate({height: "toggle", opacity: "toggle"}, "slow");
});
var name = document.getElementById('name1');
var pw = document.getElementById('pw');
function store() {
localStorage.setItem('name1', name.value);
localStorage.setItem('pw', pw.value);
}
function check() ... |
import ko from 'knockout';
import template from 'text!./sl-date-picker.html';
import moment from 'moment';
import 'bootstrap-daterangepicker';
ko.bindingHandlers.SLDatePickerHandler = {
init: function (element, valueAccessor, allBindings, viewModel, bindingContext) {
var elem$ = this.myElem = $(element);
... |
/**
@module ember
@submodule ember-runtime
*/
import Ember from "ember-metal/core"; // Ember.assert
import {get} from "ember-metal/property_get";
import {set} from "ember-metal/property_set";
import {meta} from "ember-metal/utils";
import {addObserver, removeObserver, addBeforeObserver, removeBeforeObserver} from "embe... |
module.exports = (function(App,Connection,Package,privateMethods){
return function(){
App.frontPageLayout = require(App.Config.baseDir + App.Config.view.frontPageLayout);
}
}); |
/**
* This `decodeTx` decodes a bitcoin transaction. Its an example of how to use the composable helpers
* to make a decoder.
*/
const bitcoin = require('bitcoinjs-lib')
const bcrypto = bitcoin.crypto
const sha3_256 = require('js-sha3').sha3_256 // eslint-disable-line
const { compose, addProp } = requi... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import {GraphQLID, GraphQLList, GraphQLNonNull as NonNu... |
define(function(require) {
'use strict';
var Promise = require('./Promise');
var forEachSeries = require('./forEachSeries');
/**
* Version of find which is guaranteed to process items in order
* @param {Array} list
* @param {Function} iterator
* @return {Promise<Any>}
*/
var findSeries = function(li... |
var conn = require('../config/db').conn;
module.exports = {
getAllProdPorCliente: getAllProdPorCliente,
getAll: getAll,
getUltimo: getUltimo,
insertProd: insertProd,
getProdPorCodigoParaCadaCliente: getProdPorCodigoParaCadaCliente,
getProdPorNombreParaCadaCliente: getProdPorNombreParaCadaCliente,
getcdClientePo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.