code stringlengths 2 1.05M |
|---|
'use strict';
/**
* Declaration of the used angular dependencies
*/
angular.module('PF.dependencies', ['ngResource', 'ngRoute', 'ngAnimate',
'ngTable', 'ui.bootstrap', 'ui.select2', 'mgcrea.ngStrap', 'toaster',
'chieffancypants.loadingBar']); |
var filteredOutUsers = [];
var userSearch, thisId, blockedAuthors = [];
(function localCheck() {
if(localStorage.blockedAuthors) {
blockedAuthors = JSON.parse(localStorage.getItem('blockedAuthors'));
}
}());
var videosByCategory = {};
var sample;
videosByCategory.all = [];
videosByCategory.addVideo = function(... |
var combine = require('stream-combiner');
var through = require('through2');
var split = require('split');
var zlib = require('zlib');
module.exports = function () {
var grouper = through(write, end);
var current;
function write (line, _, next) {
if (line.length === 0) return next();
var r... |
import expect from 'expect';
import todos from './todos';
describe('todos reducer', () => {
it('should handle initial state', () => {
expect(
todos(undefined, {}),
).toEqual([]);
});
it('should handle ADD_TODO', () => {
expect(
todos([], {
type: 'ADD_TODO',
text: 'Run the... |
'use strict';
var path = require('path');
var metalsmith = require('metalsmith');
var markdown = require('metalsmith-markdown');
var assets = require('metalsmith-assets');
var layouts = require('metalsmith-layouts');
var multiLanguage = require('metalsmith-multi-language');
var permalinks = require('metalsmith-permal... |
var ReportGraphSingleStudent = React.createClass({displayName: "ReportGraphSingleStudent",
render: function() {
console.log(this.props.student);
return (
React.createElement("div", {className: "graph-container"},
React.createElement("div", {className: "graph-title"}, "Performance Details for "),... |
import React from 'react';
import _ from 'underscore';
import Target from './target-container.js';
import * as _Themes from './themes.js';
const Themes = _.omit(_Themes, '__esModule'); // Because it gets added by default
class Body extends React.Component {
constructor() {
super();
this.state = {
... |
Template.projectItem.helpers ({
ownProject: function () {
return this.userId === Meteor.userId();
}
});
Template.projectItem.events ({
'click .delete-project': function(event) {
event.preventDefault();
var currentProjectId = this._id;
Projects.remove(currentProjectId);
... |
var imprt = require('rework-import');
var rework = require('rework');
var inherit = require('rework-inherit');
/**
* Quickly replaces module stuff in the source before reworking it
*/
function prepare(source) {
var structure = source
.replace(/\bextends\s+([^;]+?)(?:\s+from\s+([^;]+?))?\s*\{/g, function(ma... |
angular.module('formly.render')
.directive('formlyField', function formlyField($http, $compile, $templateCache, formlyConfig) {
'use strict';
return {
restrict: 'AE',
transclude: true,
scope: {
optionsData: '&options',
formId: '=formId',
index: '=index',
result: '=formResult'
},
link: function f... |
import '../stylesheets/index.scss'
import Alert from './components/Alert'
import Pagination from './components/Pagination'
import Progress from './components/Progress'
import Card from './components/Card'
import Vital from './components/Vital'
module.exports = {
Alert,
Pagination,
Progress,
... |
import { transform as babelTransform } from 'babel-core';
import babelrc from './babelrc';
export default function transform(content) {
return babelTransform(content, babelrc).code;
}
|
Array.prototype.find = function(fn) {
var count = 0;
while(count < this.length) {
if(fn(this[count])) {
return this[count];
}
count++;
}
return null;
};
var SnakeOpts = {
size: 4
};
var SnakeGame = new Class({
exchange : null,
directions : {
down : { x: 1, y: 0 },
up : { x: -1, y: 0 },
righ... |
/**
* Module dependencies.
*/
var inherits = require('util').inherits
, Item = require('./item')
, util = require('./util')
, charm = util.charm
, Point = util.Point;
/**
* Expose `List`.
*/
module.exports = List;
function List() {
List.super_.call(this);
this._width = 'auto';
this._actualWidth ... |
/**
* Created by gkarak on 29/7/2016.
*/
'use strict';
var stubRuns = require('../services/stub');
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
var fs = require('fs-extra');
describe('generator-makrina:model', function () {
// run with and without options... |
//Gruntfile
module.exports = function(grunt) {
//Initializing the configuration object
grunt.initConfig({
// static analysis
jshint: {
myFiles: ['./client/source/**/*.js', './server/**/*.js', './config/**/*.js']
},
// Client JavaScript source manipu... |
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.reveal = {
name : 'reveal',
version : '5.0.3',
locked : false,
settings : {
animation: 'fadeAndPop',
animation_speed: 250,
close_on_background_click: true,
close_on_esc: true,
dismiss_modal_... |
/*
* 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.
*/
export const Anchors = {
TOP: 'TOP',
RIGHT: 'RIGHT',
BOTTOM: 'BOTTOM',
LEFT: 'LEFT'
};
export const AsyncStatus =... |
/**
* Node.js API Starter Kit (https://reactstarter.com/nodejs)
*
* Copyright © 2016-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/*
* Minimalistic script runner. Usage example:
... |
'use strict'
let nodePort = process.env.PORT || 3000;
let dbConn = process.env.DBCONN || 'mongodb://chase:gqh3ghk1@ds023478.mlab.com:23478/heroku_gqh3ghk1'; //comment to setup local db ***
// let dbConn = "mongodb://localhost/fifty-fifty"; //uncomment for local db ***
const express = require('express');
const co... |
function getCookies() {
var parsedCookies = {};
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var parts = cookie.split('=');
parsedCookies[parts.shift().trim()] = decodeURI(parts.join('='));
}
return parsedCookies;
}
function ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.2.4.4_A1_T3;
* @section: 15.2.4.4;
* @assertion: The valueOf method returns its "this" value;
* @description: "this" value is a string;
*/
//CHECK#1
if (typeo... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/// <reference types="mocha" />
const chai_1 = require("chai");
const puzzles_1 = require("../puzzles");
describe("the crossword solver", () => {
it("can fill up a simple crossword", () => {
const solver = new puzzles_1.Crossword.S... |
'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
});
/*
* Function that is called when the document is ready.
*/
function initializePage() {
$('#loginbt').click(function(e) {
e.preventDefault();
//console.log('clicked... |
const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const cssnano = require('cssnano');
const extractSass = new ExtractTextPlugin({
... |
Location = new Mongo.Collection("location");
var location_doc = {
address:'',
floor:0,
map:'', //a visual map of production floor
positions:[]//a list of {x,y} position where fixture could be placed
}; |
var fn = require("./index.js");
describe("test number separator", () => {
it("shouldReturn1If1", () => {
expect(fn(1, " ")).toBe("1");
});
it("shouldReturn2If2", () => {
expect(fn(2, " ")).toBe("2");
});
it("shouldReturn100If100", () => {
expect(fn(100, " ")).toBe("100");
});
it("shouldReturn... |
(function() {
angular
.module('activeAngular', ["ngSanitize"]);
})();
|
import {Dispatcher} from 'flux';
import assign from "object-assign";
var AppDispatcher = assign({}, new Dispatcher() , Dispatcher.prototype, {
handleViewAction : function (action){
this.dispatch({
source:'VIEW_ACTION',
action: action
});
}
});
export default AppDispatcher;
|
/*!
* Fierce Planet
*
* Copyright (C) 2011 Liam Magee
* MIT Licensed
*/
var WorldVisionWorlds = WorldVisionWorlds || new Campaign();
var WorldVisionModule = WorldVisionModule || {};
var WorldVisionResources = WorldVisionResources || {};
/*!
* Fierce Planet - ResourceKinds
*
* Copyright (C) 2... |
const PyShell = require('python-shell');
const pySettings = require('../config/pythonSettings.js');
const logger = require('../logger.js');
// create std in/out listeners for error handling
const pyProcess = new PyShell('./server/chatterbot/chatterbot.py', pySettings);
pyProcess.on('message', message => {
logger.lo... |
import popup from '../popup';
export default function email(url, subject = '', body = '') {
url = encodeURIComponent(url);
subject = encodeURIComponent(subject);
const newlines = encodeURIComponent('\r\n\r\n');
body = body ? `${encodeURIComponent(body)}${newlines}` : '';
return popup(`mailto:?sub... |
'use strict';
var APP_ENVIRONMENT_STATE = 'develop';
var _ = require('lodash'),
path = require('path'),
glob = require('glob'),
assets = require('./assets');
module.exports = (function (appState) {
var config = {},
defaults = {
secure: false,
baseUrl: '//localhost',
... |
var React = require('react');
//var _ = require('underscore');
//var moment = require('moment');
require('./index.css');
var TimePicker = React.createClass({
displayName: 'TimePicker',
getInitialState: function() {
//var value = this.props.value : this.props.defaultValue;
return {
value: null
... |
var searchData=
[
['black',['BLACK',['../canvas_8h.html#gadf764cbdea00d65edcd07bb9953ad2b7af77fb67151d0c18d397069ad8c271ba3',1,'canvas.h']]]
];
|
new Test.Unit.Runner({
'testDateToJSON': function() {
this.assertMatch(
/^1970-01-01T00:00:00(\.000)?Z$/,
new fuse.Date(fuse.Date.UTC(1970, 0, 1)).toJSON());
},
'testDateToISOString': function() {
this.assertMatch(
/^1970-01-01T00:00:00(\.000)?Z$/,
new fuse.Date(fuse.Date.UTC(197... |
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const sassLoaders = [
'css-loader',
'postcss-loader',
'sass-loader'
]
const config = {
entry: {
app: ['./src/index']
},
output: {
path: path.j... |
import StyleSheet from 'react-style';
module.exports = StyleSheet.create({
flexcontainerRow: {
display: '-webkit-flex',
display: 'flex',
WebkitFlexDirection: 'row',
flexDirection: 'row',
WebkitAlignItems: 'center',
alignItems: 'center',
WebkitJustifyContent: 'center',
justify... |
define(["Phase", "Pilot", "RangeRuler", "UpgradeCard",
"process/Action", "process/AttackDice", "process/DamageDealer", "process/DefenseDice", "process/Selector", "process/ShipDestroyedAction", "process/TokenAction"],
function(Phase, Pilot, RangeRuler, UpgradeCard,
Action, AttackDice, DamageDealer, DefenseDic... |
import React from 'react';
import ReactDOM from 'react-dom';
import WeatherWidget from './WeatherWidget';
import WeatherWidgetForm from './WeatherWidgetForm';
import queryStringToJSON from './queryStringToJSON';
import './index.css';
const weatherWidgetApp = document.querySelector('.weather-widget-app');
const qs = qu... |
angular.module( 'formHelpers', [] )
//TODO:
.directive( 'cfRequired', function() {
return {
link: function( scope, element, attrs ) {
//This doesn't work, but illustrates the idea...
//element.attr('ng-class',"{'has-error':(form.$dirty && form.userName.$error.required)}");
}
};
})
;
|
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*spec.js']
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js']
}
... |
var tree={"files":["LICENSE.md","README.md"],"dirs":{"src":{"files":["main.coffee"],"dirs":{"views":{"dirs":{"mixins":{"files":["fast-row.coffee"]}}}}}}}; |
const Promise = require('bluebird')
const fs = require('fs-extra')
const path = require('path')
const moment = require('moment')
const CSON = require('cson')
const { isEqual, last, padStart, size } = require('lodash')
const assert = require('assert')
const DEST = path.resolve(__dirname, '../assets/data/fcd')
// curre... |
/* Parte */
Router.route('parte', function() {
Router.go('parteIndex');
});
Router.route('parte/index/:limit?/', {
name: 'parteIndex',
controller: ParteController,
action: 'index',
});
Router.route('parte/insert/', {
name: 'parteInsert',
controller: ParteController,
action: 'insert',
});
Rou... |
import { DodecahedronGeometry } from 'three';
import VglPolyhedronGeometry from './vgl-polyhedron-geometry';
import { detail, inst, radius } from '../constants';
export default {
extends: VglPolyhedronGeometry,
computed: {
/** The THREE.DodecahedronGeometry instance. */
[inst]() { return new DodecahedronGe... |
/**
MIT License
Copyright (c) 2015-present, Facebook, Inc.
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... |
/**
* @fileoverview Utility functions for React components detection
* @author Yannick Croissant
*/
'use strict';
var util = require('util');
var DEFAULT_COMPONENT_NAME = 'eslintReactComponent';
/**
* Detect if we are in a React Component
* A React component is defined has an object/class with a property "rende... |
'use strict';
var d3;
var datafile = "./data/prod_val.json";
var margin = {top: 20, right: 20, bottom: 30, left: 40},
width = 900 - margin.left - margin.right,
height = 400 - margin.top - margin.bottom;
var x0 = d3.scale.ordinal()
.rangeRoundBands([0, width], 0.1);
var x1 = d3.scale.ordinal();
var y = ... |
/**
Class Insert
*/
function Insert(argument) {
}
Insert.prototype = require('./update.js');
/**
* insert
* @param {Object} data
* @return {Object} this, {Function} callback
*/
Insert.prototype.insert = function(data, callback){
var keys = [];
var values = []
for(key in data){
if(data[key] != null){
... |
import @ from "contracts.js"
@ let Obj = {
a: Num,
b: Str,
c: {
d: Num
}
}
function baseSort(obj) {
var arr = [];
for (var i = 0; i < obj.a; i++) {
arr.push(i);
}
arr.sort();
return obj;
}
@ (Obj) -> Obj
function sort(obj) {
var arr = [];
for (var i = 0; i... |
import { assert } from 'chai';
import { GitHubConnector } from './connector';
let requestQueue = [];
function mockRequestPromise(requestOptions) {
// Ensure we expected to get more requests
assert.notEqual(requestQueue.length, 0);
const nextRequest = requestQueue.shift();
// Ensure this is the request we exp... |
'use strict';
var express = require('express'),
router = express.Router(),
bodyParser = require('body-parser'), //parses information from POST
methodOverride = require('method-override'), //used to manipulate POST
PlayerRepository = require('../repository/player'),
ErrorHelper = require('../helper/... |
SystemJS.config({
baseURL: "/",
production: true,
paths: {
"npm:react@15.0.1": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.min.js",
"npm:react-dom@15.0.1": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.min.js",
"github:": "./jspm_packages/github/",
"npm:": "./jspm_p... |
var assert = require('assert'),
Buffer = require('buffer').Buffer,
faviconCanvas = require('../favicon-canvas'),
sketch,
rand;
//get a random element out of an Array
rand = function( arr ){
return arr[ ~~(Math.random()*arr.length) ];
};
//draw a basic design with the canvas2d api
sketch = function(... |
describe("bootstrap-tagsinput", function() {
describe("with strings as items", function() {
testTagsInput('<input type="text" />', { trimValue: true }, function(){
it("trim item values", function() {
this.$element.tagsinput('add', ' some_tag ');
this.$element.tagsinput('add', 'some_tag '... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
// Test dependencies are required and exposed in common/bootstrap.js
require('../common/bootstrap');
var builds = [{
sha: 'ac4d8d8a5bfd671f7f174c2eaa258856bd82fe29',
released: '2015-05-18T02:21:57.856Z',
version: '0.0.0'
}, {
sha: '9a85c84f5a03c715908921baaaa9e7397985bc7f',
released: '2015-08-12T03:01:57.856... |
version https://git-lfs.github.com/spec/v1
oid sha256:3787f2366194c9ccfa4463afbf8b6e60063ca61be792a72bee95f59d38b32cc5
size 311875
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
RegExp.prototype.exec(string) Performs a regular expression match of ToString(string) against the regular expression and
returns an Array object containing the resul... |
/* ------------------------------------------------------------------------------
*
* # Datatables data sources
*
* Specific JS code additions for datatable_data_sources.html page
*
* Version: 1.0
* Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */
$(fun... |
var aActuator = new Array("ledb1","ledb2","ledm1","ledm2","lcd");
window.onload = function () {
var index;
if (zXmlHttp.isSupported()) {
for (index in aActuator) {
var divAdditionalLinks = document.getElementById(aActuator[index]);
if(divAdditionalLinks) {
get_actuator(aActuator[index]);
}
} ... |
const express = require('express');
const app = express();
const port = 80;
app.use(express.static(__dirname + '/client/public'));
app.listen(port, function(){
console.log('MMUD app listening on port '+port);
});
|
import React from 'react';
import { Grid, Col, CardItem, Row } from 'native-base';
import TextWithStackedNote from '../../common/text-with-stacked-note/textWithStackedNote';
import GlobalStyle from '../../../resources/globalStyle';
import I18n from '../../../i18n';
const ADDRESS_STRING = I18n.t('account.address');
co... |
/**
* Application configuration declaration.
*/
/*
require.config({
baseUrl:'../src/js/',
paths:{
jquery : 'libs/jquery/jquery',
bootstrap:'libs/bootstrap/bootstrap.min',
build:'build',
qunit:'../../node_modules/qunitjs/qunit/qunit'
},
shim:{
jquery:{
... |
/// <reference path="../../typings/functions.d.ts" />
export function xtract_init_dct(N) {
var dct = {
N: N,
wt: []
};
for (var k = 0; k < N; k++) {
dct.wt[k] = new Float64Array(N);
for (var n = 0; n < N; n++) {
dct.wt[k][n] = Math.cos(Math.PI * k * (n + 0.5) / N)... |
(function (root, factory) {
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory();
} else {
root.tests = root.tests || {};
root.tests.serializers = factory();
}
})(this, function () {
return function (assert, rdf, readFile, utils, ctx) {
describe('serializers', functi... |
// @flow
import ActionTypes, { ACTION } from '../../consts/action-types';
import RootState from '../root-state';
/* eslint-disable arrow-body-style */
declare var DEBUG_MODE: boolean;
/* eslint-disable-next-line indent */
export default function RootReducer(state: RootState = new RootState(), action: ACTION) {
le... |
'use strict';
var utilities = {
contains: function (data, text) {
return data.toString().indexOf(text);
},
each: function (arr, fn) {
var len = arr.length, i = 0;
if (typeof fn !== 'function') {
throw new TypeError('No callback function added.');
}
for... |
'use strict'
const c = require('./constants')
const crc32 = require('./packet-crc32')
const packer = require('./uint8array-pack')
const pool = require('./pool-uint8array')
const pubsub = require('ev-pubsub')
const splice = require('remove-array-items')
// based on MTU for ipv4/6 networks. staying under MTU r... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("common/plugins/editor.md/lib/codemirror/lib/codemirror"));
else if (typeof define... |
export const REVISION = '138dev';
export const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
export const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
export const CullFaceNone = 0;
export const CullFaceBack = 1;
export const CullFaceFront = 2;
export const CullFaceFrontBack = ... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {fetchWeather} from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {term: ''};
this.onInputChange = this.onInputChan... |
'use strict';
const chokidar = require('chokidar');
const globby = require('globby');
const fs = require('fs-extra');
const _ = require('lodash');
const path = require('path');
const fancyLog = require('fancy-log');
const chalk = require('chalk');
const events = require('events');
const minimatch = require('minimatch'... |
/*!
* jQuery Galletas Plugin
* https://github.com/jobedom/jquery-galletas
*
* Copyright 2012, Joaquín Bernal
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
// -----------------------------------------... |
/**YEngine2D
* author:YYC
* date:2014-01-11
* email:395976266@qq.com
* qq: 395976266
* blog:http://www.cnblogs.com/chaogex/
* homepage:
* license: MIT
*/
(function () {
YE.AnimationFrame = YYC.Class(YE.Entity, {
Init: function () {
this.base();
this.ye_spriteFrames = YE.Hash... |
'use strict';
import { React, TestUtils, expect, chai, spies, defaultProps } from '../config';
import SketchComponent from '../../src/components/sketched/Sketch';
let props;
describe('Sketch', () => {
beforeEach(() => {
props = defaultProps;
});
it('should pass up data onChange', () => {
props.onCha... |
var answers = [];
var qtitle = [];
var qtitle1 = [],
qans1 = [];
var qtitle2 = [],
qans2 = [];
var qtitle3 = [],
qans3 = [];
var qinfo = [];
var currentNumber = 1;
function setQuizQuestion(questionNumber) {
// Set main question title
document.getElementById("question").innerHTML = qtitle[questionNu... |
var db = require("../../db.js");
var mongojs = require('mongojs');
var ObjectId = mongojs.ObjectId;
var forEach = require('async-foreach').forEach;
module.exports = {
createStats:function (params, callback) {
var userid = params.userid;
var answer = db.collection('answer');
var res = {count:0};
var questions... |
// requires
var util = require('util');
var qx = require("../mwp/trunk/libs/qooxdoo-4.1-sdk/tool/grunt");
// grunt
module.exports = function(grunt) {
var config = {
generator_config: {
let: {
}
},
common: {
"APPLICATION" : "mobileedd",
"QOOXDOO_PATH" : "../mwp/trunk/libs/qooxdoo... |
'use strict';
angular.module('main')
.factory('MapsService', function () {
return {
data: [],
setMaps: function (data) {
this.data.length = 0;
this.data = data;
},
getMaps: function () {
return this.data;
}
};
});
|
'use strict';
describe('Service: ShareService', function () {
beforeEach(function () {
// Mock configuration
module(function ($provide) {
$provide.constant('configuration', {
"acceptedResumeTypes": [
"html",
"text",
... |
import {
attribute,
create,
visitable,
clickable,
collection,
text,
hasClass,
isVisible
} from 'ember-cli-page-object';
let dashboardRowObject = {
owner: text('.dash-header .row-label a'),
repoName: text('.dash-header .row-content a'),
defaultBranch: text('.dash-default .row-content a'),
lastBu... |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'codesnippet', 'fi', {
button: 'Lisää koodileike',
codeContents: 'Koodisisältö',
emptySnippetError: 'Koodileike ei voi olla tyhjä... |
import EventEmitter from 'events';
class Bus extends EventEmitter {}
const bus = new Bus();
export default bus;
export function warn(message) {
bus.emit('log', 'warn', message);
}
|
angular.module('noServerApp').controller('portfolioCtrl', function($scope) {
$scope.flagTop = true;
$scope.showHideTop = function() {
$scope.flagTop = !$scope.flagTop;
};
$scope.flagBottom = true;
$scope.showHideBottom = function() {
$scope.flagBottom = !$scope.fl... |
module.exports = require("npm:constantinople@3.0.1/index"); |
var Config = {
header : "Living-Calculator",
body : "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placera... |
'use strict';
/**
* Represents a retrieve error.
*
* @author Carlos Lozano Sánchez
* @license MIT
* @copyright 2015-2016 Carlos Lozano Sánchez
*
* @module
*/
/**
* RetrieveError representes a retrieve error.
*
* @public
* @class
*/
module.exports = class RetrieveError extends Error {
/**
* Const... |
/**
* KineticJS JavaScript Library v4.0.1
* http://www.kineticjs.com/
* Copyright 2012, Eric Rowell
* Licensed under the MIT or GPL Version 2 licenses.
* Date: Aug 26 2012
*
* Copyright (C) 2011 - 2012 by Eric Rowell
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this so... |
'use strict';
module.exports = {
port: 443,
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/shoptogether',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.css',
],
js: [
'public/lib/a... |
import React from "react";
import { JSON_AUTHORIZATION_HEADERS } from "../constants/requests";
import { SupplementHistoryTableHeader, SupplementRow } from "./constants";
import { BaseLogTable } from "../resources_table/resource_table";
import { Button, Modal, ModalBody, ModalFooter, ModalHeader } from "reactstrap";
ex... |
describe("getLine", function () {
var reels = [[0,7, 10], [0, 7, 10], [0, 11, 9]];
it("should return all 0 for first line", function () {
expect(getLine(reels,0)).toEqual([0,0,0]);
});
it("should return 7, 7, 11 for second line", function () {
expect(getLine(reels,1)).toEqual([7, 7, 11])... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['sl'] = {
wsc :
{
btnIgnore : 'Prezri',
btnIgnoreAll : 'Prezri vse',
btnReplace : 'Zamenjaj',
btnReplaceAll : 'Zamenjaj vse',
... |
import React, {Component, PropTypes, cloneElement} from 'react';
import ReactDOM from 'react-dom';
import Radium from 'radium';
let styles = {
wrapper: {
width: '222px',
position: 'relative'
},
dropDown: {
border: '1px solid #ccc',
userSelect: 'none',
borderRadius: '... |
module.exports = {
'secretKey': '12345-67890-09876-54321',
'mongoUrl' : 'mongodb://my-mongo:27017/gymcompetition',
'devmode': true,
'facebook': {
clientID: '1380585175300499',
clientSecret: '92540013d51741f56b77e435d75aad5f',
callbackURL: 'https://gymcompetition.mybluemix.net/use... |
const positioning = require('stylelint-config-rational-order/groups/positioning')
const boxModel = require('stylelint-config-rational-order/groups/boxModel')
const typography = require('stylelint-config-rational-order/groups/typography')
const visual = require('stylelint-config-rational-order/groups/visual')
const anim... |
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('posts');
this.route('search', { path: '/search/:term' });
this.route('post', { path: ... |
<script type="text/worker">
//Sheet open versioning
on("sheet:opened", function() {
getAttrs(["version"], (v) => { versioning(parseFloat(v.version) || 1); });
let translations = [];
let attributes = ["attribute", "body", "agility", "reaction", "strength", "willpower", "logic", "intuition", "charisma", "edge", ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.