code stringlengths 2 1.05M |
|---|
import { expect } from 'chai'
import { createEvent, createEvents } from '../src'
const invalidAttributes = { start: [] }
const validAttributes = { start: [2000, 10, 5, 5, 0], duration: { hours: 1 } }
const validAttributes2 = { start: [2001, 10, 5, 5, 0], duration: { hours: 1 } }
const validAttributes3 = { start: [2002... |
KonOpas.Item = function() {
_el('prog_ls').onclick = KonOpas.Item.list_click;
if (_el('scroll_link')) {
_el('scroll_link').onclick = function() { _el('top').scrollIntoView(); return false; };
if (window.navigator && navigator.userAgent.match(/Android [12]/)) {
_el('time').style.display = 'none';
_el('scroll... |
describe('uiCombobox', function() {
var body, context, container, content, input, combobox;
var data = [
{title: 'foobar', value: 'foobar'},
{title: 'foo', value: 'foo'},
{title: 'bar', value: 'bar'},
{title: 'Baz', value: 'Baz'},
{title: 'test', value: 'test'}
];
... |
angular.module('jamm')
.service('MediaInfoService', function ($q, VolumeFile) {
function parseMediaInfoDuration(val) {
var parts = val.split(' ');
var seconds = 0;
for (var key in parts) {
if (parts[key].match(/[0-9]+h$/)) {
seconds += parseInt(parts[key], 10) * 3... |
import { delay } from 'redux-saga'
import { call, put, race, take } from 'redux-saga/effects'
import {
SHOW_MULTIPLIER,
ACTIVATE_MULTIPLIER,
HIDE_MULTIPLIER
} from '../state/score.reducer'
export function * scheduleMultiplier (minDelay = 5000, maxDelay = 2000) {
while (true) {
const delayTime = Math.floor(... |
'use strict';
// Config HTTP Error Handling
angular.module('users').config(['$httpProvider',
function ($httpProvider) {
// Set the httpProvider "not authorized" interceptor
$httpProvider.interceptors.push(['$q', '$location', 'Authentication',
function ($q, $location, Authentication) {
return {
... |
/* Implement Max CP List http://pokemongo.gamepress.gg/pokemon-list */
/* Mostly thanks to: https://docs.google.com/spreadsheets/d/1dcV69fCIZlTRqqFZ0eva8FIdm4hyxpho3Jv9Uc20Y0s/edit#gid=0
Original Post by me: https://www.reddit.com/r/TheSilphRoad/comments/4t32ky/new_online_calculator_for_pokemon_evolutions/
*/
_mult... |
const EventEmitter = require('events');
const Promise = require('bluebird');
module.exports = class BaseController extends EventEmitter {
constructor() {
super();
this.Promise = Promise;
}
};
|
// two-way data binding example
angular.module('drborges.contenteditable', [])
.directive('contenteditable', function() {
return {
restrict: 'A',
require: '?ngModel',
link: function(scope, element, attrs, ngModelCtrl) {
if (!ngModelCtrl) return;
// model -> view
ngModel... |
// Regular expression that matches all symbols in the Domino Tiles block as per Unicode v10.0.0:
/\uD83C[\uDC30-\uDC9F]/; |
var route = function() {
var section = window.location.hash;
section = section.replace(/#/g, "");
if (["basic", "next", "custom", "vector", "pause", "pages"].indexOf(section) === -1) {
window.location.hash = "basic";
return;
}
// highlight current section
document.querySelector('... |
const escapeXML = require('ejs').escapeXML
const moment = require('moment')
exports.capitalize = function (string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}
exports.addTrailingZeros = function (string, length) {
string = string.toString()
while (string.length < length) {
string = '0' + st... |
// state indicator
// This requires CSS media queries that
// update the z-index on div.state-indicator.
// The element will be created by the JS.
(function () {
// Debounce
// http://davidwalsh.name/function-debounce
var debounce = function (func, wait, immediate) {
var timeout;
return function () {
... |
import React from 'react';
import Icon from 'react-icon-base';
const ListIcon = (props) => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.4 27.9v4.2q0 0.9-0.6 1.6t-1.5 0.6h-7.2q-0.9 0-1.5-0.6t-0.6-1.6v-4.2q0-0.9 0.6-1.6t1.5-0.6h7.2q0.9 0 1.5 0.6t0.6 1.6z m0-11.5v4.3q0 0.9-0.6 1.5t-1.5 0.7h-7.2q-0.9 0-1.... |
/**
* @name VideoIndexController
* @desc Controller for the video-index view
*/
(function() {
'use strict';
angular.module('cometApp')
.controller('CallIndexController', CallIndexController);
CallIndexController.$inject = [ '$log',
'$rootScope',
... |
(function($) {
/**
*
* RoyalSlider bullets module
* @version 1.0.1:
*
* 1.0.1
* - Minor optimizations
*
*/
$.extend($.rsProto, {
_initBullets: function() {
var self = this;
if(self.st.controlNavigation === 'bullets') {
var itemHTML = '<div class="rsNavItem rsBullet"><span></span></div>';... |
module.exports = require('../dist/Toolbar');
|
const algorithms = {
bubble: require("./bubble-sort"),
insertion: require("./insertion-sort"),
merge: require("./merge-sort"),
selection: require("./selection-sort")
};
const utils = require("./common/utils");
const chalk = require("chalk");
const clui = require("clui");
const program = require("commander");
... |
/*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*
* Modified by @4lbertoC
*/
'use strict';
var React = require('react');
var Link = requi... |
define(['controllers',
'common/services/authentication.service'],
function (controllers) {
"use strict";
controllers.controller("LoginController",LoginController);
LoginController.$inject = ['$rootScope','$location', "$cookieStore",'AuthenticationService'];
function Logi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.assertValidName = assertValidName;
/**
* Copyright (c) 2015, 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 sour... |
'use strict';
const knex = require('knex');
const _ = require('lodash');
module.exports = _.once(conf => knex(conf));
|
var express = require('express');
var router = express.Router();
var Player = require('../models/player');
var Game = require('../models/game');
var Visit = require('../models/visit');
// Routes
Player.methods(['get','put','post','delete']);
Player.register(router, '/players');
Game.methods(['get','put','... |
// json api server
// return json when you get a path
// api/parsetime
// api/unixtime
var http = require("http");
var map = require('through2-map')
var url = require("url");
var server = http.createServer(function(request, response)
{
response.writeHead(200, {'Content-Type': 'application/json'});
console.log(reques... |
import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
const router = new VueRouter({
routes: [
{ path: '/', name: 'home', component: () => import('./pages/home/Page.vue') },
{ path: '/sla', name: 'sla', component: () => import('./pages/sla/Page.vue') },
],
});
router.beforeEach((... |
// HTML5 spec:
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-datalist-element
//
// IMPROVE: use DOMSubtreeModified whenever possible.
// NOTE: Safari doesn't fire the DOMSubtreeModified event properly?
// NOTE: do not auto select the first choice, and have a nil selection ... |
'use strict';
exports['default'] = '0.10.11'; |
module.exports = function strtok (str, tokens) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// % note 1: Use tab and newline as tokenizing characters as well
// * example 1: $string = "\t\t\t\nThis is\tan example\nstring\n";
// * example 1: $tok = s... |
// Hack for Ubuntu on Windows: interface enumeration fails with EINVAL, so return empty.
try {
require("os").networkInterfaces();
} catch (e) {
require('os').networkInterfaces = () => ({});
}
const path = require("path");
const utils = require("./utils");
const config = require("../config");
const vueLoade... |
import UnitConverter, {UnitIdentifier} from '../../UnitConverter';
import {Fraction, add, sub, mul, div, lt} from '../../../numbers';
import * as domains from '../domains';
import {UnitedKingdom, SystemInternational} from '../authorities';
import {Metric} from '../metric/constants';
import {Imperial} from '../imperial/... |
'use strict';
TTVCanvas.prototype.getFontSize = function(ctx, font)
{
var rc = [];
ctx.font = font;
rc[0] = ctx.measureText('WWWWI').width;
ctx.font = "bold "+font;
rc[1] = ctx.measureText('WWWWI').width;
ctx.font = "lighter "+font;
rc[2] = ctx.measureText('WWWWI').width;
return rc;... |
const capitalize = (str = '') => (
str.charAt(0).toUpperCase() + str.substring(1)
)
export default capitalize
|
const Command = require('../base/Command.js');
const { version } = require('discord.js');
const moment = require('moment');
require('moment-duration-format');
class Stats extends Command {
constructor(client) {
super(client, {
name: 'stats',
description: 'Gives some useful bot statistics',
usag... |
/**
* Main Controller
* @namespace Controllers
*/
(function() {
angular
.module('app')
.controller('MainController', MainController);
MainController.$inject = ['mainService'];
/**
* @name MainController
* @desc Binds logic to index.html
* @param {mainService} Services to be ... |
import { PhotoSwipe_init } from 'vendors/photoswipe-init.js';
domready(function () {
exports.init = function () {
var galleryInstance;
if($('.site-gallery').length) {
galleryInstance = PhotoSwipe_init('.site-gallery');
};
return galleryInstance;
}
})
|
var Tabs={init:function(){this.bindUIfunctions(),this.pageLoadCorrectTab()},bindUIfunctions:function(){$(document).on("click",".transformer-tabs a[href^='#']:not('.active')",function(e){Tabs.changeTab(this.hash),e.preventDefault()}).on("click",".transformer-tabs a.active",function(e){Tabs.toggleMobileMenu(e,this),e.pre... |
var gulp = require('gulp');
var autopolyfiller = require('gulp-autopolyfiller');
module.exports = function () {
gulp.task('autopolyfiller', function () {
return gulp.src('./dropdown.js')
.pipe(autopolyfiller('polyfills.js', {
browsers: ['last 2 version', 'ie 8', 'ie 9']
... |
var searchData=
[
['analog_20inputs_20pic16f1787',['Analog Inputs PIC16F1787',['../group___a_d_c___a_n_a_l_o_g___i_n_p_u_t_s.html',1,'']]],
['adc_2dkonstanten',['ADC-Konstanten',['../group___a_d_c___k_o_n_s_t_a_n_t_e_n.html',1,'']]]
];
|
// import React from 'react';
// import { shallow } from 'enzyme';
// import Book from '../index';
describe('<Book />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
const db=require('../db');
module.exports = db.defineModel('corpBuildings', {
corporationId:{
type:db.STRING(50)
},
buildingId: {
type: db.STRING(50)
},
floor:{
type:db.INTEGER
},
position:{
type:db.STRING(100)
},
status:{
type:db.INTEGER
}... |
import React, { PropTypes } from 'react';
import Button from '../Button';
import Form from '../Form';
const Pagination = (props) => {
const {
isPreviousEnabled,
onPreviousClick,
onPreviousLabel,
isNextEnabled,
onNextClick,
onNextLabel
} = props;
return (
<Form>
<div className="b... |
'use strict';
var CSS_UNITS = 96.0 / 72.0;
var DEFAULT_SCALE = 'auto';
var UNKNOWN_SCALE = 0;
var MAX_AUTO_SCALE = 1.25;
var SCROLLBAR_PADDING = 40;
var VERTICAL_PADDING = 5;
var DEFAULT_CACHE_SIZE = 10;
// optimised CSS custom property getter/setter
var CustomStyle = (function CustomStyleClosure() {
var prefixes ... |
/**
* Created by Bahrom on 1/7/16.
*/
/**
* Register controller
* @namespace quaestio.authentication.controllers
*/
(function() {
'use strict';
angular
.module('quaestio.authentication.controllers')
.controller('RegisterController', RegisterController);
RegisterController.$inject = [... |
import 'dotenv/config'
import _ from 'lodash'
import jwt from 'jsonwebtoken'
import scrypt from 'scrypt-for-humans'
import { UnauthorizedError } from 'util/error'
import User from 'model/user'
const { JWT_EXPIRES_IN, JWT_SECRET } = process.env
const auth = {
/**
* Login using email.
* @param {{email, password... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { Modal, Button, Input } from 'antd'
import MessageList from '../../components/MessageList'
import classes from './MessageModal.scss'
import { actions as messageActions } from '../../redux/modules/MessageReducer'
import { actions as u... |
ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var JsonHighlightR... |
/*
* reservations_generator.js
* Copyright(c) 2015 Bitergia
* Author: Alvaro del Castillo <acs@bitergia.com>,
* Alberto Martín <amartin@bitergia.com>
* MIT Licensed
Generates random reservations for restaurants in orion
First it gets all restaurant information
Then a random automatic reservation is generat... |
var gulp = require('gulp');
var shell = require('gulp-shell')
gulp.task('default', function () {
var port = process.env.PORT || 8080;
gulp.src('')
.pipe(shell([
'./node_modules/http-server/bin/http-server -p ' + port
]))
}) |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14 1h-4c-.55 0-1 .45-1 1s.45 1 1 1h4c.55 0 1-.45 1-1s-.45-1-1-1zm-2 13c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1zm7.03-6.61l.75-.75c.38-.38.39-1.01 0-1.4l-.01-.01c-.39-.39-1.01-.3... |
//目标:只传送玩家,传送玩家和动物
//传送
//以下代码在众吧友的帮助下及作者自学并参考若干个js后完成
//version 1.0
var px,py,pz,xx,xy,xz,ax,ay,az,bx,by,bz,i,amt,vl;
var tp=false;
var ap=false;
var bp=false;
var onAB=false;
//define Anywhere Portal Block
Block.defineBlock(255,"Anywhere Portal Block",[["still_lava",0]],2,false,0);
Block.setRenderLayer(255,1);
Bloc... |
var setup = require('../../setup');
var assert = require('assert');
var express = require('express');
describe('routes/broadcastStartTask', function () {
describe('basics', function () {
var ports = [3010,3011];
var user = 'br0@dc@5t';
var pass = 'P@55w0Rd!2';
var uris = ports.map(function (port) { return '... |
//---------------------------------------------------------------------------
// Jaskell Html ---------------------------------------------------------------
jaskell.html = new function () {
var UnitBezier = function (p1x, p1y, p2x, p2y) {
// Calculate the polynomial coefficients
var cx = 3.0 * ... |
'use strict';
/**
* @ngdoc function
* @name angularUiLaddaApp.controller:ButtonCtrl
* @description
* # ButtonCtrl
* Controller of the angularUiLaddaApp
*/
angular.module('angularUiLaddaApp')
.directive('ngLadda', function(){
return {
restrict: 'A',
link : function(scope, element, attrs){
var ladda =... |
import {fileURLToPath} from 'node:url';
import {promises as fs} from 'node:fs';
import binBuild from 'bin-build';
import bin from './index.js';
const src = fileURLToPath(new URL('../test/fixtures/test.jpg', import.meta.url));
const dest = fileURLToPath(new URL('../test/fixtures/dest.jpg', import.meta.url));
// This s... |
import * as React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/click-away-listener';
const requireDemo = require.context(
'docs/src/pages/components/click-away-listener',
f... |
if (typeof console == 'undefined') console = {
log: function () { }
};
// sniff chrome
var CHROME_5_LOCAL = false;
var CHROME = false;
var SAFARI = false;
var FIREFOX = false;
var WEBKIT = false;
var OS_MAC = false;
var IOS = false;
var IE = false;
var IE_10_AND_BELOW = false; //ie 10 and lower
v... |
angular.module('resizer', []).directive('resizer', function($document) {
return function($scope, $element, $attrs) {
$element.on('mousedown', function(event) {
event.preventDefault();
$document.on('mousemove', mousemove);
$document.on('mouseup', mouseup);
});
... |
process.env.NODE_ENV = 'development';
var path = require('path'),
gutil = require("gutil"),
colors = require("colors"),
webpack = require('webpack'),
webpackConfig,
webpackWatcher,
compiler,
moment = require("moment"),
watch = require("watch");
function restartWebpack() {
if(webpac... |
var annotated_dup =
[
[ "atca_aes_cbc_ctx", "a00917.html", "a00917" ],
[ "atca_aes_cmac_ctx", "a00921.html", "a00921" ],
[ "atca_check_mac_in_out", "a01045.html", "a01045" ],
[ "atca_command", "a00849.html", "a00849" ],
[ "atca_decrypt_in_out", "a01041.html", "a01041" ],
[ "atca_derive_key_in_ou... |
import fetch from 'isomorphic-fetch'
import { SET_LANGUAGE, SWITCH_PANEL } from '../constants'
export function changeLanguage (lang) {
window.ga('send', 'event', 'app', SET_LANGUAGE, lang)
return function (dispatch) {
fetch('./data/' + lang + '.json')
.then(response => response.json())
.then(data... |
/*!
* js-file-browser
* Copyright(c) 2011 Biotechnology Computing Facility, University of Arizona. See included LICENSE.txt file.
*
* With components from: Ext JS Library 3.3.1
* Copyright(c) 2006-2010 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/*!
* Ext JS Library 3.3.1
* Copyrigh... |
function updateElementIndex(el, prefix, ndx) {
var id_regex = new RegExp('(' + prefix + '-\\d+)');
var replacement = prefix + '-' + ndx;
if (el.id) el.id = el.id.replace(id_regex, replacement);
if (el.name) el.name = el.name.replace(id_regex, replacement);
}
function weightUpdate(prefix){
va... |
define(function(require) {
require('../src/affix');
var expect = require('expect');
var $ = require('$');
describe('affix', function() {
it('should provide no conflict', function () {
var affix = $.fn.affix.noConflict()
expect($.fn.affix).to.not.be.ok();// 'affix was set back ... |
import debugLog from '../debugLog.js'
import { logWarning } from '../serverlessLog.js'
export default function getHttpApiCorsConfig(httpApiCors, { log }) {
if (httpApiCors === true) {
// default values that should be set by serverless
// https://www.serverless.com/framework/docs/providers/aws/events/http-api... |
import React from 'react'
import PropTypes from 'prop-types'
import {
Form, Row, Col, Input,
Button,
} from 'antd'
const FormItem = Form.Item
const UserInfo = ({
user,
onUpdate,
form: {
getFieldDecorator,
validateFields,
getFieldsValue,
resetFields,
},
}) => {
function handleSubmit (e) {... |
//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
'use strict';
return "float czm_latitudeToWebMercatorFraction(float latitude, float southMercatorY, float oneOverMercatorHeight)\n\
{\n\
float sinLatitude = sin(latitude);\n\
float mercatorY = 0.5 * log((1.0 ... |
/* jshint indent: 1 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('security_user_rol', {
id_user: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
references: {
model: 'security_user',
key: 'id'
}
},
id_rol: {
type: DataTypes.INTEGER(11)... |
var gulp = require('gulp');
var config = require('./gulp.config')();
var $ = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var del = require('del');
var browserSync = require('browser-sync');
var reload = browserSync.reload;
var fs = require('fs');
var AUTOPREFIXER_BROWSERS = [
'ie >= 10... |
var app = app || {};
app.Track = Backbone.Model.extend({
defaults: {
tuesday: false,
wednesday: false,
thursday: false,
friday: false,
saturday: false,
sunday: false,
monday: false,
weight: 0.0,
track_date: new Date()
}
}); |
import search from '../search';
import { Search } from '../../actions/ActionTypes';
describe('reducers', () => {
describe('search', () => {
it('Search should populate default state correctly', () => {
const prevState = undefined;
const randomAction = {};
expect(search(prevState, randomAction)).... |
/**
* Created by Ber on 02/12/16.
*/
import React from 'react';
const UGFooterH3 = (props) => <h3 className={`${props.className}`}>
{props.children}
</h3>;
UGFooterH3.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
};
export default UGFooterH3;
|
export { default } from 'ember-flexberry-gis/components/layers-styles/simple/path-editor';
|
(function() {
'use strict';
angular.module('TodoApp')
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/login');
$stateProvider
.state('login', {
url: '/login',
templateUrl: '/tpl/login.html',
... |
/**
* The Pantropical layer module for use on canvas.
*
* @return UsaLandCoverLayer class (extends ImageLayerClass)
*/
define(['abstract/layer/ImageLayerClass'], function(ImageLayerClass) {
'use strict';
var UsaLandCoverChangeLayer = ImageLayerClass.extend({
options: {
urlTemplate:
'https://s... |
'use strict'
/**
* @module module:seeli/lib/seeli
* @requires mout/lang/toArray
* @requires mout/lang/kindOf
* @requires seeli/lib/command
* @requires seeli/lib/conf
**/
const chalk = require('chalk')
const toArray = require('mout/lang/toArray')
const kindOf = require('mout/lang/kindOf')
const Command = require('... |
/**
* @fileOverview
* Exports functions to start up of the cluster members running the Chat
* application.
*/
var express = require('express');
var RedisSessionStore = require('connect-redis')(express);
var RedisSocketStore = require('socket.io/lib/stores/redis');
var http = require('http');
var redis = ... |
import { check } from 'meteor/check';
import { Meteor } from 'meteor/meteor';
import { Random } from 'meteor/random';
import { assert } from 'meteor/practicalmeteor:chai';
import { PublicationCollector } from 'meteor/johanbrook:publication-collector';
import { createCategoryDoc } from '../../categories/server/categori... |
var insertImageBoardAfterCreate = true;
var _csrf = $('meta[name=csrf-token]').attr('content');
var uploader = new Q.Uploader({
url: "/imageupload?type=file&_csrf=" + _csrf,
target: document.getElementById("upload_area"),
view: document.getElementById("preview"),
allows: ".jpg,.png,.gif,.bmp,.jpeg",
... |
'use strict';
var uniqueRandomArray = require('unique-random-array');
var kamasutraPositions = require('./kamasutra-positions.json');
exports.all = kamasutraPositions;
exports.random = uniqueRandomArray(kamasutraPositions);
|
var babel = require("../lib/api/node");
var buildExternalHelpers = require("../lib/tools/build-external-helpers");
var Pipeline = require("../lib/transformation/pipeline");
var sourceMap = require("source-map");
var assert = require("assert");
var File ... |
var Material = require('material-ui');
//var Spacing = Material.Styles.Spacing;
var Colors = Material.Styles.Colors;
module.exports = {
getPalette: function() {
return {
primary1Color: Colors.teal500,
primary2Color: Colors.teal700,
primary3Color: Colors.teal100,
accent1Color: Colors.blueG... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import PlatformCard from 'components/PlatformCard/PlatformCard.react';
export const com... |
/*global window, document*/
var State = require('ampersand-state');
var SelectView = require('ampersand-select-view');
var matches = require('matches-selector');
var $ = window.$ || require('jquery'); //use $ if exists, else load dep.
var TagsInput = require('bootstrap-tagsinput');
TagsInput = TagsInp... |
'use strict';
var _require = require('conventional-changelog/lib/git');
var parseRawCommit = _require.parseRawCommit;
module.exports = function (pluginConfig, _ref, cb) {
var commits = _ref.commits;
var type = null;
commits.map(function (commit) {
return parseRawCommit(commit.hash + '\n' + commit.message... |
/**
* Módulo principal donacionesApp.
* Dependencias: ngAnimate, ui.bootstrap, ngSanitize, mgcrea.ngStrap, smart-table, etc.
* @author Roberto Sottini <robysottini@gmail.com>
*/
(function() {
'use strict';
angular
.module('donacionesApp', [
'ngAnimate',
'ui.bootstrap'... |
/**
* 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... |
//~ name a454
alert(a454);
//~ component a455.js
|
UTIL.ready(function () {
var txtNewUrl = document.getElementById('txtNewUrl');
var btnAddUrl = document.getElementById('btnAddUrl');
var lstUrls = document.getElementById('lstUrls');
var btnDeleteUrl = document.getElementById('btnDeleteUrl');
var btnSave = document.getElementById('btnSave');
var btnHelp = documen... |
// Linha 1 - comentario
function alerta() {
alert('Ok');
}
function deleta() {
var teste = "123";
delete teste;
}
function confirma() {
if (confirm('Ok?'))
return true;
}
function testa() {
console.log('Executando teste untario...')
}
function integracao() {
console.log('Executando testes de integracao...')... |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
cssmin: {
my_target: {
files: [{
expand: true,
cwd: 'app/styles',
src: ['*.css','!*.min.css'],
dest: 'app/dist/styles... |
/**
* Base configuration.
* All configurations will extend these options
*/
'use strict'
var path = require('path')
var _ = require('lodash')
var all = {
// App version
version: require(__dirname + '/../../../package.json').version,
// Server IP
ip: process.env.IP || undefined,
// Node envir... |
angular.directive( 'cbSkillify', function(){
var link = function( scope, element, attrs ){
scope.allFrameworks = {}
scope.allLanguages = {}
scope.allOther = {}
scope.showSkills = true;
scope.showProjects = false;
scope.showSelectedProject = false;
scope.openSkill = function(activeSkill... |
const readline = require('readline');
const fs = require('fs');
const buf = Buffer.alloc(4);
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.on('line', (line) => {
buf.writeUInt32BE(parseInt(line, 16) >>> 0, 0);
process.stdout.write(buf);
});
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path fillRule="evenodd" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.54 13.85l-.69.69c-.39.39-1.02.39-1.41 0l-3.05-3.05c-1.22.43-2.64.17-3.62-.81-1.11-1.11-1.3-2.79-.59-4.1l2.3... |
var Showdown, console, alert = function (text) { console += text;};
/*! showdown 02-08-2015 */
(function(){
/**
* Created by Tivie on 13-07-2015.
*/
function getDefaultOpts(simple) {
'use strict';
var defaultOptions = {
omitExtraWLInCodeBlocks: {
default: false,
describe: 'Omit the default extra... |
define([
'jquery',
'underscore',
'oro/select2-component',
'oroemail/js/app/views/select2-email-recipients-view'
], function($, _, Select2Component, Select2View) {
'use strict';
function dataHasText(data, text) {
return _.some(data, function(row) {
if (!row.hasOwnProperty('ch... |
AC.View.Base = Backbone.View.extend({
id : "",
path : "",
el : ".main-content",
tpl : null,
collection : null,
slug : "",
params : {},
hide : function ( callback ) {
var $el = $(this.el);
$el.fadeOut(AC.Data.FADE_OUT_DURATION, function() {
if (callback) {
callback();
}
});
},
render : ... |
var User=require('../data/models/user')
var Quest=require('../data/models/quest')
var Message=require('../data/models/message')
var notLoggedIn=require('./middleware/not_logger_in')
var LoggedIn=require('./middleware/logger_in')
var loadUser=require('./middleware/load_user')
var restrictUserToSelf=require('./middleware... |
module.exports = function() {
return {
src: {
files: 'lib/**/*.js',
tasks: [ 'test', 'build' ]
}
, test: {
files: 'test/**/*.*',
tasks: [ 'build:test', 'test' ]
}
};
};
|
define({
"_widgetLabel": "การติดตามเครือข่าย",
"configError": "ไม่ได้กำหนดค่าวิดเจ็ตอย่างถูกต้อง",
"clearButtonValue": "เคลียร์",
"GPExecutionFailed": "ไม่สามารถดำเนินการติดตามได้ โปรดลองอีกครั้ง",
"backButtonValue": "กลับ",
"exportToCSVSuccess": "บันทึกเป็นไฟล์ CSV เสร็จสมบูรณ์",
"lblInputLocTab": "อินพุ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.