text stringlengths 3.22k 29.5k |
|---|
"use strict";
const _glMatrix = require("gl-matrix");
const vec3 = _glMatrix.vec3;
const vec4 = _glMatrix.vec4;
const mat4 = _glMatrix.mat4;
const glMatrix = _glMatrix.glMatrix;
function Examine()
{
var _isPanning = false;
var _viewMatrix = mat4.create();
var _initViewMatrix = mat4.create();
this.setViewMatri... |
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySy... |
import { dexGuruAPIUrl, coingeckoAPIUrl } from './config/settings'
import {
WETH_ADDRESS,
WBNB_ADDRESS,
ZERO_X_ETH_ADDRESS,
tokensID,
CUSTOM_ICONS,
} from './config/tokens'
import erc20ABI from './abi/erc20'
import web3 from 'web3'
import accounting from 'accounting'
import { BigNumber } from 'bignumber.js'
i... |
var AceRange = require('ace/range').Range;
var AutoComplete = require('autocomplete').AutoComplete;
var lang = require("ace/lib/lang");
var EditorPosition = require('EditorPosition').EditorPosition;
var CompilationService = require('CompilationService').CompilationService;
var FileService = require('FileService').Fi... |
/*
Copyright 2009 Google Inc.
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
dis... |
import React, {useState, useEffect, useMemo} from "react";
import {Container, Row, Col, Button, Table, Form, ButtonGroup} from "react-bootstrap";
import queryString from "query-string";
import {
Tooltip,
Legend,
PieChart,
Pie,
Cell,
ResponsiveContainer,
} from "recharts";
import Message from "..... |
//@ts-check
let ErrorCodes;
let MarshalUnMarshalHelper;
let ComArray;
let ComObject;
let Variant;
let ComString;
let Pointer;
let Flags;
let NetworkDataRepresentation;
let types;
let ComValue;
let inited = false;
class Struct {
constructor() {
this._init();
/**@type {ComValue[]} */
this.listOfMembers =... |
var Api = require('scaleway'),
Datastore = require('nedb'),
Q = require('q'),
Table = require('cli-table'),
_ = require('lodash'),
async = require('async'),
attempt = require('attempt'),
child_process = require('child_process'),
debug = require('debug')('scaleway-cli:utils'),
filesiz... |
/**
* Created by rifat on 8/27/17.
*/
var convertion_rate;
var clicked_supplier_id = 0;
$(document).ready(function () {
/**
* It will take the current supplier id for further use
*/
$("#supplier_id").on('click', function (e) {
clicked_supplier_id = $("#supplier_id").val();
});
/**
... |
<filename>src/App.js
// This is mostly just hacks -- this is NOT necessarily
// an indicator of how one should be writing code.
// </disclaimer>
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Add from './Add';
import conferences from './data/events.json';
import archive from './da... |
/**
* The Knowledge-base Module provides utilities for reasoning.
*
* @module Knowledge-base
* @title Knowledge-base Module
* @requires core
*/
/**
* @class KnowledgeBase
*/
function KnowledgeBase() {
this.factList = [ ];
this.ruleList = [ ];
}
KnowledgeBase.prototype.createCondition = function(cond, fact)... |
"use strict";
var popupGlobal = {
//Determines lists of supported jQuery.timeago localizations, default localization is en
supportedTimeAgoLocales: ["ru", "fr", "pt-BR", "it", "cs"],
feeds: [],
savedFeeds: [],
backgroundPage: chrome.extension.getBackgroundPage()
};
$(document).ready(function () {
... |
import axios from 'axios'
import React, { useEffect, useState } from 'react'
import Badge from '../components/badge'
import { config } from '../config/config'
import moment from 'moment-timezone'
import {
EyeOffIcon,
FilterIcon,
FolderAddIcon,
LightningBoltIcon,
PencilIcon,
TrashIcon,
} from '@h... |
'use strict';
var CONFIG = require("app/common/config");
var RSX = require("app/data/resources");
var ProgressionManager = require("app/ui/managers/progression_manager");
var InventoryManager = require("app/ui/managers/inventory_manager");
var Handlebars = require("hbsfy/runtime");
var markdown = require("markdown").m... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoinexSingleClient = exports.CoinexClient = void 0;
/* eslint-disable @typescript-eslint/member-ordering */
/* eslint-disable prefer-const */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/n... |
#!/usr/bin/env node
if (process.version.replace('v', '')[0] / 1 < 4) {
console.error(`This script requires Node v4 or greater. (Current: ${process.version})`);
process.exit(1);
}
// dependencies
var fs = require('fs');
var moment = require('moment');
var FeedParser = require('feedparser');
var request = require('r... |
/* eslint-disable prettier/prettier */
// @ts-check
import { html } from "../../core/import-maps.js";
import { showWarning } from "../../core/utils.js";
const name = "ims/templates/headers";
/**
* @param {*} conf
*/
function getStatusString(conf) {
// specStatusString: an override of the default descriptions
if... |
import React, { useState, createContext, useEffect } from "react";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import TransactionModal from "./TransactionModal";
import ConnectWalletModal from "./ConnectWalletModal";
import Pact from "pact-lang-api";
export... |
const webpack = require('webpack'),
CleanWebpackPlugin = require('clean-webpack-plugin'),
path = require('path'),
HappyPack = require('happypack'),
happyThreadPool = HappyPack.ThreadPool({ size: 4 }),
ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const HtmlWebpackPlugin = require('ht... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
import _ from "lodash";
import shortid from "shortid";
import { getTeam } from "../../actions/team/getTeam";
import { getFavoritedTeams } from "../../actions/favorites/getFavorite... |
var alphabet = null;
var sequences = null;
var control_sequences = null;
var motifs = null;
var background = null;
function register_component(id, element, controler) {
"use strict";
if (id == "alphabet") {
alphabet = controler;
element.addEventListener("alphabet_changed", function (e) {
if (sequenc... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... |
// test_array_global.js
// --------------------
(this.load || require)((this.load ? 'test' : '.') + '/tools/assertions.js');
// ----------------------------------------------------------------------------
// Array Global
// ----------------------------------------------------------------------------
assert(Array);
... |
'use strict';
'require rpc';
'require uci';
'require ui';
'require fs';
'require form';
'require network';
'require tools.widgets as widgets';
var eventSource,
captureFilePoll,
hostName;
function stopTcpdump() {
fs.exec("/usr/libexec/packet_capture_stop").then(function(replay) {
if (eventSource)
eventSource.c... |
import React, { useState, useEffect } from "react";
import { connect } from "react-redux";
import Modal from "@material-ui/core/Modal";
import Card from "@material-ui/core/Card";
import CardHeader from "@material-ui/core/CardHeader";
import CloseIcon from "@material-ui/icons/Close";
import IconButton from "@material-ui... |
const fs = require('fs');
const path = require('path');
const msg = require('../util/message');
const zipManger = require('../util/zipManger');
const fileManger = require('../util/fileManger');
const config = require('../config');
const workset = require('../model/workset')
const mongoose = require('../util/connect');
... |
import React, { Component, Fragment,PureComponent } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Icon,
Card,
Modal,
Button,
Divider,
message,
} from 'antd';
import classnames from 'classnames'
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import {images} from '../../u... |
'use strict';
const soajsUtils = require("soajs").utils;
const async = require('async');
const tenantsColName = 'tenants';
const config = require("../config");
let utils = {
/**
* Check if error is available and return it in response, else return callback function
*
* @param {Object} soajs
* @param {Functio... |
export function plot_graph(graph_filename) {
"use strict";
var consts = {
graphClass: "graph",
variableClass: "variable-node",
VARIABLE_NODE_RX: 15,
VARIABLE_NODE_RY: 15,
operationClass: "operation-node",
OPERATION_NODE_RX: 15,
OPERATION_NODE_RY: 15
}... |
////
//// A little fun driving a view with cytoscape.
////
// Let jshint pass over over our external globals (browserify takes
// care of it all).
/* global jQuery */
/* global global_id */
/* global global_golr_server */
/* global global_barista_location */
/* global global_minerva_definition_name */
/* global jsPlum... |
'use strict'
const express = require('express')
const http = require('http')
const app = express()
const port = process.env.PORT || 3000
const server = http.createServer(app)
const io = require('socket.io')(server)
const rng = require('./app/randomNameGenerator.js')
const TURN_DELAY = 3000 // how many milliseconds be... |
load("e2371540d876710daf38e749390aa2a3.js");
//@ runFTLNoCJIT
// This test suite compares the behavior of setting the prototype on various values
// (using Object.setPrototypeOf(), obj.__proto__ assignment, and Reflect.setPrototypeOf())
// against what is specified in the ES spec. The expected behavior specified acco... |
var container, camera, scene, light, renderer;
var camera_spherical;
function init() {
init_renderer();
init_container();
init_camera();
init_scene();
init_light();
init_events();
}
function draw() {
draw_axes();
draw_model();
}
function init_renderer() {
renderer = new THREE.WebG... |
var Twitter = require('twitter');
//NOTE : working hour for unirest API is 9 to 9, so it does not send sms after 9!
var unirest = require('unirest');
var url = require('url');
var smsMsendKeys = ["<KEY>","<KEY>","<KEY>", "<KEY>", "<KEY>","<KEY>" , "<KEY>", "<KEY>", "<KEY>", "<KEY>", "<KEY>","<KEY>", "<KEY>", "<KEY>",... |
const StatsUpdaterState = {
idle: 1,
updating: 2,
waiting: 3,
};
var StatsUpdater = {
queue: [], // players to update
current_retry: 0,
state: StatsUpdaterState.idle,
totalQueueLength: 0,
update_fails: 0,
currentIndex: 0,
current_id: "",
// settings
min_api_request_interval: 6000, //m... |
import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import { useSelector, shallowEqual, connect, useDispatch } from "react-redux";
import { useFormik } from "formik";
import * as Yup from "yup";
import { ModalProgressBar } from "../../../_metronic/_partials/controls";
import { t... |
// ===================================================
// =============== CONFIGURABLE PARAMS ==============
// ===================================================
// ้ป่ฎค้พๆฅ่ท็ฆป
var default_link_distance = 10;
// How far can we change default_link_distance?
// 0 - I don't care
// 0.5 - Change it as you want, but it... |
init();
// Site initialization
function init() {
getArtists(populateArtistsDropdown);
}
// Default artists
function defaultArtists() {
return ['grateful-dead', 'allman-brothers', 'dave-matthews-band'];
}
// Load column-basic chart on click, wiggle briefly on mouseenter
$('#column-basic').on("click", function... |
import React, {Component} from 'react'
import * as d3 from 'd3'
import './styles/TreeMap.css'
import firebase from '../../public/firebase'
import filterAB from '../filterAB'
const db = firebase.firestore()
class TreeMap extends Component {
constructor() {
super()
this.state = {
chartData: [{name: 'lo... |
// Text Island save/load module
// (c) Sv443 / <NAME> 2018 - licensed under MIT license
function saveinit() {document.getElementById("last_saved").innerHTML="never - type save";}
var savestring;var cscore;
function savegame() {
getuserdata();
cscore = parseInt(document.getElementById("current_score").innerHTML);
i... |
const symbolNames = {
' ': 'SPACE',
'!': 'BANG',
'.': 'DOT',
'=': 'EQUALS',
'~': 'TILDE',
$: 'DOLLAR',
'#': 'HASH',
'%': 'PERCENT',
'/': 'SLASH',
'<': 'LESSTHAN',
'>': 'GREATERTHAN',
'&': 'AMPERSAND',
'?': 'QUESTIONMARK',
"'": 'SINGLEQUOTE',
'"': 'DOUBLEQUOTE',
'+': 'PLUS',
',': 'COMMA... |
/* ไธไธช็ฎๅ็ๅ้กต๏ผๆฏๆฌก็นๅป้ๆธฒๆ
******by wuati*****
*/
var ziArray=[];
var ziArray1=[];
var stateObject = {};
var title = "";
var zz=window.location.search;
var lenght;
if(zz){
var arr01 = zz.split("?");
var arr02 = arr01[1].split("&");
for(let x=0;x<arr02.length;x++){
var arr03 = arr02[x].split("=");
ziArray[arr03[0]... |
/*
* Marketplace specific configuration.
*/
export const amenities = [
{
key: 'towels',
label: 'Towels',
},
{
key: 'bathroom',
label: 'Bathroom',
},
{
key: 'swimming_pool',
label: 'Swimming pool',
},
{
key: 'own_drinks',
label: 'Own drinks allowed',
},
{
key: 'ja... |
/**
* load all media in a array and do a function with weight as parameter for each
* @example [<br/>
* {src:"images/tileset.png", type:"image", weight:42},<br/>
* "images/tileset2.png",<br/>
* {src:"images/j_e6a6aca6.png", name:"tileset3"}<br/>]
* @param {Array} arr List... |
console.log("+ + + utils/utils... ")
import Vue from "vue"
// PURE UTILS
// - - - - - - - - - - - - - - - - - - - //
// CLEAN VALUES
// - - - - - - - - - - - - - - - - - - - //
export function capitalizeString(string) {
return string[0].toUpperCase() + string.substring(1)
}
export function splitMulti(str, tokens,... |
import React from 'react';
import PropTypes from 'prop-types';
import styled, { createGlobalStyle, css } from 'styled-components';
import { Button } from './button';
import { Title, Info, Actions } from './block';
import { useEscape, useFocusTrap } from './keyboard-navigation';
import { code, CodeExample, PropsDefiniti... |
var isMouseOver = false;
var isStatusMouseOver = false;
$(function() {
getQueue();
$("#uploadProtocolInputFile").change(function() {
if ($(this).val()) {
$("#startUpload").removeAttr("disabled").prop("disabled",false);
//$(this).next().after().text($(this).val().split('\\').slice(-1)[0]);
v... |
const dzcons = require('../common/constants');
const Formatter = require('../poker/formatter');
const FormatterHand = require('../poker/formatterHand');
const Formation = require('../poker/formation');
const logger = require('pomelo-logger').getLogger('game-dz-robot', __filename);
const utils = require('../poker/utils'... |
import {
Table, Input, InputNumber, Popconfirm, Form, Divider, Modal, Tree, Button, Row, Col, Icon, Select, Alert, Tag, message, Card, DatePicker,Tooltip
} from 'antd';
import { connect } from 'dva';
import styles from './style.less';
import CreateForm from "@/components/CreateForm"
import moment from 'moment';
impor... |
//
// Bot
// class for performing various twitter actions
//
var Twit = require('../lib/twitter');
var Forecast = require('forecast');
var fs = require('fs'),
PNG = require('pngjs').PNG;
var geocoder = require('geocoder');
var restclient = require('node-restclient');
var GoogleNews = require('google-news');
var ... |
import React from 'react';
import Page from 'components/LayoutComponents/Page';
import Helmet from 'react-helmet';
import moment from 'moment';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { Query, ApolloConsumer, Mutation } from 'react-apollo';
import { Link } from 'react-router-dom';
import { withRou... |
'use strict';
const markdownit = require('markdown-it');
const markdownitRegexp = require('markdown-it-regexp');
(function () {
function markdownit_reddit_spoiler() {
var object = {};
object.blockquote = function (md) { // Spoilers friendly block quotes
function isSpace(co... |
/**
* @fileoverview Tests for no-octal-escape rule.
* @author <NAME>
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("../../../lib/rules/no-octal-... |
'use strict'
const bsh = require('./lib/bsh-const.js')
const bshAppliance = require('./lib/bsh-appliance.js')
const request = require('request')
const EventEmitter = require('events')
const debug = console.log
var generateError = (code => { return {
nr: code,
error: bsh.errors[code].resp || 'Unknown',
text: bs... |
require('./bootstrap');
import $ from "jquery";
import { split } from "lodash";
var productdata;
var branddata;
var clientdata;
var clientdata;
var checking;
var orderdata;
var linksdata = "";
$(function(){
$.get("http://127.0.0.1:8000/product-list",{headers: {'X-CSRF-Token': $('meta[name="csrf-token"]').attr('c... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _immutabilityHelper = _interopRequireDefault(require("immutability-helper"));
var _store = _interopRequireDefault(require("./stores/store"));
var _f... |
/*
* Copyright (c) 2018, EPFL/Human Brain Project PCO
*
* 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 requir... |
//$.index.open();
// http://stackoverflow.com/a/15930390
//$.index.addEventListener('android:back', function(e) {
// e.cancelBubble = true;
// Ti.App.fireEvent('android_back_button');
//});
//var win = $.index;
//Alloy.createController('play');
var emptyStateView = Ti.UI.createView({
top: 300, // Initiali... |
/**
@module MapOfCasualties
*/
class Visualization {
/** constructor */
constructor () {
d3.queue()
.defer(d3.json, 'https://raw.githubusercontent.com/holtzy/D3-graph-gallery/master/DATA/world.geojson') // World shape
.defer(d3.csv, 'https://raw.githubusercontent.com/L28-1-n-1-... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.InputCore = exports.getOnChange = exports.DisabledInput = exports.relationshipLabelFactory = void 0;
var _react = _interopRequireDefault(require("react"));
var R = _interopRequireWildcard(require("ramda"));
v... |
import React, { useContext } from 'react'
import { Link, graphql, StaticQuery } from 'gatsby'
import { Layout } from './Layout'
import Logo from './Logo'
import Icon from './Icon'
import { mediaQueries, breakpoints } from './Layout'
import styled, { keyframes } from 'styled-components'
import Context from './Context'
... |
/**
* @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals console, window, document */
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Essentials from '@ck... |
//Navigation Button Declarations
let category1Btn = $('#category1Btn')
let category2Btn = $('#category2Btn')
let category3Btn = $('#category3Btn')
//Form Fields Declarations
let category1Title = $('#category1Title')
let subcategory1_1Fieldset = $('#subcategory1_1Fieldset')
let subcategory1_1Title = $('#subcatego... |
import { getVisibleElementsInViewPort } from 'dom-element-types';
import focusElement from './helpers/focus_element';
import {
clickableSelector,
getClickableSelector,
focusableElementAfterClickSelector,
is,
} from './helpers/element_selectors';
const clickFilters = Object.keys(clickableSelector).map(filter =>... |
"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];
});
va... |
$('.colrs').on('click', function(){
var here = $(this);
var rowid = here.closest('tr').data('rowid');
var val = here.closest('li').find('input').val();
if(val == 'undefined'){
... |
$(document).ready(function ($) {
awe_backtotop();
awe_category();
awe_tab();
awe_lazyloadImage();
$('[data-toggle="tooltip"]').tooltip();
$('#trigger-mobile').click(function(){
$(".evo-main-nav").addClass('active');
$(".backdrop__body-backdrop___1rvky").addClass('active');
});
$('.backdrop__body-backdrop___... |
import pkg from '../package.json';
import Sampler from './event-sampler';
export default function initAutoTrackingCore(lib) {
return function init(obj = {}) {
const client = this;
const sampler = new Sampler(client);
const { helpers, utils } = lib;
const options = utils.extend({
ignoreDisable... |
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { Button, FormControl, FormControlLabel, Grid, MenuItem, Radio, RadioGroup, Select } from '@material-ui/core';
import { DatePicker } from '@material-ui/pickers';
import MapIcon from '@material-ui/icons/Map';
import { St... |
const linebot = require('../index.js');
var getJSON = require('../node_modules/get-json/index.js');
//var request = require('../node_modules/request/index.js');
//var cheerio = request('../node_modules/cheerio/index.js');
const bot = linebot({
channelId: process.env.CHANNEL_ID,
channelSecret: process.env.CHA... |
/**
* Created by xieshangwu on 2018/3/11.
* ๆทปๅ ๅ่ฎกๆถ้กต้ข
*/
import React, {Component} from 'react';
import {
StyleSheet,
View,
Text,
TouchableOpacity,
DeviceEventEmitter,
NativeModules,
ScrollView
} from 'react-native';
import {getWidth} from "../util/Utils"
import DateUtil from "../util/DateUtil";
import ... |
import React from "react";
import { Observer } from "mobx-react";
import { httpGetAsync } from "./URL";
import PropTypes from "prop-types";
import "./App.css";
class ControlHeader extends React.Component {
shift(percentage) {
const beginBin = this.props.store.getBeginBin();
const endBin = this.props.store.ge... |
/*
* AndroidResourceFileType.js - manages a collection of android resource files
*
* Copyright ยฉ 2016-2017, 2019-2020 HealthTap, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*... |
import Message from '../models/Message';
import Model from 'flarum/Model';
import Stream from 'flarum/utils/Stream';
import * as resources from '../resources';
import ViewportState from './ViewportState';
var refAudio = new Audio();
refAudio.src = resources.base64AudioNotificationRef;
refAudio.volume = 0.5;
var aud... |
let startTimestamp = undefined;
let easing = bezier(Parameters.X1, Parameters.Y1, Parameters.X2, Parameters.Y2);
let reverseEasing = bezier(Parameters.Y1, Parameters.X1, Parameters.Y2, Parameters.X2);
let AnimationType = {
FAILING: 1,
RECOVERING: 2,
FAILING_FAST: 3,
};
let playerState = {
"dead": fals... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RelayResponseNormalizer
*
* @format
*/
'use strict';
var _classCallCheck3 = _interopRequireDefault(require('babel... |
const libui = require(`${__dirname}/ui.node`);
const async_hooks = require('@creditkarma/async-hooks');
const EventLoop = libui.EventLoop;
delete libui.EventLoop;
let wakingup = false;
let asyncHook = null;
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
}
class Color {
constructor(r, g, b, a) {
... |
"use strict";
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at http://polymer.github.io/AUTHORS.txt The complete set of contrib... |
var _okg = null;
function switcher(){
_okg = this;
_okg.dots = [];
_okg.grid = null;
_okg.init();
}
switcher.prototype.init = function(){
_okg.init_stage();
}
switcher.prototype.init_stage = function(){
$('#switch_canvas').css({"width":window.innerWidth, "height":window.innerHeight});
$('#sw... |
import React, { useState, useEffect } from "react";
import Nav from "../../components/Navbar";
import Footer from "../../components/Footer";
import cityData from "../../utils/cities";
import { useMutation, useQuery } from "@apollo/client";
import { useBusinessSearch } from "../../utils/yelp-api/useBusinessSearch";
impo... |
import React, { useState, useEffect } from 'react'
import { graphql } from 'gatsby'
import Img from 'gatsby-image'
import styled from 'styled-components'
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'
import { Container, Row, Col, useScreenClass } from 'react-grid-system'
import ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
var ENTITY_ICON = {};
ENTITY_ICON['and'] = 20;
ENTITY_ICON['or'] = 21;
ENTITY_ICON['not'] = 22;
ENTITY_ICON['xor'] = 23;
ENTITY_ICON['ctrue'] = 9;
ENTITY_ICON['cfalse'] = 10;
ENTITY_ICON['result'] = 30;
var LOGIC_ENTITY_CLASS = {};
LOGIC_ENTITY_CLASS['and'] = AndEntity;
LOGIC_ENTITY_CLASS['or'] = OrEntity;
LOGIC_ENTI... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Input = exports.toInputValidationResult = exports.toInput = exports.runIOFilters = exports.runFilters = exports.runIOValidators = exports.runValidators = exports.validateIOInput = exports.validateInput = exports.noValidationRequired... |
define(
[
'$',
'_',
'utils/template',
'utils/api',
'utils/emoji',
'utils/message',
'utils/storage',
'controllers/shout'
],
function(
$,
_,
template,
api,
emoji,
message,
storage,
... |
'use strict';
import _ from 'lodash';
const productSortListFile = require('../../../productSortList.txt');
export default class ProductsService {
constructor(securityService, strataService, CaseService, AttachmentsService, RHAUtils, NEW_CASE_CONFIG, NEW_DEFAULTS, AlertService) {
'ngInject';
... |
document.querySelector('#graph').innerHTML='';
var st = document.createElement('link');
st.rel = 'stylesheet';
st.type = 'text/css';
st.href = '/assets/img/projects/d3graph.css'
document.querySelector('head').appendChild(st);
function loadd3(callback) {
var d3 = document.createElement('script');
d3.src='/asset... |
function navigation() {
var t = document.getElementByID("NavBar");
"navigation" === t.className ? t.className += "responsive" : t.className = "navigation"
}(function() {
var t, e, n, i, o, r = function(t, e) {
return function() {
return t.apply(e, arguments)
}
... |
import React, { useState, useEffect, useCallback } from 'react'
import axios from 'axios'
import _ from 'lodash'
import { useQuery, useMutation, gql } from '@apollo/client'
import {
Container,
makeStyles,
Typography,
Card,
CardMedia,
CardActions,
CardContent,
Input,
IconButton,
Box,
Dialog,
Dial... |
import React,{ Component } from 'react'
import { Link } from 'dva/router'
import { Layout,Tabs,Row,Col,Icon,Progress } from 'antd'
import echarts from 'echarts'
import styles from './HomePage.less'
import robotBackground from '../../assets/background.png'
import seeDetail from '../../assets/icon/่ฏฆๆ
3.png'
const {
He... |
import Vue from 'vue'
import Router from 'vue-router'
import StatusError from './StatusError.js'
import preload from '@/setup/preload'
import afterload from '@/setup/afterload'
import { translateAuth } from '@/setup/permission'
import $http from '@/api'
import index from '@/views/index/router.config'
import audit fr... |
/**
* @file diagram.run.js
* @author justKD
* @fileoverview
* Diagram startup script.
*/
import { diagramMethods } from "./diagram.methods";
import { diagramTemplates } from "./diagram.templates";
window["diagramProps"] = {
helpOpen: false,
lastQuestionID: 1,
lastAnswerID: 0,
deletedQuestions: [],
dele... |
"use strict";
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.apac... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
"use strict";
const arrowUpElement = document.querySelector(".up");
const arrowLeftElement = document.querySelector(".left");
const arrowDownElement = document.querySelector(".down");
const arrowRightElement = document.querySelector(".right");
const myStorage = window.localStorage;
const color = ["#CDC1B4", "... |
const express = require('express'),
mongoose = require('mongoose'),
path = require('path'),
dotenvconf = require('dotenv').config(),
app = express(),
cron = require('node-cron'),
mailer = require('@sendgrid/mail'),
api = require('covidapi'),
got = require('got')
require('./models')
const User = mongoos... |
const log = require('../core/log.js');
const config = require('../core/util.js').getConfig();
const rp = require('request-promise');
const _ = require('lodash');
const request = require('request');
const fs = require('fs');
//const Table = require('cli-table');
//const table = new Table({ head: ["Date", "Price", "SMA",... |
/**
* Copyright (C) 2012 KO GmbH <<EMAIL>>
*
* @licstart
* This file is part of WebODF.
*
* WebODF is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License (GNU AGPL)
* as published by the Free Software Foundation, either version 3 of
* the License, ... |
import React, { useContext, useEffect, useState } from "react";
import { Button, Form } from "react-bootstrap";
import { GlobalContext } from "../../models/global-provider";
import charData from "../characters/char-selector-data";
import { useFormik } from "formik";
import * as yup from "yup";
const FormEditCharacter ... |
/**
* Module dependencies
*/
var util = require('util');
var formula = require('../../consts/formula');
var EntityType = require('../../consts/consts').EntityType;
var Character = require('./character');
var dataApi = require('../../util/dataApi');
var Item = require('./item');
var Equipment = require('./equipment')... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.