code stringlengths 2 1.05M |
|---|
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_nl",function(e){e.Intl.add("datatype-date-format","nl",{a:["zo","ma","di","wo","do","vr","za"],A:["zondag","maandag","dinsdag","woensdag","d... |
/* mousetrap v1.5.3 craig.is/killing/mice */
(function(C,r,g){function t(a,b,h){a.addEventListener?a.addEventListener(b,h,!1):a.attachEvent("on"+b,h)}function x(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return l[a.which]?l[a.which]:p[a.which]?p[a.which]:String... |
version https://git-lfs.github.com/spec/v1
oid sha256:a3f03afcc6974e394a97aab72837e73c3df4a856e0908debbcf04204ea006311
size 4789
|
module.exports = function(req, res) {
req.list.model.findById(req.params.id, function(err, item) {
if (err) return res.status(500).json({ err: 'database error', detail: err });
if (!item) return res.status(404).json({ err: 'not found', id: req.params.id });
req.list.updateItem(item, {
data: req.body,
files... |
/**
* DragDrop.js
*
* A JavaScript micro-framework for adding drag-and-drop functionality
* to elements for advanced UI development.
*
* @author James Brumond
* @version 0.3.0
* @copyright Copyright 2011 James Brumond
* @license Dual licensed under MIT and GPL
*/
/*jshint browser: true, bitwise: f... |
const dog = {
@readonly
@nonenumerable
@doubledValue
legs: 4
};
|
/**
* Interaction for the groups module
*
* @author Jeroen Van den Bossche <jeroenvandenbossche@netlash.com>
* @author Dieter Vanden Eynde <dieter@netlash.com>
* @author Thomas Deceuninck <thomas@fronto.be>
*/
jsBackend.groups =
{
// init, constructor-alike
init: function()
{
// variables
$hide = $('.hide'... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Physics Body is typically linked to a single Sprite and defines properties that determine how the physics body i... |
var panelInstance = (
<Panel>
这是一个基本的面板组件。
</Panel>
);
React.render(panelInstance, mountNode);
|
/*
* written with Mocha Framework
*/
should = require('should')
BigNumber = require('../').n
describe('BigNumber.js', function () {
describe('#initialization', function () {
it('should create a big number from a number', function () {
BigNumber(517).val().should.equal("517");
BigNu... |
'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; descriptor.configurable = true; if ("... |
…
i0.ɵɵproperty("event", ctx.$event);
|
htmx.defineExtension("morphdom-swap",{isInlineSwap:function(o){return"morphdom"===o},handleSwap:function(o,n,e){if("morphdom"===o)return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?morphdom(n,e.firstElementChild):morphdom(n,e.outerHTML),[n]}}); |
var _createMaxMinBy = require('./internal/_createMaxMinBy');
var _curry2 = require('./internal/_curry2');
var _lt = require('./internal/_lt');
/**
* Determines the smallest of a list of items as determined by pairwise comparisons from the supplied comparator
* Note that this will return undefined if supplied an emp... |
var _ = require('lodash');
var assert = require('chai').assert;
var sinon = require('sinon');
var React = require('react/addons');
var Typeahead = require('../src/typeahead');
var TypeaheadOption = require('../src/typeahead/option');
var TypeaheadSelector = require('../src/typeahead/selector');
var Keyevent = require('... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image', 'sr', {
alertUrl: 'Унесите УРЛ слике',
alt: 'Алтернативни текст',
border: 'Оквир',
btnUpload: 'Пошаљи на сервер',
button2Img: 'Да ли жел... |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the p... |
var models = require('../../models')
var mongoose = require('mongoose')
var express = require('express')
var jobRunner = require('../../runner');
exports.unauthorized = function (app, template) {
template([
'view'
], {
prefix: 'task'
});
}
exports.httpRouter = function (app) {
}
exports.router = function (ap... |
/**
* Module for working with file. Shall implement
* IEmmetFile interface.
*
* Since implementation of this module depends
* greatly on current runtime, this module must be
* initialized with actual implementation first
* before use. E.g.
* require('./plugin/file')({
* read: function() {...}
* })
*
* By ... |
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'magicline', 'it', {
title: 'Inserisci paragrafo qui'
} );
|
UI.registerHelper("removeTrailingSpaces", function(content){
return content ? content.replace(/ \n/g, "\n") : '';
});
|
// Copyright 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
Clazz.declarePackage ("J.api");
Clazz.declareInterface (J.api, "JmolRepaintManager");
|
module.exports={"title":"Kirby","hex":"FF0100","source":"http://getkirby.com/assets/images/logo.svg","svg":"<svg aria-labelledby=\"simpleicons-kirby-icon\" role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title id=\"simpleicons-kirby-icon\">Kirby icon</title><path d=\"M12 0L1.428 6v12L12 24l10.5... |
/*
Project: angular-gantt v1.3.2 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: https://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
(function(){
'use strict';
angular.module('gantt.labels', ['gantt', 'gantt.labels... |
import React, { Component } from 'react'
import Slider from '../src/slider'
export default class FocusOnSelect extends Component {
render() {
const settings = {
focusOnSelect: true,
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
speed: 500
};
return (
<div>
... |
/**
* filesize
*
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2015 Jason Mulligan
* @license BSD-3 <https://raw.github.com/avoidwork/filesize.js/master/LICENSE>
* @link http://filesizejs.com
* @module filesize
* @version 3.0.0
*/
( function ( global ) {
"use strict";
var bit = /b$/;
/... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v9.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c <... |
angular.module('bottomSheetDemo1', ['ngMaterial'])
.config(function($mdIconProvider) {
$mdIconProvider
.icon('share-arrow', 'img/icons/share-arrow.svg', 24)
.icon('upload', 'img/icons/upload.svg', 24)
.icon('copy', 'img/icons/copy.svg', 24)
.icon('print', 'img/icons/print.svg', 24)
.ic... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sou... |
/* @flow */
import { addAttr } from 'compiler/helpers'
import { RECYCLE_LIST_MARKER } from 'weex/util/index'
// mark components as inside recycle-list so that we know we need to invoke
// their special @render function instead of render in create-component.js
export function postTransformComponent (
el: ASTElement,... |
// ==================================================
// fancyBox v3.0.39
//
// Licensed GPLv3 for open source use
// or fancyBox Commercial License for commercial use
//
// http://fancyapps.com/fancybox/
// Copyright 2017 fancyApps
//
// ==================================================
;(function (window, document, ... |
YUI.add('event-simulate', function(Y) {
(function() {
/**
* Simulate user interaction by generating native DOM events.
*
* @module event-simulate
* @requires event
*/
//shortcuts
var L = Y.Lang,
isFunction = L.isFunction,
isString = L.isString,
isBoolean = L.isBoolean,
isObject = L.isO... |
window.onload = LoadPage;
var sd;
var lfc;
var tf;
var mf;
var lc;
var lang = 'CSharp';
function ListController() {
this.tabCollections = new Array();
this.listCollections = new Array();
this.tabCollectionIds = new Array();
this.listCollectionIds = new Array();
}
ListController.prototype.registerTabb... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'hr', {
preview: 'Pregledaj'
} );
|
var templates = ['partial_subdir', 'subdir/parent', 'partial_fullpath'];
templates = templates.map(function(template) {
return 'hbs!'+require.toUrl('tests/templates/'+template);
});
define(templates, function(template, parentTemplate, fullPathTemplate) {
describe("template with a partial in a subdirectory {{> pa... |
//Created by Aran Khanna All Rights Reserved
// Global Variables
// Map Variables
L.mapbox.accessToken = 'pk.eyJ1IjoiYXJhbmtoYW5uYSIsImEiOiJjYWYxOTcwYTI4ZTNhNDA5NTdlMzFjMDQ0NWM3OThjMSJ9.j6OVr_W3jAAdxusZ5qLXlg';
var map_id = "arankhanna.m3ankjj3";
// Map object
var map = null;
// Lines between points drawn on ma... |
/* ===========================================================
* vi.js
* Vietnamese translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : heocoi
* Github: https://github.com/heocoi
*/
jQuery.trumbowyg.langs.vi = {
vie... |
import Stream from 'ember-metal/streams/stream';
import merge from 'ember-metal/merge';
import {
getArrayValues,
getHashValues
} from 'ember-htmlbars/streams/utils';
export default function BuiltInHelperStream(helper, params, hash, templates, env, scope, context, label) {
this.init(label);
this.helper = helper... |
// Generated by CoffeeScript 1.9.3
var changeNumbers, inner, outer;
outer = 1;
changeNumbers = function() {
var inner;
inner = -1;
return outer = 10;
};
inner = changeNumbers();
|
/**
* jqPlot
* Pure JavaScript plotting plugin using jQuery
*
* Version: 1.0.4
* Revision: 1120
*
* Copyright (c) 2009-2012 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
* versio... |
/*global jQuery */
/*jshint multistr:true, browser:true */
/*!
* FitVids 1.0
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://s... |
// original source code is taken from:
// https://github.com/SimpleWebRTC/hark
// copyright goes to &yet team
// edited by Muaz Khan for RTCMultiConnection.js
function hark(stream, options) {
var audioContextType = window.webkitAudioContext || window.AudioContext;
var harker = this;
harker.events = {};
... |
(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.xstream = f()}... |
/*! Qoopido.demand 3.0.0 | https://github.com/dlueth/qoopido.demand | (c) 2016 Dirk Lueth */
!function(){"use strict";function n(){return{process:function(){var n=this;provide(function(){return n.source})}}}provide(n)}();
//# sourceMappingURL=text.js.map
|
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import ObjectDestructuring from './ObjectDestructuring';
describe('object ... |
x: while (true) { (function () { break x; }); }
|
/*
Highmaps JS v4.2.6 (2016-08-02)
Client side exporting module
(c) 2015 Torstein Honsi / Oystein Moseng
License: www.highcharts.com/license
*/
(function(a){typeof module==="object"&&module.exports?module.exports=a:a(Highcharts)})(function(a){function v(g,a){var c=m.getElementsByTagName("head")[0],b=m.createEleme... |
// subkit.js - 1.1.14
// https://github.com/subkit
// Copyright 2012 - 2015 http://subkit.io
// MIT License
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.Subkit=e():"undefined"!=typeof global?global.Subkit=e():"undefined"!=typ... |
/*!
* sweetalert2 v3.3.4
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Sweetalert2 = factory());
}(this, function () { 'use str... |
module.exports = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zm-308-44v-72c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v72c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0V2... |
/* Riot v3.0.0-alpha.12, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.riot = global.riot || {})));
}(this, (function (exports) { 'use stri... |
/*syn@0.1.2#key.support*/
var syn = require('./synthetic.js');
require('./key.js');
if (!syn.config.support) {
(function checkForSupport() {
if (!document.body) {
return syn.schedule(checkForSupport, 1);
}
var div = document.createElement('div'), checkbox, submit, form, anchor, t... |
/*!
* Waves v0.6.4
* http://fian.my.id/Waves
*
* Copyright 2014 Alfiana E. Sibuea and other contributors
* Released under the MIT license
* https://github.com/fians/Waves/blob/master/LICENSE
*/
;(function(window) {
'use strict';
var Waves = Waves || {};
var $$ = document.querySelectorAll.bind(docum... |
Ext.define('Neptune.view.grid.widget.GroupHeader', {
extend: 'Neptune.view.grid.widget.Basic',
xtype: 'groupHeaderGrid',
title: 'Group Header Grid',
constructor: function(cfg) {
var priceColumns;
this.columns = Ext.Array.clone(this.columns);
priceColumns = thi... |
// Generated by CoffeeScript 1.10.0
(function() {
'use strict';
var _containersControllers, _windowEventsHandlerBinded, _windowInViewItems, addWindowInViewItem, angularInviewModule, bindWindowEvents, checkInView, debounce, getBoundingClientRect, getOffsetFromPercentage, getViewportHeight, offsetIsPercentage, remove... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
importScripts(
'../../../vendor/core.js', '../../../vendor/zone.js',
'../../../vendor/long-stack-trace-zone.... |
var _ = require('../../../../src/util')
var Vue = require('../../../../src/vue')
function trigger (target, event, process) {
var e = document.createEvent('HTMLEvents')
e.initEvent(event, true, true)
if (process) process(e)
target.dispatchEvent(e)
return e
}
if (_.inBrowser) {
describe('v-on', function () ... |
/**
* Chirashi.js v5.2.2
* (c) 2017 Alex Toudic
* Released under MIT License.
**/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Iterates over items and apply callback on each one.
* @param {*} items - The iterable.
* @param {forEachCallback} callback - The callback to call fo... |
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
cordova.define("org.apache.cordova.dialogs.notification", function(require, exports, module) { /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. T... |
/*!
* Bootstrap-select v1.6.2 (http://silviomoreto.github.io/bootstrap-select/)
*
* Copyright 2013-2014 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
!function(a){a.fn.selectpicker.defaults={noneSelectedText:"No hay selección",noneResultsText:"No ha... |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else if (typeof module === "object" && module.exports) {
module.exports = factory( require( "jquery" ) );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default ... |
/*!
* VERSION: 0.5.2
* DATE: 2014-07-17
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with y... |
CKEDITOR.plugins.setLang("image2","zh",{alt:"替代文字",btnUpload:"傳送至伺服器",captioned:"已加標題之圖片",infoTab:"影像資訊",lockRatio:"固定比例",menu:"影像屬性",pathName:"圖片",pathNameCaption:"標題",resetSize:"重設大小",resizer:"拖曳以改變大小",title:"影像屬性",uploadTab:"上傳",urlMissing:"遺失圖片來源之 URL "}); |
"use strict";
const iconv = require("iconv-lite");
const parseContentType = require("./headers").parseContentType;
// https://encoding.spec.whatwg.org/encodings.json
const encodings = require("./encodings.json");
const encodingsTable = {};
encodings.forEach(v => v.encodings.forEach(enc => {
if (iconv.encodingExist... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'wsc', 'sk', {
btnIgnore: 'Ignorovať',
btnIgnoreAll: 'Ignorovať všetko',
btnReplace: 'Prepísat',
btnReplaceAll: 'Prepísat všetko',
btnUndo: 'Sp... |
"use strict";
var foo = "test " + foo + " " + bar;
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u0635",
"\u0645"
],
"DAY": [
"\u0627\u0644... |
angular.module('demo.device.ctrl', [])
.controller('DeviceCtrl', function ($scope, $state, $cordovaDevice) {
var init = function () {
console.log("initializing device");
try {
document.addEventListener("deviceready", function () {
$scope.available = $cordovaDevice.getDevice().avail... |
[/q/] |
Type.registerNamespace("Strings");
Strings.OfficeOM = function()
{
};
Strings.OfficeOM.registerClass("Strings.OfficeOM");
Strings.OfficeOM.L_InvalidNamedItemForBindingType = "O tipo de vinculación especificada non é compatible co elemento con nome fornecido.";
Strings.OfficeOM.L_EventHandlerNotExist = "Non se atopou ... |
define(
"dojo/cldr/nls/fi/roc", //begin v1.x content
{
"field-second": "sekunti",
"field-year-relative+-1": "viime vuonna",
"field-week": "viikko",
"field-month-relative+-1": "viime kuussa",
"field-day-relative+-1": "eilen",
"field-day-relative+-2": "toissapäivänä",
"field-year": "vuosi",
"field-week-relative+0... |
(function(global) {
Ember.libraries.register('Ember Simple Auth Testing', '0.8.0-beta.3');
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (se... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("codesnippet","en-gb",{button:"Insert Code Snippet",codeContents:"Code content",emptySnippetError:"A code snippet cannot be empty.",language:"Languag... |
import Ember from 'ember';
var FeatureController = Ember.Controller.extend(Ember.PromiseProxyMixin, {
init: function () {
var promise;
promise = this.store.find('setting', {type: 'blog,theme'}).then(function (settings) {
return settings.get('firstObject');
});
this.set(... |
/*! Qoopido.js library 3.6.8, 2015-07-09 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */
!function(e){window.qoopido.register("polyfill/document/queryselectorall",e)}(function(e,t,r,s,l,o,n){"use strict";return o.querySelectorAll||(o.querySelectorAll=function(e){var t,r=l.document.getElementsByTagName("... |
var _ = require('lodash');
var uuid = require('node-uuid');
_.str = require('underscore.string');
var Promise = global.testPromise;
var equal = require('assert').equal;
var deepEqual = require('assert').deepEqual;
module.exports = function(bookshelf) {
describe('Model', function() {
var Backbone = requir... |
YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
/*
machina
Author: Jim Cowart (http://freshbrewedcode.com/jimcowart)
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
Version 0.3.2
*/
(function ( root, factory ) {
if ( typeof module === "object" && module.exports ) {
// Node, or... |
/*! UIkit 2.19.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
var active = false, $html = UI.$html, body;
UI.component('modal', {
defaults: {
keyboard: true,
bgclose: true,
minScrollHeight: 150,
cente... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
require('babel-core/register.js')({
'plugins': [
'babel-plugin-transform-es2015-modules-commonjs'
].map(require.resolve) // fixes the issue with babel loader & linked modules
});
let del = require('del');
let gulp = require('gulp');
let babel = require('gulp-babel');
let jasmine = require('gulp-jasmine');
exports... |
/* eslint-env mocha */
import expect from 'expect'
import postcss from 'postcss'
import customProps from '../src'
const process = css => postcss([ customProps() ]).process(css)
describe('rule', () => {
it('should correctly resolve addition expression', () => {
const input = 'h1 { line-height: calc(1+1+0.2); }... |
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; }
__.prototype = b.prototype;
d.prototype = new __();
};
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
... |
// Libraries
var https = require('https');
var url = require('url');
var uuid = require('node-uuid');
var querystring = require('querystring');
var util = require('util');
var db = require('redis').createClient();
// The methods on this object will be exported as the public api
var public_api = {};
/*****************... |
'use strict'
const dateTime = {
parse: (date, time) => new Date(date + ' ' + time)
, stringifyToDate: (when) => [
when.getFullYear(),
('0' + (1 + when.getMonth())).slice(-2),
('0' + when.getDate()).slice(-2)
].join('-')
, stringifyToTime: (when) => [
('0' + when.getHours()).slice(-2),
('0' + when.ge... |
/**
*
* @module events/master
* @author Greg Babula [greg.babula@mlb.com]
* @description event communication hub, mediates events between master, model, and viewModel
*
*/
'use strict';
const size = require('lodash.size');
const each = require('lodash.foreach');
const every = require('lodash.every');
const util... |
module.exports = minixhr
function minixhr (params, done) {
var url = typeof params === 'string' ? params : params.url
var body = params.data
var method = params.method || body ? 'POST' : 'GET'
var headers = params.headers || method !== 'POST' ? {} : {
'X-Requested-With' :'XMLHttpRequest',
'Content-Type... |
"use strict";
// deps
const path = require("path");
const assert = require("assert");
const http = require("http");
const https = require("https");
const express = require("express");
const fs = require("node-promfs");
const SimpleSSL = require("simplessl");
const MultiServers = require(path.join(__dirname,... |
/**
* Jest test definition to test targaryen Jest integration.
*/
'use strict';
const targaryen = require('../../plugins/jest');
expect.extend({
toBeAllowed: targaryen.toBeAllowed
});
test('getDebugDatabase()', () => {
const emptyRules = {rules: {}};
const database = targaryen.getDebugDatabase(emptyRules, {... |
'use strict';
/**
* Module dependencies.
*/
var config = require('../config'),
mongoose = require('./mongoose'),
express = require('./express'),
chalk = require('chalk'),
seed = require('./seed');
function seedDB() {
if (config.seedDB && config.seedDB.seed) {
console.log(chalk.bold.red('Warning: Data... |
"use strict";
const Telegram = require("telegram-node-bot");
class KickController extends Telegram.TelegramBaseController {
kickHandler($) {
let userToKick = $.message.text.split(" ").slice(1);
if (!userToKick) {
$.sendMessage("Please include the username after /kick");
} else {
console.log(... |
import theme from '../theme.less';
import css from './customStyles.less';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { updateInputValue, updateFocusedItem } from 'actions/app';
import Autowhatever from 'Autowhatever';
import SourceCodeLink from 'SourceCodeLink/So... |
version https://git-lfs.github.com/spec/v1
oid sha256:21cf4dc341ee3905c0f877b8a679197de8bb50b58421cd740858b05e610376fd
size 5799
|
module.exports = function ($) {
const $metaTags = $('meta')
var extracted = {}
$metaTags.each(function (index, el) {
if ($(this).attr('content')) {
if ($(this).attr('name')) {
extracted[$(this).attr('name')] = $(this).attr('content')
}
if ($(this).attr('property')) {
extract... |
'use strict';
const router = require('express').Router();
const logRepo = require('app/repositories/log');
router.get('/latest', (req, res, next) => {
(req.query.hasOwnProperty('after') ?
logRepo.latestAfter(req.query.after) :
logRepo.latest(req.query.limit)
)
.then((results) => {
res.send({
... |
/**
* Created by 斌 on 2017/3/16.
*/
import _ from 'lodash'
/**
* localStorage
* @type {{putValue: ((key?, value?)), getValue: ((key?)), remove: ((key?))}}
*/
export const Ls = {
putValue (key, value) {
localStorage.removeItem(key)
if (_.isObject(value)) {
localStorage.setItem(key, JSON.stringify(v... |
// Copyright (c) 2014 Titanium I.T. LLC. All rights reserved. For license, see "README" or "LICENSE" file.
"use strict";
var ensure = require("../util/ensure.js");
var SizeDescriptor = require("./size_descriptor.js");
var Size = require("../values/size.js");
var RelativeSize = require("./relative_size.js");
var SizeMu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.