text stringlengths 3.22k 29.5k |
|---|
import { arrayByClass, coolDown } from '../../shared/helpers.mjs';
import { popUpPlus } from '../../shared/popup.mjs';
import { isThisHour } from 'date-fns';
const ordersForm = document.getElementById('orders-selection');
const orderRowsContainer = document.getElementById('order-rows');
const selectAllButton = documen... |
import React, { useState, useEffect } from 'react';
import CustomizedTextField from 'Assets/Elements/CustomizedTextField';
import StyledSwitch from 'Assets/Elements/StyledSwitch';
import ListboxComponent from '../ListboxComponent';
import { Controller, useFormContext } from 'react-hook-form';
import {
Grid,
InputAd... |
/**
* @version 0.9
*/
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { View , Image, Animated } from 'react-native'
import MaterialIcons from 'react-native-vector-icons/MaterialCommunityIcons'
import Orientation from 'react-native-orientation'
import PINCode, { hasUserSetPinCod... |
import React, { useContext, useState, useMemo } from "react";
import Link from 'next/link'
import styled from "styled-components";
import { Modal } from "react-bootstrap";
import GlobalContext from "../../context/GlobalContext";
import {Blockie} from 'web3uikit'
import { useMoralis } from 'react-moralis';
import { useN... |
import { html, useState, useEffect, useLayoutEffect, useRef } from "../common/Preact.js"
import { utf8index_to_ut16index } from "../common/UnicodeTools.js"
import { map_cmd_to_ctrl_on_mac } from "../common/KeyboardShortcuts.js"
const clear_selection = (cm) => {
const c = cm.getCursor()
cm.setSelection(c, c, {... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import DeleteIcon from '@material-ui/icons/Delete';
import Paper from '@material-ui/core/Paper';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBo... |
/**
* Project: miner
* File: browser
* User: william <<EMAIL>>
* Date: 2018/11/20
* Time: 3:26 PM
* Description:
*
* Change Date Author Content
* yyyymmdd name comment
*
*/
'use strict';
import {getQuery} from '../utils/url'
let _os = {
...de... |
import camelCaseToUnderscores from 'd2-utilizr/lib/camelCaseToUnderscores';
import MenuItem from 'material-ui/MenuItem';
import SelectField from 'material-ui/SelectField';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import DropdownAsync from '../../forms/form-fields/drop-down-async';
i... |
// Creating map object
var myMap = L.map("map", {
center: [37.43, -78.65],
zoom: 7.5
});
// Store API query variables
L.tileLayer("https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}", {
attribution: "© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a> © <a href='... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vscode = require("vscode");
const position_1 = require("./../../../common/motion/position");
const configuration_1 = require("./../../../configuration/configuration");
const textEditor_1 = require("./../../../textEditor");
const markerGe... |
var tokenList = [];
const promisify = (inner) =>
new Promise((resolve, reject) =>
inner((err, res) => {
if (err) {
reject(err);
} else {
resolve(res);
}
})
);
function toBytes(x) {
let bytes = "0x";
for (var i = 0; i < x.length; i++) {
bytes = bytes.concat("0");... |
import React, {Component} from 'react'
import {InputGroup, FormControl, Button, Jumbotron, Container, Card, Nav, Alert, OverlayTrigger, Tooltip} from 'react-bootstrap'
import Axios from 'axios'
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'
import {faBug, faSearch} from '@fortawesome/free-solid-svg-icon... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var base64js = require('base64-js');
const Buffer = require('buffer').Buffer;
const RNSimpleCrypto = require('@react-native-cryptocurrencies/react-native-simple-crypto').default;
const randomBytes = require('react-native-securerandom').generat... |
import React, {useState, useEffect} from 'react'
import {useStaticQuery, graphql, Link, navigate} from 'gatsby'
import {Col, Pagination, PaginationItem, UncontrolledPopover, PopoverBody} from 'reactstrap'
import atob from "atob"
import {
FacebookShareButton,
LinkedinShareButton,
PinterestShareButton,
Tw... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Paper, Grid, Typography } from '@material-ui/core';
import Footer from './Footer';
import API from '../utils/API';
// NFC East
import logoCowboys from './images/team-logos/logo-cowboys.png';
import logoGiants from './images/team... |
//顶点着色器
//膨胀
var VSHADER_SOURCE = "" +
"attribute vec4 a_Position;\n" +
"attribute vec4 a_Color;\n" +
//"varying vec4 a_normal;\n" +
"uniform mat4 u_ModelViewMatrix;\n" +
"varying vec4 v_Color;\n" +
"void main(){" +
" gl_Position = u_ModelViewMatrix * (a_Position+ vec4(0,0,0,1) + ... |
/*****************************************************************************/
// Database
var Sequelize = require('sequelize');
var db = new Sequelize('htmlwhiteboard', 'root', '<PASSWORD>',
{
host: 'localhost',
dialect: 'mysql',
}
);
var db_board = db.define('board', {
id: {type: Sequelize.INTEGER, autoI... |
import { inBrowser } from "../utils/environment-helpers";
import {
addErrorHandler,
mountRootParcel,
removeErrorHandler,
navigateToUrl,
getAppNames,
checkActivityFunctions,
getMountedApps,
} from "single-spa";
import { htmlToParcelConfig } from "../utils/parcel-utils";
/**
* @typedef {{
* activate() =>... |
var svgNS = "http://www.w3.org/2000/svg";
var currentState = null;
var currentFaceParameters = null;
var currentLookAt = "none";
/*
* Face class for creating the robot face
*/
function Face() {
Face.eyes = new Eyes();
// List of available faces (with all face parameter info)
Face.faces = null;
Face.updat... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SelectArrayInput = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProp... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import LoadingBar from 'react-redux-loading-bar'
import Reac... |
/* eslint-disable no-continue */
const pathLib = require('path');
/* eslint-disable no-shadow, no-param-reassign */
const FindImportsAnalyzer = require('./find-imports.js');
const FindExportsAnalyzer = require('./find-exports.js');
const { Analyzer } = require('./helpers/Analyzer.js');
const { fromImportToExportPerspec... |
// update_plot() CustomJS
var d0 = new Date()
var t0 = d0.getTime()
var ifiber = ifiberslider.value
var nsmooth = smootherslider.value
// if (show_prev_vi_select.value == "Yes") {
// vi_info_div.text = targetinfo.data['vi_info'][ifiber];
// } else {
// vi_info_div.text = " ";
// }
if (cb_obj == ifiberslide... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function stringifiable(obj) {
// Safely stringify Object.create(null)
/* istanbul ignore next */
return typeof obj === 'object' && !('toString' in obj) ?
Object.prototype.toString.call(obj).slice(8, -1) :
obj;
}
var... |
"use strict";
require("hard-rejection/register");
const semver = require("semver");
const polyfillio = require('../../lib');
const fs = require("fs");
const promisify = require("util").promisify;
const readFile = promisify(fs.readFile);
const path = require("path");
const handlebars = require("handlebars");
const dir... |
let map;
let layerGroup;
let shadow;
let array = [];
let markerId = [];
var numberIcon = L.divIcon({
className: "number-icon",
shadowSize: [20, 30], // size of the shadow
iconAnchor: [20, 40],
shadowAnchor: [4, 30], // the same for the shadow
popupAnchor: [0, -30],
html: "1"
});
// filter con... |
/**
* Utilities for mouse or touch events.
*/
import Eventful from '../mixin/Eventful';
import env from './env';
import {isCanvasEl, transformCoordWithViewport} from './dom';
var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;
var MOUSE_EVENT_REG = /^(?:mouse|pointer|contextmenu|drag|dr... |
var infos = [];
var markers = [];
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: { lat: 54.5567382, lng: -7.4247462 },
zoom: 6,
mapTypeControl: false,
streetViewControl: false,
styles: [
{
"featu... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const genericobject_1 = require("./genericobject");
/**
* A particle emitter type 2.
*/
class ParticleEmitter2 extends genericobject_1.default {
constructor() {
super(...arguments);
this.speed = 0;
this.... |
/*This file implements a working smooth-line
drawing canvas (whiteboard) using HTML/CSS/JS.
Copyright and Usage Information
===============================
This project and file is licensed with the MIT License.
See https://github.com/andrewcoool/collaborate-code/
and the LICENSE file for more information.
Author: <... |
/*
An alphanumeric ordering of strings is defined as follows: each string is considered as a sequence of tokens, where each token is a letter or a number (as opposed to an isolated digit, as is the case in lexicographic ordering). For example, the tokens of the string "ab01c004" are [a, b, 01, c, 004]. In order to comp... |
/*
Copyright 2016 First People's Cultural Council
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
'use strict';
var fs = require('fs');
var fsAutocomplete = require('vorpal-autocomplete-fs');
var fetch = require('./../util/fetch');
var interfacer = require('./../util/interfacer');
var preparser = require('./../preparser');
var strip = require('./../util/stripAnsi');
var shuffle = require('array-shuffle');
var so... |
/* global THREE, XRRigidTransform */
var registerComponent = require('../core/component').registerComponent;
var bind = require('../utils/bind');
var trackedControlsUtils = require('../utils/tracked-controls');
var checkControllerPresentAndSetup = trackedControlsUtils.checkControllerPresentAndSetup;
var LEFT_HAND_MOD... |
var archinfo = require('../utils/archinfo.js');
var buildmessage = require('../utils/buildmessage.js');
var files = require('../fs/files.js');
var _ = require('underscore');
import utils from '../utils/utils.js';
let nextId = 1;
exports.SourceProcessor = function (options) {
var self = this;
self.isopack = option... |
/**
* 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.
*
* @format
*/
'use strict';
const assert = require('assert');
const {
hasNewline,
addLeadingComment,
addDanglingComment,
... |
import React, { useState, useCallback, useEffect } from "react";
import useSWR from "swr";
import tw, { styled } from "twin.macro";
import fetch from "unfetch";
import { useLocation } from "react-router-dom";
import { useDispatch } from "react-redux";
import { shown as readonlyShown } from "../slices/readonly";
import... |
/**
* Module dependencies.
*/
var settings = require('./configs/settings.js')
var express = require('express')
var cookieParser = require('cookie-parser')
var compress = require('compression')
var session = require('express-session')
var bodyParser = require('body-parser')
var Promise = require('bluebird')
var logge... |
var Student = Backbone.Model.extend({
urlRoot: base_url + "/formgrader/api/student"
});
var Students = Backbone.Collection.extend({
model: Student,
url: base_url + "/formgrader/api/students"
});
var StudentUI = Backbone.View.extend({
events: {},
initialize: function () {
this.$modal = un... |
import { Buffer, VertexBuffer } from "../Meshes/buffer";
import "../Engines/Extensions/engine.alpha";
import "../Engines/Extensions/engine.dynamicBuffer";
import "../Shaders/sprites.fragment";
import "../Shaders/sprites.vertex";
/**
* Class used to render sprites.
*
* It can be used either to render Sprites ... |
const marked = require('marked')
const Doc = require('./doc')
const {getLinkMatch} = require('./utils')
const SpecialHeadingDepth = 2
const SpecialHeadings = /^Arguments|Events|Examples/
const VisibilityRegexStr = '^\\s*([a-zA-Z]+):\\s*'
const VisibilityRegex = new RegExp(VisibilityRegexStr)
const ReturnsRegex = new ... |
let indexImg = 0;
let indexImgBrand = 0;
let dataForm = new VarienForm('estimator-form');
jQuery(document).ready(function($) {
$("#phone").mask('+1 999 999 9999');
if (categories && categories.length) {
initCategories();
}
initAddons();
if (selected) {
fillFields();
fillAddo... |
/*
* JavaScript functions for providing OpenID Connect with NGINX Plus
*
* Copyright (C) 2020 Nginx, Inc.
*/
var newSession = false; // Used by oidcAuth() and validateIdToken()
export default {auth, codeExchange, validateIdToken, logout};
/**
* In case the id-token has not been synced yet, the request will be r... |
/**************/
/*** CONFIG ***/
/**************/
var PORT = 8444;
/*************/
/*** SETUP ***/
/*************/
var express = require('express');
var http = require('http');
var bodyParser = require('body-parser');
var main = express();
var server = http.createServer(main);
var io = require('socket.io').listen(s... |
#!/usr/bin/env node
"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;
... |
const Discord = require('discord.js'); //Z Bot
const Util = require('discord.js');
const request = require("request")
const Canvas = require("canvas");
const mmss = require("ms");
const queue = new Map();
const jimp = require("jimp");
const convert = require("hh-mm-ss");
const dateFormat = require('dateformat');... |
var _ = require('underscore');
var Backbone = require('backbone');
var async = require('async');
var marked = require('marked');
var jqIframe = require('blueimp-file-upload/js/jquery.iframe-transport');
var jqFU = require('blueimp-file-upload/js/jquery.fileupload.js');
var utils = require('../../../.... |
/**
* (c) 2010-2016 <NAME>
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
import '../parts/Chart.js';
var Chart = H.Chart,
each = H.each,
merge = H.merge,
perspective = H.perspective,
pick = H.pick,
wrap = H.wrap;
/***
EXTENSION ... |
// @ts-nocheck
const vscode = require('vscode');
const os = require("os");
const window = vscode.window;
const workspace = vscode.workspace;
const defaultIcon = '$(checklist)'; // statusBar 图标
const zapIcon = '$(zap)';
const defaultMsg = '0'; // statusBar
module.exports = (context) => {
let activeEdit... |
/****************************************************************************
Copyright (c) 2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docume... |
/*
* 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... |
/* eslint-disable jsx-a11y/alt-text */
import { Icon, Input, Layout } from 'antd';
import { connect } from 'dva';
import { Link } from 'dva/router';
import React, { PureComponent } from 'react';
import { formatMessage, FormattedMessage } from 'umi-plugin-locale';
import ConfirmModal from '../ConfirmModal';
import Colle... |
/**
* terminal.js - term.js terminal element for blessed
* Copyright (c) 2013-2015, <NAME> and contributors (MIT License).
* https://github.com/chjj/blessed
*/
/**
* Modules
*/
const nextTick = global.setImmediate || process.nextTick.bind(process)
const Node = require('./node.js')
const Box = require('./box.js')... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chalk_1 = require("chalk");
const path_1 = require("path");
const dependencies_1 = require("../util/dependencies");
const files_1 = require("../util/files");
const strings_1 = require("../util/strings");
const base_1 = require("./base");... |
/**
*
* Patatap - Sequencer v0.2
* by LBRAASCH
*
* Changelog:
* v0.1 - Initial release
* v0.2 - Added persistant storage via localStorage
*
* Step sequencer and looper for JonoBr1's
* web app, Patatap: http://patatap.com
*
**/
function createSequencer() {
var beatsPerLoop = superloops.getBPL();
var windowWidth = ... |
'use strict';
const rewire = require('rewire');
const test = require('ava');
const {
aws,
errors: {
ResourcesLockedError
},
Semaphore,
testUtils: {
randomId
},
util: {
noop
}
} = require('@cumulus/common');
const sfStarter = rewire('../../lambdas/sf-starter');
const { Manager } = require('... |
/**
* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// The *Here functions are called from peerconnection.html and will make calls
// into our underlying JavaScript library with the values from ... |
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry =
/* color: #0b4a8b */
/* shown: false */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[-11.271944640065707, 32.46864070286684],
[-11.27... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DebounceInput = void 0;
var _react = _interopRequireDefault(require("react"));
var _lodash = _interopRequireDefault(require("lodash.debounce"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "defau... |
const COUNTRY_2_OFFSET = 115
var UNIQUE_ID = 0
dispatcher.on('metricEnter.heatmap', function(d) {
heatmapSVG.selectAll(".country1, .country2")
.style('opacity', 1)
.filter(e => e.metric_code !== d && selected_metrics.indexOf(e.metric_code) == -1)
.style('opacity', FADE_OPACITY)
})
dispatch... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var three$1 = require('three');
var ThreeTrackballControls = _interopDefault(require('three-trackballcontrols'));
var OrbitControlsWrapper = _interopDefault(require('three-orbit-controls'))... |
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";
var utils = require('@iobroker/adapter-core'); // Get common adapter utils
var request = require('request');
var lang = 'de';
var adapter = utils.Adapter({
name: 'solarwetter',
systemConfig: true,
useFormatDate: ... |
var conceptViewer = {
concepts: {},
loaded: false,
shownConcept: null,
load: function (lang) {
// Load the conceptViewer into the DOM
if(this.loaded) { return; }
// TODO :: allow changing list of languages
var allLangs = [
{id: 'blockly', lbl: 'Blockly'},
{id: 'scratch', lbl: 'Scra... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
var newTargetRows = [1985589486610308, 6489189113980804, 4237389300295556, 8740988927666052, 156002137991044, 4659601765361540, 2407801951676292, 69... |
import React from 'react';
import T from 'prop-types';
import Pikaday from 'pikaday';
import classNames from 'classnames';
import { isValidDate } from '../../utils/validate';
import { keyCodes } from '../../utils/aria';
import { isValid } from '../../utils/date';
import { withField, FieldLabel } from '../Field';
impor... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
const Parser = {};
// Matchers //
// Matchers for Operands
const numberMatcher = /\-?\d+\.?\d*/;
const booleanMatcher = /true|false/;
const nullMatcher = /null/;
const objectMatcher = /\{.*\}/;
const arrayMatcher = /\[.*\]/;
const stringMatcher = /\'.*?\'|\".*?\"/;
const identifierMatcher = /[a-zA-z$][\w\$]*/; // Iden... |
var num_modes;
var all_scores=[];
var current_modes=[];
var tot_num_subprob;
var textarea_notes = [];
var documentHash;
window.addEventListener("load", function(){
documentHash = hashString(document.documentElement.outerHTML);
console.log("documentHash: " + documentHash);
tot_num_subprob = document.query... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { compose, map } from 'ramda';
import graphql from 'babel-plugin-relay/macro';
import { createFragmentContainer } from 'react-relay';
import { Link } from 'react-router-dom';
import { withStyles } from '@material-ui/core/styles';
... |
import Vue from 'vue'
import { initializeApp } from 'firebase/app';
import { getAuth, onAuthStateChanged, signOut, sendPasswordResetEmail, updatePassword } from "firebase/auth";
import { doc, addDoc, deleteDoc, getDoc, getFirestore, getDocs, collection, updateDoc, arrayUnion, arrayRemove, query, where } from "firebase/... |
import React, { Component } from "react";
class ShoppingList extends Component {
// Constructor + state definitions below...
constructor(props) {
super(props)
this.state = {
listItem: '',
enteredListItems: [
{ name: 'N64', thisId: 'this-1', completed: false },
{ name: 'Sega Gen... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
"use strict";
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) if (Object.protot... |
import React, { useState, useEffect, memo } from 'react';
/** @jsx jsx */
import { jsx } from '@emotion/react'
import ErrorBoundary from '@cdc/core/components/ErrorBoundary';
import { geoCentroid } from "d3-geo";
import { feature } from "topojson-client";
import topoJSON from '../data/us-topo.json';
import hexTopoJSON ... |
"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];
})... |
$(document).ready(function(){
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
function cadastrarNovaCategoria() {
Categoria = {
nome : $("#nomeDaCategoria").val()
}
$.post("categori... |
const {app, BrowserWindow, ipcMain} = require('electron');
const url = require('url');
const isDebug = process.env.NODE_ENV === 'development'
if (isDebug) {
try
{
require('electron-debug')({showDevTools: true});
}
catch (err) // electron-debug is in devDependencies, but some
{
console.error(err)
}
... |
import assert from "assert"
import util from "util"
import ast from "../src/ast.js"
const prt = `
prt 14
prt 10001111
decl str x "hi" @ var decl
prt x @ print statement`
const prtExp = ` 1 | Program statements=[#2,#3,#4,#6]
2 | PrintStatement argument=(Int,"14")
3 | PrintStatement argument=(Int,"100011... |
/*
This shows the infomation of the posts in the list view and map view.
*/
import React, {Component} from 'react';
import {Navigator, Modal, TouchableHighlight, ListView, StyleSheet, Text, TextInput, View, Image, BackAndroid, Alert} from 'react-native';
import {Container, Content, Thumbnail, Button, Header, Title, Gri... |
"use strict";
const XO_GAME_PLAY_FIELD_SIZE_PER_CELL_KEY = XO_GAME_PLAYER_VIEW_LOC_STORAGE_KEY_PREFIX + 'playFieldSizePerCell'
const XO_GAME_SOUNDS_ENABLED = XO_GAME_PLAYER_VIEW_LOC_STORAGE_KEY_PREFIX + 'soundsEnabled'
const XoGamePlayerView = ({openView}) => {
const query = useQuery()
const gameId = query.ge... |
var express = require("express"),
cookieParser = require("cookie-parser"),
bodyParser = require("body-parser"),
logger = require("../modules/logger"),
usedLicenses = require("../modules/license"),
config = require("config");
var router = express.Router();
var CrowdClient = require("atlassian-crowd-client");
... |
/**
* 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
* distribu... |
//Define Products Class
var products = function () {};
/*
* Validate after Add new Product
* check Product Name is required
* check Product Type Is required and value is 0 | 1 (Local | imported )
* @param frm is frm.serializeArray()
* */
products.prototype.Validate = function(frm){
var data = {};
$.each(frm, ... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import {
getComments,
getAddComment,
getDelComment,
getDelPost,
getVoteComment,
getVotePost,
getCommentCountAdd,
getCommentCountDel,
getPostById } from '../actions'
import { Link } from 'react-router-dom'
import PostVote f... |
'use strict';
// essential functions
const defaultAdapter = {
name: 'default',
run: function(robot) {
console.log('go pick an adapter instead!');
this.robot = robot;
},
close: function() {
console.log('close dummy adapter');
},
send: function(msg, role) {
console.log('send text message', ms... |
/* eslint no-useless-escape: "error" */
'use strict';
let tmplPrint = `<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8"/>
<title>Document</title>
<style>{css}</style>
</head>
... |
var numIntervals = 0;
setIntervalPMWWRAPPER = function (fun, delay) {
var retVal = setInterval(fun, delay);
console.log("=> New interval " + retVal + ", total = " + (++numIntervals));
return retVal;
}
clearIntervalPMWWRAPPER = function (id) {
console.log("=> Deleted interval " + id + ", total = " + (--... |
/**
* @copyright 2016- (c) commenthol
* @license ISC
*/
'use strict'
const CalDate = require('caldate')
const _ = {
merge: require('lodash.merge'),
omit: require('lodash.omit'),
set: require('lodash.set')
}
const { toYear, toDate } = require('./internal/utils')
const Data = require('./Data')
const DateFn = r... |
var uri_admin = "/api/ScholarshipsAdmin";
var newAward, sId, currentAward, scholarshipMap;
var editorPack;
//Add listeners for all the buttons!
$(document).ready(function () {
//Listeners for the student ratings list to add/edit awards
$.each($(".btn-student-award"), function (index, item) {
if ($(ite... |
/*global google*/
import React, { Component } from "react";
import _ from "lodash";
import classNames from "classnames/bind";
import styles from "./styles.css";
import { Link } from "react-router";
class MapHere extends Component {
constructor(props) {
super(props);
this.state = {
url: null,
nam... |
import './css/photos.less';
import {
Transition,
Event,
Drag,
bind,
unbind,
rm,
hide,
show,
hasCls,
loadImg,
isArr,
} from './util';
const mainTpl = `
<i class="photos_icon--close"></i>
<div class="photos_img-matte photos_img-matte--left" style="left: 0; height: 100%; width: 0"></div>
<div class="photo... |
/**
* Model imports.
*/
const User = require("../../models/user.model");
const Bid = require("../../models/bid.model");
const Product = require("../../models/product.model");
/**
* Utils imports.
*/
const catchAsync = require("../../utils/catchAsync")
const { cloudinary } = require("../../utils/cloudinaryUpload");... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
var SpeechRecognition = SpeechRecognition || window.webkitSpeechRecognition || undefined;
var numbers = Array.apply(null, Array(101)).map(function (_, i) {return i;});
if(SpeechRecognition) {
var SpeechGrammarList = SpeechGrammarList || window.webkitSpeechGrammarList || undefined;
var SpeechRecognitionEvent = ... |
/**
* @fileoverview Attaches comments to the AST in the spots that ESLint expects.
* This logic is based on code from estraverse(https://github.com/estools/estraverse)
* @author <NAME>
* @copyright 2014 <NAME>. All rights reserved.
*/
/*
Copyright (C) 2012-2013 <NAME> <<EMAIL>>
Copyright (C) 2012 <NAME> <... |
import React from 'react'
import PropTypes from 'prop-types'
import {Glyphicon} from 'react-bootstrap/lib'
import {ColumnGroupPropTypes} from '../PropTypes.js'
import {difference, intersection, union} from 'lodash'
import './Components.css'
const headerName = (name) => (
name
.replace(/_/g,` `)
.replace(/\w\... |
let accountArray = [];
let precisionList = {
AAA: 4,
PAL: 3,
SPT: 6,
ACTNEARN: 2,
BATTLE: 0,
BLQ: 8,
DOLPHIN: 8,
ENG: 8,
LASSECASH: 8,
LEO: 3,
MOT: 8,
SCT: 3,
SPORTS: 3,
WEED: 8,
ZZAN: 5,
SAGO: 8,
IV: 8,
TMT: 0,
};
// 보팅 파워 보이기
const showVotingProgress = (target, value, symbol) => {... |
var _qrt = require("quark/quark_runtime.js");
_qrt.plugImports("interfaces");
var quark = require('quark').quark;
exports.quark = quark;
// CLASS A
function A() {
this.__init_fields__();
}
exports.A = A;
function A__init_fields__() {}
A.prototype.__init_fields__ = A__init_fields__;
_qrt.lazyStatic(function(){A.... |
const _ = require('lodash')
const cheerio = require('cheerio')
const uslug = require('uslug')
const pageHelper = require('../../../helpers/page')
const URL = require('url').URL
const mustacheRegExp = /(\{|{?){2}(.+?)(\}|}?){2}/i
/* global WIKI */
module.exports = {
async render() {
const $ = cheerio.... |
'use strict';
const delay = require('delay');
const fs = require('fs-extra');
const replace = require('lodash/replace');
const pWaitFor = require('p-wait-for');
const { Granule } = require('@cumulus/api/models');
const { deleteGranule } = require('@cumulus/api-client/granules');
const {
deleteQueue,
receiveSQSMes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.