text stringlengths 3.22k 29.5k |
|---|
module.exports = LRUCache
// This will be a proper iterable 'Map' in engines that support it,
// or a fakey-fake PseudoMap in older versions.
var Map = require('pseudomap')
function naiveLength () { return 1 }
function LRUCache (options) {
if (!(this instanceof LRUCache))
return new LRUCache(options)... |
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import getText from 'utils/i18n/Texts'
// Lib imports
import { useForm, Controller } from 'react-hook-form'
import { yupResolver } from '@hookform/resolvers/yup'
import nookies from 'nookies'
import { verifyIdToken } from 'utils/db/firebaseAdmi... |
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TextInput,
PickerIOS,
PickerItemIOS,
Switch,
DatePickerIOS,
ScrollView,
} from 'react-native';
// import LoadingView from './lib/components/LoadingView/index.js';
var REQUEST_URL = 'http://lee.local:3000/api/groups/test';
var POST_U... |
const _ = require('lodash');
// Returns typecasted value if possible. If rejected, originalValue is returned.
export function typecast(value, originalValue, properties) {
// Allow transform to manipulate raw properties.
if (properties.transform) {
value = properties.transform.call(this, value, originalValue, p... |
"use strict";
function LoadPage(){
var tbody=document.getElementById("my")
while (tbody.firstChild) {
tbody.removeChild(tbody.lastChild);
}
// tbody.removeChild(tbody.chil)
window.onload = cart_generator();
}
var cartvalue = 0;
function addproduct(product,value,per,quant) {
var prod = [];
var val = ... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const ITEMS_BASE_PRICE = {
lama: {
wood: 20,
pepper: 30
},
gatherer_spirit: {
wood: 25,
pepper: 15
},
woodcutter_spirit: {
wood: 25,
pepper: 40
},
fruit_gatherer_spirit: {
wood: 15,
pepper: 25
},
max_capacity... |
'use strict';
/*
* Snippets must be constants, and constants must capitalised with underscores.
*
* Remember to export snippets at the end of the file.
*
* To use values from JavaScript code within a snippet, insert a '%s' where you want
* to place the values. You can then use the util.format() function to repla... |
const RELATIVE_DIR = "toolkit/mozapps/extensions/test/xpinstall/";
const TESTROOT = "http://example.com/browser/" + RELATIVE_DIR;
const TESTROOT2 = "http://example.org/browser/" + RELATIVE_DIR;
const XPINSTALL_URL = "chrome://mozapps/content/xpinstall/xpinstallConfirm.xul";
const PROMPT_URL = "chrome://global/content/... |
'use strict';
require('dotenv').config();
const express = require('express');
const app = express();
const pg = require('pg');
pg.defaults.ssl = process.env.NODE_ENV === 'production' && { rejectUnauthorized: false };
const client = new pg.Client(process.env.DATABASE_URL);
client.on('error', err => cons... |
const boxen = require('boxen');
// const crypto = require('crypto');
const BaseCLI = require('../BaseCLI');
const routes = require('./routes');
const questions = require('../../lib/questions');
const i18n = require('../../lang/i18n');
class BaseRoute extends BaseCLI {
constructor(options) {
super();
this.proces... |
var imageOnPage;
var srcImageWelcome;
var jwp_width = 480;
var jwp_audiowidth = 400;
var jwp_maxwidth = 480;
var jwp_height = 270;
var jwp_audioheight = 30;
function load_welcome() {
if (self == top) {
// Le quiz n'est pas dans un iframe.
}
else {
// Le quiz est dans un iframe.
... |
import Styled from 'styled-components';
import { Container, Col } from '@snappmarket/ui';
export const StyledHomeItemsColumn = Styled(Col)`
font-size: 14px;
justify-content: flex-end;
a {
width: calc(100% - 7px);
background: #fff;
border-radius: 15px;
padding: 20px 5px;
margin-bottom: 14px;
... |
var score = 0;
var hit = false;
var game_level_score = 0;
var game_level_timer = 45;
var timer_id = null;
var gift_timeouts = [];
var keys = {};
$(document).ready(function(){
bind_instruction_text();
$('#play').on('click', function() {
start_game();
display_instruction(6000);
setInterval(moveBal... |
"use strict";
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 fulfilled(value) { t... |
import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
import store from './store';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
... |
/*jshint esversion: 6 */
const global = require("electron").remote.getGlobal("sharedObject");
const fs = require("fs");
const join = require("path").join;
const sqlite3 = require("sqlite3").verbose();
const image = require("./image_manager");
const levenshtein = require("fast-levenshtein");
const { ipcRenderer }... |
import { AsyncSubject } from 'rxjs/AsyncSubject'
import { BehaviorSubject } from 'rxjs/BehaviorSubject'
import { WebSocketSubject } from 'rxjs/observable/dom/WebSocketSubject'
import { Observable } from 'rxjs/Observable'
import { Subscription } from 'rxjs/Subscription'
import 'rxjs/add/observable/merge'
import 'rxjs/ad... |
// 'use strict';
/**
* Come Again?
* Copyright 2014 <NAME>
* Licensed under the MIT license.
*
*/
var chooser = document.getElementById('chooser');
var dragNDrop = document.getElementById('drag-n-drop');
var player = document.getElementById('player');
var bigMessage = document.getElementById('big-message');
va... |
import fs from 'fs'
import path from 'path'
import esbuild from 'esbuild'
import { nodeExternalsPlugin } from 'esbuild-node-externals'
// UMD related deps.
import { nodeResolve } from '@rollup/plugin-node-resolve'
import { terser } from 'rollup-plugin-terser'
import * as rollup from 'rollup'
import commonjs from '@roll... |
import React, { Component } from "react";
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as GcspManageActions from 'modules/GcspManageModule';
import * as GRConfirmActions from 'modules/GRConfirmModule';
import * as GRAlertActions from 'modules/GRAlertModule';
import { Val... |
var assert = require('assert')
var path = require('path')
var fs = require('fs')
var ascension = require('ascension')
var mkdirp = require('mkdirp')
var Staccato = require('staccato')
var Signal = require('signal')
var Turnstile = require('turnstile')
Turnstile.Set = require('turnstile/set')
var cadence = require... |
var HelperNamespace = (function () {
/**
* @desc Build a list of all the files that are children of a directory
* @param {string} dir The directory to search
* @param {list} filelist The list of the directories/files already detected
* @param {string} ext The extension to filter for the files
*/
func... |
"use strict";
Array.prototype.move = function (old_index, new_index) { // HT http://stackoverflow.com/questions/5306680/move-an-array-element-from-one-array-position-to-another
// native JS for moving around array items
... |
import "../sass/sgds.scss";
import "../fonts/sgds-icons.svg";
import "../fonts/sgds-icons.ttf";
import "../fonts/sgds-icons.woff";
const { jQuery } = window;
if (!jQuery) {
throw new Error(
"SGDS couldn't initialize; please make sure jQuery is loaded!"
);
}
const $ = jQuery;
$(document).ready(() => {
// Sea... |
/*
RSI Bull and Bear + ADX modifier
1. Use different RSI-strategies depending on a longer trend
2. But modify this slighly if shorter BULL/BEAR is detected
-
(CC-BY-SA 4.0) <NAME>
https://creativecommons.org/licenses/by-sa/4.0/
-
NOTE: Requires custom indicators found here:
https://github.com... |
import React from 'react';
import { normalize } from 'path';
// main debugger component container
let dragStartX = 0;
let dragStartY = 0;
let dragTimeout = null;
let lastPositionRight = 20;
let lastPositionTop = 20;
class Debugger extends React.Component {
constructor() {
super();
// this.startPos = 0; // ... |
class Zomato {
constructor() {
this.api = "406a36928c14de7ad8474610b9e643e3";
this.header = {
method: "GET",
headers: {
"user-key": this.api,
"Content-Type": "application/json",
},
credentials: "same-origin",
};
}
async searchAPI(city, categoryID, ui) {
//r... |
/* eslint global-require: 0 *//* eslint prefer-template: 0 */
/* eslint quote-props: 0 */
const packager = require('electron-packager');
const path = require('path');
const util = require('util');
const tmpdir = path.resolve(require('os').tmpdir(), 'nylas-build');
const fs = require('fs-plus');
const coffeereact = requ... |
// Copyright 2018, 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 wr... |
'use strict';
var hours = ['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm','4pm','5pm','6pm','7pm'];
var storeContainer = [];
var netTotal = [];
////////////////////////////////// constructor function /////////////////////////////////
function MakeLocation(name, minCustomer, maxCustomer, averageSales) {... |
/**
* @author <NAME>
* @module views/ConsoleView
* @requires models/Commands
* @requires util/Logger
* @requires util/Template
* @requires electron
* @requires config/advanced-config
* @listens util/Logger~Logger:info
* @listens util/Logger~Logger:debug
* @listens util/Logger~Logger:data
* @listens util/Logg... |
import React, { PureComponent } from 'react';
import {
Popover,
Layout,
Menu,
Icon,
Dropdown,
Badge,
Modal,
Form,
Input,
Select,
message,
Tooltip,
Checkbox,
Button,
DatePicker,
Progress,
Switch,
} from 'antd';
import pathToRegexp from 'path-to-regexp';
import { Link } from 'dva/router'... |
// this class should be used to create all codemark documents in the database
'use strict';
const ModelCreator = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/util/restful/model_creator');
const Codemark = require('./codemark');
const MarkerCreator = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/m... |
require('./bootstrap');
$('.conditional').conditionize();
$('.conditional-required').conditionize({
onload: true,
ifTrue: function(selection) {
$(selection).attr('required', true);
$(selection).parent().find('label').append(' <span class="required">*</span>');
},
ifFalse: function... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
function tableConfigurations(){
log("setting table configurations...")
var ifLeftTables = []
ifLeftTables.push(currentTable, upcomingTable, postponedTable)
//log(ifLeftTables)
countLeftTables = countItemsTrue(ifLeftTables)
//log(countLeftTables)
if(countLeftTables === 3){
var showUpcomingAndCurrentANDPostTable... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
const Asset = require('../Asset');
const api = require('posthtml/lib/api');
const urlJoin = require('../utils/urlJ... |
import React, { Component } from "react";
import axios from "axios";
import debounce from "lodash/debounce";
import { Link } from "react-router-dom";
import { Button, Icon, Modal, Spin, Table } from "antd";
import CodeEditor from "components/CodeEditor";
import HistoryChanges from "components/HistoryChanges";
import Fi... |
function grzx1(){
$("#grzx1").attr("style","display:none;");
$("#grzx2").attr("style","display:block;");
}
function Advertisement_Close(){
$('#Advertisement').css("display", "none");
$('#Advertisement_Close').css("display", "none");
}
function aaa(){
alert('00');
}
function Secondary_navigation(... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
SkeetSkeet.Play = function(game) {};
var round = 10;
var countdown;
var timerShadow, timer;
var beep;
SkeetSkeet.Play.prototype = ... |
'use strict';
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 fulfilled(value) { t... |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import React, { Component } from 'react';
import { BackAndroid, StatusBar, NavigationExperimental, Platform,AsyncStorage } from 'react-native';
import { connect } from 'react-redux';
import { StyleProvider, variables, Drawer } from 'native-base';
import { actions } from 'react-native-navigation-redux-helpers';
import ... |
'use strict';
//declare variable yes_answers
//yes_answers is an array containing various forms of yes
//declare variable no_answers
//no_answers is an array containing various forms of no
var yes_answers = ['yes', 'y', 'sure', 'absolutely', 'ok'];
var no_answers = ['no', 'n', 'nope', 'absolutely not', 'nah'];
... |
/***/
// [node-grunt-q] index.js
var NULL = null, TRUE = true, FALSE = false;
var g = global;
var cluster = require('cluster');
var Emitter = require('events').EventEmitter, inherits = require('util').inherits;
var SimpleQ = require('./lib/SimpleQ'), Task = require('./lib/Task');
var WorkerGroup, eventBinding;
if(clus... |
import React, { useCallback, useState, useMemo, useEffect } from 'react';
import Chip from '@material-ui/core/Chip';
import { Autocomplete, createFilterOptions } from '@material-ui/lab';
import TextField from '@material-ui/core/TextField';
import {
Box,
Button,
ButtonGroup,
Field,
Skeleton,
Throbber,
InputBox,
... |
import { Posts, Comments } from 'meteor/example-forum';
import Users from 'meteor/vulcan:users';
import RSSFeeds from '../collections/rssfeeds/collection.js';
import Sequences from '../collections/sequences/collection.js';
import algoliasearch from 'algoliasearch';
import { getSetting } from 'meteor/vulcan:core';
cons... |
/** @jsx jsx */
import {
jsx,
Box,
Container,
Heading,
Text,
Button,
Link,
Image as Img,
} from "theme-ui";
import { rgba } from "polished";
import { useState, useRef, useEffect } from "react";
import { Swiper, SwiperSlide } from "swiper/react";
import { EffectFade } from "swiper";
import "swiper/css/bundle";
... |
/***
|Description|Allows to store any number of tiddlers as external files and more|
|Version|1.1.1|
|Source|https://github.com/YakovL/TiddlyWiki_TiddlerInFilePlugin|
|Author|<NAME>|
|License|MIT|
!!!Usage
Once the plugin is installed (copy - tag {{{systemConfig}}} - reload) storing tiddlers in files is done via 2 ste... |
import LanguageService from "../LanguageService/LanguageService.js";
import constants from "../../../constants.js";
const pathToXsl = constants.XSL_PATH;
let errorMessage = "This is a valid product. However, more information about this product has not been published by the Pharmaceutical Company. Please check back lat... |
/*-----------------------------------------------*\
GLOBAL VARIABLES
\*-----------------------------------------------*/
// URLS
var url_grid = window.location.origin + "/api/mediciones/"
var url_excel = window.location.origin + "/api/medicionexcel/"
var targeta_filtros = null
var targeta_resultados = null... |
'use strict';
// PROVIDE ACCESS TO ENVIRONMENT VARIABLES IN .env
require('dotenv').config();
// LOAD APPLICATION DEPENDENCIES
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
const pg = require('pg');
// APPLICATION SETUP
const app = express();
app.use(cors(... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import PieChart from 'react-minimal-pie-chart';
class NodeInfo extends Component {
constructor(props) {
super(props);
this.state = {
showSubmenu: false,
peerCount: 0,
ticks: 0,
... |
// Various formatters.
var formatNumber = d3.format(",d"),
formatChange = d3.format("+,d"),
formatDate = d3.time.format("%B %d, %Y"),
formatTime = d3.time.format("%I:%M %p");
// data across years
var extant = [];
var width = 960,
height = 500;
var rateById = d3.map(),
popById = d3.map(),
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactRouterPropTypes from 'react-router-prop-types';
import { withRouter } from 'react-router';
import { intlShape, injectIntl } from 'react-intl';
import classNames from 'classnames/bind';
import capitalize from 'lodash/capitalize';
i... |
#!/usr/bin/env node
"use strict";
const TRITS_DB_NAME = 'foongle';
const TRITS_TEST_DB_NAME = 'foongle_test_delete_me';
const TRITS_DEPOSIT_ADDRESS = 'DEPOSITXXX99999999999999999999999999999999999999999999999999999999999999999999999';
const TRITS_WITHDRAWAL_ADDRESS = 'WIDTHDRAWALXXX999999999999999999999999999999999... |
var canvas, c;
var labyrinth;
function choose(array) {
var index = Math.floor(Math.random() * array.length);
return array[index];
}
function init() {
canvas = document.getElementById("canvas");
canvas.width = window.innerHeight;
canvas.height = window.innerHeight;
c = canvas.getCon... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) ... |
/**
* --------------------------------------------------------------------------
* Admin UI (v0.0.1): admin.js
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
import Util from './util'
import Viewer from './viewer.esm'
import AdminFilePicker from './admin-file... |
var isCar = false; //checks car is on road or not
var isEngineStart = false; // if engine is started-true else false
var speed; //store car's speed
var starttime, stoptime, timepassed, timetaken; // all variables to store timeline so that start stop resume and finish conditions can be stored
var isRunning = false; //ch... |
"use strict";
const { DynamoDBClient, GetItemCommand, UpdateItemCommand, PutItemCommand, QueryCommand, DeleteItemCommand, BatchWriteItemCommand } = require("@aws-sdk/client-dynamodb");
const { marshall, unmarshall } = require("@aws-sdk/util-dynamodb");
class SimpDDB extends DynamoDBClient {
constructor (clientParam... |
/* eslint-disable no-console */
/* global setupLoadingScreen, GuiTools */
import * as itowns from 'itowns';
import Viewer from './Viewer';
import Editing from './Editing';
import Branch from './Branch';
// Global itowns pour GuiTools -> peut être améliorer
global.itowns = itowns;
// fonction permettant d'afficher la ... |
var router = require("express").Router();
var Order = require("../models/Order");
var Faculty = require("../models/Faculty");
var OrderItem = require("../models/OrderItem");
var Item = require("../models/Item");
var Notification = require("../models/Notification");
var mailer = require("../Utils/mailer");
const nodemai... |
import * as Curry from "../../../../../node_modules/bs-platform/lib/es6/curry.js";
import * as Caml_obj from "../../../../../node_modules/bs-platform/lib/es6/caml_obj.js";
import * as Log$WonderLog from "../../../../../node_modules/wonder-log/lib/es6_global/src/Log.js";
import * as StreamType$Wonderjs from "../data/S... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
Dropdown,
Menu,
Divider,
Popconfirm,
Steps,
Upload,
message,
Alert,
Table,
} from 'antd';
import Result from '../../components/Result';
imp... |
const express = require('express')
const http = require('http')
const path = require('path') // for workign with directories https://nodejs.org/api/path.html
const { emit } = require('process')
const socketio = require('socket.io')
const { generateMessage } = require('./utils/messages')
const { addUser, removeUser, get... |
const AsciiTable = require('ascii-table');
const assert = require('assert');
const num = require('num');
const { sequelize } = require('./sequelize');
const { Account, Disposal, Transaction } = require('./models');
async function getCurrencies() {
return Account.aggregate('currency', 'distinct', { plain: false })
... |
import { safeMerge } from '../../utils/json';
import { SIGMET_MODES, SIGMET_TEMPLATES } from '../../components/Sigmet/SigmetTemplates';
export const LOCAL_ACTION_TYPES = {
TOGGLE_CONTAINER: 'TOGGLE_CONTAINER',
TOGGLE_CATEGORY: 'TOGGLE_CATEGORY',
RETRIEVE_PARAMETERS: 'RETRIEVE_PARAMETERS',
RETRIEVE_PHENOMENA: '... |
var currentTestName = "";
var currentSteps = [];
var currentStepIndex = 0;
var testCases = [];
var currentlyExecutingTest = 0;
var testMode = "manual"; // can be "auto"
var isRecursive = false;
var runningRecursive = false;
var snapshotPrefix = "";
var snapshotIndex = 0;
var advanceKey = "n";
var pathSeparator... |
import _regeneratorRuntime from 'babel-runtime/regenerator';
function _asyncToGenerator(fn) {
return function () {
var gen = fn.apply(this, arguments);return new Promise(function (resolve, reject) {
function step(key, arg) {
try {
var info = gen[key](arg);var... |
const INSTAT_PAID = 3;
var full_url;
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
if ((window.location.hash).slice(1) != "")
Routes();
});
//generalised markAsPaid modal
function deleteAJAX(iden... |
var count = 1;
var pagesize = 10;
var classid = GetQueryString('classId');
if(classid == '' || classid == null ){
location.href = '/wechatRealCommodityColumn' ;
}else{
$('.select_screen_tb').find('.select_screen_tbcell').each(function(){
var obj = $(this)
var scid = obj.attr('cid');
var scn = obj.text();
if(c... |
const _ = require('lodash')
const path = require('path')
const { createFilePath } = require('gatsby-source-filesystem')
const { fmImagesToRelative } = require('gatsby-remark-relative-images')
const locales = {
el: {
path: 'el',
locale: 'Greek',
default: true,
},
en: {
path: 'en',
locale: 'Eng... |
import React from 'react'
import { CopyToClipboard } from 'react-copy-to-clipboard';
import styled from 'styled-components'
import { cryptoDonationPropTypes } from '../../proptypes/donate-proptypes'
import { Flex, Box } from '@rebass/grid'
import { graphql, StaticQuery } from 'gatsby'
import Link from '../GatsbyLink'
i... |
'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... |
var wmdk = {
schema: '',
table: '',
path: '',
uri: '',
entityManager: '',
fileExplorerNode: null,
datasourceExplorerNode: null,
datasourceManager: null,
selection: {
emNode: null
},
history: {
lastDomainURL: null
},
explorers: {
}
};
Ext.onReady(function(){
Ext.Q... |
import React, { useEffect, useState } from "react";
import {
StyleSheet,
Text,
Image,
TouchableOpacity,
Alert,
ActivityIndicator,
Platform,
} from "react-native";
import styles from "./styles";
import {
Container,
Content,
Form,
Item,
Input,
Button,
Icon,
Label,
View,
} from "native-ba... |
const M = require("./..")();
const assert = require("assert");
const assertAsync = async x => assert(await x());
// Tests primitive operations on the core language (fast mode)
assert(M.run(`(add 3 2)`) === `5`);
assert(M.run(`(sub 3 2)`) === `1`);
assert(M.run(`(mul 3 2)`) === `6`);
assert(M.run(`(div 3 2)`) === `1.5`... |
contact_arr = new Array();
update_email = null;
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var submit_form = $("#submit_form");
submit_form.validate({
rules: {
location_name: {
required: true,
minlengt... |
const Record = require('./record')
const Listener = require('../utils/listener')
const C = require('../constants/constants')
const { Observable } = require('rxjs')
const invariant = require('invariant')
const EventEmitter = require('component-emitter2')
const RecordCache = require('./record-cache')
const jsonPath = req... |
"use strict"
const JsonError = require("./json-error")
const {translationTypes, getCustomFunctionName} = require("./translation-type-utils")
/** Returns a copy of the passed in string with the first letter capitalised/decapitalised, based on the `caps` param. */
const caseFirstLetter = (s, caps) => {
const firstC... |
'use strict';
const { isServiceEmailNotificationAllowed } = require('./../../infrastructure/applications');
const { listRolesOfService, addInvitationService, addUserService } = require('./../../infrastructure/access');
const {
putUserInOrganisation,
putInvitationInOrganisation,
getOrganisationById,
getPendingRe... |
'use strict';
const path = require('path');
const _ = require('lodash');
const Syntax = require('./syntax');
const TYPES_ALL = ['String', 'Boolean', 'Number', 'Object', 'Function', 'Array'];
class SQLOperator {
constructor(sqlBuilderInstance) {
if (!sqlBuilderInstance) {
throw new Error('Create new instanc... |
var _scriptName = 'CH INVITE USER CREATE PENDING RELATIONSHIP';
_log('Starting');
/*
** INPUT DATA
* SHARED STATE:
- 'companyData': the company data which has been previously looked up from IDM
- '_id': id of the current user (session owner)
- 'email': email of the invited user
- [option... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import AlertContainer from 'react-alert';
import Rodal from 'rodal';
import { LocationSearchBox } from 'eo-components';
import 'rodal/lib/rodal.css';
import RootMap from './components/RootMap';
import Tools from './components/Tools';
impor... |
/* global Vue:true */
var enableDebugging;
//enableDebugging = true;
function debugFunc(funcName) {
return function() {
if(enableDebugging) {
console[funcName].apply(console, arguments);
}
};
}
var debug = debugFunc('log');
debug.group = debugFunc('group');
debug.groupEnd = debugFunc('groupEnd');
var Space... |
import {wrap} from 'optimism';
import {useModelState, DistributionSeriesFullFragment} from './modeling';
import {fetchSuspendable} from '../lib/fetch';
const toQueryString = (
location,
scenario,
[type, query, transforms, fragments = []]
) => {
let body = query;
switch (type) {
case 'Location':
bod... |
import React, { useCallback, useState, useEffect, useMemo } from "react";
import { useDropzone } from "react-dropzone";
import { useFileUploader } from "../hooks";
import { Upload, Bin } from "../components/Svg";
import { Loader } from "../components";
const IMAGE_STATUS = {
notStarted: "not-started",
uploading: "... |
var Connection = require('ssh2')
, stream = require('stream')
, util = require('util')
, bl = require('bl')
, once = require('once')
;
function getConnection (str, opts) {
var user = 'root'
, port = 22
, host
;
opts = opts || {}
if (str.indexOf('@') !== -1) {
user = str.slice(0, str.ind... |
let express = require('express');
let router = express.Router();
let Job = require('../../models/job');
let Comment = require('../../models/comment');
let Category = require('../../models/category');
let Worksite = require('../../models/worksite');
let SaveFile = require('../middleware/upload');
// 权限中间件
let Auth = req... |
import Interaction from '../plugins/Interaction.js'
import { stop, prevent, addEvt, cleanEvt, getEventPath } from '../utils/event.js'
import { FOCUSABLE_SELECTOR, KEY_SKIP_SELECTOR, changeFocusedElement } from '../utils/focus-manager.js'
const keyCodes = {
horizontal: {
first: [ 36 ], // HOME
prev: [ 37 ], /... |
/**
* Created by Kisora on 2015-10-31.
*/
var CalendarObject = function CalendarObject(){
var Months = [12];
var Weeks = [6];
var Days = [42];
};
var MonthMatrix = function MonthMatrix(contextYear, contextMonth){
//Whole Day Objects
MonthMatrix.prototype.week1=[]; //First Few are emp... |
/*
Purpose: Update app/routes.json file according page components.
*/
'use strict'
// Include modules
let env = require('./env')
let alert = require('./alert')
let found = require('./found')
let fs = require('fs-extra')
let path = require('path')
let rec = require('recursive-readdir')
let us = require('underscore... |
//dropdown menu
var closetimer = 0;
var ddmenuitem = 0;
var homemenuloaded = 0;
// open hidden layer
function mopen(id,cid) {
if (id=='homemenu' && homemenuloaded==0) {
basicahah(imasroot+'/gethomemenu.php?cid='+cid,'homemenu');
homemenuloaded = 1;
}
mcancelclosetime();
if(ddmenuitem) ddmenuitem.sty... |
var fc = angular.module('woordnl', ['cfp.hotkeys']);
//TODO create a client config
var WOORDNL_MP3_BASE_URL = 'http://os-immix-w/woord-nl-mp3/';
fc.filter('slice', function() {
return function(arr, start, end) {
return (arr || []).slice(start, end);
};
});
/* Main controller */
fc.controller('feedCtrl', ... |
"use strict";
/**
* 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.
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (va... |
/* eslint-disable react/jsx-boolean-value */
/* eslint-disable react/jsx-filename-extension */
// import modules
import React, { useEffect, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Glide from '@glidejs/glide';
import Skeleton, { Sk... |
'use strict';
const assert = require('bsert');
const fs = require('fs');
const ed25519 = require('../lib/ed25519');
const x25519 = require('../lib/x25519');
const ed448 = require('../lib/ed448');
const x448 = require('../lib/x448');
const curves = [
[ed25519, x25519],
[ed448, x448]
];
describe('EdDSA', function(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.