code stringlengths 2 1.05M |
|---|
// Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
var gulp = require('gulp');
var debug = require('gulp-debug');
var fileSystem = require('fs');
var readLine = require('readline');
// var path = require('path');
var EOL = require('os').EOL;
// file paths
var CODEPOINTS = __dirname + '/fonts/codepoints';
var MAP_FILE_NAME = __dirname + '/scss/_icons.scss';
gulp.task(... |
StartTest(function(t) {
t.plan(14)
//==================================================================================================================================================================================
t.diag("Sanity")
t.ok(typeof LazyClass == 'function', "LazyClass helper is ... |
'use strict';
const dragdropway = require('./webpack.config.dragdropway.js');
const formviewer = require('./webpack.config.formviewer.js');
const stepway = require('./webpack.config.stepway.js');
// change to your current webpack config.
// const whichConfig = dragdropway;
const whichConfig = formviewer;
// const whi... |
const path = require("path");
const merge = require("webpack-merge");
const common = require("./webpack.common.ext.js");
module.exports = merge(common, {
mode: "development",
entry: {
"background": path.join(__dirname, "lyts_chrome_extension/background.ts"),
"content": path.join(__dirname, "ly... |
/**
* This is the <%= yeoman.choices.feature %> routes configuration.
* Only configure routes in this file.
* @memberOf <%= yeoman.choices.Feature %> Module
* @namespace <%= yeoman.choices.Feature %> Routes
*/
import <%= yeoman.choices.feature %>Template from './<%= yeoman.choices.feature %>.html';
/**
* @name co... |
import WebGLGetContext from 'webgl/GetContext.js';
export default function () {
try {
let canvas = document.createElement('canvas');
if (WebGLGetContext(canvas) === null)
{
return false;
}
}
catch (error)
{
return false;
}
return true;
}
|
;(function(exports) {
exports.name = "Module 2";
exports.callMe = function(cb) {
setTimeout(function() {
console.log("Module 2, timeout expired.");
cb();
}, 1000);
};
})(typeof exports !== "undefined" ? exports : this.test_module_2 = {});
|
/**
* Created by mgobbi on 15/10/2015.
*/
require.config(
{
paths: {
cssr: "../../dist/css-rename"
}
}
);
require(["./map", "cssr"], function (map, cssr) {
cssr.CLASSES_MAP=map;
var nodes = cssr.dom.querySelectorAll(".content-CTR > .content-CNT", document.body);
console... |
import React, { Component } from 'react';
import { Jumbotron, Row, Col, Panel, Table, Image, Glyphicon } from 'react-bootstrap';
class Home extends Component {
render() {
return (
<div>
<Jumbotron>
<h1>rfurman</h1>
<p>An amalgam of random side projects.</p>
</Jumbotron>
... |
{
"translatorID": "05d07af9-105a-4572-99f6-a8e231c0daef",
"translatorType": 6,
"label": "COinS",
"creator": "Simon Kornblith",
"target": null,
"minVersion": "2.1",
"maxVersion": null,
"priority": 310,
"inRepository": true,
"browserSupport": "gcsv",
"lastUpdated": "2021-06-03 14:25:00"
}
/*
***** BEGIN LICE... |
(function() {
'use strict';
angular
.module('calendar')
.factory('siteService', siteService);
siteService.$inject = ['$http', 'utilityService'];
function siteService($http, utilityService) {
var service = {
getSite: getSite,
settings: {}
};
return service;
//Single sit... |
import { collapseDomains, addDomainHOF, removeDomainHOF } from '../../src/helpers/provider';
function getMap(doThird = false) {
const base = {
first: { x: [Math.random(), Math.random()], y: [Math.random(), Math.random()] },
second: { x: [Math.random(), Math.random()], y: [Math.random(), Math.random()] },
}... |
var mount = require('./dist/vue-testing').mount;
var mountAsChild = require('./dist/vue-testing').mountAsChild;
module.exports = {
mount: mount,
mountAsChild: mountAsChild
};
|
import styled from 'styled-components';
export const Outer = styled.div`
--navigation-buttons-height: 65px;
padding-bottom: calc(var(--navigation-buttons-height) + 15px);
`;
export const CompareList = styled.ul`
display: block;
margin: 0;
padding: 0;
list-style: none;
> li {
margin: 0;
padding:... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const monadic_react_1 = require("../../../src/monadic_react");
exports.delay_wait = monadic_react_1.delay(2000)(monadic_react_1.repeat()(monadic_react_1.string('edit', 'text')))("").then('forget', _ => monadic_react_1.unit(null));
//# sourceMa... |
/**
* @module domain/settings
* @version 1.0.0
* @author Peter Schmalfeldt <me@peterschmalfeldt.com>
*/
var _ = require('lodash');
var User = require('../../../models/api/users');
var UserSettingNotification = require('../../../models/api/user_settings_notifications');
var UserES = require('../../../elasticsearch... |
/* eslint-disable no-unused-vars */
'use strict';
const readdirp = require('..');
const read = async (directory) => {
const stream = readdirp(directory, {type: 'all'});
let i = 0;
const start = Date.now();
for await (const chunk of stream) {
i++;
// Check memory usage with this line. It should be 10M... |
'use strict';
angular.module('myApp.smartHome', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/smartHome', {
templateUrl: 'views/smartHome/smartHome.html',
controller: 'SmartHomeCtrl',
controllerAs: 'vm'
});
}]) |
export { default as Socket } from './socket'
export { WebSocket, LongPoll } from './transports'
|
var world = new VIZI.World({
viewport: document.querySelector("#vizicities-viewport"),
center: new VIZI.LatLon(51.278709, 1.080535)
});
var controls = new VIZI.ControlsMap(world.camera);
var controls = new VIZI.ControlsClick(world.camera);
var mapConfig = {
input: {
type: "BlueprintInputMapTiles",
optio... |
angular
.module('demo', ['ngSimple', 'ui.bootstrap', 'ngSanitize'])
.controller('DemoCtrl', ['$scope', function ($scope) {
// multiselect dropdown
$scope.options = [
{label: 'Not Multiselectable', value: 1, multiselectable: false},
{label: 'Multiselectable Option 1', value: 2},
{label: 'Multiselectable Option ... |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : get_comma_separated_expressions.js
* Created at : 2019-03-22
* Updated at : 2019-08-27
* Author : jeefo
* Purpose :
* Description :
* Reference :
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.... |
// 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 any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
import _ from 'lodash';
import * as types from '../constants/ActionTypes';
import { onError } from './error-handler';
import { subscribeStream } from './app';
import { fetchHomeTimeline } from './timeline';
import { Accounts } from '../../domain/models/Accounts'
import { TwitterAction } from '../middlewares/twitterClie... |
/**
* The Mood App Client - Web page variant
*/
var app = angular.module('MoodAppWebClient', [ 'ngRoute', 'ngAnimate']);
/**
* Configure the Routes
*/
app.config( [ '$routeProvider', '$locationProvider', function( $routeProvider, $locationProvider ){
$routeProvider
// Pages
.when("/", {templateUrl: mood_app_path... |
import PropTypes from 'prop-types';
import ShapeActionDescriptorBase from './ShapeActionDescriptorBase';
import MoveToAction from '../../../Shapes/MoveToAction';
class MoveToDescriptor extends ShapeActionDescriptorBase {
constructor(react3RendererInstance) {
super(react3RendererInstance);
[
'x',
... |
/*jshint evil:true devel:true */
//
// Stolen, with pride, from misc sources. John Resig's Ninja book for instance.
//
//
// Use in Node
// var $ = require('jQuery');
// var helpers = require('./lib/helpers-1.0.js');
//
// set logging level
// logging.threshold = logging.debug;
// logDebug('Loading page...');
/... |
const prefix = 'SMHTTP_';
const expires = 5000;
const WINDOW = new WeakMap();
class Storage
{
constructor($window) {
WINDOW.set(this, $window);
}
get(key) {
return JSON.parse(this.getString(key));
}
set(key, value) {
this.setString(key, JSON.stringify(value));
}
getString(key) {
var n... |
function UnauthorizedAccessError(code, message, field) {
Error.captureStackTrace(this, this.constructor);
this.type = 'UserLevelOperationalError';
this.name = 'UnauthorizedAccessError';
this.message = message || 'Unauthorized Access Token';
this.code = code || 403;
this.field = field || 'unkn... |
var
// Use the correct document accordingly with window argument (sandbox)
document = window.document,
location = window.location,
navigator = window.navigator,
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$,
// Save a reference to some ... |
'use strict';
(function() {
// Packing lists Controller Spec
describe('Packing lists Controller Tests', function() {
// Initialize global variables
var PackingListsController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating ... |
const Beers = {
beers: {
buzz: {
name: "Buzz",
style: "Honey Ale",
abv: "6.5%",
description: "A light bodied beer with a bit of sweetness. Our Buzz Honey Ale is a favorite with light beer drinkers. One of our customer favorites, it's fresh and crisp with a slightly sweet honey taste.",
... |
// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicP... |
version https://git-lfs.github.com/spec/v1
oid sha256:710544968851f3bb310f9e78b7999e745501508c1917a55573866afd5ec3df13
size 15961
|
const {r} = require('./dbConfig')
const {CreateKbz, Pulse} = require('./pulse')
exports.CreateKbz = CreateKbz
exports.CreateUser = (userObj) =>{
userObj.memberships = {live : {}, past : {}};
return r.table('users').insert(userObj,{returnChanges : true})
.then((user)=> Promise.resolve({KBZ : 'users' , id... |
//
// Gulpfile
//
// Dependencies
//
var gulp = require('gulp');
var pump = require('pump');
var path = require('path');
var sass = require('gulp-sass');
var minify = require('gulp-minify');
var rename = require('gulp-rename');
var browserify = require('browserify');
var cleanCss = require('gulp-clean-css');
var runSe... |
//用于建立管理员的表,管理员通过账号和密码登陆
module.exports = function (sequelize, DataTypes) {
return sequelize.define('Project', {
projectid: {
type: DataTypes.BIGINT(11),
primaryKey: true,
unique: true,
autoIncrement: true,
allowNull: false,
comment: ... |
import Jest from './Index';
import Renderer from './Renderer';
import ResourceManager from './ResourceManager';
import Vector from './Vector';
import Sprite from './Sprite';
import Emitter from './Emitter';
import Particle from './Particle';
import Label from './Label';
export {Jest, Renderer, ResourceManager, Vector,... |
window.onload = function () {
var tl1 = new TimelineMax({repeat:1, repeatDelay:3})
tl1
.to("#text1", 0.7, {autoAlpha: 1, left:"0px"})
.to("#text1", 0.7, {delay:1.2, autoAlpha: 0, left:"-183px"}, "image1")
.fromTo("#image2", 1.2, {visibility: "hidden", autoAlpha: 0}, { visibility: "visible", autoAlpha: 1},"image2... |
import {
ALBUMS__FETCH_LIST,
ALBUMS__UPDATE_LIST,
ALBUMS__LIST_FETCH_FAILED,
ALBUMS__FETCH_ALBUM,
ALBUMS__SET_SHOWING_ALBUM,
ALBUMS__ALBUM_FETCH_FAILED,
} from '../constants/actionTypes';
const fetchAlbumsListAction = () => ({
type: ALBUMS__FETCH_LIST,
});
const updateAlbumListAction = (albums = []) =>... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import { WebGLProgram } from './WebGLProgram';
import { BackSide, DoubleSide, FlatShading, CubeUVRefractionMapping, CubeUVReflectionMapping, GammaEncoding, LinearEncoding } from '../../constants';
function WebGLPrograms( renderer, capabilities ) {
var programs = [];
... |
var p = require('path');
var fs = require('fs');
var chalk = require('chalk');
var cst = require('../Constants');
var Titan = require('./Titan');
// rewrite console
var rConsole = require('./console');
var nConsole = rConsole.nativeConsole;
rConsole.rewriteCLI();
var CLI = module.exports = {};
/**
* CLI init.
*
... |
define(function(require , exports , module){
var $ = require("jquery");
var Backbone = require("backbone");
var datatype = require("datatype");
var AppModel = datatype.DataItem.extend({
getDefault: function () {
return {
preference: {} ,
fileTree: null ,
openFiles: new FileList() ,
... |
function metaphone(a) {
function h(a) {
b += a
}
function i(b) {
return a.charAt(c + b).toUpperCase()
}
function j(a) {
return function() {
return i(a)
}
}
var d, e, f, g, b = "",
c = 0;
if (!(a = String(a || ""))) return "";
for ... |
import React from 'react';
import CommentBox from './CommentBox.jsx';
let render = (comments, handleNewComment) => {
React.render(
<CommentBox comments={comments} handleNewComment={handleNewComment} />,
document.getElementsByClassName('container')[0]
);
};
let comments = [];
let handleNewComment = (comment) ... |
/*global describe, require, before, it, after, app, console, request, domain, __dirname */
var Helper = require("../../../models/core/helpers");
describe("Helper", function () {
'use strict';
var testSlug1 = "app*_fish()e93***2msk~`kMkLaLkLkP",
slugResult1 = "app__fish__e93___2msk__kmklalklkp";
it(... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = badge;
var _vd = require('vd');
var _vd2 = _interopRequireDefault(_vd);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var title = 'slack';
var color = '#E01563';
var pa... |
/**
* @package Graph
* @file tools/Load.js
* @author Nagy Zoltán (NAZRAAI.ELTE) <abesto0@gmail.com>
* @license Apache License, Version 2.0
*
* GraphUI tool for re-creating a graph from serialized JSON
*
* Copyright 2011 Nagy Zoltán
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... |
/*!
* Bootstrap's Gruntfile
* http://getbootstrap.com
* Copyright 2013-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
module.exports = function(grunt) {
'use strict';
// Unified Watch Object
var watchFiles = {
serverViews: ['app/views/**/*.*'],
serverJS... |
/**
* Created by Leslie on 2016/11/30.
*/
var db = require('../models/model');
var Response = require('../common/Response');
var utils = require('../common/Utils');
var q = require('q');
exports.create = function (answer) {
if (answer.content == '')
return Response.msg(200, false, '回答不能为空', {});
db.... |
/**
* 用户登录Reducers
*/
'use strict';
import types from '../ActionType/ActionTypes';
const initialState = {
role : 0,
loginStatus: false
}
export default function login(state = initialState, action){
switch (action.type) {
case types.LOGIN_STATUS_CHANGE:
return Object.assign({}, state, {
... |
"use strict";
(function () {
"use strict";
var $$$es6$dispatcher$$default = function $$$es6$dispatcher$$default(element, eventName, detail) {
element.dispatchEvent(new CustomEvent(eventName, { bubbles: true, detail: detail }));
};
window.evpack = window.evpack || {};
window.evpack.dispatc... |
class ObjectPicker {
// --------------------------------------------------------------------------
constructor() {
this.log('Constructing');
/**
* Contains reference to the active picker - i.e., the one which the CDN manager is attached to
* @type {Object}
*/
... |
// t: current time, b: begInnIng value, c: change In value, d: duration
define('easeInQuart', function () {
return function (x, t, b, c, d) {
return c * (t /= d) * t * t * t + b;
};
}); |
import BaseSettings from 'basesettings';
export default class Settings extends BaseSettings {
constructor() {
super();
this.debug = true;
this.env = 'local';
}
}
|
'use strict'
let gen = require('./gen.js')
let proto = {
basename:'accum',
gen() {
let code,
inputs = gen.getInputs( this ),
genName = 'gen.' + this.name,
functionBody
gen.requestMemory( this.memory )
gen.memory.heap[ this.memory.value.idx ] = this.initialValue
functio... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("dijit/registry dojo/_base/lang dojo/dom dojo/dom-construct dojox/widget/Standby require".split(" "),function(d,e,c,f,g,h){var b={_defaultStandbyParams:{imag... |
var gulp = require('gulp');
var header = require('gulp-header');
var rename = require('gulp-rename');
var rimraf = require('gulp-rimraf');
var uglify = require('gulp-uglify');
var util = require('gulp-util');
var pkg = require('./package.json');
var currentYear = util.date(new Date(), 'yyyy');
var banner = '/*! <%= p... |
// Generated by CoffeeScript 1.6.2
var __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__supe... |
/**
* Created by Mehdi on 2015-11-17.
*/
'use strict';
var constants = require('../lib/constants');
var utils = {};
utils.isRequestValid = (body) => {
try {
return body != null && body != "" && body != {} &&
body[constants.req_param] != undefined &&
constants.movie_url_pattern.... |
$(function(){
function getDataSync(){
let req = new XMLHttpRequest();
req.open('GET', 'https://api.codementor.io/api/v2/mentors/fixjs/reviews?cm_auth=5eed1556-91b0-4da8-b75c-36db1672f4e2', true);
// since the third parameter is true when you call req.send
// it pauses everything :BLOCKING
req.... |
// BrowserSync
module.exports = function (gulp, plugins) {
return function () {
plugins.browserSync.init({
server: {
baseDir: "dist"
},
port: 3000,
open: false,
notify: false,
logLevel: "info",
tunnel: false
});
};
};
|
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var fs = _interopRequire(require("fs"));
var mkdirp = _interopRequire(require("mkdirp"));
var Check = _interopRequire(require("./check"));
var I18nliner = _interopRequire(require("../../lib/i18nliner"));
f... |
// import required dependencies
import React from 'react';
import GoogleLogin from 'react-google-login';
/**
* Create a react component
* @class Body
*/
export default class Body extends React.Component {
/**
* Set user's state to either logged in or not logged in
* @constructor
*/
constructor() {
... |
//*******************************************************************
// CHORD MAPPER
//*******************************************************************
function chordMpr (data) {
var mpr = {}, mmap = {}, n = 0,
matrix = [], filter, accessor;
mpr.setFilter = function (fun) {
filter = fun;
return... |
// angular commit message guidelines
// - https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines
// checkout some test cases
// - https://github.com/marionebl/commitlint/tree/master/@commitlint/config-angular#rules
module.exports = {
extends: ['@commitlint/config-angular'],
}
|
'use strict';
let _ = require('lodash'),
User = require('../../../../app/models').User;
const NEW_EMAIL = 'new.email@arkis.io';
describe('PATCH /account/change_email', () => {
db.sync();
db.create(['user']);
let user, oldEmail, password;
beforeEach(() => {
user = factory.buildSync('user');
oldEma... |
import React from 'react'
import { Menu, Icon, Popover } from 'antd'
import BadgeBox from './BadgeBox'
import styles from './Header.less'
import Menus from './Menu'
const SubMenu = Menu.SubMenu
function Header ({user, logout, switchSider, siderFold, isNavbar, menuPopoverVisible, location, switchMenuPopover, navOpenKe... |
export const sync = function(){
let script = document.createElement('script');
script.src = 'http://' + window.location.hostname + ':35729/livereload.js';
document.head.insertBefore( script, document.head.firstChild );
};
export default sync; |
'use strict'
const Lab = require('@hapi/lab')
const Code = require('@hapi/code')
const Config = require('../config')
const lab = exports.lab = Lab.script()
lab.experiment('Config', function () {
lab.test('it gets config data', () => {
Code.expect(Config.get('/')).to.be.an.object()
})
lab.test('it gets con... |
$(document).ready(function() {
var iCnt = 0;
// CREATE A "DIV" ELEMENT AND DESIGN IT USING JQUERY ".css()" CLASS.
var container = $(document.createElement('div')).css({
padding: '5px', margin: '20px', width: '170px', border: '1px dashed'
});
$('#btAdd').c... |
'use strict';
angular.module('mean.system').controller('ToursController', function($scope, $timeout){
$('#leftWrapper').css('visibility', 'visible');
$timeout(function() {
$scope.map.showMapMask = true;
$scope.map.zoom = 14;
$scope.map.clouds.show = false;
$scope.map.traffic.s... |
import React, { Component } from 'react'
import marked from 'marked'
class MarkDownView extends Component{
onGetContent(xmlhttp){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
this.refs.content.innerHTML = marked(xmlhttp.responseText);
this.props.onGetContent && this.props.onGetContent(xmlhttp.re... |
'strict';
module.exports = angular.module('app.footer', [])
// Main footer view
.directive('footerView', function() {
return {
restrict: 'E',
template: require('./footer.tpl.html'),
controller: 'FooterCtrl'
};
})
// Main footer controller
.contr... |
var assert = require('assert'),
pass = require('../public/js/pass.js'),
Api = require('../public/js/api.js')(pass.username, pass.password);
describe('Api', function () {
var sub = 'https://lobste.rs';
describe('userInfo()', function () {
it('Should return correct username.', function (done) {
Api.us... |
var argscheck = require('cordova/argscheck'),
utils = require('cordova/utils'),
exec = require('cordova/exec');
var BrightcovePlayerPlugin = function() {
};
BrightcovePlayerPlugin.playByUrl = function(url, vastLink) {
exec(
successHandler,
errorHandler,
"BrightcovePlayerPlugin",
"playByU... |
var searchData=
[
['allocfn',['allocFn',['../struct_jinx_1_1_global_params.html#aab3f56daccf8ee50fe81df959dfc0fec',1,'Jinx::GlobalParams']]]
];
|
'use strict';
// Configuring the Places module
angular.module('places').run(['Menus',
function(Menus) {
// Add the Places dropdown item
Menus.addMenuItem('topbar', {
title: 'Places',
state: 'places',
type: 'dropdown'
});
// Add the dropdown list item
Menus.addSubMenuItem('topbar', 'places', {
t... |
import React from 'react';
import ContactPage from '../components/ContactPage';
function ContactSuccess() {
return <ContactPage isSubmitted />;
}
ContactSuccess.defaultProps = {};
ContactSuccess.propTypes = {};
export default ContactSuccess;
|
$("#content-container").on("click", "a", function (event) {
loadBody(event);
});
$("#content-container").on("click", "button", function (event) {
loadBody(event);
});
function loadBody(event) {
event.stopPropagation();
event.preventDefault();
var url = event.target.href;
$('#content-contain... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... |
var _ = require('lodash');
var when = require('when');
var Provider = require('../provider');
module.exports = [
Provider.extend({
name: 'ifixit',
type: 'rich',
uri: "//www\\.ifixit\\.com/[^#?/]+/[^#?/]+/.+$",
version: 0,
fetch: function(uri) {
return this.fetchEmbed(uri, {
api: 'h... |
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLineChart extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m39.8 32.4v2.5h-39.8v-29.8h2.5v27.3h37.3z m-2.5-24.2v8.4q0 0.5-0.4 0.6t-0.... |
/**
* Created by Kristof on 5/11/2015.
*/
define('IDBKeyRange', [
'util'
], function(util){
var IDBKeyRange = function(lower, upper, lowerOpen, upperOpen){
if(arguments.length === 0) return; // clone
this.lower = lower;
this.upper = upper;
this.lowerOpen = lowerOpen ? lowerOpe... |
'use strict';
angular.module('luigiApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'pipelineServices'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
contro... |
/**
* Route Mappings
* (sails.config.routes)
*
* Your routes map URLs to views and controllers.
*
* If Sails receives a URL that doesn't match any of the routes below,
* it will check for matching files (images, scripts, stylesheets, etc.)
* in your assets directory. e.g. `http://localhost:1337/images/foo.jpg`... |
// Constructor Function
// --------------------
function AsyncSpec(spec){
this.spec = spec;
}
(function(){
// Public API
// ----------
AsyncSpec.prototype.beforeEach = function(block){
this.spec.beforeEach(runAsync(block));
};
AsyncSpec.prototype.afterEach = function(block){
this.spec.afterEach(runAsync(block... |
var Data = function(data) {
this.data = data || null;
this.features = new Array();
this.getData = function(){
return this.data;
};
this.setData = function(data){
this.data = data;
};
this.getFeatures = function(){
return this.features;
};
this.setFeatures = function(features){
this.features = fe... |
jQuery(document).ready(function($) {
// Change password click
$("div#tm-password-adminarea a.change-password").click(function(e) {
e.preventDefault();
var td = $(this).closest('td');
var id = $(this).data('item-id');
td.append('<input type="hidden" name="update_ids[]" value="'+id+'">');
$(this).closest('td'... |
"use strict";
const net = require("net");
const os = require("os");
const execa = require("execa");
const args = {
v4: ["-4", "r"],
v6: ["-6", "r"],
};
const get = family => {
return execa.stdout("ip", args[family]).then(stdout => {
let result;
(stdout || "").trim().split("\n").some(line => {
co... |
'use strict';
exports.__esModule = true;
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _regenerator = require('babel-runtime/rege... |
import React, { Component, PropTypes } from 'react';
import { Layout, NavDrawer, Navigation } from 'react-toolbox/components/index.js';
import { themr } from 'react-css-themr';
import Empty from './Empty';
import theme from './theme.scss';
export default function (Wrapped, Sidebar){
@themr('PageLayout', theme)
... |
// @flow
import {ReduceStore} from 'flux/utils'
import {fromJS} from 'immutable'
import {Map} from 'immutable'
import Prepositiond from '../Prepositiond'
import PrepositiondActionTypes from '../PrepositiondActionTypes'
import AppDispatcher from '../../../AppDispatcher'
import {MakePre... |
var b64url = require('b64url');
var crypto = require('crypto');
var qs = require('querystring');
var request = require('request');
var Faceplate = function(options) {
var self = this;
this.options = options || {};
this.app_id = this.options.app_id;
this.secret = this.options.secret;
this.middlewa... |
var searchData=
[
['camera',['Camera',['../classthewizardplusplus_1_1anna_1_1graphics_1_1_camera.html#a31c75b6c0c57fad721d7116de9f2a07c',1,'thewizardplusplus::anna::graphics::Camera']]],
['cannotfindappropriatepixelformatexception',['CannotFindAppropriatePixelFormatException',['../classthewizardplusplus_1_1anna_1_1... |
(function() {
'use strict';
var validator = require('validator');
/**
* Render the main application page
*/
exports.renderIndex = function (req, res) {
var safeUserObject = null;
if (req.user) {
safeUserObject = {
displayName: validator.escape(req.user.displayName),
provid... |
(function(){
'use strict';
var eventController = ['$scope', '$state', 'Auth', 'eventFactory', function($scope, $state, Auth, eventFactory){
var eventCtrl = this;
Auth.currentUser().then(function(data){
$scope.currentUser = data;
$scope.allEvents = [];
$scope.currentUser.friends.forEach(f... |
function ReportElementsDOM(wrapperDiv) {
this.wrapperDiv = $(wrapperDiv);
this.elemJson = JSONAttribute(wrapperDiv, 'report-json');
// Okay, we're not quite 100% JS. These two values still get generated server-side.
// We only use them in print headers, though.
this.reportName = this.wrapperDiv.attr('report-n... |
/**
* Socket Configuration
*
* These configuration options provide transparent access to Sails' encapsulated
* pubsub/socket server for complete customizability.
*
* For more information on using Sails with Sockets, check out:
* http://sailsjs.org/#documentation
*/
module.exports.sockets = {
// This custom ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.