text stringlengths 3.07k 16k |
|---|
import { getAllChildren } from '@vuejs/component/resource/tree/treeAction';
import { DomainGroupManager } from '@common/legacy/DomainGroupManager';
import { Observer } from '@common/legacy/Observer';
import { ElementManager } from '@common/legacy/ElementManager';
import { LocalStorageManager } from '@common/legacy/Loca... |
// Name : userjs-tool-collect-mode.js
// Project : https://github.com/icpantsparti2/firefox-user.js-tool
// On-line : https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html
// License (MIT): https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/LICENSE
// Version ... |
import React, { useState, useEffect } from "react"
// import { Link } from "gatsby"
import {
Box,
Form,
Button,
FormField,
TextInput,
List,
Heading,
Text,
Meter,
Layer,
} from "grommet"
import { Play, Close, Restroom } from "grommet-icons"
import Layout from "../components/layout"
// import Image ... |
import wiki from 'wikipedia';
import {
__dirname
} from "./__dirname.js";
import weaviate from "weaviate-client";
import fs from 'fs';
import {
makeGPTRequest
} from "./makeGPTRequest.js";
import axios from "axios";
import path from "path";
import glob from "glob";
const client = weaviate.client({
... |
function math_add(a, b) {
var c, d, e;
try {
c = a.toString().split(".")[1].length;
} catch (f) {
c = 0;
}
try {
d = b.toString().split(".")[1].length;
} catch (f) {
d = 0;
}
return e = Math.pow(10, Math.max(c, d)), (math_mul(a, e) + math_mul(b, e)) / e;
}... |
var count = 1;
var indexNewItem = -1;
var selected_row;
var detailArray = [];
Array.prototype.removeDetail = function(value) {
if (value != -1) {
return this.splice(value, 1);
}
return false;
}
Array.prototype.objIndexOf = function(val) {
... |
import React, { Component } from "react";
import moment from "moment";
import { connect } from 'react-redux';
import { setSidebarVisibility } from "react-admin";
import TableCell from '@material-ui/core/TableCell';
import { columnsTogglingAction } from "../../../actions/columnsTogglingAction";
import CustomDatagridRo... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Form,
SpaceBetween,
FormField,
Input,
Button,
Header,
Container,
Multiselect,
Alert,
TextContent,
ExpandableSection,
Autosuggest,
} from '@awsui/components-react';
import { regionMap } from '../../../../../../Utils/Dictionar... |
import React from 'react';
import _ from 'underscore';
import {
AnchorButton,
Icon,
Position,
Slider,
Switch
} from "@blueprintjs/core";
import {
Popover2InteractionKind,
Popover2
} from "@blueprintjs/popover2";
import ViewerManager from '../ViewerManager.js'
import MetadataView from "... |
document.addEventListener('DOMContentLoaded',function () {
/**********************************************************
* name : project tab
* description : project tab swap
* author : <NAME>
***********************************************************/
var tab = document.getEl... |
export const state = () => ({
/* User */
userName: null,
userEmail: null,
userAvatar: null,
/* NavBar */
isNavBarVisible: true,
navBarColor: null,
/* FooterBar */
isFooterBarVisible: true,
/* Aside */
isAsideVisible: true,
isAsideExpanded: false,
isAsideMobileExpanded: false,
asideActiveF... |
var _ = require('underscore');
var $ = require('jquery');
var CoreView = require('backbone/core-view');
var template = require('./export-image-widget.tpl');
var checkAndBuildOpts = require('../../helpers/required-opts');
var TRACK_CONTEXT_CLASS = 'track-ImageExport';
var REQUIRED_OPTS = [
'mapViewClass',
'dashboa... |
load("e2371540d876710daf38e749390aa2a3.js");
description("basic tests for object literal shorthand construction");
function equivalent(o1, o2) {
var keys1 = Object.keys(o1);
var keys2 = Object.keys(o2);
if (keys1.length !== keys2.length)
return false;
for (var i = 0; i < keys1.length; ++i) {
... |
/* Add a New DESTINATION PAGE */
import React, { Component } from "react"
import { Redirect } from "react-router-dom"
import { store } from "../../../../store"
import { addDestinationSuccessful, handleChange, snackBarGreenOpen, snackBarRedOpen } from "../../../../actions"
import { CancelLink } from "../../../Atoms/Can... |
//Updated
var url = $(location).attr("href");
var segments = url.split("/");
var action = segments[4];
var data;
let iniUrl;
if (segments[5]) {
data = segments[5].split("?");
iniUrl = segments[0] + "/IpiApps/Admin/ipiApi?" + data[1];
} else {
iniUrl = segments[0] + "/IpiApps/Admin/ipiApi";
}
let nama_dimensi = [];
... |
/*
Copyright 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublice... |
//rootElement the html element the edit will be created in zone will be shown in, format HTMLDomElement refrence
//ratio the ratio of the edit zone, format {"h": ratio_width, "w": ratio_height}
//margin the margins the edit zone will have relative to the editing area, aka from the top /left element, format, format {"to... |
'use strict';
const EventEmitter = require('events').EventEmitter;
const PhantomJs = require('phantomjs-prebuilt');
const Png = require('pngjs').PNG;
const RgbQuant = require('rgbquant');
const Stream = require('stream');
const Url = require('url');
const UrlValidator = require('url-validator');
const WebSocket = requ... |
// All elements needed from the document.
var quiz = document.querySelector(".quiz");
var endcard = document.querySelector(".endcard");
var answers = document.querySelector(".answers");
var answerDisplay = document.querySelector(".correctOrNot");
var timeDisplay = document.querySelector(".timeDisplay");
var scoreDispla... |
const {
ipcRenderer
} = require("electron");
const $ = require("jquery");
const {
shell
} = require("electron");
$("#github").click(() => {
shell.openExternal("https://github.com/Tortudereli");
});
var version = ipcRenderer.sendSync(
"getApi",
"https://ddragon.leagueoflegends.com/api/versions.json"
)["body... |
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useLocation, useHistory } from 'react-router-dom';
import { Divider } from '@mui/material';
import GridOnIcon from '@mui/icons-material/GridOn';
import GridOffIcon from '@mui/icons-material/GridOff';
import DeselectIcon from '@mui/icons... |
/**
*
* BuyRamForm
*
*/
import React from 'react';
import { compose } from 'recompose';
import { withFormik } from 'formik';
import * as Yup from 'yup';
// import styled from 'styled-components';
// @material-ui/core components
import withStyles from '@material-ui/core/styles/withStyles';
// @material-ui/icons
i... |
/*jshint node:true, maxstatements:false, maxlen:false */
/*global JSON */
var fs = require("fs");
var path = require("path");
function getDirectories(srcPath) {
return fs.readdirSync(srcPath).filter(function(file) {
return fs.statSync(path.join(srcPath, file)).isDirectory();
});
}
module.exports = function(c... |
/**
* @author <NAME> <<EMAIL>>
*
* Adapted from code written by <NAME>.
*/
'use strict';
var util = require('./util');
var cookie = require('./cookie');
var Path = require('./path');
var Dimensions = require('./dimensions');
var Axes = require('./axes');
var Grid = r... |
/* eslint-disable no-console */
// eslint-disable-next-line import/no-extraneous-dependencies
require("babel-register");
const d3 = require("d3-dsv");
const fs = require("fs");
// const confirm = require("node-ask").confirm;
const path = require("path");
const Commitment = artifacts.require("Commitment");
const toke... |
//Require external modules
const DISCORD = require("discord.js");
let client = new DISCORD.Client();
//Require internal modules
let clientInfo = require("./client.json");
let config = require("./config.json");
let Jesse = require("./jesse.js");
let Memes = require("./memes.js");
let Bible = require("./bible.js");
... |
// Global Objects
var mongoose = require('mongoose');
var itemOp = require('../../models/vicinityManager').item;
var nodeOp = require('../../models/vicinityManager').node;
var userOp = require('../../models/vicinityManager').user;
var logger = require('../../middlewares/logBuilder');
var logger2 = require('../../midd... |
function el_animation(el, params){
var imageURLs=
{background:'images/background.jpg',
tile_bg:'images/tile_bg.png',
tile:'images/tile.png',
user_l:'images/user_image_1.jpg',
right_img_1:'images/img_Like.png',
right_img_2:'images/img_Haha.png',
right_img_3:'images/img_Love.png',
}
e... |
var urlKunjungan = (function() {
const url = {
fetch_jadwal_kegiatan: BASE_URL+'/master/kader/Kunjungan/fetch_jadwal_kegiatan',
fetch_list_kms: BASE_URL+'master/kader/Kunjungan/fetch_list_kms',
addAntrian: BASE_URL+'master/kader/Kunjungan/addAntrian',
}
return {
getURL: () =... |
import Group from '../display/group.js'
import Graphics from '../display/graphics.js'
import Render from './render.js'
import Sprite from '../display/sprite.js'
import Bitmap from '../display/bitmap.js'
import Text from '../display/text.js'
import { filter } from '../filter/index.js'
function loopPromise(array, callba... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import PunchlistDataService from "../../../services/project_management/punchlist.service.js";
import PLPhotosDataService from "../../../services/project_management/punchlistphotos.service.js";
import { WebcamCapture } from './../photos/w... |
import React, { useState, useEffect, useCallback } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import axios from 'axios'
import {
Container,
Paper,
Tabs,
Tab,
Button,
Dialog,
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
Snackbar
} from '@material-ui/core'
i... |
import config from './config'
import request from './request'
import classnames from 'classnames'
import { color } from './theme'
import lodash from 'lodash'
import store from 'store'
import bg from 'bignumber.js'
import Cookies from 'universal-cookie'
const cookies = new Cookies();
// 连字符转驼峰
String.prototype.hyphenTo... |
"use strict";
/**
* @author <NAME> <<EMAIL>>
* @copyright 2020
* @license MIT
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (functio... |
import React, { useState, useCallback, useRef } from 'react';
import produce from 'immer';
import Cell from './Cell.js';
import ToggleGameBtn from './ToggleGameBtn.js';
import '../../scss/Grid.scss';
import ClearBtn from './ClearBtn';
import TimeSlider from './TimeSlider.js';
import Presets from './Presets.js';
impor... |
import React,{Component} from 'react'
import {connect} from 'dva'
import { Link } from 'react-router-dom'
import { color } from 'utils'
import { getTimeDistance } from 'utils'
import { DropOption } from 'components'
import { Row, Col,Form,Button,DatePicker,Table,message } from 'antd'
import { routerRedux } from 'dva/ro... |
const readlineSync = require("readline-sync")
const getUser = require("./utils/api");
const markdown = require("./utils/generateMarkdown");
const fs = require("fs")
// all the questions
let questions = [
"Enter badge label: ",
"Enter badge message: ",
"Enter badge color: ",
"Enter title: ",
"Enter... |
import MemberDashboard from '../components/MemberDashboard.vue';
function set_queries(frm) {
['notification_contact', 'emergency_contact'].forEach(contact => {
frm.set_query(contact, function(doc) {
return {
query:
'psd_customization.fitness_world.api.gym_member.get_member_contacts',
... |
var FileState = {
fields: {
/* FieldName: {} */
}
};
function initFileUpload() {
// set up handlers for files if they exist
let fileFields = document.querySelectorAll('input.uploadfield');
fileFields.forEach(function (fileField) {
let fieldInfo = JSON.parse(fileField.getAttribute('... |
var c = require('../../../config.json');
var util = require('../lib/util');
/////
//var colors = ['R', 'G', 'B'];
var SKILLS = {
r1: function(){return new Skill('r1', 15, 0);}, //impulse
g1: function(){return new Skill('g1', 30, 4);}, //shield
b1: function(){return new Skill('b1', 22, 5);}, //speed
r2: ... |
// 链式节点
function Node(coefficient, exponent, next, previous){
this.coefficient = coefficient; // 系数域
this.exponent = exponent; // 指数域
this.next = next;
this.previous = previous;
}
// 链表结构
function PloyAdd(){
this.header = null;
this.tail = null;
this.currentSize = 0;
}
// 构建一个空白的链表
PloyA... |
/* global describe, it */
'use strict'
const fs = require('fs')
const assert = require('assert')
const _ = require('underscore')
const nj = require('numjs')
const imageSignature = require('../lib/image_signature')
describe('imageSignature', function () {
describe('#generate()', function () {
it('return signa... |
/**
* @flow
*/
import React, {Component} from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button,
Alert,
ListView,
Switch,
AsyncStorage,
Linking,
Navigator,
ActivityIndicator
} from 'react-native';
import {
NavigationActions
} from 'react-navigation';
import DeviceInfo from 're... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PPMParseError = void 0;
var tslib_1 = require("tslib");
var error_subclass_1 = tslib_1.__importDefault(require("error-subclass"));
// The PPM format does not place a limit on the size of the header, but
// we will do so for convenience... |
/**
* ons search
* Jquery based search plugin to search and generated markup for results
*
*/
$.extend({
search: function(options) {
var onssearch = $.extend({
query : '',
type : '',
resultsHolder : '',
paginatorHolder : '',
resultInfoHolder : '' ,
searchInput : '' ,
page: 0,
onSearchStart:... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import posesJson from "../../poses.json";
import * as consts from "./Config";
import "./camera.css";
const similarity = require("compute-cosine-similarity");
let keypointsVector;
let frameCounter = 0;
const thresholds = {
"1.jpg": 0.25,... |
import 'style/StoryGrid.css!';
import _ from "underscore";
var selectedPage = 1;
var maxPage = -1;
var storiesDiv;
var thisID = '';
/*
Add stories to the grid and apply pagination if needed
No default sorting applied in this function, stories are shown in order they first entered the database, i.e. Date first create... |
/**
* @author <NAME> <<EMAIL>>
*/
import React from 'react';
import Credit from './Credit';
import Button from './Button';
import Slots from './Slots';
import Attribution from './Attribution';
class FruitMachine extends React.Component {
constructor(props) {
super(props);
this.reels = [
[...'🏀⚽🎾🏐... |
var db = require('../db/db');
var constant = require('../constant');
var model_commit = require('../model/commit');
var model_monitor = require('../model/monitor');
var model_dcase = require('../model/dcase');
var model_node = require('../model/node');
var redmine = require('../net/redmine');
var error = requi... |
/**
* Test spec for the module-link module
*
* TODO: Use mocks and proxies to unit test this module instead of fixtures and targets on the filesystem
*/
var fs = require( 'fs' );
var path = require( 'path' );
var _ = require( 'lodash' );
var should = require( 'should' );
var mkdirp = require( 'mkdir... |
import Color from "plugins/utils/Color";
const DefaultStyles = {
fontFamily: "SofiaPro",
colors: {
primary: "#2C7BE5",
secondary: "#6e84a3",
success: "#00D97E",
danger: "#E63757",
darkest: "#12263F",
brightest: "#E3EBF6",
warning: "#f6c343",
info: "#39afd1",
border: "#E3EBF6",
... |
"use strict";
// will be used in dashboard too
var colorsForRegion = [
"rgba(240,101,85,1)",
"rgba(244,133,64,1)",
"rgba(248,165,43,1)",
"rgba(251,157,21,1)",
"rgba(255,229,0,1)",
"rgba(225,223,36,1)",
"rgba(195,216,76,1)",
"rgba(165,210,113,1)",
"rgba(135,203,151,1)",
"rgba(105,... |
/*
The MIT License (MIT)
Copyright (c) 2014
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, publish, dis... |
'use strict';
const poll = {
product: [],
pollsClicked: 0,
img: 3,
rounds: 25,
options: document.getElementById('row'),
start: function () {
this.getSettings();
this.getProduct();
this.showProduct();
this.options.addEventListener('click', clickHandler);
... |
var makeSim = function(page,tools,model){
var simulate = function(gc,c,level,mc)
{
var iterations = model.iterations();
var simulations = model.simulations();
if( model.mode() === "level" )
{
iterations = model.levelIterations();
simulations = model.levelSimulations();
}
var total=0,misses=0;
v... |
/* eslint-disable security/detect-object-injection */
const StateMachineModel = require("../state-machine-model");
const TRIGGER_RE_AS_A_STRING =
"^(entry|activity|exit)\\s*/\\s*([^\\n$]*)(\\n|$)";
/* eslint security/detect-non-literal-regexp:0 */
const TRIGGER_RE = new RegExp(TRIGGER_RE_AS_A_STRING);
function stat... |
'use strict'
const path = require('path')
const fs = require('fs')
const gulp = require('gulp')
const stripper = require('gulp-strip-comments')
// const concat = require('gulp-concat')
const header = require('gulp-header')
const del = require('del')
const cp = require('child_process')
const pkg = require('./package.js... |
/**---------------------------------------------------------------------------------------------------------------------
* tgi-interface-framework7/test/html-play.js
**/
var tgi = TGI.CORE();
var ui = TGI.ui;
var app = new tgi.Application({interface: ui});
var nav = new tgi.Presentation();
app.setInterface(ui);
app... |
const controller = require('./reviews');
const request = require('request');
const async = require('async');
require('./constants');
exports.run = function (config, region, callback) {
const appInformation = {};
appInformation.region = region;
exports.fetchAppStoreReviews(config, appInformation, function ... |
var nowOpenedSelectBox = "";
var mousePosition = "";
function selectThisValue(thisId,thisIndex,thisValue,thisString) {
var objId = thisId;
var nowIndex = thisIndex;
var valueString = thisString;
var sourceObj = document.getElementById(objId);
var nowSelectedValue = document.getElementById(objId+"Se... |
// MAKE A JSPANEL TO LIST ALL PIECES ------------ >
var w = 250;
var h = 260;
var btnH = 50;
var btnW = 217;
var menuH1 = 132;
var gap = 8;
var gap2 = 16;
var H2 = gap + btnH + menuH1;
var H3 = H2 + gap + btnH + menuH1;
var fileNameDataArray;
var yStart = 35;
// SOCKET IO ------------------------- >
var ioConnection;
i... |
"use strict";
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import Underline from '~/kit/Components/Underline';
import FloatingLabel from '~/kit/Components/FloatingLabel';
import TextInput from '~/components/TextInput';
import mergeStyle from '~/kit/Utilities/mergeS... |
/**
* Utilities associated with privilege management
* Everything is structured to work as part of a flux-link chain or is a constant
* @todo integrate audit log
*/
var _ = require('underscore');
var fl = require('flux-link');
var audit = require('../lib/audit.js');
const PRIVS_MODIFY_ACCOUNT = 1; //!< Can modif... |
const debug = require('debug')('app:socketing')
import { provider, events } from './lib/ethers-utils'
import { network } from './config'
import ethers from 'ethers'
import * as clovers from './models/clovers'
import * as clubToken from './models/clubToken'
import * as cloversController from './models/cloversController'... |
// External
import React, { Component } from 'react';
import { connect } from 'react-redux';
import styled from '@emotion/styled';
// Internal Global
import Text from 'components/Text';
import { updateSettings } from 'actions/settingsActionCreators';
import { backupWallet } from 'api/wallet';
import SettingsField from... |
$(document).ready(() => {
localStorage.removeItem("audio");
localStorage.setItem("checkboxCount", 0);
// Marquee
// Change playlist title
var txt = $("#recommend_playlist_title");
// Get width of text
var html_txt = txt.html();
var html_calc = "<span>" + html_txt + "</span>";
$(txt).html(html_calc)... |
import React, { Component } from "react";
import './index.css';
const BACKSPACE_KEY = 8;
const LEFT_ARROW_KEY = 37;
const UP_ARROW_KEY = 38;
const RIGHT_ARROW_KEY = 39;
const DOWN_ARROW_KEY = 40;
const E_KEY = 69;
class PINInput extends Component {
constructor(props) {
super(props);
const { fields, type, i... |
const request = require('request')
const URLSearchParams = require('url-search-params')
const Headers = require('fetch-headers')
const urlParser = require('url').parse
const Readable = require('stream').Readable
/*
get handler handles standard GET reqs as well as streams
order that it execute:
1 Request
1.0 ... |
'use strict';
var score=0;
var names =prompt("what is your name please ");
document.write("Good morning"+' '+names);
//console.log(names);
var qOne = function(){
var answerA = prompt("do you think that i can pass the exam ?").toLowerCase();
while((answerA !== 'yes'&& answerA!== 'y') && (answerA !== 'no'&& answerA... |
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const defaultParams = require('../web/javascript/tools/defaultParams');
const calculateStats = require('../web/javascript/tools/calculateStats');
// const getOs = require('../../scripts/tools/getOs');
const file = fs.createWriteStr... |
import React, { useState } from 'react';
import { css } from '@emotion/core';
import { BarLoader } from 'react-spinners';
import moment from 'moment';
import { shuffle as _shuffle, sample, filter, size } from 'lodash';
import Layout from '../components/layout';
import SEO from '../components/seo';
import tools from '..... |
// All available statuses
var _status = [
200, 201, 202, 203, 204, 205, 206, 207, 208, 226,
300, 301, 302, 303, 304, 305, 306, 307, 308,
400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413,
414, 415, 416, 417, 422, 423, 424, 426, 428, 429, 431,
500, 501, 502, 503, 504, 505, 506, 507... |
/*
* This file is part of the xPack distribution
* (http://xpack.github.io).
* Copyright (c) 2017 <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 ... |
/**
* Run once a day on or after 13:30 PST for best results.
* Fetches intraday data for all SP500 companies and saves them to a folder.
* Author: <NAME>
* Contributions: <NAME>
*/
import * as fs from 'fs';
import a from 'alphavantage';
import * as readline from 'readline';
import rimraf from 'rimraf';
import * a... |
/*
Landscaper - Experimental
*/
// Elemento padrão
var model = {
x: 0,
y: 0,
width: 64,
height: 64,
srcX: 0,
srcY: 0,
srcW: 64,
srcH: 64,
visible: true,
selected: false,
draggable: true,
label: undefined,
left: function() { return this.x; },
right: function(... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import styled from "styled-components";
import { Button, Header, Modal, Dropdown, Input } from "semantic-ui-react";
import BigNumber from "bignumber.js";
import { getApi } from "@services/api";
import { web3Accounts, web3... |
import { Table, Col ,Row, message} from 'antd';
import { Menu, Dropdown, Button, Icon, Input } from 'antd';
import { connect } from 'react-redux'
import { createStore } from 'redux'
import Riskselect from './Riskselect.js'
import Riskaddnew from './Riskaddnew.js'
import Risksavenew from './Risksavenew.js'
import React ... |
import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout';
import Sidenav from '../components/sidenav';
import Code from '../components/code';
import BottomNavigation from '../components/bottom-navigation';
const pageTitle = "Read Me";
class IndexPage extends React.Component ... |
"use strict";
// This file contains the function that allows the registration of routes
var canReflect = require("can-reflect");
var dev = require("can-log/dev/dev");
var bindingProxy = require("./binding-proxy");
var regexps = require("./regexps");
var diff = require("can-diff/list/list");
var diffObject = require(... |
import React, { useState } from 'react';
import { View, Text, StyleSheet,Image,TouchableOpacity } from 'react-native';
import { useTranslation, Trans } from 'react-i18next';
import { Button } from 'react-native-paper';
import ContentComponent from '../navigation/ContentComponent';
import { Touchable } from 'react-... |
/************************************************
* This class contains functions for monitoring
* processes using the pm2 API plugin
* [http://pm2.keymetrics.io/docs/usage/pm2-api/].
*/
function msToTime(s) {
let ms = s % 1000;
s = (s - ms) / 1000;
let secs = s % 60;
s = (s - secs) / 60;
let mins = s % 60;
... |
import {getJSON} from 'simple-get-json';
import {IMF} from 'imf';
import {getMetaProp, getMetadata, Metadata} from './Metadata.js';
import {PluginsForWork, escapePlugin} from './Plugin.js';
export const getWorkFiles = async function getWorkFiles (files = this.files) {
const filesObj = await getJSON(files);
const d... |
/*global mPHeart*/
$(document).ready(function () {
var lastChoose,
$administracja = lastChoose = $('#mp-sections');
$.each($administracja.find('.item a'), function () {
var that = $(this),
block = that.parents('.block'),
items = $(block.parent('.items'));
that.click(function (e) {
var next = block.n... |
import React from 'react';
import Debug from 'debug'
import IconMenu from 'material-ui/IconMenu';
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
import { Styles, ColorMe } from '../styles';
import Gab from '../gab';
import PropTypes from 'prop-types'; // ES6
let debug = D... |
import React, { Component } from 'react';
import './Toolbar.scss';
import { connect } from 'react-redux';
import { withTranslation } from 'react-i18next';
import { MdRefresh, MdGetApp } from 'react-icons/md';
import { FaLink } from 'react-icons/fa';
import { GiPerspectiveDiceSixFacesRandom, GiPerspectiveDiceOne } from... |
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
var company = {};
var map = null;
$(function() {
const _id = getQueryString('_id');
if(!!_id){
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
// imports
import React, { Component } from 'react';
import Web3 from 'web3';
import { Redirect } from 'react-router-dom';
import TextField from '@material-ui/core/TextField';
import detectEthereumProvider from '@metamask/detect-provider';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui... |
import { Text } from "galio-framework";
import React from "react";
import { withTranslation } from "react-i18next";
import { ActivityIndicator, FlatList, StyleSheet, View } from "react-native";
import Icon from "react-native-vector-icons/Ionicons";
import { searchByPage } from "../services/ArticleServices";
import Card... |
import { iconinit } from './icon.js'
const { app, Menu, Tray, BrowserWindow, contextBridge, ipcRenderer, nativeTheme, ipcMain, crashReporter } = require('electron')
const path = require('path')
let subpy
const tray = null
// require('electron-reload')(__dirname)
subpy = require('child_process').spawn('python', [__dirn... |
"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... |
const props = require('p-props');
const ms = require('ms');
const RedLock = require('redlock');
const createDebug = require('debug');
class PlaylistIsEmptyError extends Error {
code = 'PLAYLIST_IS_EMPTY';
}
const debug = createDebug('uwave:advance');
function cyclePlaylist(playlist) {
const item = playlist.media... |
import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Link } from 'react-router-dom'
import { FaTimes } from 'react-icons/fa'
import styled from 'styled-components'
import { addToCart, removeFromCart } from '../actions/cartActions'
import Message from '../components/Me... |
import React from 'react';
import API from "../../API";
import Axios from 'axios';
import copy from 'copy-to-clipboard';
import {Feedback} from '@icedesign/base';
import ReactMarkdown from 'react-markdown';
import { Loading } from "@icedesign/base";
import Spinner from '../components/Spinner';
import {injectIntl } from... |
import { ipcRenderer } from 'electron'
import L from 'leaflet'
import ms from 'milsymbol'
import evented from '../../evented'
import store from '../../stores/layer-store'
import undoBuffer from '../App.undo-buffer'
import { ResourceNames } from '../../model/resource-names'
import { K } from '../../../shared/combinators... |
var searchField = $("#search").val();
var isSelected = false;
var liSelected;
$('#search').keyup(function (e) {
if (e.which == 40 || e.which == 38) {
return;
}
liSelected = null;
searchField = $('#search').val();
output = search(searchField, 4);
$('#result').html(output);
... |
/* $(document).ready(function() {
$(".megamenu").on("click", function(e) {
e.stopPropagation();
});
}); */
let loadMoreCount = 0;
let cartListCount = 0;
let wishlistListCount =0;
function ajaxCall(){
$.ajax({
url: "js/data.json",
dataType:"json",
type:"GET",
success: (data) => {
console.log(data.pr... |
import C from '../core/const.js';
import Rectangle from '../geom/rectangle.js';
import Point from '../geom/point.js';
// Cached rectangle object to avoid creation of new rectangles each frame
const intersect = new Rectangle();
const d = new Point();
const s = new Point();
const r = new Point();
const abs = Math.abs;
c... |
base_url = $("#baseURL").val();
var script = document.createElement('script');
script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCFMa4pd7uMEU0NRi7dHS7YVBcFQvKG5Ow&callback=initMap';
script.async = true;
// Attach your callback function to the `window` object
window.initMap = function initMap() {
map = ... |
// Using express: http://expressjs.com/
var express = require('express');
//Webworker
//https://www.youtube.com/watch?v=SfS1xGMg2Qw
// Create the app
var app = express();
// Set up the server
// process.env.PORT is related to deploying on heroku
var server = app.listen(process.env.PORT || 9000, listen);
co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.