code
stringlengths
2
1.05M
'use strict'; angular.module('myApp.main', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/', { templateUrl: 'main/main.html', controller: 'MainCtrl', activetab: 'main' }); }]) .controller('MainCtrl', ['$scope',...
import Meteor, {createContainer} from 'react-native-meteor'; import React from 'react'; import MeteorListViewComponent from '../routes/meteorListView'; export default MeteorListViewContainer = createContainer(ownProps => { const itemsHandle = Meteor.subscribe('items'); return { itemsReady: itemsHandle....
var actionTypes = require('../constants/actionTypes.js') var Immutable = require('seamless-immutable'); module.exports = function sidebarReducer(sidebarConfig = Immutable({}), action) { switch(action.type) { case actionTypes.RESIZE_SIDEBAR: return Immutable.set(sidebarConfig, 'width', action.width); de...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var uuidPackage = require("uuid"); var uuid = uuidPackage.v4; var wsmessage_1 = require("./wsmessage"); var MessageFactory = (function () { function MessageFactory() { } MessageFactory.prototype.createPing = function () { v...
/* * Autor: Eduardo Alfonso Sanchez */ var $formulario; $(document).ready(function () { $formulario = $('#idformIssue'); if ($formulario.length) $formulario.submit(enviarFormulario); }); function enviarFormulario(event) { var subject = $('#inp_name_issue').val(); var descriptions = $('#in...
'use strict'; var gulp = require('gulp'); var babel = require('gulp-babel'); var riot = require('gulp-riot'); var sourcemaps = require('gulp-sourcemaps'); var jetpack = require('fs-jetpack'); var webpack = require('webpack'); var utils = require('./utils'); var projectDir = jetpack; var srcDir = projectDir.cwd('./ap...
var pi = require('../../../dist/index'); var pipes = [ require('../../../dist/pipes/compile-typescript.js'), require('../../../dist/pipes/move-to-dist.js') ]; pi.task('default', pipes);
{ if (((t.static = Pr(t)), 1 === t.type)) { if (!ms(t.tag) && "slot" !== t.tag && null == t.attrsMap["inline-template"]) return; for (var e = 0, n = t.children.length; e < n; e++) { var r = t.children[e]; Ir(r), r.static || (t.static = !1); } if (t.ifConditions) for (var i = ...
/** * get the new tag with the textContent set to the css string passed * * @param {string} css * @param {string} id * @param {boolean} sourceMap * @returns {HTMLElement} */ export const getPopulatedTag = (css, id, {sourceMap}) => { if (!window || !document) { return null; } const existingTag = docume...
/*jslint node: true */ "use strict" //Enable link clicking if editor is not active var clickingLink = false; var openLink = function (el, e) { window.open(el.href); }; var content = document.querySelector(".content.editable"); if (!content) return; content.addEventListener("focus", function (e) { if (clicki...
define([ 'util/Util', 'om/User' ], function (Util, User) { 'use strict'; const savedEmails = JSON.parse(localStorage.getItem('emails') || '[]').map(User); function save() { localStorage.setItem('emails', JSON.stringify(savedEmails.map(function (user) { return user.toString(); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const immutable_1 = require("immutable"); const monadic_react_1 = require("../../../src/monadic_react"); exports.editable_list_sample = monadic_react_1.editable_list(`editable-number-list`, monadic_react_1.unit(immutable_1.Range(1, 5).toList()...
/* * jQuery appear plugin * * Copyright (c) 2012 Andrey Sidorov * licensed under MIT license. * * https://github.com/morr/jquery.appear/ * * Version: 0.3.3 */ if ($(window).width() > 1024){ (function($) { var selectors = []; var check_binded = false; var check_lock = false; var defaults = { ...
function Timeline(_date, _nowDate) { if (!_nowDate) _nowDate = new Date(); var _dateTime = _date.getTime(), _nowTime = _nowDate.getTime(); var deltaTime=_nowTime-_dateTime; if(deltaTime<0) return false; var MINUTES30 = 1000 * 60 * 30, MINUTES60 = HOUR = MINUTES30 * 2, MINUT...
'use strict'; (() => { module.exports = (gulp, plugins, config) => { return () => { return plugins.vinylFs.src([ config.templatesPath + '/**/assets/**/*', config.templatesPath + '/**/img/*.*', config.templatesPath + '/**/*.svg', config.templatesPath + '/**/*.zip' ]) ...
/** * @license * lodash 3.10.0 (Custom Build) <https://lodash.com/> * Build: `lodash modern -d -o ./index.js` * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigati...
// Cache singleton const cachedItems = new Map(); export class ItemCache { constructor(items, cacheKey, store = cachedItems) { this.items = items; this.cacheKey = cacheKey; this.store = store; } clearAllRowHeights() { this.store.clear(); } clearRowHeight(index) { const item = this.items...
import EmberView from 'ember-views/views/view'; import run from 'ember-metal/run_loop'; import { compile } from '../utils/helpers'; import { equalInnerHTML } from 'htmlbars-test-helpers'; var view; function appendView(view) { run(function() { view.appendTo('#qunit-fixture'); }); } QUnit.module('ember-htmlbars: svg...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
(function($) { "use strict"; // Start of use strict // Smooth scrolling using jQuery easing $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) { var target = $(this.ha...
// All code points with the `Cased` derived core property as per Unicode v6.1.0: [ 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,...
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www...
var m = require('mithril'); exports.controller = function () { var ctrl = this; }; exports.view = function (ctrl) { return m('.row', [ m('.row', [ m('h3.center-align', 'Coding Challenge') ]), m('form.col.s12', [ m('.row', m('h4.center-align', 'Interviewer') ), m('.row',...
// JavaScript Variables and Objects // I paired [by myself] on this challenge. // __________________________________________ // Write your code below. var secretNumber = 7; var password = "just open the door"; var allowedIn = false; var members = ["John", "me", "him", "Mary", "you"]; // ______________________...
/** * error.js to catch the error in browser * @athor: zhangxiang * @updated: 2017/07/07 */ /**当脚本与网页违背同源策略的时候,浏览器会隐藏错误信息,只能获取到一个简单的 script error * 所以需要在非同源的脚本标签加上 crossorigin 属性,或者在 js 所在的 CDN 服务器加上 Access-Control-Allow-Origin:* * 或者使用 throw new Error('error msg') */ (function(){ var errors = []; var m...
$(function() { function getWindowHeight() { return $(window).height(); } function setPhotoHeaderHeight() { $('#photo-header').css('height', getWindowHeight()); } function inititalize() { setPhotoHeaderHeight(); } inititalize(); });
import React, {Component} from 'react'; import GuiInput from './Input'; export default class GuiButton extends Component { static propTypes = { defaultValue: React.PropTypes.string }; static defaultProps = { type: 'button' }; constructor(props) { super(props); } static listItemClassName = ...
/** * Module to display the bot version */ 'use strict' const BaeBaeModule = require('../baebae-module') const packageJson = require('../../package.json') /** * This module retrieves and displays weather details for given locations */ class Version extends BaeBaeModule { // default constructor constructor() {...
// @flow import React from 'react'; import { List, Icon } from 'semantic-ui-react'; import styled from 'styled-components'; const Styled = styled.div` text-decoration: ${props => props['data-completed'] ? 'line-through' : 'none'}; color: ${props => (props['data-completed'] ? 'grey' : 'black')}; `; const Styl...
"use strict"; import { Camera } from "../camera/Camera.js"; import { Framebuffer, Multisample } from "../webgl/index.js"; import { randomi } from "../math.js"; import { RendererEvents } from "./RendererEvents.js"; import { Vec2 } from "../math/Vec2.js"; import { Vec3 } from "../math/Vec3.js"; import { cons } from "../...
var mongoose = require('mongoose'); var bcrypt = require('bcryptjs'); // User Schema var UserSchema = mongoose.Schema({ name: { type: String }, matchid:{ type:Number }, dotaid:{ type:Number } }); var User = module.exports = mongoose.model('Ramp', UserSchema); module.exports.crea...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M13 18h-2v-2h2v2zm2-4H9v6h6v-6zm4-4.7V4h-3v2.6L12 3 2 12h3l7-6.31L19 12h3l-3-2.7z" /> , 'RoofingOutlined');
(function() { var deepEqual = require('deep-equal'); var Constructor = require('algebra.structures.constructor').Constructor; function inspect(x) { if(x === null || x === undefined) return 'null'; return x.inspect ? x.inspect() : x; } /** Sum Sum is a Monoid, making it also a Semigroup. ...
var formatDate=function(date,format,utc){var pad=function(n,width,z){z=z||"0";n=n+"";return n.length>=width?n:(new Array(width-n.length+1)).join(z)+n};if(utc==null)utc=false;var formats={"%a":function(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][utc?date.getUTCDay():date.getDay()]},"%b":function(){return["Jan","...
export default { props: { vStyle: { type: String, default: null } } };
//= require ace/ace //= require ace/theme-twilight //= require ace/mode-markdown
var HtmlWebpackPlugin = require('html-webpack-plugin'); var webpack = require('webpack'); var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; module.exports = { devtool: 'source-map', cache: true, debug: true, entry: { app: './src/index.ts', vendor: './src/vendor.ts' }, ...
'use strict'; const Promise = require('bluebird'); const pushover = Promise.promisifyAll(require('pushover-notifications')); module.exports = { sendMesage: sendMessage }; function sendMessage(title, message) { var p = new pushover({ user: process.env.PUSHOVER_USER_KEY, token: process.env.PUSH...
/** * Proxy functions to raise exceptions. * https://github.com/RobertoPrevato/DataEntry * * Copyright 2019, Roberto Prevato * https://robertoprevato.github.io * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ const NO_PARAM = "???" function ArgumentNullException(name) { throw ...
(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as anonymous module. define(['jquery'], factory); } else if (typeof exports === 'object') { // Node / CommonJS factory(require('jquery')); } else { // Browser globals. factory(jQuery); } })(function ...
var ScrollTop = function () { var initScrollTop = function () { var $toTopAnchor = $('.go-top'); // Animate the scroll to top $toTopAnchor.click(function (event) { event.preventDefault(); $('html, body').animate({scrollTop: 0}, 300); }); }; return {...
/** * Created by Zlatka on 6/10/2015. */ function solve(params) { var s = +params[0]; var count = 0; var cars=4; var wheels=10; var trikes=3; for(var i=0;i<s;i++){ for(var j=0;j<s;j++){ for(var k=0;k<s;k++){ if((cars*i+wheels*j+trikes*k)==s){count++;} ...
import React from 'react'; import { connect } from 'react-redux' const InstaCelebs = () => { console.log('state', state) return ( <div className="stats"> Stats: <div>Karen</div> <div>Donna...</div> </div> ) } const mapStateToProps = (state) => ({ state }) const InstaCelebsConnect...
var get = Ember.get, getPath = Ember.getPathWithoutDeprecation; // The Ember Routable mixin assumes the existance of a simple // routing shim that supports the following three behaviors: // // * .getURL() - this is called when the page loads // * .setURL(newURL) - this is called from within the state // manager when...
/* Author: Sivamani Varun (varun@semantics3.com) * Author: Nagappan Nachiappan (nagappan@semantics3.com) * Copyright 2012-2015 Semantics3 Inc., see LICENSE */ "use strict"; var VERSION = '0.01'; var MAX_LIMIT = 10; var OAuth = require('oauth').OAuth; var normalizeUrl = require('normalize-url'); var HTTP_VERBS = [ ...
flyingon.fragment('f-tree-renderer', function (base) { this.unmount = function (control, remove) { this.__unmount_children(control); control.view_content = null; base.unmount.call(this, control, remove); }; this.__children_patch = function (control, patch) { var view =...
/** * @file * @author zdying */ module.exports = { exec: function(args){ var client = require('../../client'); client.build(); }, usage: function(){ return "hiipack min [option]"; }, options: function(){ return [ '-d, --debug', '-D, --det...
import React, { Component } from 'react'; import { Alert, Image, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import ImagePicker from 'react-native-image-crop-picker'; import Video from 'react-native-video'; const styles = StyleSheet.create({ container: { flex: 1, justifyConten...
"use strict"; exports.__esModule = true; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var _aureliaTemplating = require('aurelia-templating'); var currentZIndex = 1000; var transitionEvent = (function () { ...
(function(window, undefined) { var dictionary = { "ececcb85-da50-4dba-8eaf-628779a62dcc": "ResultFilter", "d12245cc-1680-458d-89dd-4f0d7fb22724": "Welcome", "f6ba56a0-98f3-401c-94b3-2c150fe5556a": "Menu", "74a67c92-948d-4452-96ab-8489113a4692": "Activity", "0a49759e-99dd-476b-9bb8-a92bdcd6333d": "...
'use strict'; let os = require('os'); let childProcess = require('child_process'); // preinstall tesseract if possible if (os.platform().includes('darwin')) { console.log('install libs for Mac OS'); childProcess.execSync('brew ls --versions tesseract || brew install tesseract --with-all-languages'); childProces...
/** * [IL] * Library Import */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /** * [IV] * View Import */ import Desktop from './Views/Desktop/tpl'; /** * [IBP] * Pixel Perfect and Breakpoints */ import BP from 'lib/breakpoints'; /** * [...
var express = require('express'); var logger = require('morgan'); var path = require('path'); var app = express(); app.set('port', (process.env.PORT || 5000)); app.set('views', ''); app.use(logger('dev')); app.use(express.static(path.join(__dirname, '/'))); app.use(express.static(path.join(__dirname, '/app/'))); a...
var gl; window.onload = function init() { "use strict"; var canvas = document.getElementById("canvas"); gl = WebGLUtils.setupWebGL(canvas); if (!gl) { alert("WebGL isn't available"); } // Use this object to listen for key inputs var keyboardState = new THREEx.KeyboardState(); ...
'use strict'; // Checklists controller angular.module('checklists').controller('ViewSharedChecklistsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Checklists', function($scope, $stateParams, $location, Authentication, Checklists) { $scope.authentication = Authentication; // Get checklist...
import React from 'react' import styled from 'styled-components' import { pure, withProps, withHandlers, compose } from 'recompact' import { connect } from 'react-redux' import { graphql } from 'react-apollo' import { MeetingQuery, createAttendant } from '../../queries' import displayLoadingState from '../Loading' i...
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'react-emotion'; import { GurbaniFont, Markdown as FetchAndMarkdown } from '../../components'; const Wrapper = styled.div` line-height: 2em; padding: 10px; text-align: center; @media(max-width: 700px) { text-align: left; } ...
(function($){ var MyGrid = function(element, options) { var elem = $(element); var obj = this; // Merge options with defaults var settings = $.extend({ show : true, lineColour : '#f1c40f', textColour : '#000', increment : 50, padding : 0, lineSize : 1, showIncrement : t...
export const mathSum = (values) => values.reduce((pv, cv) => pv + cv, 0); export const mathAvg = (values) => mathSum(values) / values.length; export const dateToUnixTS = (date) => date.getTime() / 1000; export const dateToMinutes = (date) => dateToUnixTS(date) / 60; export const stringCamelCase = (string) => string...
var menu = require('terminal-menu')({ width: 30, x: 2, y: 2 }); var disabler = require('../')(menu, { // uncomment following line to make forground // color of disabled menu items red // fgi: 'red', disabled: [ // you can have a list of labels to be disabled // at startup here. ] }); var sd = '...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: sw=4 ts=4 sts=4 et * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in co...
module.exports = { // hook related NOT_AUTHORIZED: 'NOT_AUTHORIZED', NOT_READY: 'NOT_READY', MESSAGE_TOO_OLD: 'MESSAGE_TOO_OLD', TIMEOUT: 'TIMEOUT', UNKNOWN_ACTION: 'UNKNOWN_ACTION', OFFLINE: 'OFFLINE', INVALID_MESSAGE: 'INVALID_MESSAGE', // agent related UNKNOWN_AGENT: 'UNKNOWN...
module.exports = pause /** * Async function to stop processing for a specified amount of time * * @param {number} ms - length of time in milliseconds to pause for * @returns {Promise<undefined>} */ async function pause(ms) { return new Promise(resolve => { setTimeout(() => { resolve() ...
// foo.js console.log('foo.js: I require bar.js'); var bar = require('./bar'); console.log('foo.js: I add a function run() to my export object'); exports.run = function() { console.log('foo.js: In my run(). Now I call bar.'); bar('Foo'); }
var Discovery = require('..').Discovery; var discovery = new Discovery(1234); var serviceList = []; discovery.on('found',function(data){ serviceList.push(data); }); discovery.on('timeout',function(data){ console.log(serviceList); }); discovery.discover();
var gulp = require('gulp'); gulp.task('default', ['browser-sync']);
Oskari.registerLocalization({ "lang": "ro", "key": "Search", "value": { "title": "Căutare locaţie", "desc": "", "invalid_characters": "NOT TRANSLATED", "searchDescription": "Căutare după nume, adresă sau identificator al imobilului", "searchButton": "Căutare", ...
/* Ed Alegrid 10/2/2016 */ 'use strict'; const ip = require('ip'); /* get http server ip */ exports.getIP = function (){ return ip.address(); }
<!--{ ids:[128], language:'JavaScript', type:'workshop', order: 4, name:'Strings', description:'Strings are text enclosed in quotation marks' } --> var keller = 'She said, "Life is either a daring adventure or nothing at all."'; var yoda = "Do... or do not. There is no try"; var dali = "Have no fear of perfection -...
Package.describe({ name: 'elevatedevdesign:autoform-nouislider', summary: 'Dual value slider for autoform.', version: '0.1.2', git: 'https://github.com/ElevateDevelopmentAndDesign/meteor-autoform-nouislider' }); Package.onUse(function(api) { api.use('templating@1.0.0'); api.use('blaze@2.0.0'); api.use('a...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18.38 6.24C17.79 3.24 15.14 1 12 1S6.21 3.24 5.62 6.24C4.08 6.81 3 8.29 3 10c0 2.21 1.79 4 4 4 .12 0 .23-.02.34-.02L12.07 23l4.61-9.03c.11.01.21.03.32.03 2.21 0 4-1.79 4-4 0-1.71-1.08-3.19-2.62-...
/** * Contains ui-select "intelligence". * * The goal is to limit dependency on the DOM whenever possible and * put as much logic in the controller (instead of the link functions) as possible so it can be easily tested. */ uis.controller('uiSelectCtrl', ['$scope', '$element', '$timeout', '$filter', '$$uisDebounc...
/* ConveyorBelt.js * * Constructs a queue that processes functions added to it * in intervals. This is useful for doing things like throttling * a deluge of rendering operations without missing any crucial * steps. * * How to Use: * * var belt = new ConveyorBelt.ConveyorBelt(35) // msec or 'immediate' * * ...
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var histogram2dAttrs = require('../histogram2d/attributes'); var contourAttrs = require('../contour/attributes')...
'use strict' const request = require('supertest') const expect = require('chai').expect const app = require('../../app') const User = require('../../models/user') describe('User api module', () => { const user = { name: 'Pompeu', email: 'pompeulimp@gmail.com', password: '12345', } const duplicateU...
<script> (function( $ ){ $.fn.BaconIpsum = function( options ) { var settings = $.extend( { 'type' : 'meat-and-filler', 'start_with_lorem' : true, 'paras' : 3, 'sentences' : 0, //Added the no_tags options (Joel Lord joel@engrenage.com) 'no_tags' : false }, opti...
const {EventEmitter} = require('events') const net = require('net') const Netmask = require('netmask').Netmask const mkClient = (data, original = {}) => { const candidate = { key: data['Common Name'] || data.Username || data['Client ID'], clientId: data['Client ID'], cn: data['Common Name'] || data.Usern...
var express = require('express'); var router = express.Router(); var Log = require('../models/log_model.js'); var map = ['message', 'refer_url', 'source_file', 'resolution', 'user_agent', 'ip', 'from']; function search (options) { options = options || {}; var pageSize = options.pageSize || 1; ...
/* eslint-disable no-underscore-dangle */ import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import App, { Container } from 'next/app'; import find from 'lodash/find'; import { Provider as ReduxProvider, useDispatch, useSelector } from 'react-redux'; import { loadCSS ...
import Flickr from "@/flickr" export default function getPendingTestimonialsBy( { flickr = Flickr, userId = `` } = {}, { page = 1, perPage = 10 } = {} ) { return flickr.fetchResource(`flickr.testimonials.getPendingTestimonialsBy`, { userId }, { page, perPage }, `read`) }
'use strict'; /* Wylistowanie wszystkich zawodników trenera SERWER#96 */ runAndApp.controller('playersListCtrl', function ($scope, $http, $window) { //$http.get('http://89.79.234.30:3000/api/runners/list') $http.get('http://api.runand.greeters.pl:3500/api/runners/list') .success(function (data, ...
"use strict";module.metadata={"stability":"experimental"};const method=require("../../method/core");const{Class}=require("./heritage"); const WeakReference=Class({});exports.WeakReference=WeakReference; const isWeak=method("reference/weak?");exports.isWeak=isWeak;isWeak.define(Object,_=>false);isWeak.define(WeakRefer...
import Avatar from '@material-ui/core/Avatar'; import Button from '@material-ui/core/Button'; import grey from '@material-ui/core/colors/grey'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import ...
kiso.geom.ReducibleSimplePolyConvexHull = kiso.Class( { parent: kiso.geom.SimplePolyConvexHull, constants: { _POP_OPERATION_AT_HEAD: 10, _POP_OPERATION_AT_TAIL: 11, _PUSH_OPERATION: 12 } }, { _operationStack: [], build: function() { this._operationStack = []; this.superclass.build(); }, ...
/* Copyright (c) 2012 Tony Germaneri 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, publish, distribute...
import AbstractService from './AbstractService'; import RestApiService from './RestApiService'; import * as Utils from '../utils'; import SearchParameters from '../domain/SearchParameters'; export default class BackendModuleService extends AbstractService { getApiPath() { return '/modules'; } getNiceLabel(...
(function Component (id) {// @lock var videoWidget = null, videoApp = null; // Add the code that needs to be shared between components here function constructor (id) { this.load = function (data) {// @lock // eventHandlers// @lock this.prevBt = $$(this.id + "_prevBt"); this.nextBt = $$(this.id + "_ne...
$(document).ready(function(){ $('#btn_submit').click(function(){ window.location.href='oa-hr-leave.html'; }); });
import QUnit from 'steal-qunit'; import { ViewModel } from './<%= name %>'; // ViewModel unit tests QUnit.module('<%= module %>'); QUnit.test('Has message', function(){ var vm = new ViewModel(); QUnit.equal(vm.attr('message'), 'This is the <%= tag %> component'); });
var seduce = require(__dirname + '/../lib/index'); exports.testSeduce = function(test) { var q1 = seduce(__dirname + '/sql/one.sql'), q2 = seduce(__dirname + '/sql/two.sql'), q3 = seduce(__dirname + '/sql/three.sql'), expected; expected = 'SELECT * FROM cars WHERE cars.name = "hello"'; test.strictEq...
import React from "react"; import initStoryshots from "@storybook/addon-storyshots"; import { addDecorator } from "@storybook/react"; import { ThemeProvider } from "styled-components"; import reset from "./reset"; import defaultTheme from "./themes/default"; import SystemFontStack from "./SystemFontStack"; reset(); ...
/** * Created by nuintun on 2015/11/24. */ 'use strict'; module.exports = function (Terminal){ /** * scroll */ Terminal.prototype.scroll = function (){ var row; if (++this.ybase === this.scrollback) { this.ybase = this.ybase / 2 | 0; this.lines = this.lines.slice(-(this.ybase + this.r...
(function() { 'use strict'; angular .module('users') .controller('SidenavController', SidenavController); SidenavController.$inject = ['$scope', 'Authentication', '$mdSidenav']; /* @ngInject */ function SidenavController($scope, Authentication, $mdSidenav) { /* jshint validthis: true */ var...
module.exports = { assetsDir: 'assets', productionSourceMap: false, configureWebpack: { optimization: { splitChunks: { cacheGroups: { // We want to keep the vendors chunk, but we don't want to include moment since it's relatively large // and only used for the screenshots pag...
System.register(["./TreeBuilder", "./Characters", "./Comment", "./Document", "./DocumentFragment", "./DTD", "./Element", "./getAttribute"], function (exports_1, context_1) { "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendS...
#!/usr/bin/env node /* jshint unused:true, undef:true, node:true */ /* global l:false, DEBUG:false, ROOT_DIR:false */ /** * Main run time script. */ var path = require("path"); var fs = require("fs-extra"); var _ = require("underscore"); var wordwrap = require("wordwrap"); // Debug or not? global.DEBUG = false; ...
jest.dontMock('shallowequal'); jest.dontMock('../pulldown'); jest.dontMock('../pulldown-stage'); import React from 'react'; import TestUtils from 'react-addons-test-utils'; const Pulldown = require('../pulldown').default; const PulldownStage = require('../pulldown-stage').default; describe('Pulldown', () => { it('...
'use strict'; var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res) { res.render('index', { title: 'Botframework Bot' }); }); module.exports = router;
const Y = require("../lib/package"); const assert = require('assert'); function checkValue(value) { var str1 = Y.stringify(value); str1 = Y.parse(str1); var str2 = Y.stringify(str1); return str1 == str2; } function checkString(str) { } describe('Objects', function() { describe('stringify -> parse ...