text stringlengths 3.07k 16k |
|---|
/* eslint-disable complexity */
/* eslint-disable max-statements */
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {postToOrder, putToOrder} from '../store/order'
import {fetchSingleProduct, changeProduct} from '../store/single-product'
import {deleteItem, deleteProduct} from '../stor... |
import { useState } from 'react';
import { useSession } from 'next-auth/client';
import { useRouter } from 'next/router';
import Navbar from '../../components/navbar';
import Login from '../login';
import axios from 'axios';
import Swal from 'sweetalert2';
import Link from 'next/link';
function UpdatePost({ posts }) {... |
// <NAME> <<EMAIL>>
"use strict";
const assert = require('./assert.js');
const F = {
// no inference
ABSOLUTE: 0,
// infer bottom
BOT_RELATIVE: 1,
RELATIVE_TO_BOTTOM: 1,
// infer top
TOP_RELATIVE: 2,
RELATIVE_TO_TOP: 2,
// infer both sides
RELATIVE: 3,
RELATIVE... |
// var navList = document.getElementById('nav-list');
// $.ajax({
// "url": "http://lc.shudong.wang/api_cat.php",
// 'type': 'GET',
// 'dataType': 'json',
// 'success': function(response){
// // 处理返回的数据
// console.log(response);
// for(var i = 0; i < response.data.length; i++){
/... |
/**
* Displays hierarchical data in a single branch tree like list.
*
* Properties:
*
* 1. data
* 2. treeMetaData = describes (in JSON) how data will be presented in a tree structure.
*
* Example:
*
* {propKey: "name",
* children:[{entity: "webServers",
* propKey: "name",
* ... |
import React, {Component, createElement} from 'react';
import {StaticRouter, BrowserRouter, Route} from 'react-router-dom';
import routes from '../data/routeComps';
import ga from 'react-ga';
import {isServer} from '../utils';
import store from '../store';
import {createGlobalStyle} from 'styled-components';
import res... |
'use strict';
var test = require('tape');
var origObjectAssign = Object.assign;
delete Object.assign;
require('../index.js');
var assign = Object.assign;
var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
test('error cases', function (t) {
t.throws(function () { assign(null); }, TypeError... |
import Papa from "papaparse";
import {
masterConfigPath,
configFileName,
apiKeysFileName,
usersCsvFileName,
colorPalette,
dhcpDumpColumnDef,
} from "../config/config.json";
import { colorPalettes, VendorChart } from "../config/colorPalettes.json";
import ieeeMalCsv from "../registry/ieeemal.csv";
import iee... |
const chalk = require('chalk');
const semver = require('semver');
const BaseGenerator = require('generator-jhipster/generators/generator-base');
const jhipsterConstants = require('generator-jhipster/generators/generator-constants');
const packagejs = require('../../package.json');
module.exports = class extends BaseGe... |
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
const Discord = require('discord.js')
const cooldowns = new Discord.Collection()
const mongoose = require('mongoose')
const Guild = require('../models/guild')
const axios = require('axios')
module.exports = async (client, message) => {
let prefix
if (message.channel.type === 'text') {
let settings = await Guild.fi... |
import { withAuthenticationRequired } from '@auth0/auth0-react'
import clone from 'clone'
import { Form, Formik } from 'formik'
import React, { Component } from 'react'
import { connect } from 'react-redux'
import * as yup from 'yup'
import AccountPage from '../account-page'
import * as uiActions from '../../../action... |
let EventEmitter = require('events');
let dgram = require('dgram');
let os = require('os');
let crypto = require('crypto');
class Device {
constructor(host, mac, timeout = 10) {
this.host = host;
this.mac = mac;
this.emitter = new EventEmitter();
this.on = this.emitter.on... |
// don't try to learn anything from the code, it's a
// series of hacks. this one's all about the visuals.
// - @hakimel
var LineChart = function( options ) {
var data = options.data;
var canvas = document.body.appendChild( document.createElement( 'canvas' ) );
var context = canvas.getContext( '2d' );
var re... |
'use strict';
var mongoose = require('mongoose'),
Player = mongoose.model('Player'),
Asset = mongoose.model('Asset'),
rest = require('../others/restware'),
config = require('../../config/config'),
fs = require('fs'),
async = require('async'),
util = require('util'),
path = require('path... |
'use strict';
var $interpolateMinErr = minErr('$interpolate');
/**
* @ngdoc object
* @name ng.$interpolateProvider
* @function
*
* @description
*
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
*
* @example
<doc:example module="customInterpolationApp">
<doc:source>
<script>
var ... |
/* inserted by pull.js */
import _twAsset0 from "!url-loader!./lock.svg";
import _twAsset1 from "!url-loader!./unlock.svg";
const _twGetAsset = (path) => {
if (path === "/lock.svg") return _twAsset0;
if (path === "/unlock.svg") return _twAsset1;
throw new Error(`Unknown asset: ${path}`);
};
export default async ... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
import React from 'react';
import {
StyleSheet,
ImageBackground,
Dimensions,
StatusBar,
TouchableWithoutFeedback,
Keyboard
} from 'react-native';
import { Block, Checkbox, Text, Button as GaButton, theme } from 'galio-framework';
import { Button, Icon, Input } from '../components';
import { Images, nowThem... |
/**
* request 网络请求工具
* 更详细的 api 文档: https://github.com/umijs/umi-request
*/
import { extend } from 'umi-request';
import { notification } from 'antd';
// import { history } from 'umi';
// import { API_URL } from '@/globalConfig';
const API_URL = '';
let requestToken;
const codeMessage = {
200: '服务器成功返回请求的数据。',
... |
import React from 'react'
import { Loader, Dimmer } from 'semantic-ui-react'
import { Line } from 'react-chartjs-2'
import { DateTime, Duration } from 'luxon'
import axios from "../axiosConfig"
import TimeRange from "./TimeRange"
class LineChart extends React.Component {
constructor(props) {
super(props)
th... |
import { CardStyleInterpolators } from '@react-navigation/stack';
import React, { useMemo, useRef } from 'react';
import { StyleSheet, TouchableOpacity } from 'react-native';
import { createStackNavigator } from '@react-navigation/stack';
import { SvgXml } from 'react-native-svg';
import { Icons } from '../../assets';... |
'use strict';
var efte = require('efte');
var moment = require('moment');
var _ = require('underscore');
var rivets = require('rivets');
var neo = require('hui-neo');
var $ = require('zepto-fix-issue');
window.$ = null;
var env = require('../lib/env');
var util = require('../lib/util');
var ajax = util.ajax;
var backAc... |
"use strict";
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array obje... |
import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import ArrowUp from "Styles/icons/ArrowUp";
import ArrowDoubleUp from "Styles/icons/ArrowDoubleUp";
import ArrowDown from "Styles/icons/ArrowDown";
import Modify from "Styles/icons/Modify";
import Close from "Styles/... |
import React, { Suspense, useState } from 'react';
import { makeStyles, List, ListItem } from '@material-ui/core';
import CssBaseline from '@material-ui/core/CssBaseline';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import {
ThemeProvider,
unstable_createMuiStrictModeTheme as createMuiTheme,
} from... |
// this is the start of my state machiene
var stateChange;
var state = 1;
var coitstate = 1;
var bridgestate = 2;
var cliffstate = 3;
var pagotastate = 4;
var deyoungstate = 5;
var flowerstate = 6;
//these are all my images
let coitTowerPage;
let coitTower;
let coitGround;
let goldenGatePage;
let sun;
let cliffLightP... |
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
const del = require('del');
const eslint = require('gulp-eslint');
const fs = require('fs');
const { Transform } = require('stream');
const childProcess = require('child_process');
const gulp = require('gulp');
const gulpStep ... |
import Particle from './core/particle.js'
function clamp(min, max, value) {
if (value > max) {
return max
} else if (value < min) {
return min
} else {
return value
}
}
const PARTICLE_NUM = 1000
class ParticleStar {
constructor(canvas = {}, options = {}) {
this.canvas = canvas
this.opti... |
const Discord = require('discord.js');
const { stripIndents } = require('common-tags');
const db = require("quick.db")
const ayarlar = require('../ayarlar.json')
exports.run = async(client, message, params) => {
let prefix = ayarlar.prefix
if (!message.member.permissions.has("ADMINISTRATOR")) return mess... |
// Based on https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
// and https://tailwindcss.com/components
const borderWidths = {
px: `1px`,
"0": `0`,
"2": `2px`,
"4": `4px`,
"8": `8px`,
}
const breakpoints = [`640px`, `768px`, `1024px`, `1280px`]
const baseColors... |
'use strict';
var path = process.cwd();
var ctrlPath = path + '/app/controllers';
const UserController = require(ctrlPath + '/userController.server.js');
const SearchController = require(ctrlPath + '/searchController.server.js');
const VenueController = require(ctrlPath + '/venueController.server.js');
var $DEBUG = 0... |
// Get broser Name
function getBrowserName() {
var userAgent = navigator.userAgent;
var browserName = (userAgent.match(/opera|chrome|safari|firefox/i) || [])[0];
var appName = navigator.appName;
if (appName === 'Microsoft Internet Explorer') {
browserName = 'IE';
return browserName;
}
if (navigat... |
'kiwi public';
/** @module */
import _ from 'lodash';
import strftime from 'strftime';
/**
* Extract an array of buffers from a string, parsing multiple buffer names and channel keys
* "#chan,#chan2" => 2 channels without a key
* "#chan,#chan2 key" => 2 channels, the first having a key
* "#chan,#chan2 key1,key2"... |
import pickBy from 'lodash/pickBy';
import { assessmentMetaDataState } from 'kolibri.coreVue.vuex.mappers';
import { ContentNodeResource, ContentNodeSearchResource } from 'kolibri.resources';
import { ContentNodeKinds } from 'kolibri.coreVue.vuex.constants';
import { getContentNodeThumbnail } from 'kolibri.utils.conten... |
import alt from "alt-instance"
import Immutable from "immutable"
import Address from "ecc/address"
import PublicKey from "ecc/key_public"
import key from "common/key_utils"
import BaseStore from "stores/BaseStore"
import Apis from "rpc_api/ApiInstances"
import iDB from "idb-instance"
import config from "chain/config"
... |
// Load modules.
var OAuth2Strategy = require('passport-oauth2')
, util = require('util')
, Profile = require('./profile')
, InternalOAuthError = require('passport-oauth2').InternalOAuthError
, APIError = require('./errors/apierror');
/**
* `Strategy` constructor.
*
* The KeycloakSteve authentication strat... |
import React, {useState, useEffect} from 'react';
import DateRangePicker from '@wojtekmaj/react-daterange-picker';
import { Chart } from 'components';
import './css/Info.css';
import { getMaxEXP, getRateEXP, getTotalEXP } from '../module/level';
import LinearProgress from '@material-ui/core/LinearProgress';
import Pape... |
var router = require( 'express' ).Router();
var mongoose = require( 'mongoose' );
var passport = require( 'passport' );
var auth = require( '../auth' );
var Article = mongoose.model( 'Article' );
var User = mongoose.model( 'User' );
var Comment = mongoose.model('Comment');
//for article params, get article, populate ... |
import React, { useState } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import ReactTooltip from 'react-tooltip';
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@material-ui/core';
import { Help as HelpIcon } from '@material-ui/icons';
... |
// Population parameters
var population;
var populationSize;
var nSelfish;
var dead;
var mut;
// Food parameters
var food;
var foodAmount;
var foodBorder;
var maxFood;
// Canvas parameters
var WIDTH;
var HEIGHT;
var slider;
// Time tracking
var time;
var generation;
var fastForward;
var done;
var startTime;
var opa... |
const calculateCacheKeyForTree = require('calculate-cache-key-for-tree');
const Funnel = require('broccoli-funnel');
const merge = require('broccoli-merge-trees');
const BroccoliDebug = require('broccoli-debug');
const VersionChecker = require('ember-cli-version-checker');
const rollupPrivateModule = require('./utilit... |
'use strict'
// A variable declared outside a function, becomes GLOBAL.
let firstImage = document.getElementById('image1') //from html
let secondImage = document.getElementById('image2')
let thirdImage = document.getElementById('image3')
let image = document.getElementById('image') // the container
let attmpts = 0; // ... |
/* stylelint-disable no-descending-specificity */
import styled from "styled-components";
import { DownIcon } from "../../Icons";
import KeyBoardProvider from "../../KeyboardNavigation/Provider";
import { constants, zIndex, typography } from "../../../theme";
import getThemeValue from "../../../utils/getThemeValue";
... |
import colors from 'colors';
const Promise = require('bluebird');
import _ from 'lodash';
import { parse } from 'querystring'
import errorsReporter from './reporter';
import makeReporter from './progressReporter';
const debug = require('debug')('github');
import shortRepoName from '../src/utils/shortRepoName';
import g... |
//const express = require('express');
//const session = require('express-session')
const Visit = require("./../models/visitor");
const Contact = require("./../models/contact");
//const { json } = require('body-parser');
const ejs = require('ejs');
function fullpath(filename){
return __dirname + filenam... |
import React from "react";
// react plugin for creating charts
import ChartistGraph from "react-chartist";
// @material-ui/core
import { makeStyles } from "@material-ui/core/styles";
import Icon from "@material-ui/core/Icon";
// @material-ui/icons
import Store from "@material-ui/icons/Store";
import Warning from "@mate... |
/**
* Serviceworker for web push notifications
* @package PNServer
*/
// values to be modified for own project
// VAPID appPublic key
const strAppPublicKey = 'create your own VAPID key pair and insert public key here';
// URL to save subscription on server via Fetch API
const strSubscriberURL = 'https://www.your-... |
import { takeLatest, call, select, put } from 'redux-saga/effects';
import { apiGet, apiPost } from '@/guru/stores/api';
import { API_URL } from '@/constants';
import { updateLoading } from '@/guru/stores/action';
import {
loadMatches,
updateEvents,
loadRelatedMatches,
putRelatedMatches,
getReportCount,
rem... |
import Dictionary from '../schemas/dictionary';
import Draft, { draftStatus } from '../schemas/dictionaryDraft';
import Model from '../schemas/model';
import { modelStatus } from '../helpers/modelStatus';
import getLogger from '../logger';
const logger = getLogger('helpers/dictionary');
const fieldNameToModelProperty... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
import * as d3 from 'd3';
import minimaper from './minimap.js'
let width = 500,
height = 500,
base = null,
wrapperBorder = 0,
minimap = null,
minimapPadding = 10,
minimapScale = 0.25;
export default function canvas(selection) {
base = selection;
const svgWidth = (width + (wrapperBorde... |
/**
* Copyright 2017 IBM 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Content, stores } from 'choerodon-front-boot';
import { Select, Modal, Form, Input, Icon } from 'choerodon-ui';
import _ from 'lodash';
import MdEditor from '../..... |
import injection from './injection.js';
import { isUUID } from './utils.js';
const $db = Symbol('db');
const $sceneGraphs = Symbol('sceneGraphs');
const $overviews = Symbol('overviews');
const $update = Symbol('update');
const $onMessage = Symbol('onMessage');
const $log = Symbol('log');
const $eval = Symbol('eval');
c... |
import React, { Component } from 'react';
import { Text,Modal, Dimensions,SafeAreaView ,View, StyleSheet,TextInput, Image ,ScrollView,ImageBackground,TouchableOpacity} from 'react-native';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import { BackHandler, FlatList } from 'react-native';
import ... |
import '../css/style.css'
import * as THREE from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'
import * as dat from 'dat.gui'
// import { LinearToneMapping } from 'three'
/**
* Variables
*/
// Sizes
const sizes = {
width: window.innerWidth,
height: window.innerHeight
}
... |
var productId = document.getElementById("productpick").value;
function LoadProducts() {
var http = new XMLHttpRequest();
console.log(productId);
http.open('GET', '../products/GetProductById/' + productId, true);
http.send();
http.onreadystatechange = function () {
if (this.readyState == 4... |
import { UnavailabilityError } from '@unimodules/core';
import ExpoFirebaseAnalytics from './ExpoFirebaseAnalytics';
if (!ExpoFirebaseAnalytics) {
console.warn("No native ExpoFirebaseAnalytics module found, are you sure the expo-firebase-analytics's module is linked properly?");
}
/**
* Logs an app event. The even... |
// -------------------
// Helper functions
// --------------------
function findChatElementForJID(jid)
{
var chatsShown = document.getElementsByClassName(UIClassNames.CHAT_ENTRY_CLASS);
var blockedChat = null;
for (var i = 0; i < chatsShown.length; i++)
{
var reactElement = FindReact(chatsShown... |
load("7fe0f1bf313bbf91780e927100d557ab.js");
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following co... |
import React, { Component } from 'react';
import { Badge, Card, CardBody, CardHeader, Col,Modal, ModalBody, ModalFooter, ModalHeader, Pagination, PaginationItem, PaginationLink, Row, Table ,Button,Input} from 'reactstrap';
import axios from "axios";
class BacklogProject extends Component {
constructor(props) {
su... |
var Promise = require('promise');
var settings = require('../config/settings');
var logger = require('../config/logger');
module.exports = function(dependencies) {
var transactionBO = dependencies.transactionBO;
//var addressBO = dependencies.addressBO;
var eventBO = dependencies.eventBO;... |
import React from 'react';
import { Context, Frame, Drawable } from '@psychobolt/react-regl';
import ReglContainer from 'stories/Core/Setup/Resizable';
import attachCamera from 'canvas-orbit-camera';
import mat4 from 'gl-mat4';
import Pass1 from './Pass1';
import Pass2 from './Pass2';
import Pass3 from './Pass3';
impo... |
'use strict';
const debug = require('debug')('hmpo:journey-tester:lifecycle');
const url = require('url');
const _ = require('lodash');
const deepCloneMerge = require('deep-clone-merge');
const Form = require('./form');
class LifeCycle {
constructor(config, driver, logger, values) {
this.config = config;
... |
'use strict';
const process = require('node:process');
const { Collection } = require('@discordjs/collection');
const { OverwriteType, Routes } = require('discord-api-types/v10');
const CachedManager = require('./CachedManager');
const { TypeError } = require('../errors');
const PermissionOverwrites = require('../stru... |
const RSS = require("rss")
const path = require("path")
const fs = require("fs-extra")
const axios = require("axios")
const crypto = require("crypto")
const wrapper = promise =>
promise.then(result => {
if (result.errors) {
throw result.errors
}
return result
})
Array.prototype.asyncForEach = as... |
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Gio = imports.gi.Gio;
const Lang = imports.lang;
const Signals = imports.signals;
var LauncherEntryRemoteModel = new Lang.Class({
Name: 'DashToDock.LauncherEntryRemoteModel',
_init: function () {
this._entriesByDBusName = {};
... |
import Mock from 'mockjs'
/**
*
* 动态模拟菜单
*
* label菜单的名字
* path菜单的路径
* icon菜单的图标(系统采用的阿里巴巴图表库)
* compnent组件的地址
* children子类菜单数组
* group配置其他路由激活菜单高亮
*/
var top = [{
label: "首页",
href: "/wel/index",
icon: 'el-icon-menu',
parentId: 0
},
{
label: "设置",
icon: 'el-icon-setting',
h... |
const { executionAsyncId, createHook } = require('async_hooks')
// grab a reference to this right away, in case the user changes it
// weird thing to do, but this is used in tests a lot, where weird
// things are quite common.
const proc = process
const debug = proc.env.ASYNC_HOOK_DOMAIN_DEBUG !== '1' ? () => {}
: ((... |
import React, { Component } from "react";
import {
SugarComponent,
BackButton,
ExternalLink,
EthereumWrapper,
EtherscanTxLink,
EtherscanAddressLink,
truncateStr,
WithPendingTransaction
} from "../common";
import contractABI from "./abi";
import { sha256 } from 'js-sha256';
import SantaHat from './santah... |
const utils = require('../utils');
const errors = require('../constants/errors');
const block = require('../constants/block');
const config = require('../config');
const host = 'https://atlassian.net/browse/';
describe(utils.getIssuerFromTitle.name, () => {
it('returns tickets for a title with one ticket', () => ... |
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
var CoreObject = require('core-object');
var RSVP = require('rsvp');
module.exports = CoreObject.extend({
init(options, lib) {
this._super();
var redisOptions = {};
var RedisLib = lib;
if (options.url) {
redisOptions = this._stripUsernameFromConfigUrl(options.url);
} else {
redi... |
const R = require(`./ramda`)
const apis = require(`./apis`)
const { makeUrl, getAPI } = require(`./Util`)
const { request, requestP } = require(`./Request`)
const { COPY_FIELDS } = require(`./consts`)
const _getLEK = R.path([`json`, `LastEvaluatedKey`])
const _propToGetAPI = R.compose(
getAPI,
R.prop(`conf`)
)
... |
var files = [];
// 文件上传路径
var server = app.serverUrl + '/upload/video';
// 用于标识正在播放的音乐,初始化为1:未播放任何音乐
var playingBgmId = -1;
var playingAudio = null;
mui.plusReady(function() {
// console.log('this is bgm choose page')
// 加载bgm页面
loadBgms()
// 获取上一个页面传入的对象
var currnetWebview = plus.webview.currentWebview();
file... |
import _ from 'lodash/fp'
import * as md5 from 'md5'
import { version } from 'src/data/clusters'
import ProdWhitelist from 'src/data/prod-whitelist'
import { Ajax } from 'src/libs/ajax'
import * as Config from 'src/libs/config'
import { clearErrorCode, reportError } from 'src/libs/error'
import * as Utils from 'src/lib... |
var savSadrzajApartmana = new Array();
var cekiraniSadrzaj = new Array();
var podaciSadrzaj = [];
var podaciAdresa = {};
var podaciLokacija = {};
$(document).ready(function() {
$('#PozPorApp').hide();
$("#odustani").click(function(event){
event.preventDefault();
window.location.href = "index... |
import fs from 'fs';
import pngjs from 'pngjs';
const PNG = pngjs.PNG;
function addPoint(y, x, hue) {
const _x = Math.floor(x * zoom + width * 0.5);
const _y = Math.floor(y * zoom + height * 0.5);
if (_x >= 0 && _x < width && _y >= 0 && _y < height) {
map[_y][_x] += hue;
}
}
function sineInterp(x, min, m... |
// # Demo Canvas 044
// Building more complex patterns
// [Run code](../../demo/canvas-044.html)
import scrawl from '../source/scrawl.js';
import { reportSpeed } from './utilities.js';
// Get Scrawl-canvas to recognise and act on device pixel ratios greater than 1
scrawl.setIgnorePixelRatio(false);
// #### Scene ... |
const async = require('async');
const fs = require('fs');
const path = require('path');
const request = require('request');
// FLAGS
const BACKUP_FLAG = '--backup';
const TOKEN_FLAG = '--token';
const BEFORE_FLAG = '--before';
const DELETE_FLAG = '--delete';
// DEFAULTS
let BACKUP_DEFAULT_LOC = './backup';
let date ... |
/**
* A webpack config script with babel, postcss, css modules,
* file loaders and webpack-symmetric backend proxy.
*/
const fs = require('fs');
const path = require('path');
const url = require('url');
const dotenv = require('dotenv');
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-p... |
import React from 'react';
import {
ScrollView,
StyleSheet,
View,
Text,
TouchableOpacity,
} from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { Header, SearchBar } from 'react-native-elements';
import { createFilter } from 'react-native-search-filter';
import { connect } from 'react-r... |
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
var engagement_type = getUrlVars()["engagement_type"];
var legislative_value = getUrlVars()["legislative_value"];
var k12_flag... |
// var profileFile = fs.open('userdata/profiles.json', 'a+');
var profileData = [];
var cardCounter = 1;
$('a[aria-controls="copy"]').tab('show');
fs.readFile('userdata/profiles.json','utf8',function(err,data) {
if (err) {
throw err;
alert("Could not open user profile, exiting.");
win.close();
}
if(data !... |
console.log( 'generating cog/kog metadata' );
var fs = require( 'fs' ),
path = require( 'path' ),
Person = require( '../models/person' ),
Cog = require( '../models/cog' ),
Genome = require( '../models/genome' ),
mongoose = require( 'mongoose' ),
_ = require( 'underscore' ),
ps = require( 'p... |
import Assignments from "../lib/assignments.js";
const words = `
; 100 Woorden - 1 tot 25
abonnement -- abonnement
A4'tje -- A4'tje
gezamenlijk -- gezamenlijk
uittreksel -- uittreksel
lunchen -- lunchen
liniaal -- liniaal
applaus -- applaus
ballonnen -- ballonnen
barbecueën -- barbecueën
beresterk -- beresterk
pannenk... |
// @flow
const Promise = require("bluebird");
const OpenShiftClient = require('openshift-client');
const { logger } = require('@lagoon/commons/src/local-logging');
const { sendToLagoonLogs, initSendToLagoonLogs } = require('@lagoon/commons/src/logs');
const { consumeTasks, initSendToLagoonTasks } = require('@lagoon/co... |
const title = 'Mr. Kananek T.'
const desc = 'Hey there, My name is <NAME> and i\'m a Full Stack Engineer specialist.'
const website = 'https://mr.touno.io'
const date = new Date().toISOString()
const production = !(process.env.NODE_ENV === 'development')
export default {
target: 'static',
telemetry: false,
head:... |
/* eslint-disable no-param-reassign */
import React from 'react';
import Denque from 'denque';
import ParamMsg from './ParamMsg';
export const commaSeparatedNumberListValidCheck = (t) => {
const regex = /^[0-9]+(,[0-9]+)*$/g;
return t.match(regex);
};
export const stringListValidCheck = (t) => {
const regex = /... |
import React, { Component } from 'react'
import { Layout, Menu, Icon, List, Tag, Select } from 'antd';
import PivotTable from '../../components/pivot/index.js'
import store from '../../store/index.js'
import './style/index.css'
import statFunc from './stat.js'
import PivotTableP from '../../components/pivot/table2d.js'... |
import React from 'react'
import PropTypes from 'prop-types'
import immer from 'immer'
import { PureComponent } from '../component'
import Button from '../Button'
import icons from '../icons'
import Tab from './Tab'
import { tabsClass } from '../styles'
const REDUNDANT = 30
class Header extends PureComponent {
const... |
Number.prototype.pad = function(width,chr){
chr = chr || '0';
var result = this;
for (var a = 0; a < width; a++)
result = chr + result;
return result.slice(-width);
};
$('document').ready(function() {
//Check for web worker support
if(typeof(Worker)!=="undefined") {
//Web workers supported
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WaveParser = void 0;
const strtok3 = require("strtok3/lib/core");
const Token = require("token-types");
const initDebug = require("debug");
const riff = require("../riff/RiffChunk");
const WaveChunk = require("./../wav/WaveChunk... |
import { AsyncStorage } from 'react-native';
import moment from "moment";
import {
EXPENCE_FLATLIST_VISIBILITY,
EXPENCE_IS_SELECTED,
EXPENCE_GET_ACCOUNT_LIST_SUCCESS,
EXPENCE_GET_ACCOUNT_LIST_FAIL,
EXPENCE_CATEGORY_MODAL_VISIBLE,
EXPENCE_CATEGORY_IS_SELECTED,
EXPENCE_DATE_CHANGED,
EXPEN... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
// window.Vue = require('vue');
// /**
// * Next, we will create a fre... |
'use strict';
exports.__esModule = true;
var _omit2 = require('lodash/omit');
var _omit3 = _interopRequireDefault(_omit2);
var _isUndefined2 = require('lodash/isUndefined');
var _isUndefined3 = _interopRequireDefault(_isUndefined2);
var _leafletHeadless = require('leaflet-headless');
var _leafletHeadless2 = _int... |
/**
* Created by msg on 8/1/16.
*/
var API_Info = new Object();
var Env_Info = new Object();
function Run_API(api_url, api_method, case_info, id)
{
var header_param = new Object();
for(var param_key in case_info.header) {
var param_value = case_info.header[param_key];
if (param_key == "autho... |
import React from 'react';
import { Router, Route, IndexRoute, Link, IndexLink, hashHistory } from 'react-router';
import assert from 'power-assert';
import {Container} from 'flux/utils';
import Browser from './Browser';
import Palette from './Palette';
import Recorder from '../../modified-selenium-builder/seleniumbui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.