text stringlengths 3.07k 16k |
|---|
import React from "react"
import { Link } from "gatsby"
import Layout from "../containers/Layout/layout.js"
import SEO from "../components/seo"
import ImageHeadline from "../components/ImageHeadline/ImageHeadline.js"
import SfusdTable from "../components/Tables/SfusdTable.js"
const RecommendedPathways = () => {... |
import { call, put, takeEvery, select } from 'redux-saga/effects';
import { isEmpty, get, findIndex } from 'lodash';
import { actions as profileActions } from '../profile';
import { actions as profilesActions } from '../profiles';
import { actions as queueActions } from '../profileQueue';
import { actions as failedQue... |
var PI = Math.PI
var THREE = require('./vendor/three')
var util = require('./util')
var Cube = require('./cube').Cube
var Face = require('./model').Face
var faces = require('./model').faces
var Axis = require('./model').Axis
var facemap = {}
facemap[Face.RIGHT] = 0
facemap[Face.LEFT] = 1
facemap[Face.BACK] = 2
facemap... |
const {
DISCORD_TOKEN,
DISCORD_PREFIX,
DISCORD_OWNER,
GIVEWAY_CHANNEL,
GIVEWAY_CHANNEL_COMMUNITY,
BASE_URL,
STATUS_URL,
STATUS_CHANNEL
} = process.env;
const Discord = require("discord.js");
const { GiveawaysManager } = require("discord-giveaways");
const ms = require("ms");
const client = new Disc... |
const glm = require("gl-matrix");
const mat3 = glm.mat3;
const socket = io();
//const mat3 = require('gl-matrix').mat3;
//import mat3 from 'gl-matrix';
let _x, _y, _z;
let cX, cY, cZ, sX, sY, sZ;
const currentOrientation = {alpha: 0.0, beta: 0.0, gamma: 0.0};
const relativeOrientation = {alpha: 0.0, beta: 0.0, gamma:... |
/* global WebSocket */
module.exports = Socket
var debug = require('debug')('simple-websocket')
var extend = require('xtend')
var inherits = require('inherits')
var randombytes = require('randombytes')
var stream = require('readable-stream')
var ws = require('ws') // websockets in node - will be empty object in brows... |
// gulp/config.js
'use strict';
// require gulp-util & paths
var gutil = require('gulp-util'),
path = require('./paths.js'),
// require for imagemin options
pngquant = require('imagemin-pngquant');
// project local url
var url = 'gulp.dev';
// define options
module.exports = {
// tasks names
... |
// Select all the elements in the HTML page
// and assign them to a variable
let now_playing = document.querySelector(".now-playing");
let track_art = document.querySelector(".track-art");
let track_name = document.querySelector(".track-name");
let track_artist = document.querySelector(".track-artist");
let pla... |
function eventsListeners(){
var currentID = parseInt($(".js-next").attr("data-id"));
//load events
showEvents(currentID);
loadItineraries();
loadComments();
//below functions for various functions on event/show page
$('.js-next').on("click", () => nextEvent());
$('.add-itinerary').on("click", () => addItine... |
/*
* main.js
*
* Copyright (C) 2020 - 2021 <NAME>
*/
'use strict';
const connectButton = document.querySelector('button#connectButton');
const disconnectButton = document.querySelector('button#disconnectButton');
const audio = document.querySelector('audio#audio');
const remoteVideo = document.... |
import React from 'react'
import {Card, Button, Icon, Table, BackTop, Input} from 'antd'
import axios from 'axios'
class TableDemo extends React.Component {
state = {
filteredInfo: null,
sortedInfo: null,
searchText: '',
loading: false,
data4: [],
pagination: {
pageSize:6,
},
c... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as puzzleActions from '../../actions/puzzleActions';
import Cell from '../shared/Cell';
import _ from 'lodash';
class PuzzleComponent extends React.Component {
constructor (props) {
... |
/**
* @fileOverview edge item
* @author <EMAIL>
*/
const Util = require('../util/');
const Item = require('./item');
const END_MAP = { source: 'start', target: 'end' };
const ITEM_NAME_SUFFIX = 'Node'; // Endpoint suffix, such as sourceNode, targetNode
const POINT_NAME_SUFFIX = 'Point'; // The suffix of the start o... |
self.importScripts("js/lib/dexie.js");
// config Dexie() for IndexedDB
var db = new Dexie("restaurants");
db.version(1).stores({
urls: 'url,data',
reviews_pending: '++id,data'
});
db.open();
// config for cache
var cacheWhitelist = ['cache-and-update-v1'];
var CACHE = cacheWhitelist[0];
self.addEventListener('in... |
import React, { Component } from "react";
import { Button, Form, InputGroup } from "react-bootstrap";
import { connect } from "react-redux";
import { createCell, editCell } from "../../actions/cellActions";
import randomColorGenerator from "../../helpers/randomColorGenerator";
class CellForm extends Component {
stat... |
/*!
* snowFall Jquery plugin
* Date: 2016-02-02 15:04
* fall snow effect based on jquery and three.js
* author 此生唯晴 http://weibo.com/cishengweiqing/
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
var SCREEN_WIDTH = window.innerWi... |
import PropTypes from 'prop-types'
import React, { useEffect, useState, createRef } from 'react'
import classNames from 'classnames'
import {
CRow,
CCol,
CCard,
CCardHeader,
CCardBody,
CFormSelect,
CButton,
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CModalFooter,
} from '@coreui/react'
impor... |
/* license for this code at /license.txt */
function setSeed() {
var seed = Qs.parse(window.location.hash)["#seed"];
if (seed) {
Math.seedrandom(seed);
} else {
Math.seedrandom();
}
}
function makeSVG(n_x, n_y, border = 0) {
var WIDTH = "100%";
setSeed();
var s = Snap("#canvas");
s.clear();
... |
'use strict';
var path = require('path');
var Promise = require('bluebird');
var joiAssert = require('joi-assert');
var fileIO = require('../xm/fileIO');
var assert = require('../xm/assert');
var assertVar = require('../xm/assertVar');
var typeOf = require('../xm/typeOf');
var collection = require('../xm/collection');
... |
/**
* Created by rxfeng on 2016/7/2.
*/
// 1、点击编辑按钮,显示编辑框
/*
* $('#btnSylbedit').on('click', function () { $('#sylbedittk')[0].style.display =
* "block"; });
*/
//页面加载 下拉菜单
$(function(){
//ajax得到下拉数据
$.ajax({
url:"getCategories",
type:"get",
data:{},
async:false,
success:function(data){... |
"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 from "react";
import { useTranslation } from 'react-i18next';
import {
RouteMapHolder,
MapHolder,
ExpandButton
} from "@containers/MyRoutes/map-container.style";
import { DeleteConfirmation } from './feed.style';
import {
FeedSidePanel,
FeedAdditionPanel,
GroupView,
GroupEditionPanel
} fr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.renderPaths = renderPaths;
exports.createRecursivePaths = createRecursivePaths;
var _fractal = require('./fractal');
var _color = require('./color');
var _ControllerConstants = require('../ControllerConstants');
function renderP... |
const gulp = require('gulp');
const fileinclude = require('gulp-file-include');
let cleanCSS = require('gulp-clean-css');
// const sass = require('gulp-sass');
var sass = require('gulp-dart-sass');
livereload = require('gulp-livereload');
const autoprefixer = require('gulp-autoprefixer');
const minify = require('gulp-m... |
import Phaser from "phaser";
import ssBlocks from "./assets/blocks.png";
import imgCursor from "./assets/cursor.png"
import taStarBg from "./assets/bgDark.png"
import gradient from "./assets/gradientoverlay.png"
var globals = {}; //TODO don't fucking do this
function preload() {
this.load.image('taStarBg', taStar... |
const { existsSync } = require('fs');
const { resolve, sep, dirname, extname } = require('path');
const webpackMerge = require('webpack-merge');
const { extensions, jsVariants } = require('interpret');
const GroupHelper = require('../utils/GroupHelper');
const rechoir = require('rechoir');
const ConfigError = require('... |
var userId = 0;
var userLastNameElement = null;
var userFirstNameElement = null;
var userEmailElement = null;
var userAdminElement = null;
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
})
$('.userlist').find('.interaction').find('a').eq(0).on('click', functio... |
import template from './app.html';
const AppComponentController = class AppComponentController {
constructor($state, $stateParams, UtilsService, XmlConverterService, StoreService, LodashService) {
'ngInject';
this.$state = $state;
this.$stateParams = $stateParams;
this.UtilsService ... |
var isSimpleType = {};
'ybnquigsoxtd'.split(' ').forEach(function(t) {
isSimpleType[t] = true;
});
// Buffer + position + global start position ( used in alignment )
function DBusBuffer(buffer, startPos, options)
{
this.options = options || { ayBuffer: true };
this.buffer = buffer;
this.startPos = startPos ? s... |
const baseUrl= '/';
$(document).ready(function() {
$("#add").click(function(){
$('#questions').append(inputHtml());
$('#remove').removeClass('button-visible');
});
function inputHtml(){
$html='<div class=" col-md-8">\n' +
' <textarea class="form-con... |
import React, { Component } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Table, Button, Input, Form, FormGroup } from 'reactstrap';
import { connect } from 'react-redux';
import { actGetAllCategoryRequest, actDeleteCategoryRequest } from '../../action/Category';
import CategoryCreate from './CategoryCre... |
var filterHasInitialized = false;
function initGroupEditPicklist() {
// we don't need the hybrid single student selector
$(".picklist-ms-select").remove();
// SET UP FILTERS
// We only want this to happen once, so that the filters don't get all doubled up.
if(!filterHasInitialized) {
$("#picklist-fancy-filter"... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* globals beaker DatArchive */
import * as yo from 'yo-yo'
import {shortenHash} from '../../lib/strings'
import {adjustWindowHeight, writeToClipboard} from '../../lib/fg/event-handlers'
import * as contextMenu from '../com/context-menu'
var currentFilter = ''
var selectedArchiveKey = ''
var archives
var title = ''
v... |
import moment from 'moment';
import Icon from 'react-native-vector-icons/Ionicons';
import NavigationBar from 'react-native-navbar';
import React, { Component } from 'react';
import { find, uniq } from 'underscore';
import Loading from '../shared/Loading';
import { View, Text, ScrollView, Image, MapView, TouchableOpaci... |
var mongoose = require('mongoose');
// var masterDB = mongoose.createConnection("mongodb://localhost:27017/masterDB");
var masterDB = mongoose.createConnection("mongodb://172.23.238.253:27018/masterDB");
// var masterDB = mongoose.createConnection("mongodb://localhost:27017/masterDB");
//var masterDB = mongoose.createC... |
/* eslint-disable no-restricted-syntax */
const { Octokit } = require('@octokit/rest');
const yargs = require('yargs');
const GIT_ORGANIZATION = 'mui';
const GIT_REPO = 'mui-x';
/**
* @param {string} commitMessage
* @returns {string} The tags in lowercases, ordered ascending and commaseparated
*/
function parseTag... |
var fs = require( 'fs' );
var path = require( 'path' );
var readline = require('readline');
var setting = require( './setting' );
//var config = require( './config' );
var compressor = require( './lib/compressor' );
var uploader = require( './lib/uploader' );
var appUtil = require( './lib/util' );
var hinter = requir... |
// create tile layers for the background of the map
var defaultMap = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});
//grayscale layer
var grayScale = L.tileLayer('https://stame... |
/*global MainGame*/
/*global DDecisionView*/
/*global DPageIndicator*/
/*global DUiMask*/
// Design Pattern:
// Texture requirement: 'event_bg'
var Event={
createNew: function(isInformation){
var v = MainGame.game.add.sprite(0, 0, "event_bg");
// Center by default
v.position.set(MainGame.game.width/2 - v.wid... |
const fs = require('fs');
const path = require('path');
const Handlebars = require('handlebars');
const constants = require('./constants');
const {
DEFAULT_TOKEN_SECRET,
DEFAULT_AUTH_TOKEN,
DEFAULT_API_PATHS,
IS_DEBUG_ENABLED,
DEFAULT_TOKEN_LIFE_TIME
} = constants;
const {
formatEnvObjects,
secretFormat... |
#!/usr/bin/env node
// Packages
const chalk = require('chalk')
const mri = require('mri')
const ms = require('ms')
// Utilities
const NowPlans = require('../util/plans')
const indent = require('../util/indent')
const listInput = require('../../../util/input/list')
const code = require('../../../util/output/code')
con... |
var auth = require("../helpers/auth");
const dbConfig = require('../helpers/db-config');
const Sequelize = require('../sequelize/models').Sequelize;
const sequelize = require('../sequelize/models').sequelize;
const Op = require('../sequelize/models').Op;
const Detail = require('../sequelize/models').Detail;
const Recru... |
// Initialize your app
var myApp = new Framework7({
smartSelectSearchbar: true,
smartSelectInPopup: true,
swipeBackPage: true
});
// Export selectors engine
var $$ = Dom7;
// Add view
var mainView = myApp.addView('.view-main', {
// Because we use fixed-through navbar we can enable dynamic navbar
d... |
// check if all fields have values
// if not, return proper error message
// if there are beers, load them in
const handleBeer = (e) => {
e.preventDefault();
$('#beerMessage').animate({height:'hide'}, 350);
if($('#beerName').val() == '' || $('#beerBrewer').val() == '' || $('#beerType').val() == '' ||
... |
// ==UserScript==
// @id <EMAIL>@<EMAIL>
// @name Site Language Switcher
// @namespace Roman.Qlogin
// @author <NAME>
// @description Add site language switcher at top-right corner (Combo box with icons-flags)
// @include *.cppreference.com/w/*
// @include *msdn.microsoft.com/*
// @includ... |
/* tslint:disable */
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// MIT © 2017 azu
// MIT © <NAME>
// Original https://github.com/zkochan/rcfile
var path_1 = __importDef... |
import { promises as fs } from 'fs';
import { resolve, join, dirname, relative, sep, posix } from 'path';
import { transformHtml } from '../lib/transform-html.js';
import { yellow, bgYellow, bgRed, dim, bold, white, black, magenta, cyan } from 'kolorist';
import { codeFrame } from '../lib/output-utils.js';
/** @typede... |
// From Getty code: http://www.getty.edu/art/collection/static/viewers/mirador/?manifest=https://data.getty.edu/museum/api/iiif/1895/manifest.json
function getURLParameter(param) {
if(typeof(param) == "string" && param.length > 0) {
if(typeof(window.location.search) == "string" && window.location.search.le... |
/****************************************************************************
Copyright (c) 2018 <NAME>., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-fre... |
let targetParentId;
function deleteNoteCompletely(key) {
window.localStorage.removeItem(key);
document.getElementById('notes-main-div').removeChild(document.getElementById(key));
}
function removeNote(e) {
let parentId = e.target.parentElement.id;
deleteNoteCompletely(parentId);
alignAll... |
var map;
const options = {
title: 'Time Taken for items to be Shipped',
hAxis: { title: 'Order ID'},
vAxis: { title: 'Time Taken (s)'},
legend: { position: "none" },
};
/////////////Ajax Requests////////////
$(document).ready(function() {
// F... |
import React, { useState, useEffect, useRef } from 'react';
import {
_WIDE,
FlexGrid,
Loading as _Loading,
PaginationControls,
Card,
} from '@wingscms/components';
import styled from '../../../lib/styled';
import useQueryString from '../../../hooks/queryString';
import { useWings } from '../../../ctx/Wings';
... |
/* Form building/editing Pane
**
*/
const UI = require('solid-ui')
const $rdf = require('rdflib')
const ns = UI.ns
module.exports = {
// noun_170702.svg' builder noun_122196.svg form
icon: UI.icons.iconBase + 'noun_170702.svg',
name: 'ui',
audience: [ns.solid('PowerUser')],
// Does the subject dese... |
/**
* AppendGrid
*/
var appendGridSubPanelBuilder = function (cell, uniqueIndex) {
if (!this.useSubPanel || !this.subColumns) {
return;
}
var id = jQuery(cell).parents('table').attr('id');
var table = jQuery('<table class="field appendgrid-sub-field"></table>');
table.appendTo(cell);
this.htmlID = id;
jQuery... |
/**
* SudokuSolver Reducer.
*
*/
/* eslint-disable object-property-newline */
import {fromJS} from "immutable";
import {SudokuGrid, SudokuSolver} from "sudoku-javascript";
import {
REQUEST_NEW_GRID,
REQUEST_GRID_INITIALISATION,
REQUEST_GRID_CHANGE,
REQUEST_GRID_RESOLVE_ALL,
REQUEST_GRID_RESOLV... |
'use strict';
var http = require('http');
//var url = "http://s3.amazonaws.com/vzcloudhack/booking.json";
/**
* This sample demonstrates an implementation of the Lex Code Hook Interface
* in order to serve a sample bot which manages orders for flowers.
* Bot, Intent, and Slot models which are compatible wi... |
import { createReducer, createActions } from 'reduxsauce'
import Immutable from 'seamless-immutable'
import {arrayMerge, cleaningObject} from '../../Utils/helper/datamining'
import _ from 'lodash'
import AppConfig from '../../Config/AppConfig'
/* ------------- Types and Action Creators ------------- */
const { Types,... |
"use strict";
let todoElements = [];
let idNumber = 0;
let deletedElement;
const todoInput = document.querySelector(".todo-input");
const todoSearch = document.querySelector(".todo-search");
const caseSensitive = document.querySelector("#case-sensitive");
const modal = document.querySelector(".modal");
const modalAg... |
const express = require("express");
const SocketServer = require("ws").Server;
//const uuidv4 = require('uuid/v4');
const mysql = require("mysql");
const newDb = "nodemysql";
const db = mysql.createConnection({
host: "localhost",
user: "root",
password: "<PASSWORD>",
insecureAuth: true
});
db.connect(functio... |
const {readFileSync, createWriteStream} = require('fs');
const {resolve, dirname, relative} = require('path');
const mkdir = require('mkdirp');
const Ajv = require('ajv').default;
const ajv = new Ajv({coerceTypes: true});
const ajvToJsDoc = require('../ajvToJsDoc');
module.exports = function (endpoints, outputFile, {b... |
const { logger } = require('@chainlink/external-adapter')
const hash = require('object-hash')
const local = require('./local')
const redis = require('./redis')
const { parseBool, uuid, delay, exponentialBackOffMs, getWithCoalescing } = require('../util')
const DEFAULT_CACHE_TYPE = 'local'
const DEFAULT_CACHE_KEY_GROUP... |
'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]; } } }... |
/* eslint-disable */
import React from 'react'
import axios from 'axios';
import { Table, Divider, Pagination, Modal, message, Form, Input } from "antd";
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 12... |
import React from 'react';
import _ from 'lodash';
import findIndex from 'lodash/findIndex';
import produce from 'immer';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import { connect } from 'react-redux';
import { update } from '@reducers/data';
import { usePopupState, bindTrigger, bind... |
var express = require('express');
var path = require('path');
var socketio = require('socket.io');
var http = require('http');
var bodyParser = require('body-parser');
var app = express();
var httpServer = http.Server(app);
var io = socketio(httpServer);
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bo... |
let environment;
let other_players = [];
let size;
let socket;
let player;
let timer = 0;
let gameover = false;
//called whe the player just joins and the data is loaded
function setup() {
socket = io.connect(window.location.hostname);
createCanvas(windowWidth, windowHeight);
environment = new Enviornment... |
import React from "react";
import Link from "gatsby-link";
import "../layouts/blog.css";
import DrawingAvatar from "../images/DrawingAvatarSquare.jpg";
const BlogPage = () => (
<div>
<div className="Main">
<div className="MainGroup">
<img src={DrawingAvatar} alt="" className="profile-img" />
... |
/*
* Copyright 2020 <NAME> - GeDaD <<EMAIL>>
* 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 agr... |
/* Copyright (C) 2016 NooBaa */
import template from './edit-func-code-modal.html';
import ConnectableViewModel from 'components/connectable';
import ko from 'knockout';
import { deepFreeze } from 'utils/core-utils';
import { readFileAsArrayBuffer, toObjectUrl, openInNewTab } from 'utils/browser-utils';
import { forma... |
import { StallionActions } from "./actions.js";
import {StallionToastWidget} from "./widgets.js";
import {DivMaker} from "./common.js";
function _positiveMod(a,b){
return (a+b) % b;
}
class SlashBar {
constructor(options, eventBus) {
this.opened = false;
this.eventBus = eventBus;
this.bar = o... |
(function () {
"use strict";
var treeviewMenu = $('.app-menu');
// Toggle Sidebar
$('[data-toggle="sidebar"]').click(function(event) {
event.preventDefault();
$('.app').toggleClass('sidenav-toggled');
});
// Activate sidebar treeview toggle
$("[data-toggle='treeview']").click(function(event) {
event.pr... |
var primus = require('primus');
var UglifyJS = require('uglify-js');
var fs = require('fs');
var path = require('path');
var util = require('util');
var browser_fingerprint = require('browser_fingerprint');
var initialize = function(api, options, n... |
/*jslint node: true, indent: 4, maxlen: 80 */
/*properties
NAMES, character_set_client, character_set_connection, character_set_obj,
character_set_results, character_set_sql_tpl, code, connect,
createConnection, database, dbconfig, dbh, destroy, end, escape,
execSetConnectionCharsets, exports, fatal, fo... |
function nextStep() {
if (checkInputAccount()) {
$('#nextStep').on('click', null, null, function () {
if (checkInputProfile() && $('#nextStep').attr('disable') !== 'disable') {
$('#nextStep').css('display', 'none');
$('#nextStep').attr('disable', 'disable');
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(... |
"use strict"
const CONTENTMESSAGE = "GETFIMFICTIONHTML";
const DOWNLOAD_TYPE_ENUM = Object.freeze({"TXT":"txt", "HTML":"html", "EPUB":"epub"});
const ERROR_ENUM = Object.freeze({"URLUPDATE":"Error updating URL to get next page of favourites.", "DOWNLOAD":"Error downloading story.", "GENERALEXCEPTION":"An Exception h... |
if (process.argv[0] === '-help') {
console.log('file1=file1.csv')
console.log('file2=file2.csv')
console.log('output=results')
console.log('similarity=75')
}
var params = {};
process.argv.forEach(function(val, index, array) {
var arg = val.split('=');
if (arg.length == 2) {
params[arg[0... |
import '../scss/gykarousel.scss';
/** Global Settings **/
var _globals = {
'animSpeed' : 1000,
'autoPlay': true,
'autoPlayInterval': null,
'controlLock': false,
'delay': 5000,
'elements': {},
'container': 'gykarousel',
'wrapper': '.gykarousel__container',
'slide': '.gykarousel__slide',
'selected': '.gykarous... |
'use strict';
var _defineProperty = require('babel-runtime/helpers/define-property')['default'];
var _slicedToArray = require('babel-runtime/helpers/sliced-to-array')['default'];
var _Array$from = require('babel-runtime/core-js/array/from')['default'];
var _getIterator = require('babel-runtime/core-js/get-iterator'... |
import React, {Component} from 'react'
import { Meteor } from 'meteor/meteor'
import { compose } from 'react-komposer'
import ReactSelectize from 'react-selectize'
import Alert from 'react-s-alert'
import Row from '../../../../../../node_modules/react-bootstrap/lib/Row'
import Col from '../../../../../../node_modules/r... |
#!/usr/bin/env node
const version = "1.1.0";
var dot = require("dot-object");
var fs = require('fs');
var csv = require("fast-csv");
var basepath = process.cwd();
var usageMessage = `
Merge JSON files created with ngx-translate-extract to a single CSV file and vice versa.
--------
Usage:
ngx-translate-extract-csv ... |
/*
* (C) Copyright Data Fusion Specialists. 2022
*
* 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... |
const bcrypt = require('bcrypt');
const Helpers = require('../libs/helpers');
const { BncError } = require('../libs/errors');
const tokens = require('../libs/tokens');
class Users {
constructor(db) {
this.db = db;
}
async authUserNetwork(username, password, network) {
let ret = { network: ... |
import React from "react";
import TextInput from "../../input/text/TextInput";
import {
getFirstNameFromCookie,
getLastNameFromCookie,
getUsernameFromCookie,
getEmailFromCookie,
updateUser,
getUserIdFromCookie,
getUserAvatar,
updateUserAvatar,
signOutUser,
updatePassword,
} from "../../../api/UserAp... |
var ajaxUrlPrefix="";
$(function($){
var currentMysql = $('#currentServerId');
var currentMycat = $('#mycat_server');
var currentNodes = window.sessionStorage.getItem('nodes');
var curMysql='',curMycat='';
if(currentNodes){
try{
currentNodes = JSON.parse(currentNodes);
curMysql = currentNodes['mys... |
// This is fork of https://github.com/elm-community/elm-webpack-loader
//
// relevant issues and rejected PRs before background:
// - https://github.com/elm-community/elm-webpack-loader/issues/132
// - https://github.com/rtfeldman/node-elm-compiler/pull/38
// - https://github.com/elm-community/elm-webpack-loader/pull/6... |
'use strict';
var csp = require('./csp.core');
function pipelineInternal(n, to, from, close, taskFn) {
if (n <= 0) {
throw new Error('n must be positive');
}
var jobs = csp.chan(n);
var results = csp.chan(n);
for (var _ = 0; _ < n; _++) {
csp.go(regeneratorRuntime.mark(function callee$1$0(taskFn, ... |
import React from "react";
import ExpiryDate from './ExpiryDate';
import CheckBox from './CheckBox';
import cl from './utils/cl';
import validateForm from './utils/validateForm';
const initialState = {
signerInfo: [],
//Default set to true to disable add new signer list button.
anyError:true,
//Default set to... |
// Required for connecting with Google Cloud IoT
const fs = require('fs');
const {google} = require('googleapis');
const jwt = require('jsonwebtoken');
const mqtt = require('mqtt');
// Pull the Google Cloud IoY config from the device's env variables
const cloudRegion = process.env.GOOGLE_IOT_REGION;
const projectId = ... |
/* OBJETO */
//id => identificador
//texto
//linea
//columna
//listaAtributos
//listaObjetos
/* ATRIBUTO */
//identificador
//valor
//linea
//columna
//Función para construir los nodos del árbol de objetos en código html que representará una tabla de símbolos
var contNodos = 0;
var contNodos2 = 0;
var isFirst = 0;
f... |
import React, { useState, useRef } from 'react'
import {
Dialog as MuiDialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Button,
TextField, FormControlLabel, Checkbox, FormControl
} from '@material-ui/core'
import Select from 'react-select/creatable'
import { useMessageStateValue } from '../lib/... |
const Old = require('old');
const Bip39 = require('bip39');
const Cryp = require('crypto-browserify');
const UUID = require('uuid');
const Crypto = require('../../crypto');
const IrisKeypair = require('./keypair');
const Codec = require('../../util/codec');
const Utils = require('../../util/utils');
const Config = req... |
function init(){
$('#new_request').on('submit', function(e){
e.preventDefault();
addNewRequest();
});
$('#submit_request').on('submit', function(e){
e.preventDefault();
addNewRequest();
});
// load form script first, then the form html, initialize form afterwards
loadTemplateTypes();
loadRequestList();
... |
/** @module kootConfig */
/**
* 路径名,可为相对路径或绝对路径。由于部分代码使用了 import/export 的写法,node.js 无法直接识别,需要 webpack/babel 进行编译,故在部分环境下使用该写法代替 require()。
* @typedef {String} Pathname
*/
/**
* @callback cacheGet
* 缓存检查与吐出方法
* @param {String} url
* @return {Boolean|String} 对该 URL 不使用缓存时返回 false,使用时返回缓存结果 String
*/
/**
* @ca... |
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/**
* Note: sub-menu only appear when route children.length >= 1
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
* hidden: true ... |
$(document).ready(function () {
});
var jPlayerid = "#jplayer";
var jp_container = "#jp_container";
var i = 0;
var myPlayer = $(jPlayerid),
myPlayerData,
fixFlash_mp4, // Flag: The m4a and m4v Flash player gives some old currentTime values when changed.
fixFlash_mp4_id, // Timeout ID used with fixFlash_mp... |
/*
Copyright 2015, 2016 OpenMarket Ltd
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, sof... |
const server = require('apostrophe-nightwatch-tools/server');
const steps = require('apostrophe-nightwatch-tools/steps');
const dogTraitsMessageSelector = '[data-apos-input-message="DogTraits"]';
const formMessageSelector = '[data-apos-forms-submit-error]';
const formSubmitSelector = '[data-apos-forms-form] button[typ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.