code stringlengths 2 1.05M |
|---|
/**
* Created with JetBrains PhpStorm.
* User: chunizhekov_s
* Date: 15.10.13
* Time: 16:00
*/
if ( jQuery && $('a[href="/UserDetails.aspx"]' , '#boxUser').length )
$(function()
{
$.get(
'/UserDetails.aspx' ,
{} ,
function(o)
{
$('a[href="/UserDetails.aspx"]' , '#boxUser ')
.eq(0)
.b... |
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
var React = require('react');
import $ from 'jquery';
var Search = React.createClass({
componentDidMount(){
searchThings();
},
render(){
return (
<section id="search-section">
<input id="search-notes"
type="text"
ref="name"
placeholder="Sea... |
Ext.override(Ext.ux.StatusBar, {
hideBusy() {
return this.setStatus({
text: this.defaultText,
icon_cls: this.defaultIconCls
});
}
});
|
import Component from 'ember-component';
import hbs from 'htmlbars-inline-precompile';
/**
* Not operational sidebar search component
* @class NavigationAPI.SearchBar
* @constructor
* @extends Ember.Component
*/
export default Component.extend({
layout: hbs``
});
|
var books = require('../models/booksModels')
//TODO: Send the right error messages
exports.postBooks = function(req, res) {
res.header("Access-Control-Allow-Origin", "*")
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept")
var newBook = new books();
... |
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app'),
mergeTrees = require('broccoli-merge-trees'),
pickFiles = require('broccoli-static-compiler');
var app = new EmberApp({
sassOptions: {
includePaths: [
'bower_components/foundation/scss'
]
}
});
// Use `app.... |
// Import dependency.
import axios from 'axios';
// Define service class that can be imported and used to hit different PUT endpoints.
export default class PutService {
constructor(url) {
this.url = url;
}
putItem(body) {
axios.put(this.url, body)
.catch((error) => {console.log... |
angular
.module('app.directives')
.directive('wps', wps)
;
/* @ngInject */
function wps($mdBottomSheet, TemplateUrls) {
return {
scope: {
race: '=',
track: '='
},
replace: true,
restrict: 'E',
templateUrl: TemplateUrls.WPS,
controller: controller
};
/* @ngInject */
fu... |
// models/Friend.js
module.exports = function(mongoose) {
var Schema = mongoose.Schema;
var FriendSchema = new Schema({
id_usuario_a : String,
id_usuario_b : String
});
return mongoose.model('Friend', FriendSchema);
} |
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var plumber = require('gulp-plumber');
var autoprefixer = require('gulp-autoprefixer');
var paths = {
css: {
src: './ngMain/static/css/src/',
dist: './ngMain/static/c... |
/**
* Trailpack Configuration
*
* @see {@link http://trailsjs.io/doc/trailpack/config}
*/
module.exports = {
lifecycle: {
initialize: {
listen: [ ],
emit: [ ]
}
},
poolDefaults: {
min: 1,
max: 16
}
}
|
QUnit.test( "Issue #114 - run createKernelMap the second time", function() {
const gpu = new GPU();
const A = [1, 2, 3, 4, 5];
const B = [1, 2, 3, 4, 5];
function add(a,b){
return a + b;
}
const kernels = gpu.createKernelMap([add],function(a, b){
return a[this.thread.x] + b[this.thread.x];
})... |
"use strict";
/* tslint:disable:no-unused-variable */
var testing_1 = require("@angular/core/testing");
var forms_1 = require("@angular/forms");
var ng2_bootstrap_modal_1 = require("ng2-bootstrap-modal");
var dist_1 = require("angular2-notifications/dist");
var router_1 = require("@angular/router");
var goal_1 = requir... |
var ObjectsListLeftMediator = function() {
this.Extends = GridListMediator;
this.initialize = function(viewComponent) {
this.parent(ObjectsListLeftMediator.ID,viewComponent);
this.onListClick = this.onListClick.bindWithEvent(this);
this.onLineClick = this.onLineClick.bindWithEvent(this);
this.onKeyDown = thi... |
(function() {
beforeEach(function() {
this.id = _.uniqueId('test-');
return this.DOMElement = d3.select(document.body).append('div').classed('test-dom-container', true).classed("" + this.id, true).node();
});
afterEach(function() {
var testReport, testsReportsElements;
testsReportsElements = docu... |
var gulp = require('gulp');
// var plumber = require('gulp-plumber');
// var concat = require('gulp-concat');
// var uglify = require('gulp-uglify');
// var rename = require('gulp-rename');
// var connect = require('gulp-connect');
// var minifyCss = require('gulp-minify-css');
// var less = require('gulp-less');
// va... |
YUI.add('yui2-imageloader', function(Y) {
var YAHOO = Y.YUI2;
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.6.0
*/
/**
* The image loader is a framework to dynamically load images
* according to certain tri... |
//Language: German
//Translators: softwarerero, robhunt3r, sclausen, sarasate
var de = {
add: "hinzufügen",
and: "und",
back: "zurück",
changePassword: "Passwort ändern",
choosePassword: "Passwort auswählen",
clickAgree: "Durch die Registrierung akzeptieren Sie unsere",
configure: "Konfigurieren",
crea... |
define("ghost/utils/link-view",
[],
function() {
"use strict";
Ember.LinkView.reopen({
active: Ember.computed('resolvedParams', 'routeArgs', function () {
var isActive = this._super();
Ember.set(this, 'alternateActive', isActive);
return isActive;
... |
var debug = require('debug')('prototype-chain');
var test = require('tape');
test('### this is the VariableEnvironment for Global EC also known as Global Object ###', function(t) {
//Global declarations of functions and variables creates properties inside 'this' object because it is VariableEEnvironment for the Glo... |
'use strict';
/**
* Module dependencies.
*/
const request = require('supertest');
const should = require('should');
const util = require('util');
const Mowa = require('../lib/mowa.js');
function createMowa() {
return new Mowa('MowaBVT', { etcPath: 'test/etc-mocha', modulesPath: 'test/web_modules' });
}
descri... |
var newBlock = require('./new-block.js');
module.exports = function lostAlign(css, settings) {
css.walkDecls('lost-align', function alignDirectionFunction(decl) {
var declArr = [];
var alignDirection;
var flexbox = settings.flexbox;
declArr = decl.value.split(' ');
alignDirection = declArr[0];
... |
var intersectsWithSome = require('./intersection').intersectsWithSome;
var byDescStartAndLength = require('./byDescStartAndLength');
module.exports = function greedyIntervalPacker(intervals, options) {
options = options || {};
if (!Array.isArray(intervals)) {
throw new Error('The interval packer requi... |
/* global describe it expect beforeEach afterEach */
var $ = window.jQuery
describe('stick-at-top-when-scrolling', function () {
'use strict'
var GOVUK = window.GOVUK
var $stickyElement
var $stickyWrapper
beforeEach(function () {
$stickyElement = $('<div class="stick-at-top-when-scrolling"></div>')
... |
// helper function for Timeslider
function timestamp(str) {
return new Date(str).getTime();
}
// noUiSlider -> fo... |
/**
* SymCalc.js
* @copyright Copyright 2014 Rolf Lindén
* @mailto rolind@utu.fi
* @licence MIT licence
*/
// Environment setup code
var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function';
var ENVIRONMENT_IS_WEB = typeof window === 'object';
var ENVIRONMENT_IS_WORKER = typeof importScri... |
/**
* @file establishmentlistcontext.js
* @brief Establishment list for organisation context menu
* @author Frédéric SCHERMA (INRA UMR1095)
* @date 2017-10-20
* @copyright Copyright (c) 2017 INRA/CIRAD
* @license MIT (see LICENSE file)
* @details
*/
let Marionette = require('backbone.marionette');
let View = ... |
App.Views.NotebookShow = Support.CompositeView.extend({
template: JST["notebooks/notebook_show"],
render: function() {
var content = this.template({ notebook: this.model });
this.$el.html(content);
this.addNotes();
return this;
},
addNotes : function() {
this.appendChild(new App.Views.Note... |
'use strict';
define(['app'], function (app) {
var AboutController = function ($scope) {
};
AboutController.$inject = ['$scope'];
app.register.controller('AboutController', AboutController);
}); |
/**
* `Polymer.IronMenuBehavior` implements accessible menu behavior.
*
* @demo demo/index.html
* @polymerBehavior Polymer.IronMenuBehavior
*/
Polymer.IronMenuBehaviorImpl = {
properties: {
/**
* Returns the currently focused item.
* @type {?Object}
*/
focused... |
import {_XPathResult} from './index'
function isWordHtml(html) {
return /(class="?Mso|style=(?:"|')[^"]*?\bmso-|w:WordDocument|<o:\w+>|<\/font>)/.test(
html
)
}
export default (html, doc) => {
if (!isWordHtml(html)) {
return doc
}
// xPaths for elements that will be removed from the document
cons... |
/* global describe, it */
const { PassThrough } = require('stream')
const { strictEqual } = require('assert')
const irc = require('slate-irc')
const twitch = require('../src/twitch')
describe('User colour', function () {
describe('color', () => {
it('sends a .color privmsg to Twitch', done => {
let stream ... |
(function() {
var http;
http = require("http");
exports.importFeeds = function(options, cb) {
var parse_api;
parse_api = require("./parse-api")(options);
return http.get(options.feed_url, function(res) {
var body;
body = "";
res.on("data", function(chunk) {
body += chunk;
... |
// reviews reducer
import { combineReducers } from 'redux'
import { RECEIVE_ICECREAM_SUCCESS, RECEIVE_ICECREAM_ERROR } from '../actions/iceCreams'
import { ADD_REVIEW, ADD_REVIEW_SUCCESS, ADD_REVIEW_ERROR } from '../actions/reviews'
import { ADD_COMMENT_SUCCESS } from '../actions/comments'
export function byId(state=... |
/*
* 冒泡排序:边比较边交换,一次遍历找到最大的元素,移动到最后端
* 时间复杂度: O(n^2)
* 空间复杂度: O(1)
* 稳定性:稳定
* https://zh.wikipedia.org/wiki/%E5%86%92%E6%B3%A1%E6%8E%92%E5%BA%8F
*/
function bubbleSort(arr) {
var len = arr.length;
for(var i=0; i<len-1; i++) {
for(var j=0; j<len-i-1; j++) {
if (arr[j] > arr[j+1]) {
var temp;
... |
const requireDir = require('require-dir');
requireDir('./tasks'); |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
export const styles = {
/* Styles applied to the root element. */
root: {
margin: 0,
padding: '24px 24px 20px',
flex... |
/* jshint latedef:false */
/* jshint forin:false */
//
// Copyright (c) Microsoft. All rights reserved.
//
// 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/lice... |
import React from 'react'
import { Sigma, RandomizeNodePositions, RelativeSize, EdgeShapes, ForceAtlas2 } from '../src/index';
class EdgeLabelSample extends React.Component {
render() {
let graph = {
nodes: [
{id: 'a', label: 'A'},
{id: 'b', label: 'B'},
{id: 'c', label: 'C'}
... |
// 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';
//Start by defining the main module and adding the module dependencies
angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies);
// Setting HTML5 Location Mode
angular
.module(ApplicationConfiguration.applicationModuleName)
... |
var assert = require("assert"),
global = global || require ("../../main/global/global.js").init("Test"),
fs = require("fs"),
Zip = require ("../../main/webServer/zip.js");
/* connect to the 'dataBase' and prepare everything */
before(function(done){
this.timeout(12042);
// write some stuff to the data... |
/**
* Allows you to register actions that when dispatched, send the action to the
* server via a socket.io socket.
* `criteria` may be a function (type, action) that returns true if you wish to send the
* action to the server, array of action types, or a string prefix.
* the third parameter is an options object with ... |
var fs = require('fs');
Class(Cobalt.Logger, 'File')({
prototype : {
file : null,
formatterOpts : {},
init : function (config) {
if (config) {
for (property in config) {
this[property] = config[property];
}
}
this._stream = fs.createWriteStream(this.file, {fl... |
define(["myApp/hello"], function(){
return function(){
return "Hello World !";
}
})
|
(function (angular) {
'use strict';
angular.module('DepartmentModule')
.controller('ListDepartmentController', ['$scope', 'toastr', 'Departments', '$state',
function ($scope, toastr, Departments, $state) {
$scope.me = window.SAILS_LOCALS.me;
if (!$scope.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.renderThumbStyle = renderThumbStyle;
var BAR_MAP = exports.BAR_MAP = {
vertical: {
offset: 'offsetHeight',
scroll: 'scrollTop',
scrollSize: 'scrollHeight',
size: 'height',
key: 'vertical',
axis: 'Y',
cl... |
// English
'use strict';
var en = function() {}
en.code = 'en';
en.data = {
/* New Generics */
x_CancelReplaceTx : 'Cancel or Replace Transaction',
x_CancelTx : 'Cancel Transaction',
x_PasswordDesc : 'This password * encrypts * your private key. This does not act as a seed to ge... |
(function(){
'use strict';
angular.module('subcategorias').service('SubCategoriaService', SubCategoriaService);
function SubCategoriaService($http) {
var urlBase = 'api/subcategorias/';
this.find = function(cat) {
return $http.get(urlBase+cat._id);
};
this.findOne = funct... |
const test = require('ava');
const { createUser, destroy, setup } = require('../../../../test/helpers/setup');
test.before(async t => {
t.context.server = await setup({ usePlugins: false });
t.context.userObj = await createUser(t.context.server, { role: 'admin' });
t.context.auth = {
strategy: 'ses... |
export default {
key: 'E',
suffix: '9b5',
positions: [
{
frets: '1221',
fingers: '1221',
barres: [1, 2],
capo: true
},
{
frets: '3645',
fingers: '1423'
},
{
frets: '7869',
fingers: '2314'
},
{
frets: 'baab',
fingers: '2113',
... |
import _ from 'lodash'
import React, { Component } from 'react'
import YTSearch from 'youtube-api-search'
import SearchBar from './search_bar'
import VideoList from './preview_list'
import VideoDetail from './video_detail'
const API_KEY = 'AIzaSyD6qmg6TatBfHT0sEhi9Pd8z2yjpbOHjO0'
class App extends Component {
cons... |
import React from 'react'
import { Input } from 'reactstrap'
import TextareaAutosize from 'react-autosize-textarea'
import RichTextEditor from 'components/RichTextEditor'
import ColorInput from 'components/ColorInput'
import DateInput from 'components/DateInput'
import UrlInput from 'components/UrlInput'
import preve... |
import React, { Component } from 'react'
import SearchBar from '../containers/search_bar'
import WeatherList from '../containers/weather_list'
export default class App extends Component {
render () {
return (
<div>
<div><SearchBar/></div>
<div><WeatherList/></div>
</div>
)
}
}
|
exports.checkAuth = function(req, res, next) {
if (!req.isAuthenticated()) {
res.send('You are not authorized to view this page, please <a href="/signin">sign in</a>.');
} else {
next();
}
}
exports.createHash = function(bcrypt, username, password, db, done){
bcrypt.hash(password, bcrypt.genSaltSync(10)... |
import { createPlannerGivenUserID,
removePlanner } from '../student-logic-controller/crud-controller/planner/methods';
import { insertNewSemesterInPlanner } from '../student-logic-controller/crud-controller/semester/methods';
import { insertOneModuleInSemester } from '../student-logic-controller/crud-controlle... |
'use strict';
angular.module('app', []).
controller('ctrl', function($scope) {
$scope.rowList = [{
col1: {value: 'r1c1'},
col2: {value: 'r1c2'}
}, {
col1: {value: 'r2c1'},
col2: {value: 'r2c2'}
}, {
col1: {value: 'r3c1'},
col2: {value: 'r3c2'}
}];
});
|
'use strict';
/* Controllers */
angular.module('myApp.controllers', [])
.controller('ChartController', ['$scope', 'SampleDataService', function ($scope, SampleDataService) {
if ($scope.chartData == undefined) {
$scope.chartData = [
{
"year": "2001",
... |
/* Thing > Intangible > StructuredValue > OpeningHoursSpecification - A structured value providing information about the opening hours of a place or a certain service inside a place.. Generated automatically by the reactGenerator. */ var OpeningHoursSpecification= React.createClass({displayName: "OpeningHoursSpecifica... |
/**
* Roundcube editor js library
*
* This file is part of the Roundcube Webmail client
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (c) 2006-2014, The Roundcube Dev Team
*
* The JavaScript code in this page is free software: you can
* redist... |
/**
* Created by AlexCD on 24.04.2014.
*/
/*global angular, CustomJsSlider, Integers, CheckRange*/
angular.module('modules.directives', [])
.directive('customJsSlider', CustomJsSlider)
.directive('integers', Integers)
.directive('checkRange', CheckRange); |
const gulp = require('gulp')
const config = require('../utils/config.service').config
const browserSync = require('browser-sync')
const path = require('path')
module.exports = () => {
const bs = browserSync.get('SIM')
gulp.watch([
path.join(config.scss, '**/*.scss')
], gulp.series('build:scss'))
... |
export const PLAYER = 'PLAYER'
export const SOLID = 'SOLID'
export const COLLECTABLE = 'COLLECTABLE'
export const PARTICLE = 'PARTICLE'
export const TICK = 'TICK'
export const NOTIFY = 'NOTIFY'
export const SPAWNPARTICLES = 'SPAWNPARTICLES'
export const BLOCKED = 'BLOCKED'
export const BLOCKEDUP = 'BLOCKEDUP'
export ... |
Package.describe({
name: "nova:newsletter",
summary: "Telescope email newsletter package",
version: "0.26.0-nova",
git: "https://github.com/TelescopeJS/telescope-newsletter.git"
});
Npm.depends({
"html-to-text": "1.3.1"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
api.use([
'... |
const path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const resourcesRule = {
test: /\.(jpeg|png|svg|ico|cur)$/,
use: {
loader: 'url-loader',
options: {
limit: 1000,
name: '[name].[hash:6].[ext]'
}
}
};
const fontRule... |
import $ from 'jquery';
export default function () {
let jews = {};
['Top', 'Left'].forEach(function (v) {
Object.defineProperty(document.body, 'scroll' + v, {writable: false, value: 0});
});
['By', 'To'].forEach(function (v) {
window['scroll' + v] = function () {};
});
var _fil... |
(function () {
'use strict';
angular
.module('porttare.config')
.config(function () {
moment.locale('es');
});
})();
|
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
header = require('gulp-header'),
uglify = require('gulp-uglify'),
plumber = require('gulp-plumber'),
clean = require('gulp-clean'),
rename = require('gulp-rename'),
package = requir... |
var meroboto = require('../lib');
var sensor = new meroboto.Sensor({
timeInterval: 1000,
fn: function() {
return Math.floor((Math.random() * 10) + 1);
}
});
var sensor_2 = new meroboto.Sensor({
timeInterval: 1000,
fn: function() {
return Math.floor((Math.random() * 20) + 1);
}
});
var action = ... |
$(document).ready(function(){
var struktur = {};
$(".submit").addClass("disableWindow");
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
$("#inputKalFra").val(today.toISOString().substring(0, 10));
$("#inputKalTil").val(tomorrow.toISOString().sub... |
var DataTypes = require('../../../lib/db/dataTypes.js');
describe('DataTypes tests', function() {
it('get the enum name', function() {
var name = DataTypes.name(0);
name.should.be.equal('BOOLEAN');
name = DataTypes.name(1);
name.should.be.equal('TINYINT');
name = DataTypes.name(2);
name.shou... |
jssor_slider1_starter = function (containerId) {
var _SlideshowTransitions = [
//Rotate Overlap
{ $Duration: 1200, $Zoom: 11, $Rotate: -1, $Easing: { $Zoom: $JssorEasing$.$EaseInQuad, $Opacity: $JssorEasing$.$EaseLinear, $Rotate: $JssorEasing$.$EaseInQuad }, $Opacity: 2, $Round: { $Rotate: 0.5 }, $Brother: {... |
exports.category = [
{
name: 'clothes',
created_at: new Date,
updated_at: new Date
},
{
name: 'shoes',
created_at: new Date,
updated_at: new Date
},
{
name: 'food',
created_at: new Date,
updated_at: new Date
},
{
name: 'electronics',
created_at: new Date,
up... |
const url = require('url');
const path = require('path');
const electron = require('electron');
const mainWindowDefaultConfig = require('./windows/main/config');
const settingsWindowDefaultConfig = require('./windows/settings/config');
const {BrowserWindow} = electron;
const DEFAULT_WINDOW_CONFIG = {
center: false,... |
import React, { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail'
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
);
}
}
|
'use strict';
/**
* Main module of the application.
*/
angular.module('test.app', [
'ngAnimate',
'ngMessages',
'ngTouch',
'pascalprecht.translate',
'ui.router',
'test.config',
'test.login',
'test.main',
'test.model',
'test.photos',
'test.translation',
'test.util'
... |
import {default as process, processAST} from '../../src'
import fs from 'fs'
const inFile = __dirname + '/input.js'
const inSource = fs.readFileSync(inFile).toString()
const options = {
sourceFileName: inFile,
sourceMapName: `${inFile}.map`,
values: {}
}
options.values.PRODUCTION = true
const outProducti... |
import { metaFor } from '../../utils';
import { render } from 'htmlbars-runtime';
export default function componentHook(renderNode, env, scope, tagName, params, attrs, templates, visitor) {
const renderOptions = {};
const { contextualElement } = renderNode;
let element;
if (contextualElement === scope.self) {... |
/**
* 클래스 방식의 상속
*/
// 부모 생성자
function Parent(name) {
this.name = name || 'Adam';
}
// 생성자의 프로토타입에 기능을 추가
Parent.prototype.say = function () {
return this.name;
};
// 아무 내용이 없는 자식 생성자
function Child(name) {
}
// 상속
inherit(Child, Parent);
/**
* 클래스 방식의 상속 패턴 #1 - 기본 패턴
*
* - 프로토타입이 부모 생성자 함수로 생성한 객체 인스턴... |
'use strict';
var registerService = require('services/register');
var utils = require('utils');
var name = 'services.question';
registerService('factory', name, [require('services/http_service'),
require('services/parallel_promise'),
require('servi... |
/**
* Developer: Ksenia Kartvelishvili
* Date: 20.04.2015
* Copyright: 2009-2016 Comindware®
* All Rights Reserved
* Published under the MIT license
*/
import { helpers } from 'utils';
import { Handlebars } from 'lib';
import list from 'list';
import template from '../templates/panel.hbs';
impo... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z" />
, 'BluetoothOutlined... |
'use strict';
const ob = require('objob');
const pluralize = require('pluralize');
const _ = require('lodash');
const indefinite_article = (word) => {
switch (word.toLowerCase().substring(0, 1)) {
case 'a':
return 'an';
case 'e':
return 'an';
case 'i':
return 'an';
c... |
(function() {
'use strict';
angular
.module('app.directives')
.directive('ccWidgetHeader', ccWidgetHeader);
/* @ngInject */
function ccWidgetHeader () {
//Usage:
//<div data-cc-widget-header title="vm.map.title"></div>
// Creates:
// <div data-cc-widget-... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var index = require('./routes/index');
var users = require('./routes/users');
var events = require(... |
/// <reference path="../JSBus/TransportInterfaces.ts" />
/// <reference path="../typings/jquery/jquery.d.ts" />
var JSBus;
(function (JSBus) {
var SignalRSendTransport = (function () {
function SignalRSendTransport(hub) {
this.hub = hub;
// Since SignalR is dependent on JQuery, it is... |
import React from 'react';
import axios from 'axios';
export const userLogin = function(username, password) {
var context = this;
axios.post('/login', {
username: username,
password: password
})
.then(function (response) {
if(response.status === 200) {
//If the user is logged in ... |
var resourceFound = false,
quitConditionCount = 0,
utils = require( "../../assert-to-console" ),
device = require( "../../../index" )(),
uuid = process.argv[ 2 ];
console.log( JSON.stringify( { assertionCount: 4 } ) );
function maybeQuit() {
quitConditionCount++;
if ( quitConditionCount >= 3 ) {
console.log(... |
import React from 'react';
import Component from '../src/Main'; // This is our component
import { storiesOf } from '@storybook/react';
storiesOf('Component', module)
.add('with lyef name', () => (
<Component name="lyef" />
))
.add('with another name', () => (
<Component name="another" />
... |
/*global rule, match, info, warning, error, getChildrenOfAST*/
rule('InappropriatePrivateVariableAccess', function () {
// 'use strict';
match(
function (ast) {
return ast.type === 'ExpressionStatement';// &&
//ast.expression.type === 'AssignmentExpression' &&
... |
$(document).ready(function() {
//Reward Listings
$('#list').click(function(event){
event.preventDefault();
$('.reward-list .item').addClass('list-group-item');
});
$('#grid').click(function(event){
event.preventDefault();
var item = $('.reward-list .item');
item... |
/**
* Entry point for defining Gulp tasks.
*/
// Pull in the tasks from the gulp-tasks directory.
require('require-dir')('./gulp/tasks');
// TODO: coverage https://github.com/oss-specs/specs/issues/65.
// "test-with-coverage": "PORT=1337 node_modules/.bin/istanbul cover node_modules/.bin/cucumber-js --report teamci... |
var Widgets = require("./widgets.js");
_.each([
require("./widgets/categorizer.jsx"),
require("./widgets/dropdown.jsx"),
require("./widgets/example-widget.jsx"),
require("./widgets/example-graphie-widget.jsx"),
require("./widgets/expression.jsx"),
require("./widgets/grapher.jsx"),
require("... |
/**
* Main JS file for Casper behaviours
*/
/* globals jQuery, document */
(function ($, window, undefined) {
"use strict";
var $document = $(document),
// debouncing function from John Hann
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/
debounce = fu... |
(function() {
define("kopi/tests/utils", function(require, exports, module) {
var q, utils;
q = require("qunit");
utils = require("kopi/utils");
q.module("kopi/utils");
q.test("guid", function() {
q.equal(utils.guid(), "kopi-0");
return q.equal(utils.guid("prefix"), "prefix-1");
}... |
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
"use strict";var l={"FLK":["FLK","Falklandeilanden"],"CHL":["CHL","Chili"],"TTO":["TTO","Trinidad en Tobago"],"GUF":["GUF","Frans-Guyana"],"BRA":["BRA","Brazili\u00EB"],"ARG":["ARG","Argentini\u00EB"]};(this?this:window)['DvtBaseMa... |
import * as Scrivito from 'scrivito'
Scrivito.provideEditingConfig('FactCounterWidget', {
title: 'Fact Counter',
attributes: {
key: {
title: 'Key'
},
value: {
title: 'Value'
},
postfix: {
title: 'Postfix'
},
speed: {
title: 'Speed',
values: [
{ valu... |
var path = require('path')
, assert = require('assert')
, Mincer = require('mincer');
describe('Mincer', function() {
var templateProjectPath = path.resolve(__dirname, '../templates/project');
var mincer = {};
before(function(done) {
mincer.environment = new Mincer.Environment();
mincer.assets_prefi... |
import { createCreativeLinear } from '../creative/creative_linear';
import { createClosedCaptionFile } from '../closed_caption_file';
import { createIcon } from '../icon';
import { createInteractiveCreativeFile } from '../interactive_creative_file';
import { createMediaFile } from '../media_file';
import { createMezzan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.