text stringlengths 8.5k 48.7k |
|---|
/**
* First we will load all of this project's JavaScript dependencies which
* includes React and other helpers. It's a great starting point while
* building robust, powerful web applications using React + Laravel.
*/
require('./bootstrap');
/**
* Next, we will create a fresh React component instance and attach ... |
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
*/
let requirejs; let require; let define; !function(global, setTimeout) {
let req; let s; let head; let baseElement; ... |
import Vue from 'vue';
import iView from 'iview';
import VueRouter from 'vue-router';
import Routers from './router';
import Util from './libs/util';
// import Antd from 'vue-antd';
// ./dist/assets/styles/demo.css
import $ from 'jquery';
import App from './app.vue';
import 'iview/dist/styles/iview.css';
import './dist... |
/**
*
* ioBroker MBUS adapter
* Copyright 2018 apollon77
* MIT LIcense
*
* Adapter loading data from an M-Bus devices
*
*/
/* jshint -W097 */
/* jshint strict:true */
/* jslint node: true */
/* jslint esversion: 6 */
'use strict';
const fs = require('fs');
const utils = require('@iobroker/adapter-core'); // G... |
isTracking = false;
geolocateControl = function(opt_options) {
var options = opt_options || {};
var button = document.createElement('button');
button.className += ' fa fa-map-marker';
var handleGeolocate = function() {
if (isTracking) {
map.removeLayer(geolocateOverlay);
... |
/** 全局通用变量 **/
var width = 1; // 全局 - 窗口宽度
var height = 1; // 全局 - 窗口高度
var windowPie = 1; // 全局 - 当前工作区宽高比
var isiOS = navigator.userAgent.indexOf('iPhone') > -1; // ios终端
var isIpad = navigator.userAgent.indexOf('iPad') > -1; // ipad特殊处理
var isAndroid = navigator.userAgent.indexOf('... |
/*!
* Photon JavaScript Library v3.5.1
* https://ksengine.github.io/photon/
*
* Copyright <NAME>
* Released under the MIT license
* https://github.com/Ksengine/Photon/license
*
*/
// resource: https://developer.mozilla.org
/*!
* Ajax
*/
var XMLHttpRequest =
(typeof XMLHttpRequest !== 'undefined' && XML... |
const ruta = `${Traer_Server()}index.php/contratista_control/`;
let contratos = "";
let solicitud = "";
let errores = [];
let cargados = 0;
$(document).ready(function () {
$(".fidel input").focusin(function () {
let fidel = this.parentElement;
$(fidel).css("border", "1.3px solid #d67e1c");
});
$(".fidel input"... |
var app = angular.module('demoapp', ['ui.router']);
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$urlRouterProvider.otherwise("/main");
$stateProvider
.state('main', {
url: '/main',
templateUrl: 'partials/index'
})
;
});
func... |
import {
prng_alea
} from 'esm-seedrandom';
import {
color
} from './color.js';
/*
expandedMapData has the following shape:
{
rows: 5,
cols: 5,
adjacentPossibleSteps: 1,
scale: 1.0,
colors {
'zero': color(),
'negative': color(),
'positive': color(),
}
cells: [//cellData]
}
where cell data looks like:... |
// Copyright 2018 BlueCat Networks (USA) Inc. and its affiliates
//
// 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... |
import Phaser from 'phaser';
var cargo;
var bodyStore;
var rockStore;
var checkpointSpawn;
//////////////////////////////// Storage untuk penyimpanan body dan Rock untuk random generated assets//
var terrainGraphics;
var startLine;
//var isWheelCollide;
/////////////////////////////// Variable Generate Mountain//
var ... |
const line = '<br/><br/>'
const end = '<br/><br/><br/>'
const tab = ` `
const bulletab = `${tab}• `
const separator = `---------------${line}`
export default {
slide1: `
Hello everyone
${line}
Let's talk about charting!
`,
aboutMe: `
So I'm <NAME>${line}
${bulletab}... |
/* eslint-env mocha */
import 'babel-polyfill';
import assert from 'assert';
import s from 'underscore.string';
import './client.mocks.js';
import { original } from '../lib/parser/original/original';
import { filtered } from '../lib/parser/filtered/filtered';
import { Markdown } from '../lib/markdown';
const wrapper... |
import $ from '../core/renderer';
import eventsEngine from '../events/core/events_engine';
import registerComponent from '../core/component_registrator';
import { extend } from '../core/utils/extend';
import Draggable from './draggable';
import { getPublicElement } from '../core/element';
import { getWindow } from '../... |
import React, { Component, Fragment } from "react";
import { Map, TileLayer, CircleMarker, Tooltip, LayersControl, LayerGroup } from "react-leaflet";
import ModelAPI from "./modelapi";
import "leaflet/dist/leaflet.css";
import globalLL from "./frontendData/global_lats_longs.txt"
import population from './frontendData/... |
var titleCNT = 0;
var textCNT = 0;
var headingCNT = 0;
var labelCNT = 0;
var blankSpaceCNT = 0;
var questionBucketCNT = 0;
var textBoxCNT = 0;
var checkboxCNT = 0;
var radiobuttonCNT = 0;
var selectboxCNT = 0;
var textareaCNT = 0;
var datepickerCNT = 0;
var timepickerCNT = 0;
var attachmentCNT = 0;
var dispHelpers = f... |
import React, { Component, Fragment } from 'react';
import {
animationTimingFunction,
animations,
stopAnimation,
registerStartAnimation,
animateProp,
s
} from './animation';
import {
getCurrentTime,
equalizePoints,
setTransform,
isEqualPoints,
roundPoint,
findCenterOfPoints,
calculatePointsD... |
// Saves options to chrome.storage
function hexToRgb(hex) {
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
} : null;
}
function getrgb(hex) {
var rawrgb = hexToRgb(hex);
return... |
/**
#bindinator
Copyright ©2016-2017 <NAME>
Bindinator (b8r) binds data and methods to the DOM and lets you quickly turn chunks of
markup, style, and code into reusable components so you can concentrate on your project.
b8r leverages your understanding of the DOM and the browser rather than trying to
implement some k... |
'use strict';
const assert = require('assert');
const inspect = require('util').inspect;
const url = require('../../url');
// when source is false
assert.strictEqual(url.resolveObject('', 'foo'), 'foo');
/*
[from, path, expected]
*/
const relativeTests = [
['/foo/bar/baz', 'quux', '/foo/bar/quux'],
['/foo/bar/ba... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
//===----------------------------- table.js -------------------------------===//
//
// Parses JSON files and returns html tables as strings.
//
//===----------------------------------------------------------------------===//
"use strict";
// disable JSHint warning: Use the function form of "use strict".
// This warning... |
/*
* Copyright 2014 - 2017 Cognizant Technology Solutions
*
* 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 ap... |
/**
* Modal Logic Playground -- application code
*
* Dependencies: D3, MathJax, MPL
*
* Copyright (c) 2013 <NAME>
* Released under the MIT License.
*/
// app mode constants
var MODE = {
EDIT: 0,
EVAL: 1
},
appMode = MODE.EDIT;
// set up initial MPL model (loads saved model if available, def... |
'use strict';
const RandomGen4Teams = require('../../mods/gen4/random-teams');
class RandomGen3Teams extends RandomGen4Teams {
randomSet(template, slot, teamDetails) {
if (slot === undefined) slot = 1;
let baseTemplate = (template = this.getTemplate(template));
let species = template.species;
if (!template.... |
// This has been moved to npm package firestore-cms-iframe.
import React, {useEffect, useState, ReactDOM} from 'react';
// This is shared code for all CMS listeners.
// Listens to events from login.<domain-name>.craftie.xyz,
// Edits the page after events are received.
import Quill from 'quill';
// import ReactQuill ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const collection_utils_1 = require("collection-utils");
const Type_1 = require("./Type");
const TypeUtils_1 = require("./TypeUtils");
const Naming_1 = require("./Naming");
const Renderer_1 = require("./Renderer");
const Support_1 = require("./... |
// -*- mode: javascript; indent-tabs-mode: nil; c-basic-offset: 8 -*-
"use strict";
// Define our global variables
var GoogleMap = null;
var Planes = {};
var PlanesOrdered = [];
var SelectedPlane = null;
var FollowSelected = false;
var SpecialSquawks = {
'7500' : { cssClass: 'squawk7500', markerCol... |
"use strict";
/*
* Copyright 2019 gRPC authors.
*
* 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 l... |
export { default as ThreeDIcon } from './3d.js';
export { default as AccessAccessibilityIcon } from './AccessAccessibility.js';
export { default as AccessAdIcon } from './AccessAd.js';
export { default as AccessAssistListeningIcon } from './AccessAssistListening.js';
export { default as AccessBrailleIcon } from './Acce... |
function displayGender(gender)
{
var gendername = '女';
gender = parseInt(gender);
switch (gender)
{
case 0:
gendername = '保密';
break;
case 1:
gendername = '男';
break;
case 2:
gendername = '女';
break;
}
return gendername;
}
function replyToFloor(floor,poster, postid)
{
... |
var MasterObject = {};
var allUsersHolder = []; //Global
var myFriends = []; //Global
var myProfile = {}; //Global
var currentUser = "<NAME>"; //Global
var friendProfiles = [];
var callBackArray = [];
var friendTweets = [];
var myTweets = [];
var myProfileArray = [];
var allTweets = [];
var loopSwitch = false;
Mast... |
/* jshint -W097 */ // no "use strict" warnings
/* jshint -W061 */ // no "eval" warnings
/* jslint node: true */
"use strict";
// always required: utils
var utils = require('@iobroker/adapter-core');
// other dependencies:
var dgram = require('dgram');
var os = require('os');
// create the adapter object
var adapter ... |
import { isNullOrUndefined, removeClass, addClass } from '@syncfusion/ej2-base';
import { DataManager, Query } from '@syncfusion/ej2-data';
import * as cls from '../base/css-constant';
import { PivotUtil } from '../../base/util';
/**
* `EventBase` for active fields action.
*/
var EventBase = /** @class */ (function (... |
function Symb(name, desc, sets, data) {
this.name = name;
this.desc = desc;
this.sets = sets;
this.data = data;
this.mask = 0;
this.maxDiff = 0;
//this.maxVal = -1e12;
this.tempMaxDiff = 0;
var i;
for (i=0;i<sets.length-1;i++) {
this.mask |= 1<<sets[i];
}
}
/*var symbList = new Array();
symbList[0] = new S... |
function webonary_slightbox ($) {
'use strict';
function Lightbox(element, options) {
this.el = element;
this.$element = $(element);
this.$body = $('body');
this.objects = {};
this.lightboxModul = {};
this.$item = '';
this.$cont = '';
... |
const async = require('async');
const events = require('events');
const Kafka = require('node-rdkafka');
const { v4: uuidv4 } = require('uuid');
const util = require('util');
const CommitManager = require('./CommitManager');
const { Logger } = require('../logging/Logger');
const Helper = require('./Helper');
/**
* Lo... |
btc_rmb_ajax = 10;
var widthNumArr = { 'goc': 0.05, 'btc': 10, 'ltc': 0.1, 'lc': 0.005, 'lsk': 0.005, 'eth': 0.5, 'etc': 0.2, 'mtc': 0.002, 'uc': 0.01, 'lbc': 0.002, 'dsc': 0.002, 'lcc': 0.002, 'mac': 0.002, 'tur': 0.002, 'ecf': 0.002, 'osc': 0.002, 'gec': 0.002, 'hxi': 0.002, 'tge': 0.002 ,'dstb': 0.002 };
function... |
"use strict";
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(a... |
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import ReactDOM from 'react-dom';
import createClass from 'create-react-class';
import KeyCode from 'rc-util/es/KeyCode';
import classnames from 'classnames';
import Anima... |
import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
import { ZapisnyListSelector } from './ZapisnyListSelector';
import { CacheRequester, Loading, RequestCache, sendRpc } from './ajax';
import { coursesStats } from './coursesStats';
import { humanizeTypVyucby, plural } from './humani... |
/**
* Form especial para ver cargar toda la informacion de los torneos.
*
* A diferencia de otros modelos, se necesita hacer uno custom porque:
*
* - el mismo renderea varios forms
* - dependiendo de lo que el usuario elija, se renderan ciertos forms o no.
*/
var TorneoFormView = BaseFormView.$extend({
__in... |
// TODO: Delete and redo this whole thing
// I had no idea how javascript or jQuery worked when I started
// ideas: Instead of update depending on action taken, iterate through and update
// use consistent element passing (id vs object vs parent class etc.)
// avoid setAttribute+string in favor of existing... |
/**
* @module
* @name PgCrudStrategies
* @author <NAME>
* @description this handler works as a context for the transaction strategy
*
*/
/* jshint node: true */
/* jshint esnext: true */
"use strict";
let _ = require("lodash");
const DataTypeClasses = require("../Utils").DataTypeClasses;
const FieldTypes = requi... |
/**
* @file main.js dosyası ana dosyamızdır
* @author AlpSu
* @see github.com/AlpSuuu/AlpSuuu.git
*/
/**
* man objesi oluşturma fonksiyonu
*
* @constructor
* @param {string} name - oluşturduğunuz objeye verdiğiniz ad
* @param {string} surname - oluşturduğunuz objeye verdiğiniz soyad
* @param {n... |
import PropTypes from 'prop-types'
import React, { Component, useEffect, useCallback, useRef, useState, useMemo } from 'react'
import styled from 'styled-components/macro'
import { Formik, Field, ErrorMessage } from 'formik'
import QRCode from 'qrcode.react'
import Textarea from 'react-textarea-autosize'
import ReactTo... |
const faIcons = [
'fas fa-ambulance',
'fas fa-anchor',
'fas fa-baby',
'fas fa-baby-carriage',
'fas fa-balance-scale',
'fas fa-basketball-ball',
'fas fa-bath',
'fas fa-bed',
'fas fa-bell',
'fas fa-biking',
'fas fa-birthday-cake',
'fas fa-blender',
'fas fa-blind',
'... |
class Template {
/**
* Create a template
* @param {String} str - an html string
* @param {Array} handlers - an array of handlers
*/
constructor(str, handlers) {
this.str = str;
this.handlers = handlers;
}
}
const mockEl = document.createElement('div');
const defaultProps = [
'textContent',
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.run = run;
function _bunyan() {
const data = _interopRequireDefault(require("@expo/bunyan"));
_bunyan = function () {
return data;
};
return data;
}
function ConfigUtils() {
const data = _interopRequireWildcard(req... |
/*
create a graph with Cytoscape
*/
var path;
var nodes;
var colorschemePathsLeft = [];
var colorschemePathsRight = [];
var colorschemePathsMerge = [];
var leftEdges = [];
var rightEdges = [];
var graphLeft;
var graphRight;
/*
visualize a graph from .graphml-file
*/
function visualize(firstTime=false, files, exam... |
// detail features
"use strict";
const BaseUri = {
skos: 'http://www.w3.org/2004/02/skos/core#',
dcterms: 'http://purl.org/dc/terms/',
foaf: 'http://xmlns.com/foaf/0.1/',
geo: 'http://www.w3.org/2003/01/geo/wgs84_pos#',
gba: 'http://resource.geolba.ac.at/PoolParty/schema/GBA/',
owl: 'http://www... |
//------------------
// It's a little bit tricky to test tilelayer with CI.
// run gulp test
// and test tilelayer manually at http://localhost:20000/tilelayer.html
//------------------
import {
sign,
join,
requestAnimFrame,
cancelAnimFrame,
emptyImageUrl,
now
} from 'core/util';
import * as mat... |
/*
// Patern Normal
Patern UnrealBloom
Patern Afterimage
Patern Sobel
Patern Distortion
Patern MatCap
Patern DotScreen
*/
//Postprocessing Common
import { resizeHandler } from "./utils";
if (module.hot) {
module.hot.accept();
}
import texture from "data-url:../img/texture.jpg";
impor... |
/**
* Zesty.io Content Model Component
* When the ZestyLoader [..slug].js file is used, this component will autoload if it associated with the URL
*
* Label: Integrations-Individual Pages
* Name: integrations_individual_pages
* Model ZUID: 6-88e5918e85-tmg13p
* File Created On: Thu Apr 07 2022 01:46:58 GMT+08... |
/**
* <NAME> 2021-03
* Simple Clock showing 1 numeral for the hour
* with a smooth sweep second.
*/
const screen_center_x = g.getWidth()/2;
const screen_center_y = 10 + g.getHeight()/2;
require("FontCopasetic40x58Numeric").add(Graphics);
const color_schemes = [
{
name: "black",
background : [0.0,0.0... |
//Add your Azure Maps subscription key to the map SDK. Get an Azure Maps key at https://azure.com/maps
var azureMapsKey = '<Your Azure Maps Key>';
//Map, data sources, layers and popup variables.
var map, dataSource, clusterDataSource, bubbleLayer, heatMapLayer, popup;
//Parsed aggregated features.
var summaryData... |
const electron = require('electron');
const ipc = electron.ipcRenderer;
const remote = electron.remote;
const app = remote.app;
const win = remote.getCurrentWindow();
const dialog = remote.dialog;
var rootNode;
var fs = require('fs');
// const menu = remote.Menu;
// const Datastore = remote.require('./include/nedb')
c... |
/*
* Network - dynamic SVG based network
*
* Author: <NAME>
* Copyright: 2020
* License: MIT
*/
class Reference {
static TYPE_EPIC = "Epic";
static TYPE_STORY = "Story";
static TYPE_DEFECT = "Defect";
type;
id;
constructor(id = getUuid(), type = Reference.TYPE_STORY) {
this.id = id;
this... |
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free... |
//
// fallingSand.js
// examples
//
// Created by <NAME> on 7/14/14.
// Copyright 2014 High Fidelity, Inc.
//
// This sample script allows the user to place sand voxels that will undergo
// cellular automata physics.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE ... |
/*-----------------------------------------------------------------------------
# Terrapattern User Interface Code
#### written by: <NAME> (@workergnome)
This is the main interface code for the Terrapattern user interface.
It uses p5.js and the Google Maps API to generate four content sections:
* The Map, which is a... |
/*
/ Handlers for the "oAddressType" table.
/ This program was built by meta.js starting at yx52pvsi0kn9p5o46hrq
*/
// Dependencies
const fs = require('fs');
const readline = require('readline');
const { pipeline, Readable, Writable } = require('stream');
const StringDecoder = require('string_decoder').StringDecoder... |
(function ($) {
// This function is used to get error message for all ajax calls
function getErrorMessage(jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [... |
var nameLink = new URLSearchParams(window.location.pathname);
// function cart(){
// var input = document.querySelector('.checkout input#order');
// var cart = JSON.parse(localStorage.getItem('cart'));
// var cartlength = cart.length;
// // if(cartlength){
// // input.value = localSto... |
"use strict";
function setNumberFields() {
return 6; // there are 0,1,2,3,4,5 of them
}
let [parameter1, parameter2, parameter3, parameter4, parameter5, parameter6, paramChoice] = [0.6069,1.536,-0.26,1,3.6,3.8,3];
//let [parameter1, parameter2, parameter3, parameter4, parameter5, parameter6, paramChoice] = [1.4... |
$(function() {
$("#battery-slider").slider({
range: "min",
value: 50,
min: 1,
max: 100,
slide: function(event, ui) {
$("#battery-slider-amount").val(ui.value + "%");
$("#battery-percent-number").text(ui.value);
$("#battery-percent").width(u... |
const melindaFPSModel = require("../models/melindaFPS")
const vmsTypeModel = require("../models/vmsTypeModel")
const vmsModel = require("../models/vmsModel")
const nodeModel = require("../models/nodeModel")
const mqtt = require('mqtt')
const docker = require("../util/dockerApi")
const melindaController = {
/**
... |
import React from "react";
import { Container, Content, Text, H1, H2, H3 } from "native-base";
import Spacer from "./Spacer";
const Contact = () => (
<Container style={{ backgroundColor: "white" }}>
<Content padder>
<Spacer size={30} />
<H2 style={{ fontFamily: "playfair" }}>
Terminos y condi... |
/////////////////////////////////////
/////////////// Jh /////////////////
//// Written by Quantum Explorer ////
////////// Dash Foundation //////////
/// Released under the MIT License //
/////////////////////////////////////
var op = require('./op');
var helper = require('./helper');
var Jh_BlockSize =... |
// ************ Number formatting ************
function exponentialFormat(num, precision) {
let e = num.log10().floor();
let m = num.div(Decimal.pow(10, e));
if (m.toStringWithDecimalPlaces(precision) == 10) {
m = new Decimal(1);
e = e.add(1);
}
e = e.gte(10000) ? commaFormat(e, 0) : e.toStringWithDe... |
/**
* name : userExtension/helper.js
* author : Akash
* created-date : 01-feb-2019
* Description : User extension helper related functionality.
*/
// Dependencies
const userRolesHelper = require(MODULES_BASE_PATH + "/userRoles/helper");
const entityTypesHelper = require(MODULES_BASE_PATH + "/entityTypes/helper");... |
/* eslint-disable default-case */
/* eslint-disable no-duplicate-case */
const acceptableParameters = [
'targets',
'duration',
'animationFunction',
'delay',
'late',
'play',
'direction',
'endDelay',
'whenVisible',
'threshold',
'iteration',
'returnToInitial',
]
function initialParameters(i) {
s... |
let database = {}
module.exports = database
let common = require("./common")
let tiles = require("./tiles")
let units = require("./units")
let userstats = require("./userstats")
let Redis = require("ioredis")
let redis
//Prevents unnecessary writes during the same round to full simulation quotas
let fullSimCache = new... |
var test = require('tape');
var Lib = require('../kv-lib');
var path = require('path');
var fs = require('fs');
var after = require('after');
var spok = require('spok');
var extend = require('xtend');
var partial = require('ap').partial;
var dotaItems = null;
var dotaItemIDs = null;
var dotaAbilities = null;
var dotaI... |
import { displayMod, horiz, i18n } from '../../lib/utilities.js'
import { parselink } from '../../lib/parselink.js'
import * as HitLocations from '../hitlocation/hitlocation.js'
import * as Settings from '../../lib/miscellaneous-settings.js'
import ModifierBucketJournals from './select-journals.js'
/**
* The Modifier... |
//-----------------------Shaders------------------------------
var shaders = {}
shaders['2d-vertex-shader'] = [
'attribute vec4 a_position;',
'attribute vec4 a_mat1;',
'attribute vec4 a_mat2;',
'attribute vec4 a_mat3;',
'attribute vec4 a_mat4;',
'attribute vec4 a_color;',
'varying vec4 v_color;',
'v... |
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2012 <NAME>
* Licensed under LGPL-3 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*/
/*jslint browser: true, white: false, bitwise: false */
/*global Util, Base64, changeCursor */
function Display(defaults) {
"use strict";
var that ... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
$(function () {
//alert(1);
var insert = true;
$('#ex-insert-kpdoituong').html('');
insertUpdate(1);
permission(function(){
var html_view = '<b> Quản lý kinh phí </b> / Cập nhật mức hỗ trợ theo đối tượng';
if(check_Permission_Feature('1')){
html_view += '<a styl... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
const cors = require('cors')({ origin: true });
const { admin } = require('../admin');
const dealCards = require('./dealCards');
const setPulesOnClose = require('./setPulesOnClose');
const cardOrder = ['♥-9', '♥-K', '♥-10', '♥-A', '♠︎-9', '♠︎-K', '♠︎-10', '♠︎-A', '♣︎-9', '♣︎-K', '♣︎-10', '♣︎-A', '♦︎-7', '♦︎-8', '♦︎-9'... |
/*!
* Animo JavaScript Library v1.0.0
* @author : <NAME>
* @site : http://riseledger.com
* @download : http://riseledger.com/animation/animo.min.js
* @license : Released under the MIT license
* @version : 1.0.0 Official Release
* @copyright : 2013
* @description : Use this library to animate th... |
import React, { Component, Suspense, lazy } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faDrawPolygon, faList, faBars, faCheck, faTrash, faPlus, faMinus, faUndo, faRedo } from '@fortawesome/free-solid-svg-icons';
import { cloneDeep } from 'lodash';
import { ToggleButtonGrou... |
'use strict'
const _ = require('lodash')
const { PropertyUndefinedError, DataPathUndefinedError } = require('./errors')
const helperLib = {}
module.exports = helperLib
// escape regular expression character
// credit: https://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
RegExp... |
// <NAME> <<EMAIL>>
"use strict";
// modules
const assert = require('../../assert.js');
// const BedShape = require('./shape.js');
const NeedleBlock = require('./block.js');
const { integerStats } = require('./cost.js');
// local variables
let __nodeID = -1;
/**
* Return the pair of stress indices across two stitch... |
'use strict'
let u32 = new Uint32Array(1)
let c32 = new Uint8Array(u32.buffer)
let f32 = new Float32Array(u32.buffer)
let u16 = new Uint16Array(1)
let c16 = new Uint8Array(u16.buffer)
/** Header Codes
* S = sign bit, 0 = positive or 0, 1 = negative
* 0000 - 0 or false
* 0001 - 1 or true
* 001S - 8 bit
*
* 010S... |
'use strict';
exports.__esModule = true;
var _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; };
var _react = requi... |
/**
* This is copied and modified from Apache v2 project of <EMAIL>:SeleniumBuilder/selenium-builder.git.
* I respect their work and am really proud of my creation based on it. Thanks.
*/
/**
Apache License
Version 2.0, January 2004
... |
// Dependencies
const animationModule = require("tns-core-modules/ui/animation");
const appSettings = require("tns-core-modules/application-settings");
const audio = require("nativescript-audio");
const dataEntries = require("~/components/sendData.json");
const dom = require("nativescript-dom");
const enums = require("... |
import React from 'react';
import PropTypes from 'prop-types';
import { KeyboardAvoidingView, View, Text, ScrollView, Platform, TouchableOpacity, Keyboard, BackHandler, FlatList, Image } from 'react-native';
import { connect } from 'react-redux';
import { isEmpty, isNil, isNull } from 'lodash';
import { Kitsu } from 'k... |
export const defaultVertexSource = `
varying vec4 worldPos;
varying vec2 vUv;
void main()
{
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
worldPos = modelMatrix*vec4(position,1.0);
vUv = uv;
gl_Position = projectionMatrix * mvPosition;
}
`;
export const defaultFragSourceJS = 'sphere(0.2);... |
import React, {useState, useEffect,useRef} from 'react';
import {connect} from 'react-redux';
import {createStructuredSelector} from 'reselect';
import uuid from 'react-native-uuid';
import CopyOffline from '../../components/copy-offline/Copy-offline'
import Profiles from '../../components/profiles/Profiles'
import M... |
import React, { Component } from "react";
import MapView, { PROVIDER_GOOGLE } from "react-native-maps";
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Animated,
Image,
Dimensions,
} from "react-native";
import { AsyncStorage } from 'react-native';
import Polyline from '@mapbox... |
/** Sudoku game */
function Sudoku(params) {
this.INIT = 0;
this.RUNNING = 1;
this.END = 2;
this.gameId = params.gameId;
this.id = params.id || 'sudoku_container';
this.init(this.fixCellsNr,params.secondsElapsed, params.score, params.board, params.boardSolution, params.boardValues, params.board... |
// Simple three.js example
var mesh, renderer, scene, camera, controls;
let room, roomOuter, listener, soundSource;
let audioContext;
let audioElement, audioElementSource, audioBufferSource, gainNode;
let source;
let audioScene;
let mat;
let dimensions = {
width: 4, height: 4, depth: 4
};
let materials = {
le... |
var injectionRate = 5;
var configIndex = 0;
var currentConfig = 0;
// var currentConfig = configurations.files[configIndex];
var networkData = 0;
// max value for progress needs to be hard coded
var loadingValue = 105703334;
var globalFreeze = false;
var width = 1080,
height = 900;
groupDomain = [1, 2, 3, 4, 5];... |
var $iBoxTotalOpen = 0;
var $iCurrentZIndex = 1;
var $aBoxHistory = {};
var iImageIterationCount = 0;
var iCurrentImageIterationCount = 0;
var $sCurrentId = null;
var sLastOpenUrl = null;
var bIsPhotoImage = false;
$Behavior.addDraggableToBoxes = function()
{
if ($('.js_box').length > 0 && !$.ui)
{
$Core.lo... |
import React, { useContext, useState, useCallback, useEffect, useRef } from 'react'
import Breadcrumbs from '../breadcrumbs'
import Editor from "./editor"
import Diagram from './diagram'
import YAML from 'js-yaml'
import TileTitle from '../tile-title'
import CircleFill from 'react-bootstrap-icons/dist/icons/circle-fi... |
// Globals
var allPlotData,
columnNames,
columnDomains,
svg,
stateMarkerStyle, stateHistogramStyle;
/*
Define some default style parameters
*/
// all size / padding parameters are specified in pixels
var defaults = {
"stateStyle" : {
"padding" : {
"top" : 20,
"l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.