text stringlengths 3.07k 16k |
|---|
console.log("Started");
document.body.style.border = "5px solid green";
//
// VARIABLE DEFINITIONS
//
// temp dictionary for dev purposes.
var colorSinceTime = {
5:"red",
10:"green",
20:"blue",
60:"yellow"
}
// data to export to database. Stores current tab info
var data = {
};
// References to the ... |
var prototyper = {};
var path = require("path"),
grunt = require("grunt"),
mustache = require("mustache");
prototyper.test = function() {
console.log("test works");
};
prototyper.parsedTemplates = {};
prototyper.parsedData = {};
prototyper.parsedResults = {};
prototyper.componentsLists = {};
prototyper.c... |
var weekdayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
function label_type(type) {
if (type == 'GM') {
return '<span class="label label-primary">Group Meeting</span>';
} else if (type == 'JC') {
return '<span class="label label-success">Journal Clu... |
import React from 'react';
import {StackActions, NavigationActions} from 'react-navigation';
import {StyleSheet, Text, ScrollView, View, TextInput, Alert, TouchableOpacity,} from 'react-native';
import NavButtons from '../../components/NavButtons';
import ClearSubmitButtons from '../../components/ClearSubmitButtons';
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const jovo_core_1 = require("jovo-core");
const _get = require("lodash.get");
const _merge = require("lodash.merge");
const _set = require("lodash.set");
class Router {
constructor(config) {
this.config = {
intentMap: {... |
/**
* Install command
* @module commands/install
*/
const path = require('path');
const fs = require('fs');
const os = require('os');
const argvParser = require('argv');
const Base = require('./base');
/**
* Command class
*/
class Install extends Base {
/**
* Create the service
* @param {App} app ... |
const express = require('express')
const fs = require('fs')
const multer = require('multer')
const upload = multer({
storage: multer.memoryStorage()
})
const imageHash = require('node-image-hash')
const Card = require('../models/Card')
const Queue = require('../models/Queue')
const Stat = require('../models/Stat')
co... |
import styled from 'styled-components';
import { getUserInfo, getUserCount } from '../../api/APIs';
import React, { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import userImage from '../../images/default_profile_Image.png';
const View = () => {
const [email, setEmail] = useState(''... |
const inquirer = require('inquirer');
const fs = require('fs');
const Engineer = require('./lib/Engineer');
const Intern = require('./lib/Intern');
const Manager = require('./lib/Manager');
const employeeArray = [];
const cardArray = [];
let cardString ="";
const roleQuestion = [
{
type: 'list',
m... |
import { ListPickerBase, selectedIndexProperty, itemsProperty } from './list-picker-common';
import { colorProperty } from '../styling/style-properties';
import { Color } from '../../color';
import { Device } from '../../platform';
import lazy from '../../utils/lazy';
export * from './list-picker-common';
const sdkVers... |
import React, { Component, useState } from "react";
import {
View,
Text,
Image,
StyleSheet,
FlatList,
TouchableHighlight,
ScrollView,
Alert,
} from "react-native";
import { connect, useStore } from "react-redux";
import Icon from "react-native-vector-icons/FontAwesome";
import {
removeItemFromCart,
... |
/* wsclient,js - WebSockets wrapper for Ezlo client API library
MIT License
Copyright (c) 2021 <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 limit... |
import React, { useState, useEffect } from "react"
import { navigate } from "gatsby"
import Img from "gatsby-image"
import styled from "styled-components"
import debounce from "lodash/debounce"
import { cover, fluidRange } from "polished"
import { Button } from "./button"
import { THEME } from "../data"
import { OnlyDe... |
import React from 'react';
import { AppRegistry, StyleSheet, Text, View, processColor, BackHandler, Dimensions, TouchableOpacity, ActivityIndicator } from 'react-native';
import baseUrl from '../Constants/production';
import {BarChart} from 'react-native-charts-wrapper';
var parseString = require('xml2js').parseStr... |
import React, { useState } from "react"
import TextField from "@material-ui/core/TextField"
import Slider from "@material-ui/core/Slider"
import Checkbox from "@material-ui/core/Checkbox"
import Grid from "@material-ui/core/Grid"
import { makeStyles } from "@material-ui/core/styles"
import Typography from "@material-ui... |
'use strict';
/**
* Created by Ivan on 8/21/15.
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var element = require('./element.server.model')();
//Define the validations for an organization
var validations={
required :['accountIdentifier','name','brand','description']
};
var orgSchema = n... |
'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]; } } }... |
#!/usr/bin/env node
//runs every minute to post the current values
//node
const fs = require('fs');
const path = require('path');
const os = require('os');
const request = require('request');
const winston = require('winston');
const async = require('async');
const redis = require('redis');
const config = require('.... |
const fetch = require('node-fetch');
const FormData = require('form-data');
const settings = require('./settings');
const settingsJSON = require('./wp_com_settings.json');
const fs = require('fs');
const path = require('path');
const { parse, stringify } = require('envfile');
const { prompt } = require('enquirer');
con... |
var mySql = require("my-sql");
var inquirer = require("inquirer");
var chalk = require("chalk");
var Table = require("cli-table3");
var connection = mySql.createConnection({
host: "localhost",
port: "3306",
user: "root",
password: "<PASSWORD>",
database: "bamazon_db"
})
connection.connect(function... |
import React from "react";
import { useState } from "react";
import { useEffect } from "react";
import { makeStyles } from "@material-ui/core/styles";
import CssBaseline from "@material-ui/core/CssBaseline";
import Container from "@material-ui/core/Container";
import Grid from "@material-ui/core/Grid";
import Paper fro... |
/*
* Plugin for an event hosted by the Monotype room.
*/
'use strict';
if (!Rooms('monotype')) return;
const database = new sqlite3.Database('config/monoladder.db', function () {
database.run("CREATE TABLE if not exists users (userid TEXT, name TEXT, points)");
});
function readPoints(userid, callback) {
if (!cal... |
var webpack = require('webpack') // Do not forget to add this dependency, or else you will get an error
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
require('dotenv').config()
// const axios = require("axios")
const resolve = require('path').resolve
module.exports = {
mod... |
import React, { Component } from 'react';
import { css } from 'glamor';
import styled from 'styled-components';
import JobPosition from './JobPosition';
import UnpaddedUl from '../presentational/UnpaddedUl';
import { bleen, darkPurple } from '../colors';
const PaddedLi = styled.li`
margin-bottom: 14px;
`;
const sty... |
/*
* Copyright 2013 Mozilla Foundation
*
* 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... |
const bodyParser = require('body-parser')
const express = require('express')
const logger = require('morgan')
const app = express()
const {
fallbackHandler,
notFoundHandler,
genericErrorHandler,
poweredByHandler
} = require('./handlers.js')
// For deployment to Heroku, the port needs to be set using ENV, so
//... |
const chai = require("chai");
const chaiHttp = require("chai-http");
const expect = chai.expect;
const should = chai.should();
chai.use(chaiHttp);
const constants = require('./constants');
const util = require('./util');
// Test that a hits search for a pattern returns the correct number of hits and docs,
// and opti... |
/* --- src/wavelength-common.js --- */
var WavelengthUIComponent = {};
function extend(child, parent) {
var F = function () {
};
F.prototype = parent.prototype;
child.prototype = new F();
child.prototype.constructor = child;
child.superclass = parent.prototype;
}
/* --- src/wavelength-paintPa... |
const headers = {"Authorization": "Bearer " + local("api_key") };
const cache_filename = "wk_wallpaper_data.json";
const screen_resolution = local("screen_res").split('x');
const screen_buffers = local("screen_buf").split(',').map(Number); // top, bottom, left, right
const dimensions = {
width: screen_resolution[0... |
/*
* Copyright 2019 is-land
*
* 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 w... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const express = require('express');
const app = express();
const { telegramSetup } = require('./keys.js');
const utils = require('./utils.js');
// we've started you off with Express,
// but feel free to use whatever libs or frameworks you'd like through `package.json`.
// http://expressjs.com/en/starter/static-files.... |
/*
Copyright 2019 The Tekton Authors
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... |
var path = require('path')
var fs = require('fs')
var id3 = require('..')
var test = require('tape')
test('id3v2.2', function (t) {
t.plan(45)
var comCounter = 0
var sample = (process.browser) ?
new window.Blob([fs.readFileSync(__dirname + '/samples/id3v2.2.mp3')])
: fs.createReadStream(path.join(__dirn... |
let name_of_school_;
//leaflet js
var mymap = L.map('mapid', {
zoomDelta: 0.25,
zoomSnap: 0.25,
renderer: L.canvas()
}).setView([1.44, 32.49], 6.5);
var southWest = new L.LatLng(-1.9126224937624325, 28.364710751121848),
northEast = new L.LatLng(4.614535174441986, 37.13133888527889),
bounds = new L... |
/**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import { Switch, Route, withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import { createStructu... |
var t1 = new Terminal()
var gameAlive = true;
t1.setHeight("600px")
t1.setWidth('800px')
function randomheight() {
let max = 20000;
let min = 10000;
let r = Math.floor(Math.random() * (max - min)) + min;
return (r % 15000 + 4000)
}
const Gravity = 100 /* The rate in which the spaceship descents in f... |
/** @format */
const data = {
main: {
name: '<NAME>',
logo: 'akshat_logo.png',
description: 'Skill Coder | MERN Developer | Web Developer | Curious Mind',
iama: [
'Problem Solver',
'Software Developer',
'Web Developer',
'App Developer',
'UI Enthusiast',
],
image: 'profilepic.png',
bio: "I... |
import React, { Component } from "react"
import PropTypes from "prop-types"
import { Link } from "react-router-dom"
import { connect } from "react-redux"
import { reduxForm } from "redux-form"
import Helmet from "react-helmet"
import { get, isEmpty, has } from "lodash"
import Button from "./Button"
import Card from "./... |
/**
* @author <NAME>
* @since August 30th, 2016
* @version September 1st, 2016
*/
const rude = '<iframe width="100%" height="166" style="display: none;" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/130430225&color=ff5500&auto_play=true&hide... |
import React, { useState } from "react";
import { View, Text, Image, StyleSheet, TouchableOpacity } from "react-native";
import LoginScreenPhoto from "~/assets/images/loginscreenphoto.png";
import { Input } from 'react-native-elements';
import Feather from 'react-native-vector-icons/Feather';
import Entypo from 'react-... |
/*
* GET home page.
*/
var sanitize = require('validator').sanitize;
var _ = require("underscore");
var async = require('async');
var models = require('../models');
var User = models.User;
var Topic = models.Topic;
var Comment = models.Comment;
var limit = require('../config').config.limit;
// exports.... |
import React, { useState, useEffect } from "react";
import { View, StyleSheet, Alert } from "react-native";
import { Container, Header, Body, Text, Form, Textarea, Button, Content, ListItem, CheckBox, Footer, FooterTab} from "native-base";
import ColorPalette from 'react-native-color-palette';
import { firebase } from... |
'use strict';
const Keybinding = require('./keybinding');
let bindingFor = Keybinding.for;
let groupFor = Keybinding.Group.for;
module.exports = groupFor('All Keybindings', '', [
groupFor('Convenience', '', [
bindingFor('send', 'm', 'method call'),
bindingFor('str', 's', 'literal string'),
bindingF... |
/*
Firefox addon "Undo Close Tab"
Copyright (C) 2020 <NAME> <<EMAIL>>
Copyright (C) 2017 YFdyh000 <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _dom = _interopRequireDefault(require("../../shared/dom7"));
var _utils = require("../../shared/utils");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Toolbar = {
setHighlight: function se... |
/* global google */
'use strict';
function initDemos() {
Array.from(document.querySelectorAll('.demo')).forEach(function(el) {
var code = document.createElement('pre');
var xhr = new XMLHttpRequest();
xhr.open("get", el.getAttribute('data-src'));
xhr.addEventListener('load', function() {
el.textContent = t... |
let MANAGER_LESSON_HISTORY = {};
let csrf_token = $("[name=csrf-token]").attr('content');
let routeGetNameById = $("[name=route-get-nickname-by-id]").attr('content');
let routeGetNameByEmail = $("[name=route-get-nickname-by-email]").attr('content');
let routeValidationSearch = $("[name=route-validation-search]").attr('... |
import _ from 'lodash';
import mongodb from 'mongodb-core';
import Cursor from './Cursor';
import AggregationCursor from './AggregationCursor';
import Bulk from './Bulk';
import {toError} from './Utils';
const Code = mongodb.BSON.Code;
const ObjectID = mongodb.BSON.ObjectID;
function indexName(index) {
return Obj... |
const element = document.getElementById('slider'); // element for init slider
const speed = 3000; // animation speed
const controls = true; // for show slider controls
const pager = true; // for show slider pager
const pause = false; // stop slides autoplay
const melt = true; // slow slider fade
const dotAppear = false... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
var request = require('request');
var fs = require('fs');
var path = require('path');
function findData(m0, mp, me, env){
var s, t;
env.p = env.text.indexOf(m0, env.p + 1) + m0.length - 1;
env.p = env.text.indexOf(mp, env.p + 1);
s = env.p + mp.length;
env.p = env.text.indexOf(me, env.p + 1);
t = env.p;
return ... |
// The following is the benchmark for 2D translation
// move x from 0 -> X_MAX
// move y from 0 -> Y_MAX
var TIME_INTERVAL = 100;
var X_MAX = 100;
var Y_MAX = 100;
var Benchmark = require('benchmark');
var greensockTweenLite = require('../../node_modules/gsap/src/uncompressed/TweenLite');
var $ = require('jquery');
... |
import * as d3 from 'd3'
import _ from 'lodash'
class Nodes {
constructor(container, onUpdateCb) {
this.container = container
this.color = d3.scaleOrdinal(d3.schemeCategory20);
this.selectedNodes = []
this.onUpdateCb = onUpdateCb
}
set(nodes, links) {
this.nodes = nodes
this.links = l... |
//////////////////////////////////////////////////////////////////////////////////
//
// file.js
//
// Common routines. Defines LIB object which contains the API, as well as
// a global console.log function.
//
/////////////////////////////////////////////////////////////////////////////////
var LIB = requir... |
console.clear();
// set up a faux status - to mimic what a UA would implement
const statusEl = document.querySelector('#status');
function updateStatus(track, playState = 'Stopped') {
// update header
statusEl.querySelector('h3').innerText = playState;
// update track info
const info = statusEl.querySelector... |
import React from "react";
import { run } from "../maki-interpreter/virtualMachine";
import System from "../runtime/System";
import runtime from "../runtime";
import Variable from "./Variable";
import Value from "./Value";
import Command from "./Command";
import { useDropzone } from "react-dropzone";
function readFile... |
const Bot = require('./lib/Bot')
const SOFA = require('sofa-js')
const Fiat = require('./lib/Fiat')
const token = require('./client/src/data/tokens.json')
const logo_url = '../src/client/public/'
let bot = new Bot()
// ROUTING
bot.onEvent = function(session, message) {
switch (message.type) {
case 'Init':
... |
var https = require('https');
var http = require('http');
var net = require('net');
/**
* Since overriding Agent from node v0.10.x is painful (at least for what we need),
* we'll use this, until v0.12 stable comes out.
*/
function ProxyAgent (options) {
if (!(this instanceof ProxyAgent)) {
return new Proxy... |
import * as plot from "./plot.js";
import * as utils from "./utils.js";
export function close_split_assistant(map, chart) {
const btn = document.getElementById('btn_split');
const div = document.getElementById('div-split');
btn.classList.remove('split-mode');
btn.classList.add('btn-edition');
div.... |
const fs = require('fs');
const path = require('path');
const monorepoRoot = require('@design-systems/cli-utils').getMonorepoRoot();
/** Determine if a filepath exists. */
const exists = filepath => {
if (fs.existsSync(filepath)) {
return filepath;
}
};
module.exports = {
env: { jest: true, browser: true }... |
const { MessageEmbed } = require("discord.js");
const client = require("../../bot");
/**
* @param {String} interaction
* @param {String} dir
* @param {String} file
* @param {String} err
*/
module.exports = async (interaction, dir, file, err) => {
switch (err) {
case 101:
err = "Invalid argument";
... |
import uuid from 'uuid';
import equalDeep from 'lodash.isequal';
import cloneDeep from 'lodash.clonedeep';
import save from './save.js';
export { inSync } from './save.js';
// A client hash to filter out local database changes (as those
// may lead to several race conditions).
// see also http://stackoverflow.com/que... |
'use strict';
var hfc = require('fabric-client');
var util = require('util');
var sdkUtils = require('fabric-client/lib/utils');
const fs = require('fs');
// Get configs from sdk-config.json which was downloaded from HuaweiBCS
var SDKConfig = require("../sdk-config");
var options = SDKConfig.Options;
var channel = {... |
/* eslint-env node */
/* global afterEach */
'use strict';
const fs = require('fs');
const AWS = require('aws-sdk');
const RSVP = require('rsvp');
const assert = require('./helpers/assert');
const client = new AWS.S3({
region: process.env.TEST_REGION
});
const get = RSVP.denodeify(client.getObject.bind(cli... |
//Test #3
//Copyright WyattERP.org: See LICENSE in the root of this package
// -----------------------------------------------------------------------------
import Vue from 'vue'
Vue.config.productionTip = false
import WylibMlb from '../src/mlb.vue'
const { Grid } = require('slickgrid-es6')
import './slick.grid.css'
c... |
const
express = require('express'),
routes = express.Router(),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
fetch = require('node-fetch'),
asyncHandler = require('express-async-handler'),
crypto = require('crypto');
let CONST = global.CONST;
let db... |
var XML3D = XML3D || {};
var Xflow = Xflow || {};
(function() {
Xflow.registerOperator("xflow.box", {
outputs: [
{type: 'float3', name: 'position', customAlloc: true},
{type: 'float3', name: 'normal', customAlloc: true},
{type: 'int', name: 'index', customAlloc: true}
],
params: [
{type: 'int', ... |
/*jshint node: true */
var _ = require('lodash'),
/*jshint -W079 */
Promise = require('bluebird'),
atob = require('atob'),
/*jshint +W079 */
fs = Promise.promisifyAll(require('fs-extra')),
glob = Promise.promisify(require('glob')),
path = require('path'),
request = Promise.promisifyAll(require('request')),
tes... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import autoBind from 'react-autobind';
const R = require('ramda')
import { SelectionPanel, SelectionPanel2 } from './SelectionPanels'
import { SelectableListItem, SelectedListItem } from './ListItems'
import {
updateValueInCollection,
re... |
import { mount } from '@vue/test-utils';
import { TEST_HOST, FIXTURES_PATH } from 'spec/test_constants';
import AxiosMockAdapter from 'axios-mock-adapter';
import $ from 'jquery';
import fieldComponent from '~/vue_shared/components/markdown/field.vue';
import axios from '~/lib/utils/axios_utils';
const markdownPreview... |
import express from 'express'
import bodyParser from 'body-parser'
import cookieParser from 'cookie-parser'
import cookieSession from 'cookie-session'
import axios from 'axios'
import csurf from 'csurf'
import cors from 'cors'
import { differenceInMinutes } from 'date-fns'
import { Client, cryptoUtils, utils, Signature... |
import fs from 'fs';
import rollup from 'rollup';
import babel from 'babel-core';
import UglifyJS from 'uglify-js';
import mapper from './mapper.js';
import Errors from '../etc/Errors.js';
import colors from '../etc/console-colors.js';
const importPattern = `import.*(["\\'])(.*\\.js)\\1`,
defaultFormat = 'cjs';
fun... |
var async = require('async');
var FieldType = require('../Type');
var util = require('util');
var utils = require('keystone-utils');
var isReserved = require('../../../lib/list/isReserved');
/**
* List FieldType Constructor
* @extends Field
* @api public
*/
function list (keystoneList, path, options) {
this._und... |
import * as THREE from 'three';
import Avatar from './avatars/avatars.js';
import {
idleFactorSpeed,
walkFactorSpeed,
runFactorSpeed,
narutoRunTimeFactor,
} from './avatars/constants.js';
import {
crouchMaxTime,
} from './constants.js';
import {
mod,
loadJson,
loadAudioBuffer,
} from './u... |
const _ = require('lodash')
const { Streams, StreamAcl, StreamFavorites, knex } = require('@/modules/core/dbSchema')
const { InvalidArgumentError } = require('@/modules/core/errors/base')
const { Roles } = require('@/modules/core/helpers/mainConstants')
/**
* List of base columns to select when querying for user stre... |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import {
TabContent,
TabPane,
Nav,
NavItem,
ListGroup,
} from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { getOrbitTrackTitle } from '../../../../modules/layers/uti... |
const fs = require("fs-extra");
function randomNumber(digits){
return Math.floor(Math.random()*9*Math.pow(10, digits-1 || 3))+Math.pow(10, digits-1 || 3)
}
class server {
constructor({wss, server, app, socketEmitter}){
this.wss = wss;
this.app = app;
this.lobbies = [];
socketEmitter.on('connection', so... |
/**
*
* app.js
*
* Entry point of the application
*/
// NOTE TO PLUGINS DEVELOPERS:
// If you modify this file by adding new options to a plugin entry point
// Here's the file: strapi/docs/3.0.0-beta.x/plugin-development/frontend-field-api.md
// Here's the file: strapi/docs/3.0.0-beta.x/guides/registering-a-field... |
import { OAuth, OAuth2 } from 'oauth'
import querystring from 'querystring'
import logger from '../../../lib/logger'
/**
* @TODO Refactor to remove dependancy on 'oauth' package
* It is already quite monkey patched, we don't use all the features and and it
* would be easier to maintain if all the code was native to... |
/**
* Update rule evaluation fixture by trying to upload a rule (as a ".read" rule)
* and recording the result.
*/
'use strict';
const log = require('debug')('targaryen:parser');
const error = require('debug')('targaryen:parser:error');
const firebase = require('../firebase');
const set = require('lodash.set');
co... |
import React, { useState, useEffect } from "react";
import {
View,
Text,
StatusBar,
ScrollView,
TouchableOpacity,
Alert,
FlatList,
Image
} from "react-native";
import styles from "./styles";
import { Feather } from "@expo/vector-icons";
import { useNavigation, useRoute } from "@react-navigation/native... |
var { reduce, forEach, isEmpty } = require("lodash");
var { dirname, join: pathJoin } = require("path");
var { warn } = require("console");
var fetch = require("node-fetch");
var UglifyJS = require("uglify-js");
var parseString = require('xml2js').parseString;
var crypto = require("crypto");
var { UI5Cache } = require... |
import React, {PureComponent} from 'react';
import {connect} from 'dva';
import {Form, Modal, Input, Row, Col,TreeSelect} from 'antd';
import {lineItem, entireLine, formItemLayout} from '../../../utils/globalUIConfig';
import {phoneRegular} from "../../../utils/regular";
import { formatMessage, FormattedMessage } from ... |
var $ = require("../../core/renderer"),
typeUtils = require("../../core/utils/type"),
noop = require("../../core/utils/common").noop,
isDefined = require("../../core/utils/type").isDefined,
extend = require("../../core/utils/extend").extend,
each = require("../../core/utils/iterator").each,
inAr... |
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.randomStr = randomStr;
exports.param = param;
exports.getQueryObject = getQueryObject;
exports.getQueryValue = getQueryValue;
exports.isArray = isArray;
exports.isFunction = isFunction;
exports.isObject = isObject;
exports.asyncFunc... |
var request = require('request'),
_ = require('lodash'),
fs = require('fs'),
path = require('path'),
async = require('async');
var radius = 25; // in km
/*
Latitude: 1 deg = 110.574 km
Longitude: 1 deg = 111.320*cos(latitude) km
*/
function RecommendationsHandler() {
this.dataBase = JSON.pars... |
'use sstrict'
const FS = require('fs')
const Core = require('@actions/core')
const Mime = require('mime-types')
const Path = require('path');
const {
findRelease,
splitAssetsString
} = require('./utils')
const PWD = process.cwd()
const parseFilesStringIntoList = fileStr => splitAssetsString(fileStr).map(
... |
/* eslint-disable no-console */
import * as api from './api.js';
import * as store from './store.js';
// Generators
const generateTopButtons = () => {
let list = `<section id='top-buttons'>
<button id='new-bookmark'>Create</button>
<div class='filter-div'>
<select id="filter" name="rating"">
<opt... |
'use strict';
var vue = require('vue');
var script = {
name: 'BreadcrumbItem',
props: {
item: null,
template: null
},
methods: {
onClick(event, navigate) {
if (this.item.command) {
this.item.command({
originalEvent: event,
... |
'use strict';
const capitalize = require('capitalize');
const pluralize = require('pluralize');
const utilities = require('../../../../utilities');
const decisionTabs = require('../../../../utilities/views/decision/shared/components/decisionTabs');
const collectionDetailTabs = require('../../../../utilities/view... |
'use strict';
const fs = require('fs-extra');
const path = require('path');
/**
* exports default application settings
*@return {object} default application settings
*/
module.exports = () => {
const packageJson = fs.readJSONSync(path.resolve(__dirname, '../../package.json'));
// console.log({ packageJs... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// uuid: 4293b25a-0b5f-4af9-8dd7-a351ff686908
// ------------------------------------------------------------------------
// Copyright (c) 2018 <NAME>. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for de... |
import React from 'react';
import { Component } from 'react';
// Components
import Modal from '../components/Modal/Modal';
import Backdrop from '../components/Backdrop/Backdrop';
import EventList from '../components/EventList/EventList';
import Spinner from '../components/Spinner/Spinner';
// Context
import AuthConte... |
// This is the same example as the main-typescript.ts just without type anotations.
// Consider using TypeScript. If you compare both examples they are fairly similar.
// Learning TypeScript will be worth it!
//
// If you just want to use JavaScript, go ahead :)
const {readFileSync} = require('fs')
const {Telegraf} =... |
import styled from "styled-components";
import { useState, useEffect } from "react";
import { Button, IconButton } from "@material-ui/core";
import * as EmailValidator from "email-validator";
import AddBoxIcon from "@mui/icons-material/AddBox";
import CancelIcon from "@mui/icons-material/Cancel";
import { useCollection... |
import React, { Fragment } from 'react';
import { Keyframes, config } from 'react-spring';
import delay from 'delay';
import { TimingAnimation, Easing } from 'react-spring/dist/addons.cjs';
import {
Defs,
Circle,
Shirt,
Head,
Eyes,
Nose,
Glasses,
FacialHair,
Desk,
CoffeeCup,
Keyboard,
Hand,
} f... |
import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, View, ScrollView, Platform} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import PickerListItem from './PickerListItem';
export default class DynamicallySelectedPicker extends React.Component {
constr... |
/**
* This file is part of OXID eSales PayPal module.
*
* OXID eSales PayPal module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.