code stringlengths 2 1.05M |
|---|
import { createStore, applyMiddleware, compose } from 'redux';
import { reducer } from './reducer';
import { combineEpics, createEpicMiddleware } from 'redux-observable';
import { testEpic } from './testEpic';
import { createRestEpic } from 'robs-fetch'; // Import the restEpic constructor.
const composeEnhancers = wi... |
/**
* The following features are still outstanding: animation as a
* function, placement as a function, inside, support for more triggers than
* just mouse enter/leave, html tooltips, and selector delegation.
*/
angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap.bindHtml' ] )
/**
* T... |
define(['jquery', 'underscore', 'backbone', 'backbone.marionette', 'util/logger', 'app'
], function ($, _, Backbone, Marionette, log, app) {
return Marionette.Layout.extend({
regions: {
main : '#main'
},
events: {
'click a:not([rel*="click"])' : 'onNavItemClicked'
},
// ----- EV... |
var path = require("path");
module.exports = {
context: __dirname,
entry: "./frontend/src/index.jsx",
devServer: {
contentBase: './build',
port: 9000,
https: false,
},
output: {
path: path.join(__dirname, 'app', 'assets', 'javascripts', 'build'),
filename: "bundle.js",
},
module: {
... |
var utils = require('./_utils')
module.exports = function(esskOptions) {
return function () {
var folders = [
esskOptions.jsBasePath,
'test'
]
// Run eslint
return utils.exec('./node_modules/.bin/eslint', folders)
}
}
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 8c0 .55.45 1 1 1h4v2H5c-.55 0-1 .45-1 1s.45 1 1 1h3v2H4c-.55 0-1 .45-1 1s.45 1 1 1h4c1.1 0 2-.9 2-2v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V9c0-1.1-.9-2-2-2H4c-.55 0-1 .45-1 1zm18 4v3c... |
import * as areaActions from './actions'
export {areaActions}
export * from './constants'
export * from './reducer'
|
'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users.server.controller'),
incomes = require('../../app/controllers/incomes.server.controller');
module.exports = function(app) {
// Article Routes
app.route('/incomes')
.get(incomes.list)
.post(users.requiresLogin, income... |
import { log, error } from './logger';
export function unhandledRequest(verb, path, request){
const msg = `[FakeServer] received unhandled request for ${verb} ${path}`;
error(msg, request);
throw new Error(msg);
}
export function handledRequest(verb, path) {
log(`[FakeServer] handled: ${verb} ${path}`);
}
|
/**
* SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com
*
* mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/
*
* SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License:
* http://www.ope... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactTags from 'react-tokenized-input';
import isLength from 'validator/lib/isLength';
import matches from 'validator/lib/matches';
import uniqBy from 'lodash.uniqby';
import some from 'lodash.some';
import ErrorMessage from './Error... |
export default class FacetDocumentTypes {
constructor($facet) {
this.$facet = $facet;
this.$facet.find(".dropdown-item").click(this.selectType.bind(this));
this.$removeFilterButton = this.$facet.find(".remove-filter");
this.toggleCancel();
this.$removeFilterButton.click(this.... |
import {
Sprites as SP,
Animations as ANI,
Sequence,
Easing
} from 'animationvideo';
import { textBox } from './effects/effects';
import cutsceneBase from './cutsceneBase';
export default function (Audiomanager) {
return cutsceneBase({
music: 'assets/music/cut',
//addBindings: false,
images: {
... |
const os = require('os')
const debug = process.argv.some(value => value.includes('--debug'))
const dataPath = `${os.homedir()}/.ELaunch`
const userConfigFile = `${dataPath}/config.json5`
module.exports = {
debug,
dataPath,
userConfigFile,
languages: [{
value: 'zh',
label: '简体中文',
}, {
value: 'en... |
// This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
/* global showFormErrors:false, initForms:false */
import {$T} from '../../utils/i18n';
(function(... |
/* eslint-disable camelcase */
'use strict'
let spawn = require('child_process').spawn
let net = require('net')
let SERVER = process.env.TRAVIS ? 'gnatsd/gnatsd' : 'gnatsd'
let DEFAULT_PORT = 4222
function start_server(port, optFlags, done) {
if (!port) {
port = DEFAULT_PORT
}
if (typeof optFlags === 'fun... |
/*
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
{
const global = %GlobalProperties();
const PRINT = typeof print === "function" ? print : () => {};
global.console = {
log(...args) {
... |
import WebSocketRequestContext from './WebSocketRequestContext.js'
export default class WebSocketEvent {
#connectionId = null
#payload = null
#route = null
constructor(connectionId, route, payload) {
this.#connectionId = connectionId
this.#payload = payload
this.#route = route
}
create() {
... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
module.exports = function mergeRec... |
$(function (){
$('#all-languages-added').mouseover(function(){
$('#add-text').html('<em>All Tracks Added!</em>');
});
$('#all-languages-added').mouseleave(function(){
$('#add-text').html('Add Language Track');
});
});
|
/**
* Created by choizhang on 16/6/14.
*/
import { baseExport, baseInputSetting } from '../base';
import * as util from '../../util/util';
function defaultSetting(obj) {
obj.other = {
'range': {
label: '框高度',
value: 50,
max: 100,
min: 50,
setDo... |
version https://git-lfs.github.com/spec/v1
oid sha256:a1b5fe3d367a355e59b3d092e3d6d22e1c1a4f7d8526620d9b6df4041e423564
size 7081
|
// client side
// toolbelt.js
// - client side utitlity library
(function() {
// Establish the root object
// Save the previous toolbelt variable
// Create the toolbelt object
var root = typeof self == 'object' && self.self === self && self ||
typeof global == 'object' && global.global === glob... |
/*
searchapi2
A module implementing the searchapi2 api calls.
See: https://github.com/kbase/search_api2
This implementation is not complete, but functional enough for it's usages.
Extend as need be.
*/
define(['./JSONRPC20'], (JSONRPC20) => {
'use strict';
class SearchAPI2 extends JSONRPC20... |
import TableView from '@/components/TableView/index.vue'
import ContractUtils from '@/data/contract/utils'
import {loadResources} from '@/data/resource/loader'
import ContractDetail from '@/components/ContractDetail/index.vue'
export default {
name: 'fl-contract-manager',
data() {
return {
// contracts: ... |
/*
* svg-editor.js
*
* Licensed under the MIT License
*
* Copyright(c) 2010 Alexis Deveria
* Copyright(c) 2010 Pavol Rusnak
* Copyright(c) 2010 Jeff Schiller
* Copyright(c) 2010 Narendra Sisodiya
*
*/
// Dependencies:
// 1) units.js
// 2) browser.js
// 3) svgcanvas.js
(function() {
document.addEventListen... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Post Schema
*/
var PostSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Post name',
trim: true
},
content: {
type: String,
default: '',
required: 'Please... |
var browserSync = require('browser-sync').create(),
_path = require('../gulp.config').path;
/* -------------------------------
* BROSWER SYNC + WATCH TASK
* ------------------------------- */
module.exports = {
dep: ['build'],
fn: function(gulp, callback) {
browserSync.init({
server: ... |
import React from 'react'
import Text from 'wix-style-react/dist/src/Text'
import {Row, Col} from 'wix-style-react/dist/src/Grid'
import Avatar from 'react-avatar'
import Button from 'wix-style-react/dist/src/Button'
function addZero (d) {
if (d < 10) {
return '0' + d
}
return d
}
function date... |
var Readly = require("./readly.js");
var fs = require('fs');
var stream = require('stream');
var reader = new Readly.Emitter("test.txt");
var strm;
console.log("read all:")
reader.on('line', function(line) {
console.log(line);
});
var c3 = function() {
console.log("_________________ now with stream instead o... |
/**
* @fileOverview I contain utility functions.
* @module Utils
*/
'use strict';
/* *************************** Required Classes **************************** */
/* *************************** Constructor Code **************************** */
/* *************************** Public Methods *************************... |
var test = require('tap').test
var Log = require('../../log')
var MemoryStorage = require('../memory-storage')
var MemoryStateMachine = require('../memory-state-machine')
var log = new Log(new MemoryStorage(), new MemoryStateMachine())
test(
'load: loads state and entries from storage',
function (t) {
var storage... |
const command =
"create table author (id number, name string, age number, city string, state string, country string)";
let tableName = "";
let columnsString = [];
const regex = /^create\s+table\s+(\w+)\s+\((.+)\)$/;
const match = command.trim().match(regex);
if (match) {
tableName = match[1];
columnsString = mat... |
'use strict';
( function() {
var template = '<img alt="" src="" />',
templateBlock = new CKEDITOR.template(
'<figure class="{captionedClass}">' +
template +
'<figcaption>{captionPlaceholder}</figcaption>' +
'</figure>' ),
alignmentsObj = { left: 0, center: 1, right: 2 },
regexPercent = /^\s*(\d+\%... |
/*
Copyright (c) 2013
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and... |
import PropTypes from 'prop-types'
import Lookup from './lookup'
import Select from './select'
import Toggle from './toggle'
import Daterange from './daterange'
import React from 'react'
class Overview extends React.Component {
static propTypes = {
filters: PropTypes.array,
results: PropTypes.object,
on... |
import {Meteor} from 'meteor/meteor';
import {computed, observable, extendObservable, action, useStrict, toJS, map} from 'mobx';
import Mongo2Mobx from './Mongo2Mobx'
//window.toJS = toJS;
class MoviesStore {
constructor() {
// useStrict(true);
this.mongo2mobx = new Mongo2Mobx(this);
}
@o... |
#!node
const search = require('./search.json')
const DELIM = ';'
// Create a map of { 'project, issuetype', count }
const issueMap = new Map()
for (let issue of search.issues) {
const { fields: { issuetype: { name: issuetype }, project: { key: project } } } = issue
const mapKey = JSON.stringify({project, issuety... |
importScripts ("lib/glMatrix.js",
//"lib/requestAnimationFrame.js",
"src/J3D.js",
"src/util/Color.js",
"src/math/Vector2.js",
"src/math/Vector3.js",
"src/math/Matrix44.js",
"src/engine/Engine.js",
"src/engine/Camera.js",
"src/engine/Light.js",
... |
import React from 'react';
const Footer = () => {
return (
<footer className="page-footer blue darken-2">
<div className="container">
<div className="row">
<div className="col l6 s12">
<h5 className="white-text">Footer Content</h5>
<p className="grey-text text-lig... |
/**
* DocumentFormatter - format and display a Document
* @author Daniel Ringwalt (ringw)
*/
/**
* Accepts document as argument and draws document in discrete blocks
*
* @param {Vex.Flow.Document} Document object to retrieve information from
* @constructor
*/
Vex.Flow.DocumentFormatter = function(document) {
... |
function extractLinks(sentences) {
let regex = /www\.[a-zA-Z0-9-]+(\.[a-zA-Z]+)+/gi;
let output = [];
for (let sentence of sentences) {
let match = regex.exec(sentence);
while (match){
output.push(match[0]);
match = regex.exec(sentence);
}
}
console.l... |
$(document).ready(function () {
if (self==window) {
$('#usernameModal').modal('show');
}
});
var config = {
apiKey: "AIzaSyAknGSE55mNN1Pi6nVaZ1Llfw5_-eorP6c"
, authDomain: "lewhacksserver01.firebaseapp.com"
, databaseURL: "https://lewhacksserver01.firebaseio.com"
, storageBucket: ""
... |
/* @flow */
/* eslint class-methods-use-this: "off" */
import Relay from 'react-relay';
export default class AddArticleMutation extends Relay.Mutation {
static fragments = {
user: () => Relay.QL`
fragment on User {
id
}
`,
};
getMutation() {
return Relay.QL`mutation{ addArticle ... |
//JUGGLING ASYNC
var results = [];
var counter = 0;
function httpGet(index){
http.get(args[index], function(response) {
response.pipe(bl(function (err, data) {
results[index] = data.toString();
counter++;
if(counter === 3)
printResults();
}));
});
}
for (i = 0; i < 3; i++){
httpGet(i);
}
va... |
Meteor.subscribe("pollListings");
|
module.exports = {
extends: 'eslint:recommended',
env: {
browser: true,
node: true,
},
rules: {
indent: [ 'error', 2 ],
'linebreak-style': [ 'error', 'unix' ],
quotes: [ 'error', 'single' ],
semi: [ 'error', 'never' ],
'array-bracket-spacing': [2, 'never'],
'block-scoped-var': 2,... |
(function() {
'use strict';
angular
.module('app')
.controller('NodespanelController', NodespanelController);
NodespanelController.$inject = [
'$scope',
'$window',
'dialogService',
'notificationService',
'localStorageService'
];
function NodespanelController($scope,
... |
'use strict';
// Load the global `expect` shim
require('expectations');
expect.addAssertion('toBeArray', function() {
if (!Array.isArray(this.value)) {
return this.assertions.fail('to be an array.');
}
this.assertions.pass();
});
expect.addAssertion('toBeBoolean', function() {
if (this.val... |
/**
* @author zhixin wen <wenzhixin2010@gmail.com>
* extensions: https://github.com/vitalets/x-editable
*/
!function ($) {
'use strict';
$.extend($.fn.bootstrapTable.defaults, {
editable: true,
onEditableInit: function () {
return false;
},
onEditableSave: funct... |
/**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
//var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no... |
(function() {
'use strict';
angular
.module('user')
.controller('UserController', UserController);
UserController.$inject = ['UserService'];
function UserController(UserService) {
var vm = this;
vm.empty = {};
vm.roles = [
{
... |
'use strict';
var winston = require('winston');
var fs = require('fs');
if (!fs.existsSync('logs')) {
fs.mkdirSync('logs');
}
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({
name: 'info-file',
filename: 'logs/filelog-info.log',
datePattern: '.yyyy-MM-ddTHH',... |
// JavaScript Document
window.onload = function() {
// Video
var video = document.getElementById("video");
// Buttons
var playButton = document.getElementById("play-pause");
var muteButton = document.getElementById("mute");
var fullScreenButton = document.getElementById("full-screen");
// Sliders
var... |
(function () {
"use strict";
angular
.module("Bookly.friends", [
"ui.router"
])
.config(["$stateProvider", function($stateProvider) {
$stateProvider
.state("friends", {
url: "/friends",
views: {
... |
import * as blc from "../lib";
import * as events from "../lib/internal/events";
import {describe, it} from "mocha";
import {expect} from "chai";
const blcCJS = require("../lib");
describe("API", () =>
{
it("has necessary exports", () =>
{
const classes =
[
"HtmlChecker",
"HtmlUrlChecker",
"SiteCheck... |
require('../../src/js/app.js');
require('angular-mocks');
require('./controllersSpec.js');
require('./directivesSpec.js');
require('./servicesSpec.js');
require('./subscriberStatsSpec.js');
require('./audioAcquisitionProblemSpec.js');
require('./notificationsSpec.js');
require('./otErrorsSpec.js');
require('./subscrib... |
import test from 'ava'
import path from 'path'
import includes from 'lodash/includes'
import babelConfig from '../../lib/utils/babel-config'
function programStub (fixture) {
const directory = path.resolve('..', 'fixtures', fixture)
return { directory }
}
test('it returns a default babel config for babel-loader qu... |
var events = require('./events');
var PROTOCOLS = ['host', 'rule', 'weinre', 'log', 'proxy',
'socks', 'pac', 'filter', 'ignore', 'enable', 'disable', 'delete',
'plugin', 'dispatch', 'urlParams', 'urlReplace', 'method', 'statusCode',
'replaceStatus', 'hostname', 'refere... |
var searchData=
[
['certificate_20manipulation_20methods_20_28atcacert_5f_29',['Certificate manipulation methods (atcacert_)',['../a00840.html',1,'']]],
['configuration_20_28cfg_5f_29',['Configuration (cfg_)',['../a00836.html',1,'']]]
];
|
'use strict';
var tockenGenerator = require('shortid');
var User = require('../models/userModel');
var Vote = require('../models/voteModel');
var serverConfig = require('../config/server');
var emailSenderConfig = require('../config/emailSender');
module.exports = {
getVoteForm: function (req, res) {
r... |
'use strict';
var x = 42;
exports.x = x;
|
var rsvp = require('rsvp'),
Valida = require('./valida');
var validator = module.exports = {};
validator.required = function(ctx, options, value) {
if (typeof value == 'undefined' || value === null) {
var err = { validator: 'required' };
addMessage(err, options);
return err;
}
};
validator.em... |
/*
* IDBWrapper - A cross-browser wrapper for IndexedDB
* Copyright (c) 2011 - 2012 Jens Arps
* http://jensarps.de/
*
* Licensed under the MIT (X11) license
*/
"use strict";
(function (name, definition, global) {
if (typeof define === 'function') {
define(definition);
} else if (typeof module !== 'undef... |
import React from 'react';
import MainNav from './MainNav';
// Static Main Page
export const MainPage = () => (
<div>
<div className="row uc-landing__header-wrapper">
<img className="twelve column uc-landing__header" type="image/png" src="/img/delightful_food_for_a_healthy_life.png"/>
</div>
<div c... |
import React from 'react'
import Group from './Group'
import InputCheckbox from './InputCheckbox'
export default React.createClass({
displayName: 'Demo.Controls.ControlBool',
propTypes: {
name: React.PropTypes.string.isRequired,
value: React.PropTypes.bool.isRequired,
onChange: React.PropTypes.func.i... |
const runner = require('./runner');
const main = generator =>
new Promise((resolve, reject) => {
const it = generator();
const { value, done } = it.next();
if (done) return resolve(value);
return runner({ thenable: value, resolve, reject }, it);
});
module.exports = main;
|
import { call, put } from 'redux-saga/effects';
import UserRepositoriesActions from './redux';
import userRepositoriesRequest from './sagas';
import FixtureService from '../../services/FixtureService';
const stepper = fn => mock => fn.next(mock).value;
const username = 'matheusmariano';
describe('User Repositories Sa... |
export const defaultState = {
type: "default",
visible: true
};
export default function reducer(state = defaultState, action) {
switch (action.type) {
// set a specific filter type
case "PAYMENT_FILTER_SET_TYPE":
return {
...state,
type: action.pa... |
import express from 'express'
import historyApiFallback from 'connect-history-api-fallback'
import config from '../config'
const app = express()
const debug = require('debug')('kit:server')
const paths = config.utils_paths
app.use(historyApiFallback({
verbose: false
}))
// Serve app with Webpack if HMR is enabled
... |
Package.describe({
summary: "Moved to the 'ddp' package",
version: '1.0.14'
});
Package.onUse(function (api) {
api.use("ddp");
api.imply("ddp");
// XXX COMPAT WITH PACKAGES BUILT FOR 0.9.0.
//
// (in particular, packages that have a weak dependency on this
// package, since then exported symbols live ... |
var searchData=
[
['nvic_20functions',['NVIC Functions',['../group___c_m_s_i_s___core___n_v_i_c_functions.html',1,'']]],
['nested_20vectored_20interrupt_20controller_20_28nvic_29',['Nested Vectored Interrupt Controller (NVIC)',['../group___c_m_s_i_s___n_v_i_c.html',1,'']]],
['n',['N',['../union_a_p_s_r___type.htm... |
define(["jade"],function(jade){return function anonymous(locals,attrs,escape,rethrow,merge){attrs=attrs||jade.attrs,escape=escape||jade.escape,rethrow=rethrow||jade.rethrow,merge=merge||jade.merge;var buf=[];with(locals||{}){var interp;buf.push("<center>"),function(){if("number"==typeof boards.length)for(var e=0,t=boar... |
Sequoia.settings.addGroup('FileUpload', function() {
this.add('FileUpload_Enabled', true, {
type: 'boolean',
public: true
});
this.add('FileUpload_MaxFileSize', 2097152, {
type: 'int',
public: true
});
this.add('FileUpload_MediaTypeWhiteList', 'image/*,audio/*,video/*,application/zip,application/x-rar-co... |
import {createValidator, required, isEmail} from '../../utils/validation';
export const nameValidator = createValidator({
name: [required]
});
export const emailValidator = createValidator({
email: [required, isEmail]
});
|
module.exports = function (app, models) {
require("./user.service")(app, models);
require("./task.service")(app, models);
require("./image.service")(app, models);
}; |
(function() {
"use strict";
function capitalize(str) {
return str.substr(0,1).toUpperCase()+str.substr(1);
}
$.extend(Playground, {
bindReportPopover: function(card) {
$('.report.popover .metadata').empty();
card.promise.then(function() {
return card.metadataFor('*');
}).the... |
var Sequelize = require('sequelize'),
sequelize = require('../modules/sequelize_db'),
config = require('config');
var ArticleTag = sequelize.define('study_article_tag',{
id:{
type:Sequelize.INTEGER,
autoIncrement: true,
primaryKey:true
},
name:Sequelize.STRING,
});
ArticleTag.sync({force:config.get('reinit... |
var searchData=
[
['malloc',['Malloc',['../helper_8h.html#a718daa2ee90d164bb8224833535f0b3b',1,'helper.h']]],
['maxpq_5fdeletemax',['MaxPQ_deleteMax',['../collection_8h.html#aa94df3c278f33ebe60810062465ec492',1,'collection.h']]],
['maxpq_5fdestroy',['MaxPQ_destroy',['../collection_8h.html#a4f60d1dd403832a9d4e29e7... |
/*
* A program to resize an image in an AWS S3 bucket.
* Written in Node.js, this program accepts an array of image sizes in the payload.
* The image is then resized to the specified width(s) and stored in a new directory.
*/
var async = require('async');
var path = require('path');
var AWS = require('aws-sdk');
v... |
/*!
* robust-admin-theme (http://demo.pixinvent.com/robust-admin)
* Copyright 2017 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
$(window).on("load",function(){require.config({paths:{echarts:"../../../app-assets/vendors/js/charts/echarts"}}),require(["echarts","echarts/chart/bar","echarts/chart/li... |
// All code points in the Control Pictures block as per Unicode v5.0.0:
[
0x2400,
0x2401,
0x2402,
0x2403,
0x2404,
0x2405,
0x2406,
0x2407,
0x2408,
0x2409,
0x240A,
0x240B,
0x240C,
0x240D,
0x240E,
0x240F,
0x2410,
0x2411,
0x2412,
0x2413,
0x2414,
0x2415,
0x2416,
0x2417,
0x2418,
0x2419,
0x241A,
0x... |
(function($) {
var d = document;
var COMMENT = 'GEN_comment',
STRING = 'GEN_string';
var regex = {
}
var EOL = "\n", sgl_quote = "'", dbl_quote = "\"";
Symphony.Extensions.CodeEditor.highlighters['php'] = function(source_text) {
if(source_text.length == 0) return null;
var output = d.createElement(... |
export default {
key: 'Ab',
suffix: 'm7',
positions: [
{
frets: '4x444x',
fingers: '203330'
},
{
frets: '464444',
fingers: '131111',
barres: 4,
capo: true
},
{
frets: 'x66877',
fingers: '011423',
barres: 6,
capo: true
},
{
... |
/**
* jQuery UI InlineComponent Widget
*
* @copyright 2015 (c) Sahana Software Foundation
* @license MIT
*
* requires jQuery 1.9.1+
* requires jQuery UI 1.10 widget factory
* requires jQuery jstree 3.0.3
*/
(function($, undefined) {
"use strict";
var inlinecomponentID = 0;
/**
* InlineCompon... |
const path = require('path');
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelOptions({
options: {
babelrcRoots: true,
},
});
};
exports.onCreateWebpackConfig = function onCreateWebpackConfig({ actions }) {
actions.setWebpackConfig({
resolve: {
symlinks: false,
ali... |
'use strict'
const assert = require('chai').assert
const index = require('../../src/reducers/index')
describe('index()', function() {
it('should be a function', function() {
assert.isFunction(index)
})
}) |
/**
* Created by maurobuselli@gmail.com
*/
(function(){
'use strict';
angular.module('AngularPanelsApp.pages.form')
.controller('datepickerpopupCtrl', datepickerpopupCtrl);
/** @ngInject */
function datepickerpopupCtrl($scope) {
$scope.open = open;
$scope.opened = false;
... |
(function() {
'use strict';
angular.module('characters')
.directive('characterBack', characterBack);
function characterBack(){
return function(scope, element, attrs){
var url = attrs.characterBack;
element.css({
'background-image': 'url(' + url +')',
'back... |
// @flow
import { createElement } from 'react'
import PropTypes from 'prop-types'
import type { Theme } from './ThemeProvider'
import createWarnTooManyClasses from '../utils/createWarnTooManyClasses'
import validAttr from '../utils/validAttr'
import isTag from '../utils/isTag'
import isStyledComponent from '../utils... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('shop-fruits'); |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* openAUSIAS: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Java and jQuery
* openAUSIAS is distributed under the MIT License (MIT)
* Sources at https://github.com/raf... |
import React from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { openModal } from '../../actions';
// styles & icons
import { colors, fonts } from '../../styles';
const Wrapper = styled.div`
display: block;
`;
const ButtonSD = styled.button`
position: absolute;
... |
'use strict';
var HttpApiError = require('error').HttpApiError;
module.exports = function(req, res, next) {
var clientId = +req.params.clientId || -1;
if (clientId === -1) {
return next(new HttpApiError(400, 'Wrong client id'));
}
req.clientId = clientId;
next();
};
|
var flickr = require('..')(function auth() { /* noop */ });
var assert = require('assert');
describe('flickr.photos.setContentType', function () {
it('requires "photo_id"', function () {
assert.throws(function () {
flickr.photos.setContentType({
content_type: '_'
});
}, function (err) {
return err.... |
module.exports = {
module: {
name: 'pipDialogs',
styles: 'index',
export: 'pip.dialogs',
standalone: 'pip.dialogs'
},
build: {
js: false,
ts: false,
tsd: true,
bundle: true,
html: true,
sass: true,
lib: true,
ima... |
// ----------------------------------------------------------------------------
// define controller
app.controller( 'settings', ['$scope', '$http', '$translate', '$window', 'Upload', function( $scope, $http, $translate, $window, Upload ) {
$http.get( 'themes' ).then( function( res ) {
$scope.themes = res.d... |
/*
* Fun times with the Web Worker API
*
* To be used like new Lemming(function)
* to allow for individual functions to run in their own thread (sort of)
* returns a promise that resolves when the lemming gets back a result
*/
(function (global) {
'use strict';
// Can they though?
if (typeof window === undefine... |
'use strict'
const config = require('../config')
const exec = require('child_process').exec
const treeKill = require('tree-kill')
let YELLOW = '\x1b[33m'
let BLUE = '\x1b[34m'
let END = '\x1b[0m'
let isElectronOpen = false
function format (command, data, color) {
return color + command + END +
' ' + // Two s... |
'use strict'
// **Github:** https://github.com/toajs/toa
//
// **License:** MIT
const Toa = require('..')
const app = new Toa()
app.use(function () {
this.body = 'support sync function middleware!\n'
})
app.use(function (next) {
this.body += 'support thunk function middleware!\n'
next()
})
app.use(function *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.