text stringlengths 3.22k 29.5k |
|---|
import LEventDispatcher from '../events/LEventDispatcher';
import LTransform from '../geom/LTransform';
import LMatrix from '../geom/LMatrix';
import LPoint from '../geom/LPoint';
import LRectangle from '../geom/LRectangle';
import { UNDEFINED } from '../utils/LConstant';
import ll from '../ll';
class LDisplayObject ex... |
// @ts-ignore
import Debug from "./debug.js";
//appendChain(Promise.resolve(())
/**
* const chain = getPromiseChain()
* const currentPromise = chain(Promise.resolve())
* @returns
*/
export const getPromiseChain = () => {
let chain = Promise.resolve()
// @ts-ignore
return p => chain = chain.then(()=>p(... |
goog.module('measurementLibrary.eventProcessor.GoogleAnalyticsEventProcessor');
const uniqueId = goog.require('measurementLibrary.eventProcessor.generateUniqueId');
const logging = goog.require('measurementLibrary.logging');
/**
* Parameters that are to be set at the top level of the JSON
* POST body instead of as ... |
const { SlashCommandBuilder } = require('@discordjs/builders');
const Discord = require('discord.js');
let channelsPlaying = new Discord.Collection()
module.exports = {
data: new SlashCommandBuilder()
.setName('emoji-game')
.setDescription('tente achar o emoji diferente antes do tempo acabar'),
... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import StepContent from '@material-ui/core/StepContent';
import Button from '@material-ui/cor... |
/* Route handler for LTI launch request.
08.25.2017 tps Created.
08.31.2017 tps Fixed validation bug caused by reading wrong launch URL from .env.
11.30.2017 tps Select page for user based on their role.
12.29.2017 tps Send faculty user to wait page instead of directly to dashboard.
02.18.2018 tps Add redirect for a f... |
$(function(){
if ($('input.login-email').length > 0) {
$('input.login-email').focus();
}
$('body').on('click', 'div.expand-all', function() {
if ($(this).html() == 'Expand All') {
$(this).html('Collapse All');
$(this).parents('div#search_results, div#message_list').find('.message-contents').slideDown(2... |
/*
* MIT License
* Copyright (c) 2016 <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 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 may not use this f... |
import React, { Component } from 'react';
import Layout from "../components/layout";
import Highcharts from 'highcharts';
import HighchartsReact from 'highcharts-react-official';
import auth from "../services/authService";
import crypto from "../services/cryptoService";
import loading from "../src/91.gif";
import cry... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DigestCommand = void 0;
const util_1 = require("@nestled/util");
const child_process_1 = require("child_process");
const emoji = require("node-emoji");
const path_1 = require("path");
const symlinkDir = require("symlink-dir");
const co... |
var EtherDream = require('./etherdream.js').EtherDream;
function sendframe(connection, data, callback) {
console.log('send frame');
connection.write(data, 30000, function() {
console.log('frame written.');
callback();
});
}
console.log('Looking for EtherDream hosts...');
EtherDream.findFirst(function(a... |
/**
* Simple Javascript console for IE
*
* Inspired by Firebug for Firefox
*
* Instructions:
* 1. Include this script file in your page's HTML head
* 2. Press F12, or from some Javascript on the page, call console.log()
*
* Author: <NAME> (www.moxleystratton.com)
* License... |
var xero = require('./xero.js');
var shopify = require('./shopify.js');
var wisecracker = {};
// Helper function sees if a customer is in Xero and adds if they're not there
// wisecracker.lookupCustomerInXero = function lookupCustomerInXero(shopifyCustomer) {
wisecracker.lookupCustomerInXero = function lookupCustomer... |
var mapObj;
var marker = new Array();
var windowsArr = new Array();
//初始化地图
//address:详细地址,初始化定位。
function mapInit(address) {
mapObj = new AMap.Map("container");
//在地图中添加ToolBar插件
mapObj.plugin(["AMap.ToolBar"], function () {
toolBar = new AMap.ToolBar();
mapObj.addControl(toolBar);
}... |
const AWS = require('aws-sdk');
const schemaMapper = require('./common/schemaMapper');
const merger = require('./common/merger');
const SNSPublisher = require('./common/publisher');
class DynamodbAdapter {
constructor(params) {
this._table = params.table;
this._modelSchema = params.modelSchema;
... |
/* global window */
import {withStyles} from '@material-ui/core/styles';
import {
AppBar,
Badge,
Card,
CardContent,
Grid,
IconButton,
List,
ListItem,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
Menu,
MenuItem,
Snackbar,
Toolbar,
Typography
} from... |
// --- vm-detail-screen & vm manipulation methods -----------------------
import $ from 'jquery'
import cockpit from 'cockpit'
import saveAs from 'browser-filesaver'
import Mustache from 'mustache'
import c3 from 'c3'
import {VM_STATUS_ICONS, VM_STATUS_ICONS_PATH_PREFIX} from './constants'
import {CONFIG} from './cons... |
'use strict';
let express = require('express');
let auth = require('../middleware/auth');
let individualRouter = express.Router();
let Individual = require('../models/individual');
let Posts = require('../models/posts');
const chalk = require('chalk');
// authentication middleware
individualRouter.use((req, res, next... |
function show(id) {
var ele= document.getElementById(id);
ele.style.display="inline-block";
}
/*
document.addEventListener('click',function (event){
var ele= document.getElementById('menu');
var clck = ele.contains(event.target);
if (!clck) {
ele.style.display="none";
}
})... |
import React, { Component } from 'react';
import { formatMessage } from 'umi/locale';
import { Layout, message,Modal,Input,Icon } from 'antd';
import Animate from 'rc-animate';
import { connect } from 'dva';
import router from 'umi/router';
import GlobalHeader from '@/components/GlobalHeader';
import TopNavHeader from ... |
import React from 'react';
import styles from '../styles/Drive.module.css';
import DriveUpload from './DriveUpload';
import { useState, useEffect } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { post } from '../_axios';
import {
Button,
Input,
Divider,
ListItem,
ListIt... |
import React from 'react'
import { M, BM } from 'ui/components/equations'
import { Par } from 'ui/components/containers'
import { InputSpace } from 'ui/form/Status'
import FloatUnitInput from 'ui/form/inputs/FloatUnitInput'
import MultipleChoice from 'ui/form/inputs/MultipleChoice'
import StepExercise from '../types/... |
// Phantombuster configuration {
"phantombuster command: nodejs"
"phantombuster package: 4"
"phantombuster dependencies: lib-StoreUtilities.js, lib-Twitter.js, lib-Messaging.js"
const Buster = require("phantombuster")
const buster = new Buster()
const Nick = require("nickjs")
const nick = new Nick({
loadImages: true... |
import React, {Fragment} from 'react';
import {connect} from 'dva';
import {
Form,
Input,
InputNumber,
Table,
Divider,
Tag,
Icon,
Button,
Switch,
Popconfirm
} from 'antd';
// 根据router.config.jd生成的路由表存在于pages/.umi下
import router from 'umi/router';
import styles from './TableList.l... |
import css from './show.less'
import Head from 'next/head'
import {withRouter} from 'next/router'
import Router from 'next/router'
import { Row, Col, Collapse, Icon, Tabs, Button, Modal, Badge,message,Pagination } from 'antd'
const Panel = Collapse.Panel
const TabPane = Tabs.TabPane
import fetchHelper from '../../kits... |
/* global AFRAME, getRandomColor */
/* Merge a group of mixins into a single layout. Useful if a single collection of
mixins with relative positions, rotations, etc. need to use one consistent layout.
Input includes a list of positions and rotations ordered by input mixin
As is, is not functionally generic... |
import React from 'react'
import { useRouter } from 'next/router'
import { useCopyTextHandler, useAsyncCallback, useKeyboardListener } from 'actionsack'
import morph from 'morphmorph'
import { COLORS } from '../lib/constants'
import Button from './Button'
import Popout, { managePopout } from './Popout'
import CopySVG ... |
const discord = require('discord.js');
const Database = require("plasma-db");
const db = new Database("./anti-raid.json");
exports.run = async(client, message, args) => {
if(!message.member.hasPermission('ADMINISTRATOR')) return message.channel.send('Bu komutu kullanabilmek için `Yönetici` yetkisine sahip olmalısın... |
// Load the binding:
// require("@tensorflow/tfjs-node"); // Use '@tensorflow/tfjs-node-gpu' if running with GPU.
// const tf = require("@tensorflow/tfjs");
// import * as tf from '@tensorflow/tfjs'
///pulled from https://stackoverflow.com/questions/6274339/how-can-i-shuffle-an-array
function shuffle(xArr, yArr) {
l... |
const range = require('lodash/range');
const maxGroupSize = 8;
const maxChainNumber = 24;
const maxClearBonus = 999;
const colorBonuses = [0, 0, 3, 6, 12, 24];
const groupBonuses = [0, 2, 3, 4, 5, 6, 7, 10];
const chainPowers = [
0, 8, 16, 32, 64, 96, 128, 160, 192, 224, 256, 288,
320, 352, 384, 416, 448, 480, 51... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DocumentListPaneContent = DocumentListPaneContent;
var _icons = require("@sanity/icons");
var _ui = require("@sanity/ui");
var _schema = _interopRequireDefault(require("part:@sanity/base/schema"));
var _draftUtils = require("par... |
'use strict';
var SMTPConnection = require('smtp-connection');
var packageData = require('../package.json');
var wellknown = require('nodemailer-wellknown');
var clone = require('clone');
var PoolResource = require('./pool-resource');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var s... |
var Alloy = require('/alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._;
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
}
return arg;
}
function Controller() {
require('/alloy/controllers/' + 'BaseController').apply(this, Array.prototype.slice.call(arguments));
... |
import React, { Component } from 'react'
import {
View,
StyleSheet,
TouchableOpacity,
} from 'react-native'
import { Text, Icon } from 'native-base'
import _ from 'lodash'
import { connect } from 'react-redux'
import { withTranslation } from 'react-i18next'
import { SafeAreaView, NavigationActions } from 'react-n... |
import React, { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
import { gql } from "apollo-boost";
import { useQuery } from '@apollo/react-hooks';
import { config } from "../config";
import { Loader } from '../components/Common'
import ScrollCard from '../Cards/ScrollCard'
import Card2 fro... |
function get_calendar(popup, blanket){
$.get(window._config.L1000CDS2_URL + '/countByDate', function(data) {
calendar = data;
// calendar = [[2013,2,26,3],[2013,2,27,5]];
draw_calendar(calendar, popup, blanket);
});
}
function draw_calendar(calendar, popup, blanket){
if (($(window).height()<=600)||($(window).... |
var key = ''
var secret = '' //insert your keys here
const rest = require('restler')
const async = require('async')
const derb = require('deribit-v2-ws')
const loopInterval = 1000 //~>15 minutes in milliseconds, keeping this simple, we loop this often
//if you start this algo not in alignme... |
// Soundcloud Scraper
// Copyright (C) 2015, <NAME> <<EMAIL>>
var scraper = require('./scraper');
var scdl = require('./scdl');
var path = require('path');
var fs = require('fs');
var exec = require('child_process').exec;
var sanitize = require('sanitize-filename');
var request = require('request');
var targetDir = p... |
const React = require('react');
const ReactDOM = require('react-dom');
const departmentController = require('src/api/department');
const DialogLayer = require('mdDialog').default;
const DepartmentList = require('src/components/GeneralSelect').DepartmentList;
const NoData = require('src/components/GeneralSelect/NoData')... |
const args = require('minimist')(process.argv.slice(2))
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const semver = require('semver')
const currentVersion = require('../package.json').version
const { prompt } = require('enquirer')
const ora = require('ora')
const execa = require(... |
/*
WebTail project js file
https://github.com/LeKovr/webtail
*/
var WebTail = {
uri: location.host + location.pathname + 'tail',
file: '', // log file name in tail mode
every: 10, // scroll after 0.01 sec
wait: false, // scroll activated
scrolled: false, // scroll allowed
... |
import React, { useState, useEffect } from 'react'
import {
Button,
FormGroup,
Input,
Row,
Col,
Modal,
Form,
} from "reactstrap";
import { useForm } from "react-hook-form";
import { useDispatch, useSelector } from "react-redux";
import { fetchError, hideMessage } from '../../redux/actions/Common';
import ... |
'use strict';
var assign = require('object-assign/index');
var dom = require('./utils/dom');
var get = require('./utils/get');
var forEach = require('./utils/forEach');
var patch = require('../../lib/incremental-dom').patch;
var template = require('./template');
var I18n = require('./utils/I18n');
var DropdownMenu = r... |
var worker = new Worker(
"/Style%20Library/V7/WebParts/SunshineMeetings/js/worker.js"
);
var allResults;
worker.onmessage = function (e) {
console.log("On Message Running");
allResults = JSON.parse(e.data);
let reply = setTimeout(function () {
worker.postMessage("Start");
}, 3000);
};
function stopWork... |
var fs = require('fs');
var path = require('path');
var WebSocket = require('ws').Server;
const exec = require('child_process').exec;
const execSync = require('child_process').execSync;
var server;
var TMP_DIR = "data/";
var SAVE_FILE = 'data/worked3D.txt';
var BACKUP_FILE = 'data/worked3D_backup.txt';
//var SAVE_FIL... |
import React from 'react';
import {Motion, spring} from 'react-motion';
import axios from 'axios';
import $ from 'jquery';
import Button from './Button';
import DrawButton from './DrawButton';
import OzzBase from './OzzBase';
class Ozz extends React.Component{
constructor(props){
super(props);
... |
const BOMB = '💣';
const FLAG = '❌';
const LIFE = '💜';
const SMILEY = '😁';
var gLives = 3;
var gDidPlaceMines = false;
var gInterval = null;
var gBoard = [];
var gSmileyTimeout = null;
var gLevel = {
SIZE: 4,
MINES: 2
};
var gGame = {
isOn: false,
secsPassed: 0
};
initGame();
function initGame() ... |
// Assumptions: ensure_schema_does_not_exist is available
// Assumes __uripwd is defined as <user>:<pwd>@<host>:<plugin_port>
//@ Initialization
testutil.deploySandbox(__mysql_sandbox_port1, 'root', {report_host: hostname});
testutil.snapshotSandboxConf(__mysql_sandbox_port1);
testutil.deploySandbox(__mysql_sandbox_po... |
/**
* @license
* Copyright 2017 Brigham Young University
*
* 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
*
* Un... |
/*
* grunt-compare-size
* https://github.com/rwldrn/grunt-compare-size
*
* Copyright (c) 2012 <NAME> <<EMAIL>> &
* <NAME> <<EMAIL>> &
* <NAME> <<EMAIL>> &
* <NAME> <<EMAIL>>
* Licensed under the MIT license.
*/
"use strict";
const _ ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Image,
TouchableWithoutFeedback,
StyleSheet,
} from 'react-native';
import { Text } from 'native-base';
import SliderComponent from 'react-native-slider';
import { getURL } from '../../services/helper';
import { colors ... |
/**
* Module dependencies.
*/
var os = require('os');
var debug = require('debug')('speaker');
var binding = require('bindings')('binding');
var inherits = require('util').inherits;
var Writable = require('stream').Writable;
// determine the native host endianness, the only supported playback endianness
var endian... |
import Vue from 'vue'
import Vuex from 'vuex'
import Axios from 'axios'
import api from '../api'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
userInfo: {},
DailySongList: {},
audio: {
'id': 0,
'name': '歌曲名称',
'singer': '演唱者',
'albumPic': '../static/placeholder_disk_play_p... |
"use strict";
exports.__esModule = true;
exports.default = manageOptions;
var context = _interopRequireWildcard(require("../index"));
var _plugin = _interopRequireDefault(require("./plugin"));
var _defaults = _interopRequireDefault(require("lodash/defaults"));
var _merge = _interopRequireDefault(require("lodash/me... |
const verseCounts = require("./verseCounts.json");
const Promise = require("es6-promise");
const versions = {
Afrikaans: [{ name: "Ou Vertaling", code: "aov" }],
Albanian: [{ name: "Albanian", code: "albanian" }],
Amharic: [
{ name: "Ha<NAME> Amhar<NAME>", code: "hsab" },
{ name: "Amharic NT", ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Exchange = Exchange;
exports.EventExchange = EventExchange;
var _Message = require("./Message");
var _Queue = require("./Queue");
var _shared = require("./shared");
const typeSymbol = Symbol.for('type');
const stoppedSymbol = Sy... |
jQuery(document).ready(function() {
listDataTable;
$("#form-user").validate({
submit: {
settings: {
inputContainer: ".form-group",
errorListClass: "help-block",
errorClass: "has-danger"
},
callback: {
onBeforeSubmit: function(node) {
NProgress.start();
toastr.clear();
toastr.... |
const halfLaneWidth = 3.7;
const centerlineGeometry = new THREE.Geometry();
const leftBoundaryGeometry = new THREE.Geometry();
const rightBoundaryGeometry = new THREE.Geometry();
export default class LanePath {
static hydrate(obj) {
Object.setPrototypeOf(obj, LanePath.prototype);
}
constructor() {
this... |
/*
* @Description: actions
* @Author: liuqiyu
* @Date: 2019-11-11 14:27:27
* @LastEditors : liuqiyu
* @LastEditTime : 2020-01-13 11:42:11
*/
import mxgraph from './mxgraph'
import { ctrlKey } from './constant'
const {
mxCodec,
mxResources,
mxEventSource,
mxUtils,
mxEvent,
mxClient,
mxUndoManager,
... |
var H5P = H5P || {};
// Include utility functions
var H5PUserScoreStorage = window.H5PUserScoreStorage || {};
( function() {
'use strict';
// blogId passed by PHP
// wpAJAXurl passed by PHP
var keynamePrefix = 'h5p-user-score';
var maxScores;
/**
* Send an AJAX request to insert xAPI data.
* @param {strin... |
var foodNames = []; // Food Names
var ings = {}; // Ingredients
var dirs = {}; // Directions
var images = []; // Food Images
$(document).ready(function() {
loadData()
getCard(false, "");
homePage();
});
$(document).scroll(function() {
// Change the navbar's background color when scrolling
var $nav = $("#mainNavb... |
function getTransform(obj) {
var matrix = obj.css("-webkit-transform") ||
obj.css("-moz-transform") ||
obj.css("-ms-transform") ||
obj.css("-o-transform") ||
obj.css("transform"),
angle,
x,
y;
if (matrix !== 'none') {
var values = matrix.split('('... |
'use strict';
//var apiBase = '/html/apiTest';
var apiBase = '/api';
var churchApp = angular.module('churchApp', [ 'youtube-embed', 'ngSanitize' ]);
const ERR_DATA = '데이타 가져오기에 실패했습니다.';
churchApp.run(function($rootScope){
});
churchApp.controller('StaticSubCtrl', function(menuService, $scope, $routeParams, $comp... |
import pMap from 'p-map'
import parser from 'cron-parser'
import _ from 'lodash'
import VError from 'verror'
import { updateOrderWithRetry } from './utils/utils.js'
let apiRoot
let logger
let stats
const LAST_START_TIMESTAMP_CUSTOM_OBJECT_CONTAINER =
'commercetools-subscriptions'
const LAST_START_TIMESTAMP_CUSTOM_O... |
"use strict";
var expect = require("expect.js");
var key = require("../lib/keyword");
var _ = require("underscore");
describe('argument validations', function(){
var validators = require("../lib/validators");
describe('#isValidSuiteArgs()', function(){
it('should throw for illegal arguments', function(){
... |
let StyleApi = require('stylelens-sdk-js');
let playground_api = new StyleApi.PlaygroundApi()
let valid_done=false;
let invalid_done=true;
let category_total_count;
let category_todo_count;
/******
* APIs
* *****/
category = ''
offset = 0
limit = 100
function getImagesDatasetByCategory (category) {
$( '#sear... |
'use strict';
var through = require('through2');
var gutil = require('gulp-util');
var inquirer = require('inquirer');
var path = require('path');
var opn = require('open');
var isBinaryFile = require('isbinaryfile');
var ShopifyApi = require('shopify-api');
var PluginError = gutil.PluginError;
var shopify = {};
var sh... |
function prescriptionsOnClick() {
var user = {
doctorUser: "",
patientUser: document.formInfoP['user'].value
}
let st = JSON.stringify(user);
$.ajax({
url: "./paziente", type: "POST", data: { jsonObj: st, mode: "getprescriptions" }, timeout: 4000, success: function(result) {
if (result != "ERROR" &... |
import Vue from "vue";
import Vuex from "vuex";
import * as client from "../client/spos";
import { v4 as uuidv4 } from 'uuid';
import * as api from '../client/common'
Vue.use(Vuex);
const state = {
uid: 0,
schools: [],
schoolClasses: [],
pupils: [],
pupilValuationSets: [],
pupilValuations: [... |
// This file contains utility functions used across the application
/**
* Converts an unsigned array to a uri base64 string
* @param data Array of unsigned integers data
*/
export function Uint8ArrayToStringBase64(data) {
let binary = '';
const len = data.byteLength;
for (let i = 0; i < len; ++i) {
... |
import React from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// core components
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Table from "components/Table/Table.js";
import Card from "componen... |
const fs = require('fs');
const path = require('path');
const trimEnd = require('lodash/trimEnd');
const upperFirst = require('lodash/upperFirst');
const lowerFirst = require('lodash/lowerFirst');
const trim = require('lodash/trim');
const template = require('./tem... |
const { expect } = require("chai");
const { ethers } = require("hardhat");
const weiroll = require("@weiroll/weiroll.js");
async function deployLibrary(name) {
const factory = await ethers.getContractFactory(name);
const contract = await factory.deploy();
return weiroll.Contract.createLibrary(contract);
}
descr... |
function s2b ( s ) {
var b = new Uint8Array(s.length);
for ( var i = 0; i < s.length; i++ ) b[i] = s.charCodeAt(i);
return b;
}
function b2s ( b ) {
if ( b instanceof ArrayBuffer ) b = new Uint8Array(b);
return String.fromCharCode.apply( String, b );
}
function x2b ( s ) {
if ( s.l... |
const {MessageEmbed} = require('discord.js')
const { Client, Util, Message } = require("discord.js");
const fs = require("fs");
const db = require("quick.db");
var backups = JSON.parse(fs.readFileSync("./Data/backups.json", "utf8"));
module.exports = {
name: 'yedek',
run: async(client, message, args) => {
... |
import React,{useContext,useEffect} from 'react';
import {useState} from 'react';
import clsx from 'clsx';
import {auth} from '../../utils/firebase'
import { makeStyles } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolb... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rxjs_1 = require("rxjs");
var operators_1 = require("rxjs/operators");
var child_process_1 = require("child_process");
var fs_extra_1 = require("fs-extra");
var internal_compatibility_1 = require("rxjs/internal-compatibility");
var file_sy... |
/*
* Copyright 2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
// jQuery check, if it's not present then include it
function bpMinVersion(min, actual) {
function parseVersionString (str) {
if (typeof(str) != 'string') { return false; }
var x = str.split('.');
var maj = parseInt(x[0]) || 0;
var min = parseInt(x[1]) || 0;
var pat = parseInt(x[2]) || 0;
retu... |
/**
* Block Tokens
*/
var FUNCTION_BLOCK_START_TKN = "FUNCTION_BLOCK"
var FUNCTION_BLOCK_END_TKN = "END_FUNCTION_BLOCK"
var VAR_INPUT_BLOCK_START_TKN = "VAR_INPUT"
var VAR_OUTPUT_BLOCK_START_TKN = "VAR_OUTPUT"
var VAR_BLOCK_START_TKN = "VAR"
var VAR_BLOCK_END_TKN = "END_VAR"
var FUZZIFY_BLOCK_S... |
/**
* Findastic
*
* @file Speedy multi-phrase Search in text
* @version 0.1.2
* @copyright Copyright (c) 2018 <NAME>
*/
'use strict';
const Promise = require('bluebird');
/** @module findastic */
var Findastic = (function () {
var api = {},
config = {indexDepth: 3},
local = {
//... |
import SchemaHelper from '../../helpers/SchemaHelper'
import { warning } from '../../utils/logger'
import { isDateTime } from 'neo4j-driver/lib/temporal-types'
// Used scopes dict
const scopedContexts = {
dc: 'http://purl.org/dc/terms/',
prov: 'http://www.w3.org/ns/prov#',
skos: 'http://www.w3.org/2004/02/skos/c... |
import _ from 'lodash';
import {formatDate, formatJsonDisplay} from '../services/utility_service.js';
requestViewController.$inject = [
'$scope',
'$state',
'$stateParams',
'$timeout',
'$animate',
'$sce',
'RequestService',
'SystemService',
];
/**
* requestViewController - Angular Controller for viewin... |
import {values} from 'mobx';
import {types, getParent} from 'mobx-state-tree';
import {remote} from 'electron'; // eslint-disable-line import/no-extraneous-dependencies
import {generate} from 'shortid';
const fs = remote.getGlobal('fs');
export const Aria2Module = remote.getGlobal('Aria2Module');
export const Downlo... |
'use strict';
var gBoard = [];
var gLevel = {
SIZE: 4,
MINES: 2
}
var gGame = {
isOn: true,
shownCount: 0,
markedCount: 0,
secsPassed: 0
}
var gGameOver = false
var gStopWatch
var gMinutes = 0
var gHints = 3
var gLives = 3
const EMPTY = '';
const MINE = '💣'
const FLAG = '🚩'
cons... |
/* eslint node-core/documented-errors: "error" */
/* eslint node-core/alphabetize-errors: "error" */
/* eslint node-core/prefer-util-format-errors: "error" */
'use strict';
// The whole point behind this internal module is to allow Node.js to no
// longer be forced to treat every error message change as a semver-majo... |
//tout le code qui suit à été codé par AQR_Rastiq
const Discord = require('discord.js');
const client = new Discord.Client();
const versionjson = require('./package.json');
const db = require('quick.db');
require('dotenv').config();
client.on('ready', () => {
console.log('Bot prêt !');
client.user.setActivit... |
var table;
var user;
function getDates(startDate, stopDate) {
var dateArray = [];
var currentDate = moment(startDate);
var stopDate = moment(stopDate);
while (currentDate <= stopDate) {
dateArray.push( moment(currentDate).format('YYYY-MM-DD') )
currentDate = moment(currentDate).add(1, '... |
import {MDCTooltip} from '@material/tooltip';
import {CCApi} from '../../common/api.js';
import {getAuthUser} from '../../common/communityConsoleUtils.js';
import {isOptionEnabled} from '../../common/optionsUtils.js';
import {createPlainTooltip} from '../../common/tooltip.js';
import {createExtBadge} from './utils/co... |
import React, { Component } from "react";
import RealEstateContract from "../../contracts/RealEstate.json";
import getWeb3 from "../../getWeb3";
import { Map, InfoWindow, Marker, GoogleApiWrapper } from "google-maps-react";
import Modal from "@material-ui/core/Modal";
import { makeStyles } from "@material-ui/core/style... |
bootbox.addItem = function() {
var options;
var defaults;
var dialog;
var form;
var input;
var shouldShow;
var inputOptions;
// we have to create our form first otherwise
// its value is undefined when gearing up our options
// @TODO this could be solved by allowing message to... |
import { useEffect, useState } from 'react';
import axios from 'axios';
import styled from 'styled-components';
import { useIsMobile } from '../../util/useScreenSize';
import { useIsDesktop } from '../../util/useScreenSize';
import useTranslation from 'next-translate/useTranslation';
import { getAddressesQuery } from '... |
"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... |
AOS.init();
/* Project Cards */
const projectcards = document.querySelector(".projectcards");
// Array of object for projects
const projects = [
{
title: "Exploratory Data Analysis",
cardImage: "assets/images/project-page/Etapas-del-analisis-de-datos.png",
description: "Analisis exploratorio de datos so... |
/*******************************************************************************************
*
* raylib [models] example - rlgl module usage with push/pop matrix transformations
*
* This example uses [rlgl] module funtionality (pseudo-OpenGL 1.1 style coding)
*
* This example has been created using raylib 2.5 (ww... |
document.addEventListener('DOMContentLoaded', onDOMLoaded);
var sha = '0bf4b24ea3e78812375c7a23bdeaed013306518d';
var editor;
var descriptors = {};
var icons = new Map();
var iconErrors = new Map();
var buckets = new Map();
// These scripts are needed only to be added to zip archive.
var optimizeSh = '';
var configy... |
function wrongLetter(word, all, help, n, vc, fgaps, hex, snd) {
var gaps = [];
var arrayToUse = [];
var replacements = [];
var l = word.length;
var arr = word.split("");
var x;
var container;
var str = Math.random().toString(36).substr(2, 7);
while (document.getElementById(str)) {
... |
"use strict";
import dat from 'dat.gui/build/dat.gui';
import Renderer from './renderer';
import View from './view';
import System from './system';
import xyz from './xyz';
import datGUISettings from './config/dat-gui';
import {caffeine} from './molecules/caffeine';
class Speck {
constructor({canvasContainerID, c... |
const express = require("express");
const router = express.Router();
const Cart = require("../../models/Cart");
const Order = require("../../models/Order");
const Address = require("../../models/Address");
const firebase = require("firebase");
//realtime db
// const db = firebase.database();
//cloud fires... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.