text stringlengths 3.22k 29.5k |
|---|
"use strict";
const {
defineProperties,
getOwnPropertyDescriptor,
getPrototypeOf,
setPrototypeOf,
toString
} = Object;
const {
construct,
ownKeys
} = Reflect;
const reserved = new Set(['constructor', 'extends', 'static']);
const isNative = Class => toString.call(Class).includes('[native code]');
cons... |
/*
* Copyright 2012 Intel Corporation.
*
* 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... |
import React , { Component } from 'react';
class ThanksComponent extends Component {
constructor(props) {
super(props);
this.state = {
isOpen : false
};
}
render() {
return (
<div id="thanks" className="min-w-screen min-h-screen bg-gray-200 flex ... |
const Path = require('path');
const pify = require('util').promisify;
const semverRegex = require('semver-regex');
const rimraf = pify(require('rimraf'));
const exec = pify(require('child_process').exec);
const postinstall = require('postinstall');
const fs = require('fs').promises;
exports.install = function(site, o... |
/*
MIT License
Copyright (c) 2019-2021 <NAME> <<EMAIL>>
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, p... |
import React, { useState, useEffect } from "react";
import {
StyleSheet,
Text,
View,
TouchableWithoutFeedback,
Keyboard,
ActivityIndicator,
TouchableOpacity,
Platform,
} from "react-native";
import { Ionicons } from "@expo/vector-icons";
import { secondary, filler_alt } from "../../styles/colors";
impor... |
/*
* atvImg
* Copyright 2015 <NAME>
* http://drewwilson.com
*
* Version 1.1 - Updated: Oct. 26, 2015
*/
function FastClick(e, t) {
function n(e, t) {
return function() {
return e.apply(t, arguments)
}
}
var i;
t = t || {}, this.trackingClick = !1, this.trackingClickStart = 0, this.targetEle... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Platform_1 = require("../../Platform");
const overkiz_client_1 = require("overkiz-client");
const ... |
function createButtonAndAddit_Akbar(){
var ref = $(".referenceno > strong > a");
var div = document.createElement( 'div' );
var btnForm = document.createElement( 'form' );
var btn = document.createElement( 'input' );
//append all elements
$(ref).after(div);
div.appendChild( btnForm )... |
// TODO Default parameter of postEffect
import Scene from 'claygl/src/Scene';
import ShadowMapPass from 'claygl/src/prePass/ShadowMap';
import PerspectiveCamera from 'claygl/src/camera/Perspective';
import OrthographicCamera from 'claygl/src/camera/Orthographic';
import Matrix4 from 'claygl/src/math/Matrix4';
import V... |
var colors = []
var modifiers = ['dark', 'light']
const modifierParser = require('../modifier')
module.exports = function(sentence, varName) {
if (typeof sentence === 'string' && sentence != '') {
var prep = modifierParser(sentence, modifiers)
if (prep) {
sentence = prep.left
}
var lowerSent... |
title = "Flipper";
description = `
[Tap] Flip Tile
Match the image shown!
`;
characters = [
`
llllll
llllll
llllll
llllll
llllll
llllll
`,
`
cccccc
cccccc
cccccc
cccccc
cccccc
cccccc
`
];
// Game and Runtime Options
const G = {
WIDTH: 200,
HEIGHT: 200,
Box_Width: 50,
RESETS: 3,
LEVELS: 4,
};
options = {
... |
'use strict';
var d3 = require('d3'),
oboe = require('oboe'),
sum = require('lodash/sum'),
reduce = require('lodash/reduce'),
map = require('lodash/map'),
throttle = require('lodash/throttle');
require('d3-tip')(d3);
var tip;
document.addEventListener('DOMContentLoaded', function(event) {
fu... |
'use strict';
const MAX_UART_LOG_LINES = 20;
const CMD_DUT_POWER_OFF = 10;
const CMD_DUT_POWER_ON = 11;
const CMD_OUT_ISP_LOW = 20;
const CMD_OUT_ISP_HIGH = 21;
const CMD_OUT_ISP_TRISTATE = 22;
const CMD_CH3_LOW = 23;
const CMD_CH3_HIGH = 24;
const CMD_CH3_TRISTATE = 25;
const CMD_BAUDRATE_38400 = 30;
const CMD_BAUDR... |
const { emoji, colors, prefix } = require("../config.json");
const { dbQuery, channelPermissions, serverLog, fetchUser, dbModify, suggestionEmbed, dbQueryNoNew } = require("../coreFunctions.js");
module.exports = {
controls: {
permission: 3,
usage: "approve <suggestion id>",
description: "Approves a suggestion",... |
/*
Copyright 2016-17, Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH
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 applicab... |
const data = require('../../data/data');
const configure = require('../configure/config');
const Room = require("../models/page").Room;
const User = require("../models/page").User;
const Reservation = require("../models/page").Reservation;
const CryptoJS = require('crypto-js');
const jwt = require('jsonwebtoken');
con... |
/* eslint-disable prettier/prettier */
/* eslint-disable jsx-a11y/control-has-associated-label */
/* eslint-disable no-debugger */
/* eslint-disable no-unused-vars */
import { map } from 'jquery';
import React, {useState} from 'react';
import {FaPlus, FaTrash,FaWrench} from 'react-icons/fa';
import {useTranslation} fro... |
import crypto from "crypto";
import os from "os";
import path from "path";
import child_process from "child_process";
import fetch from "node-fetch";
import fs from "fs-extra";
import aniep from "aniep";
import cv from "opencv4nodejs-prebuilt";
import { performance } from "perf_hooks";
import getSolrCoreList from "./li... |
import React, { Component } from "react";
import ChartistGraph from "react-chartist";
import BuildTrends from '../../components/Charts/BuildTrends'
import {Grid, Row, Col,Table,DropdownButton,MenuItem,Modal,Button} from "react-bootstrap";
import {Card} from "../../components/Card/Card.jsx";
import {
thArray,
td... |
"use strict";
require("core-js/modules/es.symbol");
require("core-js/modules/es.symbol.description");
require("core-js/modules/es.symbol.iterator");
require("core-js/modules/es.array.concat");
require("core-js/modules/es.array.filter");
require("core-js/modules/es.array.for-each");
require("core-js/modules/es.ar... |
'use strict';
var storeHours = ['6:00am','7:00am','8:00am','9:00am','10:00am','11:00am','12:00am','1:00pm','2:00pm','3:00pm','4:00pm','5:00pm','6:00pm','7:00pm','8:00pm'];
var totalCookiesEachHour = [];
var totalCookiesAllStores = 0;
var totalStaffEachHour = [];
var totalStaffHours = 0;
var stores = [];
var salesTab... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2016, Joyent, Inc.
*/
/*
* lib/time-util.js: date/time related helper functions
*/
va... |
class Node {
events = document.createElement("div");
canvasProperties = {height:600, width:800};
_endConnections = [];
_peer;
_username;
_avatarData;
get id() {
return this._peer.id;
}
get username() {
return this._username;
}
get avatarData() {
return... |
"use strict";
require('../utils/date');
const net = require('net');
const os = require('os');
const defer = require('../utils/defer');
const drain = require('../utils/drain');
const fs = require('fs');
const ini = require('ini');
const assert = require('assert');
const debug = require('../utils/debug-vars')('Za... |
(function () {
search = window.location.search.substr(1)
urlObj=JSON.parse('{"' + decodeURI(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}')
var timer = 10000;
var count = 1;
VenueDashboard = {
timeoutCount: 10000,
beacontables: {
url: {
... |
function mostRecent(ts, time){
//console.log('times:', times);
//console.log('time:', time);
if(ts){
tobj = ["now", time]
ts.push(tobj);
ts.sortBy(function(x,y){ return y});
idx = ts.indexOf(tobj);
var most_recent = ts[Math.max(0,idx-1)];
var next_a... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 The Regents of the University of California
*
* 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
* wit... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Line } from 'react-chartjs-2'
import numeral from 'numeral'
import Dropdown from 'components/navigation/Dropdown'
import DropdownInput from 'components/data-entry/DropdownInput'
import moment from 'moment'
import styles from './TotalP... |
let in_text = '',
delay_id = null,
in_dom = document.getElementById('in'),
out_dom = document.getElementById('out'),
select_dom = document.getElementById('select'),
copy_dom = document.getElementById('copy'),
setting_dom = document.getElementById('setting'),
options_dom = document.getElement... |
import React, { PureComponent } from 'react';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import _ from 'lodash/fp';
import { get } from 'lodash';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import SelectFormGro... |
import React from "react";
import {
Badge,
Button,
Card,
Col,
Container,
ListGroup,
Nav,
ProgressBar,
Row
} from "react-bootstrap";
import { useTranslation } from "react-i18next";
import { LinkContainer } from "react-router-bootstrap";
import { Link } from "react-router-dom";
import { fetchProjectAssi... |
var dataObject = [];
// 设备信息数据table
/* str="<tr>" +
"<td>"+result[i].id+"</td>"+
"<td>"+result[i].username+"</td>"+
"<td>"+result[i].eq_name+"</td>" +
//"<td>"+eq_state1+"</td>" +
"<td>"+result[i].number+"</td>" +
"<td>"+r... |
const discord = require('discord.js');
const excludedAttributes = [
'armorUniformity',
'structureUniformity',
'uniformity',
'shieldUniformity',
'Tech Level',
'scanSpeed',
'CPU Need Bonus',
'Theoretical Maximum Targeting Range',
'fighterAbilityAntiCapitalMissileResistance',
'figh... |
'use strict';
const should = require('chai').should();
const nonogram = require('..');
function rast(string) {
return string.join('').slice(1);
}
// FIXME Test assertions
describe('#parseConstraint()', () => {
it('parses black and white', () => {
nonogram.parseConstraint('1 3 2').should.deep.equal(
... |
/**
* this function updates this page according to flightId and userId 1. hide
* login button when already login 2. update background img and all info 3. get
* pilot info according to his Id(get from flightId) 4. hide/show private info
*
* @returns
*/
$(document).ready(function() {
setTimeout(affiche_map, 1000)... |
function S() {
return contactFactory.pickContacts(["friend", "chatroom"], {
chatroom: {
keyword: $scope.keyword,
isNewArray: true
},
friend: {
keyword: $scope.keyword,
isNewArray: true,
isWithoutBrand: true,
showFriendHe... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
*... |
"use strict";
function createZoneEightTaskBottomTab(task_id) {
let zone_eight_task_bottom = $(`<div class = "knbn-tt-tabs" id = "knbn-tt-tabs"></div>`);
zone_eight_task_bottom.append(templatesGenerationZoneEightTaskBottomTab({
item_get: "get-bottom-tab-names",
}));
zone_eight_task_bottom.append(... |
/* exporting functionality */
export { initExport, exportMarkdown, exportLatex }
import { mapObject, eachObject, initToggleBox } from './utils.js'
import { config, state, cache } from './state.js'
import { markthree } from './marked3.js'
import { s_env_spec } from './render.js'
import { htmlTemplate, latexTemplat... |
import { areCoordiantesValid, hasValue } from './utils/validation';
import MapError from './utils/MapError';
import { convertRadiansToDegrees } from './utils/math';
import { createEntityDescriptor } from './utils/cesium';
import EventsHandler from './EventsHandler';
import VectorLayerManager from './managers/VectorLaye... |
/**
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2020
*/
const fs = require('fs');
class Wizard {
/**
* Constructs class' basic properties.
* @param {[string]} courses Courses wanted, notated in shortcode (e.g CS 201)
* @param {{}} options Options specified for the algorithm
*/
construct... |
/*
UI ELEMENT SETUP
*/
/* Basic UI elements */
var folderContentsDiv = document.getElementById("folder-contents");
var imageElement = document.getElementById("downloaded-cc-rendition");
var fileInput = document.getElementById("file-item");
var uploadFileName = document.getElementById("upload-file-name");
var folde... |
const grpc = require('grpc');
const path = require('path');
const _ = require('lodash');
const ChaincodeError = require('./ChaincodeError');
const ERRORS = require('./../constants/errors');
const loggerUtils = require('./../utils/logger');
const dbUtils = require('./../utils/db');
const identityUtils = require('./..... |
'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... |
#!/usr/local/bin/node
"use strict";
//var http = require('http');
var express = require("/usr/local/lib/node_modules/express");
var execSync = require("child_process").execSync;
//var path = require("path");
var fs = require("fs");
//var bodyParser = require('/usr/local/lib/node_modules/body-parser')
var DS=... |
// Modules to control application life and create native browser window
const { app, BrowserWindow, ipcMain, Menu, MenuItem, clipboard, net } = require('electron');
// 声明一个全局变量
const fs = require('fs');
const path = require('path');
const url = require('url');
// 获取命令中带的参数
const argv = process.argv.slice(2);
// Keep a... |
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import { Button, Spin, Table, Modal, Tooltip, Select, Row, Col } from 'antd';
import { DeleteOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons';
import { useIntl } from 'react-intl';
import { DragDropContext, Droppab... |
var url = window.location.pathname;
var spl_url = url.split("/"), controller = spl_url[1];
$(document).ready(function () {
var $body = $('body');
$body.on('submit', '#type-create, #vendor-create, #product-create', (function (e) {
e.preventDefault();
var form = $(this);
var url = form... |
// Number data type
let numOne = 1000 ;
console.log(numOne);
// using Number object : we use it to convert to number
let numTwo = Number(1000);
console.log(numTwo);
// using new : we use it to convert to object
let numThree = new Number(1000);
console.log(numThree);
let strThree = new String(1000);
console.log(st... |
export { default as IconAccountTree } from "./icons/IconAccountTree";
export { default as IconAdd } from "./icons/IconAdd";
export { default as IconAddCircle } from "./icons/IconAddCircle";
export { default as IconAddPhoto } from "./icons/IconAddPhoto";
export { default as IconAddpage } from "./icons/IconAddpage";
expo... |
'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 ("... |
function showPredictBestCan(e) {
if (e) { e.stopPropagation(); }
if (!document.getElementById('pbcDiv')) {
let bcDiv = document.createElement('div');
let bcTable = document.createElement('table');
let bcTBody = document.createElement('tbody');
let bcTr = document.createElement('... |
// import learnsets
// FROM: text in learnsets-g6
// TO: PS data/learnsets.js
require("sugar");
fs = require("fs");
var Tools = require('./tools.js');
var Learnsets = Tools.data.Learnsets;
// remove existing gen 6 data
for (var speciesid in Learnsets) {
if (!Learnsets[speciesid] || !Learnsets[speciesid].learnset) ... |
function updateLabel(name) {
setSlider(name, $("#" + name + "_label").val());
refresh();
}
function updateLabels() {
var sliders = new Array("hue", "fun", "sat", "val", "ind");
for (var i = 0; i < sliders.length; i++) {
//update labels from sliders
setLabel(sliders[i], getSlider(sliders[i]));
}
}
function re... |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
//
// This module is for handling requests to:
// POST http://myapp.azure-mobile.net/push/registra... |
const chalData = require("./data.js");
const logger = require("../logger.js");
const mongoose = require("mongoose");
conn = mongoose.connection;
exports.listChallenges = function(client,msg) {
if(Object.keys(chalData.challengeList).length == 0) {
msg.channel.send("There are no challenges running."
... |
var grid = [];
var sz = 30;
var cols;
var raws;
var current;
var last;
var stack = [];
var generated = false;
var wdth = 600;
var hght = 600;
function setup() {
/*createCanvas(600, 600);*/
createCanvas(windowWidth - 20, windowHeight - 20);
cols = wdth / sz - 7;
raws = hght / sz * 2 - 7;
for (var j = 0; j < raws;... |
'use strict';
var fs = require('fs');
var http = require('http');
var kernel = require('./kernel');
var dbSettings;
var generalSettings;
var templateSettings;
var MAX_ATTEMPTS = 4;
exports.zeroSettingsExceptions = [ 'boardCreationRequirement',
'staticExpiration' ];
// Section 1: New settings {
function broadCas... |
var path = require('path');
var fs = require('fs-extra');
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var DirectoryNamedWebpackPlugin = require('directory-named-webpa... |
var WALL = 'x';
var FLOOR = ' ';
var BOX = '☐';
var PLAYER = '웃';
var GAME_SIZE = 8;
var gBoard;
var gSelectedCell;
var gPlayerPos;
restartGame();
function restartGame() {
gBoard = buildBoard();
renderBoard(gBoard);
}
function buildBoard() {
var board = [];
for (var i = 0; i <= GAME_SIZE; i++) {
... |
const L = require('leaflet');
const orbits = require('./orbitSolver.js');
const DataDisplay = require('./dataDisplay.js');
const AOSDataDisplay = require('./aosDataDisplay.js');
const LineDrawer = require('./lineDrawer.js');
const MarkerDrawer = require('./markerDrawer.js');
//This is where the magic view is ... |
import React, { useState } from 'react';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import Dia... |
import React, { useEffect, useState, useCallback } from 'react'
import dagreD3 from 'dagre-d3' // TODO: update ths library
import PropTypes from 'prop-types'
import * as d3 from 'd3' // TODO: update ths library
import workflowToGraph from '../workflowToGraph'
import { Card } from '@material-ui/core'
import SubGrapher f... |
/* @flow */
/* eslint no-console:0 */
// Editions Loader
// Imports
const pathUtil = require('path')
// Helper class to display nested error in a sensible way
class DetailedError extends Error {
constructor (message /* :string */, details /* :Object */) {
Object.keys(details).forEach(function (key) {
const data... |
// FUNÇÃO QUE ANIMA A ROLAGEM DO SITE PARA BAIXO COM O CLIQUE DO BOTÃO
//FAZER TRANSIÇÃO SUAVE PELO SCROLL
function anima_rolagem() {
// FUNÇÃO QUE CAPTURA O CLICK DO LINK DO SPAN OU 'SPAN A'
$('span a').click(function(e) {
// E.PREVENT PREVINE ALGO. OU SEJA, QUANDO EU CLICAR NESSE BUTÃO A AÇÃO PADRÃO ... |
import { useRef, useState, useEffect} from 'react';
import {useRouter} from 'next/router';
import panzoom from 'panzoom';
import { Paper,Stack,Box,Typography,Button, Modal } from '@mui/material';
import * as utl from './pz_utils'
import config from '../next.config'
import SVG from 'react-inlinesvg';
import FullscreenIc... |
const horse13k = require('./data/horse13k.js'),
horse26k = require('./data/horse26k.js'),
horse52k = require('./data/horse52k.js'),
horse131k = require('./data/horse131k.js'),
owl15k = require('./data/owl15k.js'),
owl30k = require('./data/owl30k.js'),
owl58k = require('./data/owl58k.js'),
ow... |
require("./bootstrap");
import "bootstrap"
import Vue from "vue"
import VueRouter from "vue-router"
import Vuex from "vuex"
import NavBar from "./components/partials/_navbar.vue"
// import CheckConnexion from "./components/partials/_checkInternet.vue"
import Footer from "./components/partials/_footer.vue"
import Carou... |
#!/usr/bin/env jx
/*
* The MIT License (MIT)
* Copyright (c) 2015 <NAME>
*/
var fs = require('fs');
var parser = require('./lexer');
var commons = require('./commons');
var string_allowed_next = {
":":1,
")":1,
"}":1,
"]":1,
";":1,
",":1,
".":1,
"+":1,
"==":1,
"!=":1,
"||":1,
"&&":1
};
var... |
'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var ProxyBase_1 = require('./ProxyBase');
var ut... |
import Dome from './Dome.js';
import Loop from './Loop.js';
import Leader from './Leader.js';
import Location from './Location.js';
import Upgrader from './Upgrader.js';
import upgradeData from './upgrade-data.js';
const loop = new Loop(gameLoop);
const upgrader = new Upgrader(upgradeData);
const elementNames = [
// ... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2013 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... |
import {ProcessManager, IPC} from 'embark-core';
const async = require('async');
const utils = require('../utils/utils');
const Logger = require('embark-logger');
class Engine {
constructor(options) {
this.env = options.env;
this.client = options.client;
this.locale = options.locale;
this.embarkConf... |
var fs = require('fs');
eval(fs.readFileSync('private/model/model.js')+'');
function dao(db){
return {
getDefenseStats : function(season, minimumWeek, successCallback, errorCallback){
db.any(`
WITH agg_stats AS (
SELECT pp.gsis_id, pp.team,
SUM(pp.rec... |
const remote = require('electron').remote;
const shell = remote.shell;
var fs = require('fs');
var path = require('path');
const dialog = remote.dialog;
var looksSame = require('looks-same');
var userConfig = require('../../user-config');
var Queue = require('promise-queue')
var webdriverio = require('webdriverio');
c... |
function vec(x,y,z) {
var obj = {};
obj.x = x;
obj.y = y;
obj.z = z;
return obj;
}
function col(r,g,b){
var obj = {};
obj.red = r;
obj.green = g;
obj.blue = b;
return obj;
}
var CONTROL_HEIGHT = 3;
var CONTROL_WIDTH = 3;
var CONTROL_DEPTH = 3;
var position = vec(0,0,0);
var di... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
ViroSceneNavigator,
ViroScene,
ViroBox,
ViroMaterials,
ViroNode,
ViroOrbitCamera,
Vi... |
// Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/* jshint globalstrict:false, strict:false, maxlen: 200 */
/* global fail, assertTrue, assertFalse, assertEqual, assertNotEqual, arango */
// //////////////////////////////////////////////////////////////////////////////
// / DISCLAIMER
// /
// / Copyright 2018 ArangoDB GmbH, Cologne, Germany
// /
// / Licensed under ... |
var table, $, currentPkgId, currentAppName = "";
var deviceTable, pkgTable;
//layui.config({
// version: true //一般用于更新模块缓存,默认不开启。设为true即让浏览器不缓存。也可以设为一个固定的值,如:201610
//});
layui.use(['form', 'layer', 'table', 'util'], function () {
var form = layui.form,
util = layui.util,
layer = parent.layer ===... |
import React, { Component, PropTypes } from 'react';
import Link from 'react-router/lib/Link';
import { Element } from 'react-scroll';
import { ayahType, matchType, surahType } from 'types';
import Share from 'components/Share';
import Copy from 'components/Copy';
import LocaleFormattedMessage from 'components/LocaleF... |
// This line has changed. I think "* as Moment" is wrong.
import Moment from 'moment';
import { extendMoment } from 'moment-range';
// Current latest release has wrong type definition,
// so I put any casting to avoid errors.
const moment = extendMoment(Moment);
const NOW = 'now';
const SUBTRACT = '-';
const ADD = ... |
"use strict";
/***
* __ _ __ __
* ____ ___ ____ / /_ (_)/ /___ / /_ ___ _____ ____
* / __ `__ \ / __ \ / __ \ / // // _ \ / __ \ / _ \ / ___// __ \
* / / / / / // /_/ // /_/ // // // __// / / // __// / / /_/ /
* /_/ /_/ /... |
import React, { forwardRef } from "react";
import { connect } from "react-redux";
import components from "components";
import ToolBar from "./toolbar";
import {
updatePosition,
stopDragging,
validateFirstStepPathElementCreation,
invalidateFirstStepPathElementCreation,
savePathElementCreation,
nextStepOfEle... |
/**
*
* Update:
*/
class App {
constructor(){
this.ANIMALS = [
{key : "0",value : "DELFIN"},{key : "00",value : "BALLENA"},
{key : "01",value : "CARNERO"},{key : "02",value : "TORO"},
{key : "03",value : "CIEMPIES"},{key : "04",value : "ALACRAN"},
{key : "05",value : "LEON"},{key : ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Data_1 = require("./Data");
const Element_1 = require("./Element");
const Page_1 = require("./Page");
const ViewElement_1 = require("./ViewElement");
let elementClass = {
"view": ViewElement_1.ViewElement
};
function CreateElementWit... |
/* eslint-disable no-await-in-loop */
import { Octokit } from "@octokit/rest";
import commandLineArgs from "command-line-args";
const owner = "danielyxie";
const repo = "bitburner"
const basePath = `https://github.com/${owner}/${repo}`;
const cliArgs = commandLineArgs([
{ name: 'from', alias: 'f', type: String },
... |
// Copyright (c) 2021, <NAME> and contributors
// For license information, please see license.txt
frappe.ui.form.on('Boletos Emitidos', {
refresh: function(frm) {
if(frm.doc.docstatus == 1) {
frm.add_custom_button(__('Ver boleto'), function() {
window.open(frm.doc.link_boleto, "_blank");
});
frm.add_cu... |
/** @module network/controlBox */
import _ from 'lodash';
import d3 from 'd3';
import {default as misc} from '../common/misc.js';
import {default as cscale} from '../common/scale.js';
import {default as badge} from '../component/badge.js';
import {default as box} from '../component/formBox.js';
import {default as c... |
// pages/MessageDetail/MessageDetail.js
const app = getApp()
const moment = require('moment')
const server = require('../../services/server.js')
Page({
/**
* 页面的初始数据
*/
data: {
sessionData: {},
testMessageDetail: {
data: []
},
// 对应物品详情
testSample: {
data: {}
},
//物品详情... |
/*Validaci[on del campo tipo estado meta*/
$('#tipoEstadoMeta').blur(function(){
var tipoEstadoMeta = $("#tipoEstadoMeta").val();
if (tipoEstadoMeta.indexOf('')== -1){
$('#tipoEstadoMeta').addClass('error');
$('#tipoEstadoMeta').html('Ingrese el tipo de Estad... |
// const UI = window.classes.UI;
const MessageMedia = require('../../../../state/MessageMedia.js');
// const AppUI = require('../../../../utils/AppUI.js');
const RightSidebarInfoAbstract = require('./RightSidebarInfoAbstract.js');
class RightSidebarMedia extends RightSidebarInfoAbstract {
constructor(params) {
sup... |
/**
*
* User: Sam.wang
* Email <EMAIL>
* Date: 19-04-04
* Time: AM 09:19
* Explain: 已经绑定学生弹框组件
*
* */
import React, { Component } from 'react';
import { connect } from 'dva';
import { Form, Modal, message, Radio } from 'antd';
import { formatMessage, defineMessages } from 'umi/locale';
import styles from './ind... |
import React, { PureComponent } from 'react';
import Swiper from 'react-id-swiper';
import 'react-id-swiper/src/styles/scss/swiper.scss';
import moment from 'moment';
import _ from 'lodash/fp';
import * as cornerstone from 'cornerstone-core';
import * as cornerstoneTools from 'cornerstone-tools';
import PluginDetailPa... |
/* eslint-disable no-underscore-dangle */
/* eslint-disable global-require */
import * as React from 'react';
import * as yup from 'yup';
import { View, Text, StyleSheet, Image, Animated, TouchableOpacity, TouchableWithoutFeedback, Keyboard, PixelRatio } from 'react-native'; // import CreditCardType from 'credit-card-... |
const request = require("request")
const url = require("url")
const fs = require("fs")
const randomMac = require("random-mac")
const uuid = require("uuid-random")
const xorCrypt = require("xor-crypt")
const formurlencoded = require("form-urlencoded").default
const cv = require("opencv4nodejs")
const TikTok = function(... |
// import { createSelector } from "reselect";
// import { selectCurrentYear } from "./datesReducer.js";
// import { getPhotoInfoForId } from "./photosReducer.js";
// import { stringSortIgnoreArticle } from "../helper-functions/sorting.js";
// Action type constants
const LOAD_BANDS_NOW = "LOAD_BANDS_NOW"; // Imperativ... |
'use strict';
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _regenerator = require('babel-runtime/regenerator');
var _regenera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.