text stringlengths 5.97k 41.2k |
|---|
/*
* <NAME>
* Spring 2016
*/
/* GLOBAL VARIABLES */
// Global
const CURRENT_SCORE = document.getElementById("currentscore");
const HIGH_SCORE = document.getElementById("highscore");
const HIGH_SCORE_STRING = "highscore";
const CANVAS = document.getElementById("mycanvas");
const CONTEXT = CANVAS.getContext("2d");... |
//============================================================================
// Gabe MZ - Fog Effects
//----------------------------------------------------------------------------
// 29/06/21 | Version: 2.1.0 | Added opacity and tone control
// 14/01/21 | Version: 2.0.2 | PT-BR header typo fix
// 03/09/20 | Version:... |
import { Vector3 } from "../../Maths/math.vector";
import { Color3 } from '../../Maths/math.color';
import { Mesh } from "../mesh";
import { VertexData } from "../mesh.vertexData";
import { GroundMesh } from "../groundMesh";
import { Tools } from "../../Misc/tools";
import { EngineStore } from '../../Engines/engineStor... |
/**
* @author <NAME>
*/
function Geometry() {
this.faces = [];
this.vertices = [];
this.color = generateRandomColor();
}
Object.assign(Geometry.prototype, {
computeFaceCoordinates: function(camera, use_perspective) {
var len = this.faces.length;
for (var i = 0; i < len; i++) {
... |
/* globals $ */
/* globals page */
/* globals Handlebars */
/* Model classes */
class Episode {
constructor(id, title, publishDate, description, duration, media) {
this.id = id;
this.title = title;
this.publishDate = publishDate;
this.description = description;
this.duration = duration;
this.media = media... |
// JavaScript Document
var now=new Date();
var lunarinfo=new Array(0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,
0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,
0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x049... |
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
fo... |
import { log_msg as log } from "./util.js";
let module_name = 'shop_generator';
class Shop {
constructor(shady, specialization, min_items, max_items, location, actor, base_price) {
/*
Shop generator
PURPOSE:
Generates a shop with randomly selected items
Note that th... |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Wizard, Button, Icon } from 'patternfly-react'
import produce from 'immer'
import { List } from 'immutable'
import * as Actions from '_/actions'
import { EMPTY_VNIC_PROFILE_ID } from '_/constants'
import { gener... |
let portrait,
$body,
$html,
$main,
$menu,
$toggler,
$header,
$skipToContent,
headerHeight,
$footer,
$isi,
$isi_inline,
isi_compress = false,
isi_compress_buffer,
$navbar,
isDown = false,
isUp = false,
mobileBreakPoint = 767;
/*globals*/
window.lt768;... |
"use strict";
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enu... |
var Collection = require("./../Collection").Collection;
var InsertUnicode = require("./UnicodeSymbol").InsertUnicode;
/**
* @class InsertUnicodes is a set of unicode symbols.
*
* @name InsertUnicodes
*
* @extends Collection
* @constructs
*/
var InsertUnicodes = function InsertUnicodes(options) {
this.debug(... |
/**
* Created by tatjac on 17/06/2016.
*/
var owinitSlideShow = function (slider, hash) {
if (typeof hash != "undefined") {
setTimeout(function () {
openSlideShow(slider, hash);
}, 100);
}else{
$('.block-diaporama .item').on('mousedown', function () {
if ($(th... |
require('./shim');
function Mesh(root){
var mesh = function(){};
var opt = root.opt || {};
opt.log = opt.log || console.log;
opt.gap = opt.gap || opt.wait || 0;
opt.max = opt.max || (opt.memory? (opt.memory * 999 * 999) : 300000000) * 0.3;
opt.pack = opt.pack || (opt.max * 0.01 * 0.01);
opt.puff = opt.puff || ... |
import React, { Component } from 'react';
import _ from 'underscore';
import fin from '../vendor/openfin';
import windowManager from "../windowsListSingleton";
import { DockingManager, DockableWindow } from '../dockingManger';
import ToolTip from '../components/tooltip-decorator';
import excel from '../vendor/ExcelAPI'... |
var dataStructure = {
editor: []
}
function appendProp() {
}
function initCanvas(canvasId, canvasViewId) {
var elem = document.getElementById(canvasId);
var edit = new hiDraw({
canvasViewId: canvasViewId,
// viewJsonTextId: 'hiJsonArea',
// activeJsonTextId: 'hiActiveJsonArea',
canvasWidth: e... |
document.title = "Browser Scripts";
var scripts = new Vue({
el: '#browser_scripts_table',
data:{
bscripts: [],
operation_scripts:[],
user: "{{name}}"
},
methods: {
new_script: function(){
commands.current_command = -1;
commands.current_payload_type... |
/** ====================================================================
* flipper.js
* ----------
* @description Flipper plugin.
* @layer components
===================================================================== */
import closest from './element-closest-polyfill';
import assign from './object-assign-polyfi... |
/*
Copyright 2016 First People's Cultural Council
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/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=21354#21354
// http://infocatcher.ucoz.net/js/akelpad_scripts/winMergeTabs.js
// https://github.com/Infocatcher/AkelPad_scripts/blob/master/winMergeTabs.js
// (c) Infocatcher 2013-2020
// Version: 0.1.3.1 - 2020-11-14
// Author: Infocatcher
//// Compare content... |
import loki from 'lokijs';
import API from '../../SpreadsheetData';
function cleanInputRegex(input, check=true) {
input = input.replace(/\‘|\’/g, "'");
if (check === true) {
const testRegex = /[\^$+*\[\]|]/g;
if (testRegex.test(input)) {
try {
return new RegExp(input, 'i');
} catch (e) ... |
import Axios from '@/lib/axios/config';
const $http = {
getVerificationEmailCode(data) {
return Axios.post('/emailCode', data);
}, // 获取验证码
getVerificationPhoneCode(data) {
return Axios.post('/smsCode', data);
}, // 获取验证码
register(data) {
return Axios.post('/register', data);
}, // 注册
login(d... |
/*******************************************************************************
* Copyright 2016-2019 Exactpro (Exactpro Systems Limited)
*
* 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
*
* ... |
import { useMutation, useQuery } from '@apollo/client'
import { idFromRoute, uriFrom } from 'modules-pack/router/utils'
import { ROUTES } from 'modules-pack/variables'
import React from 'react'
import { getOriginalClass } from 'react-ui-pack'
import LoadingView from 'react-ui-pack/Loading'
import {
Active,
get,
i... |
import React, {Component} from 'react';
import axios from 'axios';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow';
import T... |
const cp = require('child_process'),
fs = require('fs'),
os = require('os'),
path = require('path'),
gc = require('./gcode.js'),
childDir = {
//gcode: `${__dirname}/gcode.js`,
img2gcode: `${__dirname}/img2gcode.js`
},
dirDefaultConfig = `${__dirname}/config.json`,
ArduinoCode = {
... |
import React, { useState, useEffect } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import { Check, Clear, Replay } from '@material-ui/icons'
import Slider from '@material-ui/core/Slider'
import { processObservation, getEV, getFMax, getSmoothingFactor, smoothen, merge, infer, getCombinerEV, combin... |
import React from 'react'
import { List, fromJS } from 'immutable'
import { Field, reduxForm } from 'redux-form/immutable'
import uuid from 'uuid'
import FormProperties from '../tripFormProperties'
import FormNames from '../../../../constants/FormNames'
import { calculateTripInfo } from '../createTripHelper'
import Nav... |
const utils = require('../../api/utils');
const { warnLife, fnAppClass, browserPath } = utils;
const createNode = require('./relation');
const processRelationHandle = require('./processRelation');
let posix = browserPath();
const Relations = require('../../api/relations');
const SelectComponent = require('./selectCompo... |
// Initialize Firebase
var config = {
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""
};
firebase.initializeApp(config);
var database = firebase.database();
var graph;
var selected = false;
var editing = 0;
var toDelete;
function myGraph() {
// Add a... |
/* REST API GENERAL FUNCTIONS */
/**
* @Author : Jahia(rahmed)
* This function make an ajax call to the Jahia API and return the result of this call
* @param workspace : the workspace to use on this call (live, default)
* @param locale : the locale to use in ISO 639-1
* @param way : the way to find the JCR entity ... |
var spdy = require('../spdy');
var assert = require('assert');
var util = require('util');
var stream = require('stream');
var Buffer = require('buffer').Buffer;
var constants = spdy.protocol.constants;
var crlf = new Buffer('\r\n');
//
// ### function Stream (connection, options)
// #### @connection {Connection} SP... |
// ----------------- lexer -----------------
var Lexer = chevrotain.Lexer
var Parser = chevrotain.Parser
// Based on the specs in:
// https://www.w3.org/TR/CSS21/grammar.html
// A little mini DSL for easier lexer definition using xRegExp.
var fragments = {}
function FRAGMENT(name, def) {
fragments[name] = XRegEx... |
// Sparki ScratchX Plugin
// Copyright 2015 <NAME> @massivevector
// Only tested on Mac.
// sudo ln -s tty.ArcBotics-DevB tty.serialSparki1
// Sparki must be programmed with SJ-BT Control sketch
function timeStamp()
{
return (new Date).toISOString().replace(/z|t/gi,' ').trim();
}
// scratchX is loading our javasc... |
/*
Copyright (C) 2016 by <NAME>
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, subli... |
'use strict';
exports.__esModule = true;
exports.Video = void 0;
var _react = _interopRequireWildcard(require('react'));
var _styledComponents = require('styled-components');
var _defaultProps = require('../../default-props');
var _Box = require('../Box');
var _Button = require('../Button');
var _Menu = require(... |
let tension_matrix = [
{ "key": "systolic", "age": 0, "diastolic": 0, "c1": 1, "c2": 90, "c3": 141, "c4": 146, "c5": 151, "c6": 156, "c7": 161, "c8": 166, "c9": 171 },
{ "key": "row", "age": 39, "diastolic": 49, "c1": -1, "c2": -1, "c3": -1, "c4": -1, "c5": -1, "c6": -1, "c7": -1, "c8": -1, "c9": -1 },
{ "... |
var projection3857 = new OpenLayers.Projection("EPSG:3857");
var projection4326 = new OpenLayers.Projection("EPSG:4326");
var projection900913 = new OpenLayers.Projection("EPSG:900913");
var popup = null;
var markerType ='イベント';
var dataStore ='tmpMarkers';
var checkDataStore='';
var mode = 0;
var markerUp... |
function formatDateEntityString(dateEnt){
// constuct filter string for azure search against each daterange in the following format (c.dateLogged >= "2017-01-01T00:00:00.0000000Z" and c.dateLogged < "2017-02-01T00:00:00.0000000Z")
// start": "2017-06-14 20:00:00" ignore time portion
var rngVal = null;
v... |
var data = {
isstart : false,
subjectID : null,
username: null,//"大自然保护协会-马云",
userid: null,//2145291155,
linkclick:null,
picclick:null,
shoucangclick:null,
zhuanfaclick:null,
pinglunclick:null,
zanclick:null,
pingbiweiboclick:null,
pingbiyonghuclick:null,
quxiaoguan... |
Chart.defaults.global= {
animation: true,
animationSteps: 60,
animationEasing: "easeOutQuart",
showScale: true,
scaleOverride: false,
scaleSteps: null,
scaleStepWidth: null,
scaleStartValue: null,
scaleLineColor: "rgba(0,0,0,.1)",
scaleLineWidth: 1,
scaleShowLabels: true,
... |
var User = require('../app/models/user');
var moment = require('moment-timezone');
var Polish = require('../app/models/polish');
var Photo = require('../app/models/photo');
var Brand = require('../app/models/brand');
var fs = require('node-fs');
var path = require('path');
var Review = require('../app/models/review');
... |
'use strict';
const get = require('lodash.get');
const axi4Tl = require('./axi4-tl.js');
const apb = require('./apb-scala.js');
// const ahblite = require('./ahblite-scala.js');
const intcTl = require('./intc-tl.js');
const spram = require('./spram.js');
const dpram = require('./dpram.js');
const exportScalaChannel... |
import { ConcolicValue } from "../Values/WrappedValue";
import Config from "../Config";
import Log from "../Utilities/Log";
import { stringify } from "../Utilities/SafeJson";
import External from "../External";
import Z3 from "z3javascript";
let isMatchCount = 0;
export default function(state, ctx, model, helpers) {
... |
'use strict';
angular.module('rev.dashboard', ['ngRoute', 'rev'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/viewDashboard', {
templateUrl: 'viewDashboard/viewDashboard.html',
controller: 'ViewDashboardCtrl'
});
}])
.controller('ViewDashboardCtrl', ['$scope', '$http','set... |
"use strict";
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.abortingObserver = exports.resolveJob = void 0;
var tslib_1 = require("tslib");
var path ... |
'use strict'
const d3 = require('./d3-subset.js')
const LineCoordinates = require('../layout/line-coordinates.js')
const { validateNumber } = require('../validation.js')
class SvgNodeSection {
constructor (parentContent, settings) {
this.parentContent = parentContent
this.ui = parentContent.ui
this.layo... |
"use strict";
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 ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
/* eslint-disable max-len */
/* eslint-disable react/no-array-index-key */
import React, { useEffect, useRef, useState } from 'react';
import {
Grid,
makeStyles,
Divider,
Button,
Box,
List,
ListItem,
ListItemText,
ListItemAvatar,
Typography,
Fab,
withStyles,
TextField,
FormControlLabel,
C... |
/* ===================================================
* artovamodel-vis overview.js
* artovamodel.fi/visual-eng
* ===================================================
* FourCoffees 2013
*
* Licensed under the MIT License
* using d3.js, tabletop.js, jquery.js
* ===================================================... |
"use strict";
function renderTitles(data) {
let HTML = "";
//patikrinam ar data yra arejus
if (!Array.isArray(data)) {
console.error("ERROR: data has to be an array.");
return;
}
//patikrinam data nera tuscia (jei tuscia pasalinam sekcija)
if (data.length === 0) {
console.error("ERROR: data is... |
$(function() {
$('#submitAbsenceModal').click(function() {
});
});
//ABSENCE FUNCTIONS-------------------------------------------------------
//--ABSENCE FORMATTING --------------------------------------------------
//Modal Date Selection
/*format the absence modal form based on checkbox selected*/
f... |
var assert = require('assert');
var css = require('css');
var flip = require('..');
function ensure(input, output, options) {
output || (output = input);
options || (options = {compress: true});
assert.equal(flip(input, options), output, input + ' => ' + output);
}
describe('background-position', function () {... |
'use strict';
const connect = require('connect'),
fs = require('fs'),
http = require('http'),
https = require('https'),
serveStatic = require('serve-static'),
serveIndex = require('serve-index'),
moment = require('moment'),
webpack = require('webpack'),
child_process = require('child_pr... |
var util = {
log_to_server: function(key_str, val_dict, app_id) {
/*_.each(val_dict, function(val, key) {
util.assert((typeof key) == (typeof ''));
util.assert((typeof val) == (typeof ''));
});*/
/*val_dict['__key'] = key_str;
if (app_id)
val_dict['__app_id'] = app_... |
const _ = require('lodash');
const debug = require('debug')('mongo-knex:converter');
const debugExtended = require('debug')('mongo-knex:converter-extended');
const logicOps = [
'$and',
'$or'
];
const compOps = {
$eq: '=',
$ne: '!=',
$gt: '>',
$gte: '>=',
$lt: '<',
$lte: '<=',
$in: ... |
#!/usr/bin/env node
"use strict";
const chalk = require("chalk");
const dashify = require("dashify");
const fs = require("fs");
const getStream = require("get-stream");
const globby = require("globby");
const minimist = require("minimist");
const path = require("path");
const readline = require("readline");
const ign... |
// box coordinates used for rendering
var issueDateC;
var recPeriodC;
var dueDateC;
var amtDueC;
// normalized versions of the box coordinates
var nIssueDateC;
var nRecPeriodC;
var nDueDateC;
var nAmtDueC;
var billImg = document.getElementById('bill');
var tempActField;
var selecting = false;
var currPage = 0; // page... |
import React, {
useEffect,
useRef,
useState,
useCallback,
createContext,
useContext,
memo,
forwardRef,
} from 'react';
import classNames from 'classnames';
import {
Scene,
PerspectiveCamera,
WebGLRenderer,
AmbientLight,
DirectionalLight,
AnimationMixer,
Clock,
UnsignedByteType,
Texture... |
var found_my_device = false;
var connected = false;
var disconnect_requested = false;
var sharing = false;
var monitoring_temperature = false;
var odd = true;
var info_hidden = true;
var alert_level = 0;
var rssi;
var proximity_band = 3;
var connection_timer;
var rssi_timer;
var btn_low;
var btn_mid;
var ... |
/*
* business-casual.js
* The JavaScript portion of Business Casual. You need this file to add Business Casual's
* dynamic content to your webpage.
*
* Firstly, Business Casual abstracts out each dynamic element in the DOM
* as a Javascript object that always meets the following requirements:
* 1) The ... |
import {
debugTicker
} from './debug.js';
import {
players,
TABLE_CENTER_X,
TABLE_CENTER_Y,
TABLE_EDGE_FROM_CENTER,
TABLE_EDGE_CONSTANT
} from './game.js';
import {
updateTableObjects,
updateSprite,
} from './update.js';
import {
checkForHandZone,
checkSnapToHand,
moveAroundInHand,
flipHandObje... |
Vue.component('paperweb-textarea', {
template: '<div>' + '<div class="form-inline link-tool">' + '<button type="button" class="btn btn-primary" @click="insertLinkTag($event)">' + '<i class="fa fa-link"></i> リンクを設定' + '</button>' + '</div>' + '<textarea ref="textArea" class="form-control" ' + '@input="resizeTextArea($... |
const fs = require('fs');
const shapefile = require('shapefile');
const csv = require('csvtojson');
const toleranceValue = 0.01;
const Counter = (function() {
let counterValue = 0;
return {
increment: function() {
return counterValue++;
},
decrement: function() {
... |
//config
//these remove the car from the leaderboard
var errorTolerance= 5; //how far a car can go off line before it gets yeeted after it crashes, if the value is too low cars that are still running the line will get removed.
var errorCounterSensitivity = 5; //how quickly a car gets yeeted when it goes off line, lower... |
var numSocket = new Rete.Socket('Number value');
var vector3Socket = new Rete.Socket('Vector3');
// var vector3Socket = new Rete.Socket('Number');
var VueNumControl = {
props: ['readonly', 'emitter', 'ikey', 'getData', 'putData'],
template: '<input type="number" :readonly="readonly" :value="value" @input="change(... |
// @ts-check
// @type CoreUI
/**
* The CoreUI package contains reusable generic functions and structures, usable as basic building blocks in different types of projects.
* It includes basic objects such as point, size, rect, indexPath and color, as well as several globally defined functions.
*
* Most objects defi... |
"use strict";
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'
import {updateExercise, deleteExercise, exportExercise, exportInjectEml} from '../../../../actions/Ex... |
/*
Copyright 2010-2011 Portland Transport
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/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
//
// TM & (c) 2022 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
import * as THREE from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
import { prepa... |
autowatch = 1;
outlets = 3;
setoutletassist(0, "note output");
setoutletassist(1, "output clip length in ticks");
setoutletassist(2, "bang after generation caused by midi change");
include("lap.js");
var clips = {
from: null,
to: null,
out: null
};
var ids = {
from: 0,
to: 0,
out: 0
};
var in... |
var g = {
type: "xianggu",
link: "",
shareImg: "img/b.jpg",
isSubscribe: 0,
num: 0,
result: 0,
};
if(is_weixn()) {
var code = getUrlParameterByName("code");
g.openid = getOpenid(code);
g.isSubscribe = isSubscribe(g.openid);
if(g.isSubscribe == 1) {
$("#GameScoreLayer-share").hide()
}
}
setW... |
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
nodeWidth = +_;
return sankey;
};
sankey.nodePadd... |
(function () {
'use strict';
/**
* @param {Object} options - holds options for the configuration of the map.
* All keys are required.
* Keys include:
* @prop 'height' v(int) - height of the map
* @prop 'width' v(int) - width of the map
* @prop 'proj' v(proj4) - map projection
* @pro... |
var map;
var geometryOverlay;
var highlightGeometryOverlay;
var drawFeatureLayer;
var datasetOverlay;
var watersControl;
var drawFeatureControl;
var saveStrategy;
var _NUM_ZOOM_LEVELS = 18;
var _PROJ900913 = new OpenLayers.Projection("EPSG:900913")
var _PROJ4326 = new OpenLayers.Projection("EPSG:4326");
var _DEFAULT_A... |
'use strict';
const MeshDevice = require('../MeshDevice.js');
/**
* @extends MeshDevice
*/
class ZwaveDevice extends MeshDevice {
/*
* Homey methods
*/
/**
* @private
*/
onInit() {
super.onInit('zwave');
this._capabilities = {};
this._settings = {};
this._reportListeners = {};
this._pollInte... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var currency ="KSh. ";
var baseUrl = "http://localhost/primepos/index.php/";
var iconUrl= 'http://localhost/primepos/assets/images/... |
/*
Spritz Speed Reader by <NAME>
Local storage implementation by <NAME>
---
Spritz Speed Reading V2 - Bookmarklet Edition by <NAME>
Mixed and matched from a fork of http://codepen.io/pouretrebelle/full/reGKw
and readability text extraction js from https://github.com/Miserlou/OpenSpritz.
Use the bookmarklet code fr... |
import React from 'react'
import { render, cleanup, within } from 'react-testing-library'
import Timeline from 'lib/Timeline'
import DateHeader from 'lib/headers/DateHeader'
import SidebarHeader from 'lib/headers/SidebarHeader'
import TimelineHeaders from 'lib/headers/TimelineHeaders'
import 'jest-dom/extend-expect'
im... |
var cardList = [];
function makeCardRow() {
var tr = document.createElement("tr");
tr.className = "fc-row";
tr.getIndex = function() {
return Array.prototype.indexOf.call(this.parentNode.childNodes, this);
};
// enabled checkbox
var td_enabled = document.createElement("td");
td_enabled.className = "fc-enabl... |
import { normalize, createRNG, mapBy, rotateArray } from "./maths";
const origo = [0, 0];
export const flatSize = Math.sqrt(3);
export const pointySize = 2;
export const flatDistance = flatSize;
export const pointyDistance = 1.5;
// Commonly used coordinate systems: cube and axial
export const cubeToAxial = cube => ... |
import * as Gbi from "../../../../../include/gbi"
import {
snow_09009800,
snow_09009000} from "../../../../../textures/snow"
const sl_seg7_lights_07008930 = Gbi.gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
)
const sl_seg7_lights_07008948 = Gbi.gdSPDefLights1(
0x22, 0x17, ... |
/* eslint-disable no-useless-escape */
/* eslint-disable no-undef */
let validationFlag = false;
function focusEvent(evt) {
evt.target.parentNode.childNodes[1].style.display = 'block';
evt.target.style.cssText = 'border: 1px solid #24c2a3; box-sizing: border-box; border-radius: 1px; background: #f7fbfd;';
}
f... |
import { inputChangingKeycode, scroll_to } from '../common/common-utils';
/**
* Add handlers to Listpickers that haven't been initialized yet.
* Already initialized Listpickers are marked with a token class (rf-listpicker-ajaxtoken)
* and will be skipped on subsequent calls.
*/
export function initListpickers(){
... |
import {SuperTienda} from './manager.js';
import { BaseException,
InvalidAccessConstructorException,
EmptyValueException,
InvalidValueException,
AbstractClassException } from './manager.js';
import { testManager, testAddObjects} from './managerTest.js';
import {Product, Category, Laptop, Smartphone, Tv} from '... |
import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import React from 'react';
import { useState } from "react";
import { Button, Card, Col, Dropdown, DropdownButton, Image, ListGroup, OverlayTrigger, Row, Tooltip } from "react-bootstra... |
const express = require('express');
const _ = require('lodash');
const router = express.Router();
const log = require('perfect-logger');
let mysql = require('../../modules/database');
let cacheRankings = {};
function ranker(number){
switch (number){
case 1:
return number + "st";
case ... |
"use strict";
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, a... |
const CANVAS_HEIGHT = 600;
const VERTICAL_MARGIN = 36;
const ZOOM_LENS_RADIUS = 50;
const ZOOM_BUTTON_RADIUS = ZOOM_LENS_RADIUS / 4;
const ZOOM_OUT_BUTTON_DISTANCE = 120;
const ZOOM_MULTIPLIER = 2;
const SMALL_VALUE = 5;
const STROKE_NORMAL = '#aaa';
const CONTROL_STATE = {
VIEW: 0,
CHOOSE_ZOOM: 1,
ZOOME... |
'use strict';
const path = require('path');
const fs = require('fs');
const _ = require('lodash');
const generator = require('strapi-generate');
const jsonld = require('jsonld');
const superagent = require('superagent');
const SchemaOrg = require('schema.org');
module.exports = {
appearance: (attributes, model, sou... |
const getState = ({ getStore, getActions, setStore }) => {
return {
store: {
demo: [
{
title: "FIRST",
background: "white",
initial: "white"
},
{
title: "SECOND",
background: "white",
initial: "white"
}
],
nocolumnasEstado: "2",
noPisosEstado: "2",
entrePi... |
/*
* sjedon
* https://github.com/fabiosantoscode/sjedon
*
* Copyright (c) <NAME> 2014
* Licensed under the MIT license.
*/
'use strict';
var assert = require('assert')
var escope = require('escope')
var nothing = {};
var break_ = {};
var continue_ = {};
function notimplemented(feature) {
throw new Error ... |
'use strict';
const Assert = require('assert');
const NormalizeURL = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/modules/repos/normalize_url');
const ExtractCompanyIdentifier = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/modules/repos/extract_company_identifier');
const Path = require('path');
cons... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lisk_chain_1 = require("@liskhq/lisk-chain");
const lisk_bft_1 = require("@liskhq/lisk-bft");
const lisk_cryptography_1 = require("@liskhq/lisk-cryptography");
const lisk_transaction_pool_1 = require("@liskhq/lisk-transaction-pool");
con... |
Alloy.Globals.PLUGIN = 'testapp/';Alloy.Globals.BASEURL = 'http://www.derekstearns.com/appcreator/';
Alloy.Globals.RELATIONSHIP = {"adults":{
"Modelname":"Adults",
"modelname":"adults",
"singlename":"adult",
"tblname":"adults",
"sModelname":"Adult","kids":{
"relation":"HM",
"tbl... |
function showDialog(title,msg) {
$("#myModal").find(".modal-header h3").html(title);
$("#myModal").attr('class','modal');
$("#myModal").find(".modal-body p").html(msg);
setTimeout(function(){
$("#myModal").attr('class','modal hide');
},3000);
}
function showmessage(cls,msg) {
$('.' + cls).show... |
import React, { useState } from "react";
// Moment import
import moment from "moment";
import config from "../../../config/auth_config";
import { useNavigate } from "@reach/router";
// Import graphql
import { useQuery, useMutation, useSubscription } from "react-apollo";
import {
CREATE_NEWSFEED_COMMENT,
GET_NEWSFEE... |
let mmat;
function createText(txWidth, txHeight, panelHeight, f, scene)
{
const tx = new BABYLON.DynamicTexture("DynamicTexture", {width:txWidth, height:txHeight}, scene, false);
tx.hasAlpha = true;
const mat = new BABYLON.StandardMaterial("mat", scene);
mat.emissiveTexture = tx;
mat.opacityTextur... |
// Common 3d subroutines for Javascript
// Copyright (c) 2016 <NAME>
// Licensed under MIT license.
//Initial slow implementation
//TODO: Speed up
//TODO: lower allocation overhead
//TODO: Make consistent function names
var epsilon = 0.0001;
function makeArray(n, init) {
var a = new Array(n);
if (init) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.