text
stringlengths
3.07k
16k
/* * 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 writing, software * distributed u...
import { assert } from './assert.js'; const OPPOSITE_DIRECTIONAL_ENCODING_OFFSET = 4; const CLOCKWISE_ORTHOGONAL_DIRECTIONAL_ENCODING_OFFSET = 2; export const DIRECTIONAL_ENCODING_BITS = 8; export const DIRECTIONAL_ENCODING = { EAST: 1 << 0, NORTHEAST: 1 << 1, NORTH: 1 << 2, NORTHWEST: 1 << 3, WES...
import React, {Component} from 'react'; import { Row, Col, Button, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, Card, CardHeader, CardFooter, CardBody, Collapse, Form, FormGroup, FormText, Label, Input, InputGroup, InputGroupAddo...
const query = require('./database/mysql'); const { sendMsg } = require('./chat'); const { getCDNLinks, formatTime } = require('./utils'); const axios = require('axios'); const { configInfo: conf } = require('./config'); const { responseLSP } = require('./strings') let lastSetuTime = 0; /** * 检测倒计时 * @param {stri...
var padding = {top: 20, right: 40, bottom: 0, left: 0}, w = 500 - padding.left - padding.right, h = 500 - padding.top - padding.bottom, r = Math.min(w, h) / 2, rotation = 0, oldrotation = 0, picked = 100000, firstSpin = true, url = '/wof/submit', //color = d3.scale.category10(); ...
const MAX_BLOCK_VSIZE = 1000000 // Squash fee buckets into fixed fee-rates ranges, with steps of 50% (1, 1.5, 2.25, ..) const SQUASH_BUCKETS = Array.from(Array(20)).map((_,i) => 1*Math.pow(1.5, i)).reverse().concat(0) // Get the total vsize of mempool transactions paying more than `feerate` export function getMempool...
const io = require('socket.io-client') const instance_skel = require('../../instance_skel') class instance extends instance_skel { constructor(system, id, config) { super(system, id, config) this.widgetStates = {}; this.feedbacksAndPresetsLoaded = false; } config_fields() { return [ { type: 'text', ...
var path = require('path'); var fs = require('fs'); var argv = require('yargs').argv; var glob = require('glob'); var chalk = require('chalk'); var highlight = chalk.yellow.bold; var merge = require('merge'); // https://github.com/Freyskeyd/gulp-prompt // https://github.com/anseki/gulp-confirm var inquirer = require('...
var hexCharToBits = { '0': '0000', '1': '0001', '2': '0010', '3': '0011', '4': '0100', '5': '0101', '6': '0110', '7': '0111', '8': '1000', '9': '1001', 'a': '1010', 'b': '1011', 'c': '1100', 'd': '1101', 'e': '1110', 'f': '1111', 'A': '1010', 'B': '1011', 'C': '1100', 'D': '1101...
import * as React from "react"; import { Alert, Button, CircularProgress, Dialog, DialogActions, DialogContent, FormHelperText, Grid, IconButton, DialogTitle as MuiDialogTitle, TextField, Typography } from "@mui/material"; import CloseIcon from "@mui/icons-material/Close"; import PropTypes from ...
'use strict'; var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === 'a' && !f) throw new TypeError('Private accessor was defined without a getter'); if ( typeof state === 'function' ? receiver !== state || !f : !s...
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { __awaiter, __generator } from "tslib"; import './index.html'; import { resizeCanvas } from '../../mol-canvas3d/util'; import { Representation } from '../../mol-repr/repres...
const axios = require('axios'); const fs = require('fs'); const neo4jUrl = 'http://localhost:7474/db/data/transaction/commit'; var requireJSON = function (filePath) { return JSON.parse(fs.readFileSync(filePath, "utf8")); }; async function cypher(params) { return await axios.post(neo4jUrl, params, { auth: { ...
#!/usr/bin/env node /* 1. Create new Ethereum wallet on ropsten 2. Loads it with Eth 3. Saves the private key in config.json */ const _ = require('lodash') const fs = require('fs') const readline = require('readline'); const Web3 = require('web3') const rq = require('request') const tr = require('tor-request') const ...
'use strict'; /* * Copyright 2019-present NEM Foundation * * 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 app...
const { prefix, botColor } = require('../config.json'); const Discord = require('discord.js'); module.exports = { name: 'subject', description: 'Display a Wanikani subject of choice.\nSearch by id, character or meaning.', aliases: ['s'], path: ['subjects'], usage: `**[ ${prefix}wanikani subject <id/c...
function unix2human(unixtime) { var dateObj = new Date(unixtime); var UnixTimeToDate = dateObj.getFullYear() + '-' + (dateObj.getMonth() + 1) + '-' + dateObj.getDate() + ' ' + p(dateObj.getHours()) + ':' + p(dateObj.getMinutes()) + ':' + p(dateObj.getSeconds()); return UnixTimeToDate; } function p(s) { ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable max-len */ import { LogLevel } from 'bot...
/* * Network Alarms * https://github.com/alrighttheresham/psmc * * Copyright (c) 2013 <NAME> * Licensed under the MIT license. */ 'use strict'; var helper = require('./helper'); var HashMap = require('hashmap').HashMap; var Columnizer = require('columnizer'); var database = require("./database"); var alarmTa...
import React, { useState } from 'react' import Form from 'react-bootstrap/Form' import FormControl from 'react-bootstrap/FormControl' import Button from 'react-bootstrap/Button' import Dropdown from 'react-bootstrap/Dropdown' import Container from 'react-bootstrap/Container' import Col from 'react-bootstrap/Col' import...
var fs = require('fs'); var url = require('url'); var path = require('path'); var http = require('http'); var st = require('st'); var mkdirp = require('mkdirp'); var Router = require('match-routes'); var response = require('response'); var socketio = require('socket.io'); var nodemailer = require('nodemailer'); var sgT...
let allchart = d3.select("body") .select("#dataposter") // .append('div') // .attr('class', 'graphic') .append('svg') .attr('width', 1100) .attr('height', 620) .attr("id", "dataSVG") .style("display", "block") const width = +allchart.attr('width') const height = +allchart.attr('height') const margin =...
window.onload = function speak(){ var synth = window.speechSynthesis; var utterThis = new SpeechSynthesisUtterance('您好!我是金融智能客服"蘿蔔特",很高興為您服務!請問需要什麼呢?'); utterThis.pitch = 1; utterThis.rate = 1; synth.speak(utterThis); }; $(".button-collapse").sideNav(); resize() window.onresize = resize; function resize(...
import React, {Component} from 'react'; import {View,StatusBar, Text, StyleSheet, TextInput, Image, TouchableOpacity, ScrollView, Dimensions, ActivityIndicator} from 'react-native'; import ShakingText from 'react-native-shaking-text'; import { colorYellow } from '../Constants/colors'; const screenWidth = Dimensio...
/// <reference types="sinon" /> var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b)...
/* ***************************************************************************** * * StoryPlaces * This application was developed as part of the Leverhulme Trust funded StoryPlaces Project. For more information, please visit storyplaces.soton.ac.uk Copyright (c) 2016 University of Southampton <NAME>...
import React, { useState } from 'react' import { useQuery } from 'react-query' import moment from 'moment' import { CCard, CCardBody, CFormGroup } from '@coreui/react' import { Table, Button, CheckboxInput as Checkbox, Pagination, SelectInputV2 as Select } from '@components/common' import ToolBar from './ToolBar' imp...
"use strict"; class OrderBook { constructor() { this.bids = new Map(); this.bid_volume = 0.0; this.asks = new Map(); this.ask_volume = 0.0; this.factor = 0.0; this.size = 24; } setGroupingFactor(n) { this.factor = n; return this; } setRowCount(n) { this.size = n; re...
import React, { useEffect } from 'react'; import { useMoralis, useMoralisWeb3Api, useWeb3ExecuteFunction } from 'react-moralis'; import { View, Text, Pressable, ScrollView, RefreshControl } from 'react-native'; // abi import BlazePoolABI from '../../ABIs/BlazePoolABI.json'; // hooks import useERC20Balance from '../.....
//borrado referenteAnterior individual var ids = []; function borrarIntervencionAnterior(id) { ids.push(id); $('#idsEliminados').val(ids); $('.intervencionAnterior' + id).html(" "); } //fin //borrar intervencion var btnBorrarIntervencion = document.querySelector('.borrarIntervencion'); if (btnBorrarI...
import { httpActions } from '@codetanzania/emis-api-client'; import { paginateCampaigns, refreshCampaigns, deleteCampaign, } from '@codetanzania/emis-api-states'; import { List } from 'antd'; import concat from 'lodash/concat'; import map from 'lodash/map'; import uniq from 'lodash/uniq'; import uniqBy from 'loda...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ 'use strict'; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { exten...
const maxFailures = 8; let attemptsLeft = maxFailures; let failedChars = []; let exposedChars; main() async function main() { const details = await getLanguage(localStorage.getItem("hangman_language")); const words = details.words; const randomNumber = getRandomNumberFromRange(0, words.length - 1); const ran...
import React, { useState } from "react"; // import moment from "moment"; import styled from "styled-components"; import { useSpring, animated, config } from "react-spring"; import CardHeader from "./CardHeader.component"; import Divider from "./Divider.component"; import TeamInfo from "./TeamInfo.component"; import Ga...
import { createElement } from "react"; import * as react from "react"; import { Interop_reactApi } from "../../.fable/Feliz.1.41.0/Interop.fs.js"; import { funcToTuple, reactFlow } from "../../Feliz.ReactFlow/Interop.js"; import { ArrowHead, ArrowHead__get_Value, EdgeType, EdgeType__get_Value, NodeType, NodeType__get_V...
import React from "react"; import Loading from "./Loading"; import '../styles/Dashboard.css'; import '../styles/Card.css'; import '../styles/Modal.css' class Info extends React.Component{ constructor(props) { super(props); this.deleteOffer = this.deleteOffer.bind(this); } deleteOffer(id)...
'use strict'; /* global logger */ const _ = require('lodash'); const url = require('url'); const request = require('request-promise-native'); const async = require('async'); const HigherDockerManager = require('higher-docker-manager'); const DEFAULT_ARBITRARY_BOOT_TIMEOUT_S = 30; const ARBITRARY_ENGINE_BOOT_CHECK_D...
// Declaring column header names as constants allows us to call // them by their name instead of by their index. // All these are included in the form except the first three. const ACTION = 'Action'; // manually added to the sheet const COMMENT = 'Comment'; // manually added to the sheet const STATUS = 'Status'; //...
/* Ishtar distributed system daemon This was originally written in Rust, but due to time constraints it was ported to Node for easier HTTP library stuff (mostly all of the projet is HTTP requests). NOTE: PORT AND PORT + 1 must be available. */ const fs = require('fs'), net = require('net'), ...
// require libraries var Eos = require('eosjs'); var path3 = require('./include/path3.js'); // set the values var accountName = process.argv[2]; var wastName = process.argv[3]; var contractName = process.argv[4]; var tempPrivate2 = process.argv[5]; var userName = process.argv[6]; var offer = process.argv[7];...
import React, {Component} from 'react' import {findDOMNode} from 'react-dom' import screenfull from 'screenfull' import ReactPlayer from 'react-player' import Duration from './Duration' import {Button, Grid, Icon} from "semantic-ui-react"; import BufferedProgress from './BufferedProgress/BufferedProgress'; import Volum...
import React from 'react'; import {NavLink,Link} from 'react-router-dom'; import {Row,Col,Container,Badge,Button,Breadcrumb,Alert} from 'react-bootstrap'; class Extra extends React.Component { constructor(props) { super(props); this.state = { show: true, }; } handleDismiss = () => this.setState({ show...
import { characters } from './digits/characters' import { cursors } from './digits/cursors' const Alphanumeric = { init(canvasId) { this._canvas = document.getElementById(canvasId) this._context = this._canvas.getContext("2d") // this._context.scale(0.5, 0.5) this._loadStyles() this.style('green...
/** * 这个是站点左侧导航 * navData是个列表,item元素格式: * { * icon: "图标", * key: "一级菜单的key", * title: "菜单的标题", * slug: "地址,一级菜单不用,二级菜单需要", * is_link: true/flase(是否是站外链接), * link: "站外链接地址", * target: "链接跳转的方式,默认是_self;_blank是在新的窗口打开页面", * children: [item, "二级菜单的列表"], * } */ impo...
let divConnecting; let divRoomList; let divRooms; let txtRoomId; let divRoom; let divCameras; let imgCamOn; let imgCamOff; let imgMicOn; let imgMicOff; let socket; let peerConnections = {}; let snakes = {}; let localStream; let isCamOn = false; let isMicOn = false; let mySnake; const configuration = { iceServers: [...
const { SlashCommandBuilder, bold } = require("@discordjs/builders"); const { MessageEmbed } = require("discord.js"); const fetch = require("node-fetch"); module.exports = { data: new SlashCommandBuilder() .setName("market") .setDescription( "Use this command to find all shops for a certain item!") ...
import date_utils from './date_utils'; import { $, createSVG, animateSVG } from './svg_utils'; export default class Bar { constructor(gantt, task) { this.set_defaults(gantt, task); this.prepare(); this.draw(); this.bind(); } set_defaults(gantt, task) { this.action_c...
window.onload = function(){ PaySwith(); Json(); (function(){ var oUser=Json()().userRealName[0].Bond; if(oUser=='Yes'){ GetBlicl('Dg_Success','block',2); GetBlicl('Dg_bank','none'); } else{ GetBlicl('Dg_Success','none'); GetBlicl('Dg_bank','block',1); } })(); Cooperati...
const cons = require('../../../common/constants'); const yybfcons = require('../common/constants'); const Super = require('../../../room/stateManager'); const utils = require('../../../utils'); const IdleState = require('./state/idle'); const BettingState = require('./state/betting'); const OpeningState = require('./st...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const slugify_1 = require("slugify"); module.exports = { name: 'generator-rest-service', run: async (toolbox) => { const { filesystem, // parameters, template: { generate }, print:...
#!/usr/bin/env node /*! ** update-helper -- Application Update Process Helper Utility ** Copyright (c) 2020-2021 Dr. <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 Softwar...
const express = require('express') const router = express.Router() const mongoose = require('mongoose') const { isAdmin } = require('../helpers/isAdmin') require('../models/Categorias') require('../models/Postagem') const Categoria = mongoose.model("Categorias") const Postagem = mongoose.model("postagens") ro...
const path = require('path'); const fs = require('fs'); const generateTest = require('./generateTest'); const generateFrontEnd = require('./generateFrontEnd'); const generateBackend = require('./generateBackend'); const generateDb = require('./generateDb'); function webpack(answers) { // this object will become the...
#!/usr/bin/env node 'use strict' const { copyAsync, copyDirAsync } = require('asfs') const { spawnSync } = require('child_process') const { promises: { chmod, readFile, stat, unlink, writeFile }, } = require('fs') const path = require('path') const rimraf = require('rimraf') const transporting = require('./transpor...
// result boilerplait const results = { "@context": { "@base":"http://data.open.ac.uk/read-it/", "co":"https://github.com/eureadit/crowdsourcing-ontology/raw/master/owl/crowdsourcing-evidences.owl.ttl#", "reo":"https://raw.githubusercontent.com/eureadit/reading-experience-ontology/master/data-model-v2...
import React, { useEffect } from 'react'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import MobileStepper from '@material-ui/core/MobileStepper'; import Button from '@material-ui/core/Button'; import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@ma...
const {userInfoMessage} = require('../../utils/messageHelper.js'); const {getVerifyCode, verifyCode, getProfile, updateProfile} = require('../../utils/requestUtil.js'); Page({ data: { meta:{ genderArray: ["男","女"], birthdayStartDate: "1910-01-01", birthdayEndDate: (new Date).toJSON().split("...
const axios = require("axios"); const ig = require("instatouch"); const cheerio = require("cheerio"); const request = require("request"); const sID = "38420191934%3A43Y602oEBoI9SJ%3A21"; const options = { count: 0, mediaType: "all", timeout: 0, session: "sessionid=" + sID }; function artiMimpi(mimpi) { retu...
const defaultMessages = require('./messages') function ModelValidator () { const messages = defaultMessages const cache = new Map() // Load rules const rules = { any: require('./rules/any'), array: require('./rules/array'), boolean: require('./rules/boolean'), date: require('./rules/date'), ...
import { Body, Button, Header, Left, Right } from "native-base"; import React, { useState, useEffect } from "react"; import { useSelector, useDispatch } from "react-redux"; import { View, SafeAreaView, StyleSheet, ScrollView } from "react-native"; import { Avatar, Title, Caption, Text, TouchableRipple } from "react-nat...
import Head from 'next/head' import Layout from '../components/layout' import React from 'react' function CodeOfConduct() { return ( <Layout> <Head> <title>Topluluk Politikası</title> </Head> <section className="py-128"> <div className="container"> <h1>Topluluk Politi...
import { Layer } from '@dhis2-ui/layer' import { Popper } from '@dhis2-ui/popper' import { spacers, sharedPropTypes } from '@dhis2/ui-constants' import PropTypes from 'prop-types' import React, { Component } from 'react' import { resolve } from 'styled-jsx/css' import { Button } from '../index.js' function ArrowDown({...
import React from 'react'; import autoBind from 'react-autobind'; import PropTypes from 'prop-types'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import IconButton from 'material-ui/IconButton'; import muiTheme ...
#!/usr/bin/env node // Dependencies var geddy = require('../lib/geddy') , exec = require('child_process').exec , path = require('path') , utils = require('utilities') , parseopts = require('../lib/parseopts'); // Variables var cwd = process.cwd() , args = process.argv.slice(2) , parser , optsMap , cmd...
var pageNum_items = $('.pagination .item'); var psize = 10; function ajax() { $.ajax({ type:'GET', url:'admin/getnews.php', dataType:"json", success:function(json) { analyJson(json); goPage(1,psize); }, error:function(err) { alert(err); } }) } function analyJson(json) { for(var i = 0; i < js...
import { Box } from 'rebass' import PropTypes from 'prop-types' import { aniController } from './ani-controller' import { TextAppear } from './text-appear' import React, { Component, useContext } from 'react' import { DrizzleContext } from './drizzle-context' import { DrizzleSettings } from './drizzle-settings' import ...
import React, { Component } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Select, Row, message, Table, Divider, Modal, Button } from 'antd'; import { getCascadeList } from '@services/project'; import { getEntProduct, addCascaderField, getCascader...
import React, {Component, Fragment} from 'react' import {connect} from 'react-redux' import * as actions from '../../actions' class PostRequests extends Component{ constructor(){ super(); } componentDidMount(){ this.props.skillsAndLocations(()=>{ console.log(this.props); })...
var twitterMatchingPattenr = [ '*://twitter.com/*', '*://*.twitter.com/*' ]; var tweetMatchingPattenr = [ '*://twitter.com/*/status/*', '*://twitter.com/*/*/status/*', '*://*.twitter.com/*/status/*', '*://*.twitter.com/*/*/status/*' ]; var baseMenuItems = [ { id: 'fav', matching: tweetMatchingPattenr...
var tengxun_key = "<KEY>"; var addrInfo = { lng: "", lat: "", country: "", province: "", city: "", district: "", street: "", streetNum: "", } var locationVue = new Vue({ el: '#location', data: { address: "未知•维度•次元", order: "0", }, }) //ajax获取访问次数 function g...
// given a keylist like ['foo', 'bar'] extracts the corresponding // objects from obj, i.e. returns [obj.foo, obj.bar] function extract_key_list_value(keyPath, obj) { var key_value = []; keyPath.forEach(function(subkey) { key_value.push(obj[subkey]); }); return key_value; } function extract_ke...
/* 对Date对象的操作 */ /** * [dateToString description] 获取字符串形式的年月日,使用数组的join方法返回连接起来的字符串 * @param date {Date} 需要转换成字符串格式的日期 * @return {String} 字符串格式的日期 */ function dateToString(date) { return [date.getFullYear(), (date.getMonth() + 1 < 10) ? '0' + (date.getMonth() + 1) : date.getMonth() + 1, (date.getDate()...
const mysql = require("mysql2"); const inquirer = require("inquirer"); const db = mysql.createConnection( { host: "localhost", user: "root", password: "password", database: "nostromo_db" }, console.log(`Connected to MU/TH/UR.`) ); const mainMenu = () => { inquirer ...
rmcArchivosDataStore = new Ext.data.Store({ id: 'rmcArchivosDataStore', proxy: new Ext.data.HttpProxy({ url: CARPETA + '/listado_archivos', method: 'POST' }), baseParams: {tampagina: TAM_PAGINA}, // this parameter is passed for any HTTP request reader: new Ext.data.JsonReader({ ...
import { pack, keccak256 } from '@ethersproject/solidity' import { getCreate2Address } from '@ethersproject/address' // import { all } from 'core-js/fn/promise'; import BigNumber from "bignumber.js"; const PancakeV2_FACTORY_ADDRESS = '0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73'; const PancakeV2_ROUTER_ADDRESS = '0x10E...
'use strict'; import {get_ort} from './component-ort.js' const e = React.createElement; class Einsatzliste extends React.Component { constructor(props) { super(props); this.state = { error: null, isLoaded: false, data: '[]', orte: {} }; }...
var CATEGORY_MENU_KEY = 'categoryMenuOpen'; Session.setDefault(CATEGORY_MENU_KEY, false); var USER_LIST_OPEN = 'userListOpen'; Session.setDefault(USER_LIST_OPEN, ''); var USER_LIST_COLLAPSED = 'userListCollapsed'; Session.setDefault(USER_LIST_COLLAPSED, true); var TOP_CATEGORY = 'topCategory'; var TOP_CATEGORY_FIRST...
/* eslint-disable no-console */ import { newElement } from '../utils/utils'; const defaultArg = { cid: -1, uid: -1, name: '', email: '', description: { en: { details: '', skills: [''] }, }, }; export class CandidateCard { constructor(candidateData = defaultArg, lang = 'en') { if (JSON.stringify(c...
import React from 'react'; import "./LangtonsAnt.css"; import Field from "./Field/field"; import { Button, Slider } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import Tooltip from '@material-ui/core/Tooltip'; import PropTypes from 'prop-types'; /** Code for the custom slider look...
import { createReducer } from '../utils/misc'; import { CHAT_MESSAGES_SUCCESS, CHAT_MESSAGES_FAILURE, CHAT_MESSAGES_REQUEST, FRIEND_LIST_SUCCESS, FRIEND_LIST_FAILURE, FRIEND_LIST_REQUEST, FRIEND_HISTORY_REQUEST, FRIEND_HISTORY_SUCCESS, FRIEND_HISTORY_FAILURE, ADD_FRIEND_SUCCESS, ...
$(function() { a_dialog = $("#additem").dialog ({ autoOpen: false, title: "Node Editor", modal: true, width: 315, height: 150, open: function (e) { // set width if ($("#combo_image_name").attr("id")) { ...
/* 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/. */ "use strict"; const Cc = Components.classes; const Ci = Components.interfaces; const Cu = Components.utils; const...
var expect = require('expect.js'); var Xktta = require('../../temp/xktta.js'); describe('Class', function() { before(function() { Xktta .init .I18n('en', { classes: { customer: { member: 'One Customer', collection: 'Many Customers', attributes: {...
var Group = require('./models/group'); var Server = require('./models/server'); module.exports = function(robot) { var baseUrl = "https://papertrailapp.com/api/v1/" var http = function(path) { return robot.http(baseUrl + path). header("X-Papertrail-Token", process.env.NESTOR_PAPERTRAIL_API_TOKEN); ...
"use strict"; exports.__esModule = true; exports.EdgeControl = void 0; var _react = _interopRequireWildcard(require("react")); var _recompose = require("recompose"); var _styledComponents = require("styled-components"); var _defaultProps = require("../../default-props"); var _Box = require("../Box"); var _Keyboa...
/** * @module Core */ "use strict"; var detectLoopMarkers = require( '../core/DetectLoopMarkers' ); var log = require( 'loglevel' ); /** * Load a single file from a URL or a File object. * * @class FileLoader * @constructor * @param {String/File} URL URL of the file to be Loaded * @param {String} context Audio...
'use strict'; import React from 'react'; import rutils from 'react-utils'; import {VelocityTransitionGroup} from 'velocity-react'; import NodeHeader from './header'; var gui = global.window.nwDispatcher.requireNwGui(); var files = require('../../../../src/components/backServer/files'); var hexoCMD = require('../../...
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var fs = require('fs'); var _ = require('lodash'); var sprintf = require("sprintf-js").sprintf module.exports = yeoman.Base.extend({ constructor: function() { yeoman.Base.apply(this, arguments); ...
ZeroClipboard.config({trustedDomains: ["*"], "title": "Копировать"}); angular.module('app', []) .controller('MainCtrl', ['$scope', '$filter', '$interval', function ($scope, $filter, $interval) { $scope.$watch('[start,end]', function (newVals) { if (!newVals || !newVals[0] || ...
import { MeshStandardMaterial, RepeatWrapping, TextureLoader, Vector2, Color, } from "../third_party/three.module.js"; import { lines } from "../shaders/lines.js"; class CrossHatchMaterial extends MeshStandardMaterial { constructor(options) { super(options); const loader = new TextureLoader();...
/** * App */ const Promise = require('promise'); const fs = require('fs'); const EventEmitter = require('events').EventEmitter; // require('../Helpers/gi_require'); // const Logger = girequire('/src/Helpers/logger.js'); const Config = require('../Config/config.js'); const Event = require('./event.js'); const Aut...
//business logic function Player(playerNumber, playerName) { this.playerNumber=playerNumber; this.playerName = playerName; this.rollScore = 0; this.turnScore = 0; this.totalScore = 0; this.turn = 1; this.win_flag = 0; } Player.prototype.rollDie = function() { var roll = Math.floor((Math.random()*6)+1);...
/** * @since : 2019.09.27 * @auther : 이정열 * @file_Comment : 메시지 모듈(시스템알림, 메일) * ---------------------- * 개정이력 * 2019.09.27 : 최초작성 */ var express = require('express'); var router = express.Router(); const bodyParser = require('body-parser'); const nodemailer = require('nodemailer'); var fs = require('fs') var ip = req...
var util = require('util'); var bleno = require('bleno'); var WebSocket = require('ws'); var DraftLog = require('draftlog').into(console); var ControllerService = require('./ControllerService'); //============================================================================== // ControllerClient //===================...
import { bindEvent, isString, isArray, testAssign } from 'sav-util' import { PAYLOAD_START, PAYLOAD_PROGRESS, PAYLOAD_RESOLVE, PAYLOAD_REJECT } from './events.js' const defaultProject = 'default' export class Sav { constructor (opts = {}) { this.opts = testAssign(opts, { flux: null, contract...
import _ from 'lodash' import scrollIntoViewIfNeeded from 'scroll-into-view-if-needed' import React from 'react' import { connect } from 'react-redux' import ResizeObserver from 'resize-observer-polyfill' import { saveLastScrollPosition } from '../store/actions/app' import '../styles/Scroller.css' const SCROLL_ACTIO...
import React, { Component } from "react"; import ClassDetails from "./ClassDetails"; import { Spinner } from "reactstrap"; import API from "../../utils/API"; class ChildForm extends Component { constructor(props) { super(props); this.state = { results: [], loading: true, age: this.props.val...
import React from 'react'; import axios from 'axios'; import {isEmpty} from'lodash'; import Player from './Player.js'; import { connect } from 'react-redux'; class MidiArchives extends React.Component { constructor(props) { super(props) this.state = { contemporary: [], games: [], movies...
// This was written by the wonderful <NAME> // modified by Mark to be part of core for convenience // twas not designed for production use // only simple local development. var Gun = require('../gun'), fs = require('fs'); var files = {}; Gun.on('put', function(at){ //console.log("file write", Gun.obj.copy(at), at.g...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, {Component} from 'react'; import { Platform, StyleSheet, Text, View, TextInput, Button, Alert, TouchableOpacity, Icon, // AppRegistry, Image, // we want to use an image ...