text stringlengths 3.22k 29.5k |
|---|
// =======================================================================
// TEST CHART
var chart;
// =======================================================================
/**
* functions:
* - queryDataRenderChart
* - renderchart
* - queryDataRenderTable
*/
$(document).ready(function() {
/* ==============... |
// 0x07009E30 - 0x07009E48
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometry... |
/*
* NetworkView
*
* The network view contains the region for draw the network, id table and tag tables on the right,
* display panel for some statistics on the left, and data print area at the bottom.
*/
class NetworkView
{
constructor()
{
this.selected_and_following_node_ids = [];
... |
//
// Runs an HTTP server to prompt for CVE assignment information and
// outputs that in a format for submission to MITRE.
//
var listen_on = 38103;
var output_format = 'json40';
var state = 'PUBLIC';
var title = 'CVE CNA Assignment Information Form';
var instructions = 'Use this form to enter CNA assignment informa... |
/**
* ApplicationController
*
* @description :: Server-side actions for handling application requests
*/
var dwolla = require('dwolla-v2'); // using Dwolla V2 Node client module
var moment = require('moment'); // using moment for parsing, validating, manipulating, and formatting dates
module.exports = {
app... |
import React, { useRef } from 'react'
import { Link } from 'react-router-dom'
import axios from 'axios'
import Img from "./Img"
const TopNavLinks = (props) => {
// Get number of items in video cart
const vidCartItems = props.cartVideos.length
const audCartItems = props.cartAudios.length
const cartItems = vidCart... |
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function f... |
// Recording Inputs per timeshift in milliseconds
var timeshift = 0;
// total recording time after first user input in seconds
var totalTime = 60000
var rec = false;
var save= false;
// A demo of interactive 3D Tiles styling
// Styling language Documentation: https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/maste... |
import React from 'react'
import echarts from 'echarts'
import ContextMenu from '../ContextMenu/ContextMenu'
import EditWindow from './EditWindow'
import NodeHelper from './NodeHelper'
import { message, Modal } from 'antd'
import noop from 'lodash/noop'
import isEqual from 'lodash/isEqual'
import $ from 'jquery'
import... |
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("react"));
var _SendIcon = _interopRequireDefault(require("./icons/SendIcon"));
var _FileIcon = _interopRequireDefault(require("./icons/... |
/*
Title library meme
Written by <NAME>
*/
var A_Title = function(canvasID, opts) {
this.canvas = document.getElementById(canvasID);
this.ctx = this.canvas.getContext('2d');
this.options = { //setup default opts object
/* BASIC PARAMS (width, height, etc) */
width: 350, //px
height: 225, //px
fpsUpdate: 30,... |
import Ace from "react-ace";
import mixin from "reactjs-mixin";
import { Modal } from "reactjs-components";
import React from "react";
import { StoreMixin } from "mesosphere-shared-reactjs";
import "brace/mode/json";
import "brace/theme/monokai";
import "brace/ext/language_tools";
import CollapsibleErrorMessage from ... |
'use strict';
/* global mapboxgl MapboxClient */
// Initialize variables and objects
mapboxgl.accessToken = '<KEY>';
var isDragging, isCursorOverPoint, storedPopupText;
var ClimateChangeProjections = {
map: {
center: [0,0],
zoom: 1.5
},
point: {
coordinates: [36.832800445739764,-1.2847089229405242]
... |
/*
* AdminReports
*
*/
import React, { Component, PropTypes } from 'react';
import { change, reset, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import _, { isEqual } from 'lodash';
import StatsBox from '../../components/StatsBox';
impor... |
// tooltwistViews-client.js
var TooltwistViews = (function(){
return {
init: function(options) {
},
// API calls
select: tooltwistViews_select,
save: tooltwistViews_save,
// metadata-related
fieldsForMode: tooltwistViews_findFieldsForMode,
// Rendering
htmlForAngular_list: ... |
'use strict';
/*
minimal web server for cube game
*/
/**
* Module dependencies.
*/
var express = require('express'),
nconf = require('nconf'),
http = require('http'),
chalk = require('chalk'),
_ = require('underscore');
nconf.argv().env().file({file:'config.json'});
var app = express();
var game = {
... |
const markdownitContainer = require('markdown-it-container');
const S = require('string');
const Prism = require('prismjs');
require('prismjs/components/prism-wiki');
require('prismjs/components/prism-haskell');
require('prismjs/components/prism-go');
require('prismjs/components/prism-typescript');
require('prismjs/c... |
'use strict'
// 3rdparty libraries
var crypto = require('crypto')
var _ = require('lodash')
// bot libraries
var constants = require('../constants')
var log = global.log
const ERROR_ALREADY_EXISTS = '0'
const ERROR_DOESNT_EXISTS = '1'
/*
* !notice - gets an info about notice usage
* !notice add [res... |
const cvs = document.getElementById("bird");
const ctx = cvs.getContext("2d");
const DEGREE = Math.PI / 180;
const sprite = new Image();
const SCORE_S = new Audio();
const FLAP = new Audio();
const HIT = new Audio();
const SWOOSHING = new Audio();
const DIE = new Audio();
sprite.src = "images/sprite.png";
SCORE_S.src... |
const inputChange = (e) => {
e.preventDefault()
const status = e.target.getAttribute('data-status')
const pop = e.target.getAttribute('data-pop')
const parentDiv = e.target.parentElement
const newDiv = document.createElement('div')
newDiv.className = 'input-group-append btn-group ml-n1'
newDiv.style.zInde... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _AbstractSelectedItems = _interopRequireDefault(require("./AbstractSelectedItems"));
re... |
// selector functions for reshaping Redux state during mapStateToProps
import { createSelector } from 'reselect';
//reshape state for the table components
const parseFields = (state, _propName) => {
var _fields =[];
var _fieldsFiltered;
switch (_propName){
case "features":
state.map.fi... |
import React, {Component} from 'react'
import './css/Main.css'
import './css/MainList.css'
import './css/Lending.css'
import Loading from './Loading'
import BTClogo from '../btclogo.png';
import USDTlogo from '../tetherlogo.png';
import BUSDlogo from '../busdlogo.png';
import BNBlogo from '../bnblogo.png';
i... |
function genrand(screennum,numofwords) {
var myarrayjs = [];
if(screennum == 1) {
var learne = ["asparagus","aubergine","avocado","beansprouts","beetroot","bitter gourd","broad beans","broccoli","Brussels sprouts","cabbage","carrot","cauliflower","celery","chilli","courgette","cucumber","French beans","garli... |
$(function () {
$("#jqGrid").jqGrid({
url: baseURL + 'sys/articleinfo/list',
datatype: "json",
colModel: [
{ label: 'id',hidden: true, name: 'id', index: 'id', width: 50, key: true },
{ label: '文章编号', name: 'articleNo', index: 'article_no', width: 80 },
{ label: '文章名称', ... |
var React = require('react');
var PropTypes = React.PropTypes;
var Router = require('react-router-ie8');
var Api = require('../config/api.js');
var SKMap = require('../config/wx-skmap.js');
var ImageListItem = require('./image-item.js');
var WXHeaderMenu = require('./wx-header-menu.js');
var WXF4 = React.createClass({... |
import React from 'react'
import mapboxgl from 'mapbox-gl'
import { render } from 'react-dom'
import chroma from 'chroma-js'
import centerpoint from 'turf-center'
import _ from 'lodash'
import { updateSelected } from '../actions'
import MapPopup from './map-popup'
import { mapSources, mapSettings, legends, countryExt... |
import { hfetch } from "../../../utils/FetchWrapper";
class FmeServerModel {
#options;
#mapServiceBase;
#mapViewModel;
#activeUserEmail;
constructor(settings) {
this.#options = settings.options;
this.#mapServiceBase = settings.app.config.appConfig.mapserviceBase;
this.#activeUserEmail = settings... |
import React, {useState, useRef} from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import Icon from '@material-ui/core/Icon';
import Paper from '@material-ui/core/Paper';
impor... |
/*******************************************************************************
* MIT License
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import Spinner from "../layout/Spinner";
import Modal from "react-bootstrap4-modal";
import ReportLocation from "./ReportLocation";
import { CLIENT_KEY } from ".... |
/**
* AnalyticsDashboardWidgetTopLevel component.
*
* Site Kit by Google, Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/lic... |
import React, { PureComponent } from "react";
import { connect } from "react-redux";
import { Table, Modal, Button, Pagination, Row, Col, Spin } from "antd";
import { PageWrapper } from "./policyrecord-style";
import AdvancedSearchForm from "./queryForm";
import DetailList from "./DetailList";
import Insure from "./Ins... |
var json_data;
function getJournalData(page) {
blankOutputs();
var request = new XMLHttpRequest();
request.open('GET', page, true);
request.setRequestHeader('Content-type', 'application/json');
request.send();
request.onreadystatechange = function() {
if (request.readyState == 4 && request.status == 200) {
... |
const Parser = require("tree-sitter");
const { assert } = require("chai");
const { dsl, generate, loadLanguage } = require("..");
const { choice, prec, repeat, seq, grammar } = dsl;
const ARITHMETIC = require('./fixtures/arithmetic_language');
describe("Tree", () => {
let parser;
beforeEach(() => {
parser = n... |
/* ovms.js | (c) <NAME> | https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3 */
function setcontent(tgt, uri, text){
if (tgt[0].id == "main") {
$("#nav .dropdown.open .dropdown-toggle").dropdown("toggle");
$("#nav .navbar-collapse").collapse("hide");
$("#nav li").removeClass("active");
... |
import React, { PureComponent, Fragment } from "react";
import { connect } from "dva";
import { Link, Switch, Route } from "dva/router";
import { routerRedux } from "dva/router";
import { CopyToClipboard } from "react-copy-to-clipboard";
import {
Row,
Col,
Card,
Form,
Button,
Icon,
Menu,
... |
var imgIndex = 0;
$(function() {
$('#submitBtn').click(function(){
var zczForm = $("#zcz_form").serializeJSON();
if (zczForm['k02_zjbh'].isEmpty()) {
$("#k02_zjbh").errMsg('注册证号不能为空!');
return false;
}
if (zczForm['f09_zccpmc'].isEmpty()) {
$("#f09_zccpmc").errMsg('注册产品名不能为空!');
return fals... |
const Lang = imports.lang
const Gio = imports.gi.Gio
const GLib = imports.gi.GLib
const Soup = imports.gi.Soup
const Self = imports.misc.extensionUtils.getCurrentExtension()
const Utils = Self.imports.utils
const WallpaperProvider = Self.imports.wallpaperProvider
const SETTINGS_DELAY = 5
const OPTIONS = {
query: ... |
import React, { useEffect, useState } from 'react'
import { BrowserRouter as Router } from 'react-router-dom'
import Box from '@mui/material/Box';
import Fab from '@mui/material/Fab';
import AddIcon from '@mui/icons-material/Add';
import EditIcon from '@mui/icons-material/Edit';
import FavoriteIcon from '@mui/icons-mat... |
var dataArray = []; // data URIs and add them in an array
var maxFiles = 25; // number of images or video files to display
var img = 0, vid = 0, usup = 0; //Image, video and Unsupported file count
var imgVideoDataList = []; //Total Image and Video files count
var imageFileList = [], videoFileList = [];
var oldfilen... |
// <NAME> <<EMAIL>>
"use strict";
const assert = require('../assert.js');
const Layout = require('./layout.js');
const Timer = require('../timer.js');
module.exports = {
compact: function(transferFlow){
const t = Timer.create();
// create new meta empty time-needle bed
const tnb = this.createEmpty();
... |
// Toastr options
toastr.options = {
closeButton: true,
debug: false,
newestOnTop: false,
progressBar: true,
positionClass: 'toast-bottom-full-width',
preventDuplicates: false,
showDuration: 1000,
hideDuration: 2000,
timeOut: 10000,
extendedTimeOut: 1000,
showEasing: 'swing',
hideEasing: 'linear... |
import fetch from 'isomorphic-fetch';
import querystring from 'querystring';
import { isPlainObject } from 'lodash/lang';
import { trimStart } from 'lodash/string';
import { sprintf, vsprintf } from 'sprintf-js';
/**
* Endpoint constants.
* @type {Object}
*/
export const Constants = {
// Food Services
FS_MENU: ... |
import * as fontawesome from '@fortawesome/fontawesome-svg-core'
import FontAwesomeIcon from '../FontAwesomeIcon'
import React from 'react'
import renderer from 'react-test-renderer'
import log from '../../logger'
jest.mock('../../logger')
const faCoffee = {
prefix: 'fas',
iconName: 'coffee',
icon: [
640,
... |
var fs = require("fs");
var pathUtil = require("path");
var partParser = require("./part_parser");
var jsonPath = require("../lib/jsonpath").jsonPath;
var partDir = process.argv[process.argv.length-1];
var TYPES = {
UNKNOWN:0,
LFO_ENGINE:1,
LFO_TANK:2,
BOOSTER:3,
DECOUPLER:4,
DUCT:5,
BRANCH:6,
LF_TANK... |
export function randId() {
return (
Math.random()
.toString(36)
.substr(2, 10) + new Date().getTime()
);
}
export const dtypeToTypedArray = {
int8: Int8Array,
int16: Int16Array,
int32: Int32Array,
uint8: Uint8Array,
uint16: Uint16Array,
uint32: Uint32Array,
float32: Float32Array,
fl... |
//Libraries
import React, { useState, useContext, useEffect } from 'react';
import { SafeAreaView, ScrollView, StyleSheet, ActivityIndicator, View, TouchableOpacity } from 'react-native';
import CardMessage from '../../../Components/CardMessage';
import AntDesign from 'react-native-vector-icons/AntDesign';
import fireb... |
/*-------------------------
Functions for rules tab
<NAME> 05/03/2016
-------------------------*/
//---------------------------------------
// Globals for rules details tab
//---------------------------------------
var nbcond, nbact; // number of rows for condition or action
var nextcondid, nextactid; // next i... |
const WalletManager = require('./walletManager.js');
const cfdjsWasm = require('cfd-js-wasm');
/**
* read input from console.
* @param {string} question input comment.
* @return {Promise<string>} Promise's input object.
*/
function readInput(question) {
const readline = require('readline').createInterface({
... |
import React, { Component, PropTypes } from 'react';
import Bootstrap, { Button, Modal } from 'react-bootstrap';
import DropZone from 'react-dropzone';
import styles from './PostTabsForms.css';
import InputContainer from '../../../../components/InputContainer';
import { uploadImage } from '../../PostActions';
impor... |
/**
* Created by yanshenshen on 17/04/10.
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ReactDOM from 'react-dom';
import Swipe from '../swipe/index';
import { getComponentLocale } from '../localeprovider/getLocale';
import Defaultlanguage from '../local... |
import { carbonPrefix } from '../../global/settings';
import {
sbCompPrefix,
splitSlotArgs,
storyParametersObject,
} from '../../global/storybook-utils';
import { action } from '@storybook/addon-actions';
import { CvCodeSnippet, CvCodeSnippetConsts, CvCodeSnippetSkeleton } from '.';
import './CvCodeSnippet.stor... |
let utils = require('../../services/utils');
let {restAPI,metadataAPI} = require('sfdc-happy-api')();
let logError = require('../../services/logging');
let {findWorkflowRules,findWorkflowFieldUpdates} = require('../metadata-types/utils/workflows');
const strip = require('strip-comments');
async function findReference... |
import { Vec3 } from '../math/Vec3'
import { Transform } from '../math/Transform'
import { RaycastResult } from '../collision/RaycastResult'
import { Utils } from '../utils/Utils'
/**
* @class WheelInfo
* @constructor
* @param {Object} [options]
*
* @param {Vec3} [options.chassisConnectionPointLocal]
* @param {Ve... |
/*
Manager
Handles integration to Taaspace and higher level events such as tap event.
Keep all taaspace-related stuff in Manager.
Keep Recognizer compatible with all html elements.
Notes
[1] For press event detection, we can place a threshold how far
we allow fingers to move to still classify it as a press.
... |
const colors = require('colors');
const path = require('path');
const fs = require('fs');
const solc = require('solc');
const log = true;
const debug = false;
let logger = console;
const pathSeparator = /[\\/]/;
const contractPath_default = './contracts/CpuCoin.sol';
let allSources = '';
const dependencies = [];
co... |
/**
* 构建灵活查询
*
* @type {null}
*/
var jso_queryTempletVO = null; //实际表的模板VO
var ary_newQueryItems = []; //当前选中的
var tab_name = "";
var tab_name_en = "";
var queryFormValue = {};
function AfterInit() {
JSPFree.createSplitByBtn("d1", "左右", 450, ["确定/onConfirm/icon-ok", "重置/onReset/icon-p39", "取消/onCancel/icon-n... |
// Eloquent JavaScript
// Chapter 5 Exercises
// boots
var ANCESTRY_FILE = getAncestryFile();
// Flattening
function flatten(array) {
return array.reduce(flattenHelper, []);
}
function flattenHelper(prev, current) {
return prev.concat(current);
}
console.log("\n*** Flatten ***");
assert(deepEqual(flatten([[... |
import { createStructuredSelector, createSelector } from 'reselect';
import castArray from 'lodash/castArray';
import get from 'lodash/get';
import isNil from 'lodash/isNil';
import filter from 'lodash/filter';
import isEmpty from 'lodash/isEmpty';
import find from 'lodash/find';
import sortBy from 'lodash/sortBy';
imp... |
#!/usr/bin/env node
const process = require("process");
process.removeAllListeners("warning");
const fs = require("fs").promises;
const languages = require("./languages");
const { Command } = require("commander");
const chalk = require("chalk");
const fetch = require("node-fetch");
const program = new Command();
cons... |
const minimath = require('..');
const { name, version } = require('../package.json')
global.common = minimath.common // TODO: how can I do this without global?
global.complex = minimath.complex
const COMPLEX = {
re: 0,
im: 1,
value: "i"
}
function assert(results, lib, compareFn, testFn) {
const errors = []
... |
/**
* 生成群合影
* @param list
* @param options
* @returns {Promise<unknown>}
*/
async function generateRoomImg({ list, options }) {
/**
*
* @param {*} t 头像数组
* @param {*} param1
*/
const __beforePatternCircle = function (t, { size = 120, space = 24, circleSpace = 24, centerSizeMargin = 0 }) {
let i... |
import React, { Fragment } from 'react';
import { connect } from 'dva';
import {
Card,
Icon,
Button,
Popconfirm,
Form,
Divider,
Col,
Tag,
Row,
Input,
TreeSelect,
Select,
message,
Badge,
Table,
Drawer,
Descriptions,
Dropdown,
Menu,
Spin,
} from 'antd';
import StandardTable from '... |
import * as kdbxweb from 'kdbxweb';
import { Events } from 'framework/events';
import { RuntimeInfo } from 'const/runtime-info';
import { Transport } from 'comp/browser/transport';
import { Launcher } from 'comp/launcher';
import { Links } from 'const/links';
import { AppSettingsModel } from 'models/app-settings-model'... |
'use strict';
// class SubmitButton extends React.Component{}
// class FormWindowHeader extends React.Component{}
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; desc... |
const FLAG_CONNECTED = 1; // 00000001
const FLAG_GPSFIXED = 2; // 00000010
const FLAG_ALTITUDEWORKING = 4; // 00000100
const FLAG_CAMERAWORKING = 8; // 00001000
const FLAG_CELLWORKING = 16; // 00010000
const FLAG_EXTERNALTEMPWORKING = 32; // 00100000
const FLAG_GPSWORKING = 64; // 01000000
const FLAG_GYROWORKING = 128;... |
import React, { useEffect, useState } from "react";
import { Spinner } from "react-bootstrap";
// import sample_events from "../sample_data/sample_events"
import useGoogleCharts from './useGoogleCharts'
function ProgressionChart ({user_data}) {
const google = useGoogleCharts()
const [chart, setChart] = use... |
import card from './Character_Fischl_Card.jpg'
import thumb from './Character_Fischl_Thumb.png'
import c1 from './Constellation_Gaze_of_the_Deep.png'
import c2 from './Constellation_Devourer_of_All_Sins.png'
import c3 from './Constellation_Wings_of_Nightmare.png'
import c4 from './Constellation_Her_Pilgrimage_of_Bleak.... |
include("http://localhost/salma_group_ci/assets/js/jquery.color.js");
include("http://localhost/salma_group_ci/assets/js/jquery.backgroundpos.js");
include("http://localhost/salma_group_ci/assets/js/jquery.easing.js");
include("http://localhost/salma_group_ci/assets/js/googleMap.js");
include("http://localhost/salma_gr... |
const formatMoment = date => date.format('DD/MM/YYYY');
const testAddress = {
TOWN: 'Test town',
COUNTY: 'Test county',
COUNTRY: 'null',
POSTCODE: 'AT1 1AT',
ADDR_LINE1: 'Test address line 1',
ADDR_LINE2: 'Test address line 2',
ADDR_LINE3: 'Test address line 3',
ADDR_LINE4: 'Test address line 4',
ID:... |
/**Things to add */
// 1-store the highest score in a file
// 2-high score message
// 3-add the main nemu (play,chose skin,mute)
// enter your name before playing
// show the best 3 players
//have mutliple kinds of food that change the GROWTH_RATE
//add the option that the snake can pass into the wall
const ... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author pengfei.wang
*/
"use strict";
import { assert, forEachValue, getCenterOfElement, ellipse2path } from "./util";
import Snap from "./snap";
import Canvas from "./canvas";
import anime from "animejs";
import State from "./state";
import Point from... |
'use strict';
const assert = require('assert');
const fs = require('fs');
const KoaApplication = require('koa');
const EggConsoleLogger = require('egg-logger').EggConsoleLogger;
const debug = require('debug')('egg-core');
const is = require('is-type-of');
const co = require('co');
const BaseContextClass = require('./u... |
import React, {Component} from "react";
import {Dimensions, FlatList, StyleSheet, Text, View, ScrollView, PixelRatio} from "react-native";
import IconFa from "react-native-vector-icons/FontAwesome";
import PropTypes from "prop-types";
import {NavigationActions} from "react-navigation";
import {connect} from "react-redu... |
var fs = require("fs");
var fse = require("fs-extra");
var glob = require("glob");
/**
* @moduel utils
*/
var utils = {};
/**
* Simple slugify method.
* @method slugify
* @param String text
* @returns String
*/
utils.slugify = function (text) {
return text
.toString()
.toLowerCase()
.trim()
.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
$(function() {
$("#form .signup").hide();
// Remove autofilled values
setTimeout(function() {
$("input").each(function(key, value) {
let current_input = $(value);
if (current_input.val() != "") {
current_input.val("");
current_input.removeClass("has-content");
}
});
}, 250);
let flashMessag... |
import React, { Component } from 'react';
import { connect } from 'dva';
import { Breadcrumb, Tabs, Button, Tag, Form, Row, Col, Input, Card, Popconfirm, Select, Table, message, DatePicker } from 'antd';
import CommonBreadCrumb from '@/components/CommonBreadCrumb';
import { formatMessage } from 'umi/locale';
import ro... |
import EnvUtil from '../EnvUtil'
import Encoder from '../Encoder'
import InvalidInputError from '../Error/InvalidInput'
import nodeCrypto from 'crypto'
const meta = {
name: 'block-cipher',
title: 'Block Cipher',
category: 'Modern cryptography',
type: 'encoder'
}
const algorithms = [
{
name: 'aes-128',
... |
//pemesanan
var lokasi = [];
var lokasiOrder = [];
var lokasiDriver;
var lokasiKoperasi;
var vrMaps;
var arrayDistance = [];
var progressbar;
var progressbar1;
var titleprogressbar;
var valuebar;
var width = 0;
var step = 0;
var colors = ["red", "green", "orange", "purple", "blue", "yellow", "pink"];
//===========... |
'use strict';
exports.__esModule = true;
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
var _getIterator3 = _interopRequireDefault(_getIterator2);
exports.simple = simple;
exports.ancestor = ancestor;
exports.recursive = recursive;
var _babelTypes = require('babel-types');
var t = _interopRequ... |
"use strict";
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { retur... |
/*
* contrib
* https://github.com/contrib/contrib
*
* Copyright (c) 2014 <NAME>
* Licensed under the Apache license.
*/
'use strict';
/**
* Export the main function
*/
var Command = module.exports = {};
/**
* Module dependencies
*/
var _ = require('lodash');
var fs = require('fs');
var colors = require('c... |
/**
* Route
*/
var rToSilentLogout = server + "logout/silent";
var rToLogin = server + 'login/proses';
var rToGetKelurahan = server + "get/location/kelurahan/";
var rToSubmitNewOrder = server + "order/submit/new-order";
var imgFigurePayment = "https://s3-id-jkt-1.kilatstorage.id/ebunga/ebunga-cdn/figure/payment_instr... |
// Introspection lite tool for home use by <NAME>
// Main code stolen from AppInspector by <NAME>
// Modified as dialog and completed by Octazid
//Global variables
var myobj = app;
var ListView, menuView, FunctionView
var main_header_txt, edtFilter, dlg, edtDlg;
var lastMenu = "app";
var pasteable = "null";
var vers ... |
import React, { useState, useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import Divider from "@material-ui/core/Divider";
import GLOBALS from "../../../globals";
import Actions from "../../../redux/actions";
im... |
import * as Constants from "./constants.js";
import TextSVG from "./TextSVG.js";
import PolygonSVG from "./PolygonSVG.js";
const ADDR = [50, 0];
const VAL = [350/2, -24];
let addr = []
let box = []
let mem = [];
let usrCodeids = [];
let biosCodeids = [];
const BOX_OFFSET = [Constants.CODE_MEM_OFFSET[0] + VAL[0] - 60... |
import React from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// @material-ui/icons
import LibraryBooks from "@material-ui/icons/LibraryBooks";
import Close from "@material-ui/icons/Close";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles... |
#!/usr/bin/nodejs
//Copy from 1st line of XLS
var COLS = "TERM DEPT CRN SUBJ CRSE# SEC TITLE CR DISTR PROJ COMMENT INSTR1 INSTR2 PTRM DESC1 TIME1 DAYS1 BLDG_RM1 DESC2 TIME2 DAYS2 BLDG_RM2".split(/\s+/)
var fs = require("fs");
fs.readFile("./schedule.csv", "utf8", function(err, results){
var prevRef = [];
if (... |
import React, {Component} from 'react';
import {Grid, Button} from 'semantic-ui-react';
import _ from 'lodash'
import axios from 'axios'
import md5 from 'md5'
import {Redirect} from 'react-router'
import request from 'request'
import WalletTopUpPlans from './WalletTopUpPlans'
import {connect} from 'react-redux'
import ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequi... |
import React from 'react';
import compose from 'recompose/compose'
import PropTypes from 'prop-types'
import {StyleSheet, View, ScrollView, Image, Platform} from "react-native";
import Modal from 'react-native-modal'
import {Input, Item, Spinner} from 'native-base';
import StatusText from '../components/StatusText';
im... |
// @ts-check
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const babelConfig = require('./babel.config.base')
const {skipGlobal, globalEntrypoints, testSpecFormat = 'jasmine'} = require('./getUserConfig')
const CWD = process.cwd()
const isDebugMode = !!(process.env.KA... |
/*
The MIT License (MIT)
Copyright (c) 2018 <NAME>, <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/exte... |
import mongoose from 'mongoose';
import async from 'async';
import PopulationBiologyVersion from '../models/populationBiology.js';
import add_objects from '../models/additionalModels.js';
import { logger } from '../../server/log';
function postPopulationBiology(req, res) {
var population_biology_version = req.body... |
const {
textarea,
text,
table,
th,
tr,
td,
code,
pre,
input,
i,
button,
text_attr,
select,
script,
domReady,
option,
span,
nbsp,
section,
} = require("@saltcorn/markup/tags");
const FieldRepeat = require("@saltcorn/data/models/fieldrepeat");
const { features } = require("@saltcorn/... |
import React, { Component } from 'react';
import { withStyles } from '@mui/styles';
import PropTypes from 'prop-types';
import TextField from '@mui/material/TextField';
import Button from '@mui/material/Button';
import Dialog from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import ... |
const r = require('../r');
const dbExec = require('./run');
const db = require('./db');
const model = require('../../../shared/model');
const commonQueries = require('../../../lib/common-queries');
const processCommon = require('./process-common');
const sampleCommon = require('./sample-common');
const _ = require('lod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.