text stringlengths 3.22k 29.5k |
|---|
import Events from 'events';
import _ from 'lodash';
const EventEmitter = Events.EventEmitter;
class Tracking extends EventEmitter {
/**
* Constructeur
*
* @param {object} webcam objet webcam
* @return {void}
*/
constructor(webcam) {
super();
// init
this.lastImageData = null;
... |
// make a Point Forecast API request
// and generate UI graphs from the response data
function getPointForecast(coordinate, time_bundle) {
// ensure coordinate components are numbers
// in case they were parsed from an OpenLayers feature ID string
var lat = Number(coordinate[1]);
var lon = Number(coordi... |
// variables
var dataBuffer = [];
var datestampBuffer = [];
var timestampBuffer = [];
var timeDiffBuffer = [];
var currentSensorIndexes = [];
var currentSensorId = "emeter3";
var datarequestURL = ["https://raw.githubusercontent.com/angel90650/TestData/master/mock%20timedata.json","https://raw.githubusercontent.c... |
'use strict';
var join = require('path').join;
//Yeoman生成器
var generators = require('yeoman-generator');
//用来显示信息
var yosay = require('yosay');
//用来处理文字样式的,比如文字颜色
var chalk = require('chalk');
var path = require('path');
var WebappRequirejsGenerator = generators.Base.extend({
// The name `constructor` is important ... |
import fs from 'fs'
import watch from 'node-watch'
import http from 'http'
import path from 'path'
import EventEmitter from 'events'
import tty from 'tty'
import Q from 'q'
import JobsPromise from './JobsPromise'
// workaround for determining mime-type of stdin
process.stdin.path = '/dev/stdin'
function myStatSync (s... |
const Mist = require('mist-api').Mist;
//const http = require('http');
const WebSocket = require('ws');
// TODO: make more controlled system than automatic identity creation
const DefaultIdentityName = 'o-mi-node'; // wish/mist identity name
function noop() {}
function OmiNodeTunnel(omiNodeWsAddress, tunnelClos... |
'use strict'
/*
* Configuration
*/
const config = require('server/config')
const constants = require('server/constants')
const _ = require('lodash')
/*
* Wall structure.
*/
let wall = createInitialWall()
function createInitialWall () {
let wall = ''
for (let i = 0; i < 32; ++i) {
const x = i % 8
cons... |
"use strict";
const url = document.getElementById('url');
const analysis_btn = document.getElementById('analysis_btn');
const content_div = document.getElementById('content_div');
const button_div = document.getElementById('button_div');
const detail_div = document.getElementById('detail_div');
const list_div = docume... |
import { NOTES } from "./notes.min"
import { DIATONIC } from "./interval.min"
import { WORDING } from "./wordings.min"
export const FORMULAS = [
{ formula: "1-3-5", integer: "0-4-7", name: "Major", suffix: "" },
{ formula: "1-3-5#", integer: "0-4-8", name: "Augmented", suffix: "aug" },
{ formula: "1-b3-b5", integ... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
import React, {PureComponent} from 'react';
import { Dimensions, findNodeHandle, StyleSheet, Platform, InputAccessoryView, View, Image, Text, TouchableOpacity, TextInput } from 'react-native'
import {DarkModeContext, DarkModeProvider, eventEmitter, initialMode} from 'react-native-dark-mode';
import shortid from 'shor... |
'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]; } } }... |
"use strict";
var fs = require("fs"),
path = require("path"),
Graph = require("dependency-graph").DepGraph,
postcss = require("postcss"),
slug = require("unique-slug"),
series = require("p-each-series"),
unique = require("lodash.uniq"),
mapValues = require("lodash.ma... |
const { Bounds } = require("../bounds");
const xd = require("scenegraph");
class SvgWidget {
constructor(xdNode) {
this.shapes = [];
this.xdNode = xdNode;
this.bounds = new Bounds(xdNode);
if (xdNode.constructor.name == 'Group') {
this.addShapesFromGroup(xdNode);
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React from "react";
import PropTypes from "prop-types";
import clsx from "clsx";
import { makeStyles } from "@material-ui/core/styles";
import TableCell from "@material-ui/core/TableCell";
import Paper from "@material-ui/core/Paper";
import { AutoSizer, Column, Table } from "react-virtualized";
import VertWavCan... |
let employees = [
{
"EmployeeID": 1,
"LastName": "Davolio",
"FirstName": "Nancy",
"Title": "Sales Representative",
"BirthDate": "1948-12-08T00:00:00",
"HireDate": "1992-05-01T00:00:00",
"Address": "507 - 20th Ave. E.\r\nApt. 2A",
"City": "Seattle",
"Region": "WA",
"PostalCode": "98122",
"Country"... |
// Edit this variable if you are not running LightningTip on the same domain or IP address as your webserver or not on port 8081
// Don't forget the "/" at the end!
var requestUrl = window.location.protocol + "//" + window.location.hostname + ":8081/";
// Used for development
if (window.location.protocol === "file:") ... |
import React, { useContext, useState, useEffect } from 'react'
import { observer } from 'mobx-react-lite'
import styled from 'styled-components'
import ErrorBoundary from '../shared/ErrorBoundary'
import storeContext from '../../storeContext'
import Select from '../shared/Select'
import Input from '../shared/Input'
im... |
/*jshint browser:true*/
/*global module, require*/
'use strict';
/**
* @fileoverview
* The Form module:
*
* - Initializes a form with existing state
* - Captures user state changes to form elements.
* - Receives other users' state changes and alters the state here.
*
* # Element Identification
*
* Elements a... |
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, de... |
import './index';
import { $, $$ } from 'common-sk/modules/dom';
import fetchMock from 'fetch-mock';
import {
eventPromise,
eventSequencePromise,
expectQueryStringToEqual,
setQueryString,
setUpElementUnderTest,
} from '../../../infra-sk/modules/test_util';
import { fakeNow, ignoreRules_10 } from './test_data... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GQLExpressMiddleware = undefined;
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
var _map = require('babel-runtime/core-js/map');
... |
var c = document.getElementById('screen');
var w = c.width = window.innerWidth, h = c.height;
var ctx = c.getContext('2d');
// bootstrap prng
var M = new MersenneTwister();
var best = [100,100,100];
var smoothstep = function(x) {
return x*x*(3-2*x);
};
var Circle = function(spec) {
this.x = (typeof spec.x !... |
let BASE_PATH = "./shaders"
let fs = require("fs");
let pathmod = require("path");
import {parser, controlledVisit, visit} from './parser.js';
export function readShader(path) {
console.log(pathmod.resolve("./"));
path = pathmod.resolve(BASE_PATH + "/" + path);
console.log(path);
let buf = fs.readFileSync(pa... |
// eslint-disable-next-line import/order
import { test } from '../../tools/prepare-test-env-ava.js';
// eslint-disable-next-line import/order
import bundleSource from '@endo/bundle-source';
import { parse } from '@endo/marshal';
import { provideHostStorage } from '../../src/controller/hostStorage.js';
import {
buildK... |
var vue=new Vue({
el: "#app",
data: {
addForm:{
orgName:"",
phone:"",
email:"",
type:3
},
editForm:{
areaId:"",
id:"",
level:"",
typeId:"",
orgName:"",
... |
const dirname = require("../dirname");
const multer = require("multer");
const path = require("path");
const csvToJson = require("csvtojson");
const fs = require("fs");
const util = require("util");
const writeFilePromise = util.promisify(fs.writeFile);
let storage = multer.diskStorage({
destination: (req, file, cb)... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
document.addEventListener("DOMContentLoaded", initialize);
var vueImpl;
function initialize() {
Vue.component("card", {
template: document.getElementById("template-card"),
props: {
id: {
type: Number,
required: true,
},
content: {
type: String,
default: () =>... |
var geourl ="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson"
// Creating map object
var myMap = L.map("map", {
center: [45.52, -122.67],
zoom: 5
});
// Adding tile layers (the background map images) to our map
// We use the addTo method to add objects to our map
L.tileLa... |
// 数据工具包, 对各种数据类型的包装器
var log = require('logger-lib');
module.exports.fromTxt = function(txt) {
var ret = {};
// 原始文本
ret.txt = notchange(txt);
// 返回解析后的 OBJECT, 失败返回 null
ret.obj = jsonTxtToObj(txt);
// 返回 xml 字符串, 失败返回 null
ret.xml = objToXmlTxt(null, jsonTxtToObj(txt));
return ret;
};
module.exports.... |
(function () {
$(window).resize(function () {
});
$('.back-top').click(function () {
$('html, body').animate({scrollTop: 0}, 500);
return false;
});
$('a.subdirs').click(function () {
var subDirs = $(this).next();
if (subDirs.hasClass('open')) {
subDirs... |
// Modified from https://github.com/medmain/react-openseadragon/blob/master/package/src/main.js
import React, { Fragment } from "react";
import ReactDOM from "react-dom";
import PropTypes from "prop-types";
import hoistStatics from "hoist-non-react-statics";
import { loadOpenSeadragon } from "./utils/loadOpenS... |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
/**
* @license
* Copyright 2018-2021 Streamlit 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 applicab... |
const puppeteer = require('puppeteer');
// const prettier = require('prettier');
const path = require("path");
const { PuppeteerScreenRecorder } = require('puppeteer-screen-recorder');
const {
readFileSync,
// writeFileSync,
// mkdirSync,
// rmdirSync,
} = require('fs');
const { generateHtml, getRandomB... |
/**
* A plugin for Chartist which adds pie chart labels.
*
* Options:
* * lineTextMargin - margin between text and line,
* * lineLength - horizontal (next to text) line length,
* * linePointerLength - diagonal (pointer to slice) line length,
* * hideLabelThresholdPercent - percent below which label is hidden.
... |
// Global Constants
const originalClueHoldTime = 1000;
const cluePauseTime = 333; // How long to pause in between clues
const nextClueWaitTime = 1000; // How long to wait before starting playback of the clue sequence
// Global variables
var clueHoldTime = 1000; // Time to hold each clue's light/sound
var pattern = [];... |
import React from 'react'
import {
NrqlQuery,
NerdGraphQuery,
Spinner,
PlatformStateContext,
nerdlet,
Layout,
LayoutItem,
SegmentedControl,
SegmentedControlItem,
navigation,
Button,
} from 'nr1'
import ProjectDropdown from './toolbar/project-dropdown'
import Navigation from './nav/navigation'
impo... |
/**
* graph.line.shapes
* @interface DefaultLine
*/
import { Snap } from "../../MMEditor";
const DefaultLine = {
arcRatio: 4,
/**
* @param {} data
* @param {} allNodesMap
* @param {} line
*/
render(data, allNodesMap, line) {
const { from, to, fromPoint = 0, toPoint = 0 } = data;
const fromNode = a... |
// various JS utilities shared by all templates
// helper function so that we can access keys in url bar
let QueryString = function () {
// This function is anonymous, is executed immediately and
// the return value is assigned to QueryString!
let query_string = {};
let query = window.location.search.substrin... |
let currentMaze = null;
let vx = 1, vy = 1;
function preload() {
// this.load.image( 'maze1', 'assets/tilemaps/tiles/ground_1x1.png' );
this.load.image( 'maze1', 'assets/tilemaps/tiles/gridtiles.png' );
this.load.image( 'logo', 'assets/sprites/128x128.png' );
}
function create() {
let maze =... |
/* ------------------------------------------------------------------------ */
/* Javascripts
/* ------------------------------------------------------------------------ */
function home_parallax() {
"use strict";
jQuery(window).scroll(function() {
var coords, yPos = -(jQuery(window).scrollTop() / 2);
... |
var app = angular.module('app', [])
app.controller('MainCtrl', function($scope, $window){
$scope.selectedShape = null
$scope.highlight = function(points, shape){
$scope.selectedShape = { points: points, shape: shape }
}
function updat_dims(){ }
angular.element($window).on('resize', function(){
$scope... |
import UI from '../ui/UI';
import AddObjectCommand from '../command/AddObjectCommand';
import Earcut from '../utils/Earcut';
import DigTool from '../tool/DigTool';
/**
* 工具栏
* @author tengge / https://github.com/tengge1
*/
function Toolbar(options) {
UI.Control.call(this, options);
this.app = options.app;
... |
'use strict';
const fs = require('fs');
const path = require('path');
const { utils } = require('../utils');
const { getTemplateList, getTemplateDetails } = require('../template');
const STATE = {
templatePath: '../../.templates',
init: 'get-project-framework',
options: ['angular', 'react', 'vue', 'velocity', 'an... |
Ext.BLANK_IMAGE_URL = '/js/tools/resources/images/default/s.gif';
var pop_address_grid_to;
var to_simple;
var cc_simple;
var bcc_simple;
var toRec;
var ccRec;
var bccRec;
var address_tree_pop;
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.QuickTips.init();
addr... |
/**
* @createTime 2011-12-14
* @author louis.tru <<EMAIL>>
* @copyright (C) 2011 louis.tru, http://mooogame.com
* Released under MIT license, http://license.mooogame.com
* @version 1.0
*/
include('tesla/web/service/Conversation.js');
include('tesla/Delegate.js');
include('tesla/node.js');
var crypto = tesla.nod... |
/**
* pub-src-fs fs-base.js
* base module for hierachical file system sources
* provides functions for descending (globbing) directory trees and reading/writing files
* specializeable e.g. by replacing readdir and readfile through sourceOpts
* assumes that all files are utf-8 text
* files with binary-extensions a... |
const {
getRightOrNull,
getRight,
getLeft,
getLeftOrNull,
chunkBy,
isTagStart,
isTagEnd,
isContent,
last,
first,
} = require("./doc-utils.js");
const {
XTTemplateError,
throwExpandNotFound,
getLoopPositionProducesInvalidXMLError,
} = require("./errors.js");
function lastTagIsOpenTag(tags, tag) {
if (tags... |
/*
* Copyright 2018 balena
*
* @license Apache-2.0
*/
"use strict";
const fse = require("fs-extra");
const { join } = require("path");
const { homedir } = require("os");
const util = require('util');
const exec = util.promisify(require('child_process').exec);
// required for unwrapping images
const imagefs = req... |
'use strict';
// MODULES //
var path = require( 'path' ),
yeoman = require( 'yeoman-generator' ),
yosay = require( 'yosay' ),
shell = require( 'shelljs' ),
npmName = require( 'npm-name' ),
chalk = require( 'chalk' );
// FUNCTIONS //
/**
* FUNCTION: git( name )
* Initializes and runs git.
*
* @private
* @param... |
const EventEmitter = require('events')
const DeviceTelemetryModel = require('../models/DeviceTelemetry')
const DeviceStateModel = require('../models/DeviceState')
const DeviceEventModel = require('../models/DeviceEvent')
// const DebouncerList = require('../lib/debouncerList')
const { Action } = require('./Action')
con... |
import React from 'react'
import Link from 'gatsby-link'
import styled from 'styled-components'
import ImageGallery from 'react-image-gallery'
import '../../node_modules/react-image-gallery/styles/css/image-gallery.css';
import originalImage01 from '../images/apartment-marina/01.jpg'
import originalImage02 from '../im... |
'use strict';
const format = require('stringformat');
const fs = require('fs-extra');
const getUnixUtcTimestamp = require('oc-get-unix-utc-timestamp');
const path = require('path');
const _ = require('lodash');
const ComponentsCache = require('./components-cache');
const ComponentsDetails = require('./components-deta... |
import React, { Component } from "react";
import API from "../utils/API";
import { toast } from "react-toastify"
import 'react-toastify/dist/ReactToastify.css'
import { Row, Container } from "../components/Grid";
import CheckSecurity from "../components/Security";
import { closeButton } from "../components/Comments/upd... |
/* global it, describe, beforeEach, before */
// During the test the env variable is set to test
// Mocha wants DONE to be a synchronous callback, return as a promise
process.env.NODE_ENV = 'test';
const Mobile = require('../models/Mobile');
const Timeframe = require('../models/Timeframe');
const Promise = require('b... |
import * as observer from "./computedStyleObserver";
import {Referentiel} from "referentiel";
const CSSHoudiniSupport = (typeof StylePropertyMap != "undefined");
var registered = false;
if (CSSHoudiniSupport && !window.CSSBasePropertiesRegistered) {
CSS.registerProperty({ name: '--border-left-width', syntax: '<leng... |
//********************* LOCAL STORAGE KEYS *********************//
const PLANE_DATA_KEY = "planeData"; //store API
const LOCAL_PLANE_DATA_KEY = "planes"; //store local plane data
const SCHEDULE_DATA_KEY = "scheduleKey";
const ONGOING_DATA_KEY = "ongoingKey";
const COMPLETED_DATA_KEY = "completedDataKey";
const F... |
// to store references to SVG objects (nodes)
var selected = [];
/**
* Prepare the search stats with initial stats
*/
function prepare_search_stats(initial_stats) {
let stats = {
...initial_stats,
};
return {
get: () => stats,
update: (new_stats) => {
stats = {
...stats,
...ne... |
function datamesjid(url){
$.ajax({
url: url,
data: "",
dataType: 'json',
success: function (rows) {
hapusInfo();
hapusRadius();
clearroute2();
hapusMarkerTerdekat();
$('#hasilcari').empty();
$('#found').empty();
cari_ibadah(rows);
},
error: function (x... |
$(document).ready(function () {
console.log('ready!');
$('#VinCheck').hide();
$('#vinApiInput').hide();
$('#checkVin').on('click', function (e) {
e.preventDefault();
$('#vinApiInput').show();
$('#vinApiInput').css('display', 'block');
});
//This is marcos onclick on the check vin and his informaition
$('#c... |
const { ObjectType, AccessType, DataType } = require('../eds');
/**
* NMT internal states.
* @enum {number}
* @memberof Nmt
*/
const NmtState = {
INITIALIZING: 0,
PRE_OPERATIONAL: 127,
OPERATIONAL: 5,
STOPPED: 4,
};
/**
* NMT commands.
* @enum {number}
* @memberof Nmt
*/
const NmtCommand = {
... |
const fs = require("./fs");
const asyncReader = require("fs/promises").readFile;
const express = require("express");
const bcrypt = require("bcryptjs");
const fetch = require('cross-fetch');
const PORT = process.env.PORT || 3000;
const { Server } = require("socket.io");
const app = express();
const server = new (requir... |
/**
* Copyright 2018 The Subscribe with Google Authors. 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
*
* U... |
const increase = require("../common/CyclicCounter");
const BigNumber = require("bignumber.js");
const base = 256;
//calculate values in advance to speed up runtime calculations
const powerOf256 = [ //exponentTableOf256
BigNumber(256).pow(0),
BigNumber(256).pow(1),
BigNumber(256).pow(2),
BigNumber(256).... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { actionCreators as ruleActions, selector, NAME } from '../..';
import Button from 'react-md/lib/Buttons';
import SelectField from 'react-md/lib/SelectFields';
import TextField fr... |
import { useEffect, useState } from 'react';
import algoliasearch from 'algoliasearch/lite';
import ReactGA from 'react-ga';
import { CURRENT_YEAR } from './config';
let HAS_INITIAL_FETCHED = false;
export const searchClient = algoliasearch(
process.env.REACT_APP_ALGOLIA_ACCOUNT,
process.env.REACT_APP_ALGOLIA_TO... |
//Variables------------------------------
var selectedCity = document.querySelector("#selectedCity");
var date1 = document.querySelector("#date-1");
var date2 = document.querySelector("#date-2");
var date3 = document.querySelector("#date-3");
var date4 = document.querySelector("#date-4");
var date5 = document.querySele... |
var timeFormat = 'YYYY-MM-DD';
var config = [];
var charts = [];
var colors = ['rgb(1, 119, 166)', 'rgb(255, 153, 51)', 'rgb(51, 204, 51)', 'rgb(255, 80, 80)', 'rgb(204, 201, 53)', 'rgb(192, 96, 201)'];
var decisionIgnoreColor = 'rgb(189,0,0)';
var decisionAddColor = 'rgb(62,208,62)';
Chart.plugins.register({
aft... |
let player_one_choice;
let player_two_choice;
let playerOneWins = 0;
let playerTwoWins = 0;
$("#root").addClass("container text-center")
$scores = $('<div>');
$scores.attr("id", "scores")
$playerOneScore = $('<h4>');
$playerTwoScore = $('<h4>');
$playerOneScore.attr("id", "player-one-score");
$playerTwoScore.attr("id",... |
const actions = require(__dirname+'/commandsAction.js')
const filesReader = require(__dirname+'/filesReader')
const cli = require("@caporal/core").default
//SPEC 2 Vérifier la présence d’incohérences dans l’emploi du temps fourni
cli
.version('planning-parser-cli')
.version('0.05')
.command('verifier', ... |
// Gulp 4
var gulp = require('gulp');
var using = require('gulp-using');
var grep = require('gulp-grep');
var changed = require('gulp-changed');
var del = require('del');
var coffee = require('gulp-coffee');
var less ... |
'use strict';
const { App } = require('jovo-framework');
const { Alexa } = require('jovo-platform-alexa');
const { GoogleAssistant } = require('jovo-platform-googleassistant');
const { JovoDebugger } = require('jovo-plugin-debugger');
const { FileDb } = require('jovo-db-filedb');
console.log('This template uses an ou... |
/*
* 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... |
$(document).ready(function() {
window.initI18N(function() {
initPage();
bindEvents();
sidebarScrollFix();
});
});
var aceEditor;
var containExamples = true;
function initPage() {
initSideBar();
initEditor();
screenResize();
}
function initSideBar() {
var config = examp... |
import API from './API';
import React, {Component} from 'react';
import Select from 'react-select';
import {Link} from 'react-router';
const ACTIONS = [{
value: 'call',
label: 'Call'
}, {
value: 'vote',
label: 'Vote'
}];
class NewUpdate extends Component {
componentWillMount() {
this.setState({
ca... |
import { Component } from 'react';
import PropTypes from 'prop-types';
import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome';
import { faCrosshairs, faEye, faSpinner } from '@fortawesome/free-solid-svg-icons';
import './locateNodeIcon.css';
import { Dropdown, DropdownItem, DropdownMenu, DropdownToggl... |
/**
* A smaller set of file type info taken from vscode-icons, for identifying icon files.
* Added .crx and .xpi support.
* @module FileTypeIcons
* @see {@link https://github.com/vscode-icons/vscode-icons}
*/
/**
* File type icon name
* @typedef {string} FileTypeIconName
*/
/**
* File type icon extension
* ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const classNames = require("classnames/bind");
const Attributes_1 = require("../../Attributes");
const css = classNames.bind(require('./Dropdown.module.scss'));
var DropdownPosition;
(function (DropdownPosition)... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.selectLoader = selectLoader;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _toConsumableArray2 = _intero... |
var currentTab = null;
var draggedTab = null;
const stylesheet = `
#tabheader {
/* From ._182tlv7 */
position: relative;
text-transform: uppercase;
font-size: 13px;
padding-left: 23px;
display: flex;
align-items: center;
-webkit-box-align: center;
margin-bottom: 6px;
font-weight... |
const wishSpan = document.querySelector('.span-wish')
const spanCart2 = document.querySelector('.span-cart')
document.addEventListener('DOMContentLoaded', () => {
wishSpan.style.opacity = 1
// onLoad addtocart number
addToCartNumber()
})
function addToCartNumber(){
let addToCartNumbers = localStorag... |
/**
* Controla a exibição de mapas no modo dinamico
*
*/
function showDinamicMaps() {
if (loopDinamicMaps == 1) {
alteraLegenda(dadosMapas[1][1]);
alteraTitulo(dadosMapas[1][2]);
geoXml.hideDocument(geoXml.docs[0]);
console.log('geoXml.hideDocument(geoXml.docs[0])');
ge... |
import React, { Component } from 'react';
import './LoadModule.css';
import {generateDOT} from '../../utils/graphviz';
import StyledDropzone from './StyledDropZone';
class LoadModule extends Component {
constructor(props) {
super(props)
this.state = {json: '', selectedOption: 'core'}
}
loadModule = (js... |
"use strict";var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;var f;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='funct... |
var fs = require('fs'),
path = require('path'),
spawn = require('child_process').spawn,
assert = require('assert'),
rimraf = require('rimraf'),
mkdirp = require('mkdirp'),
ncp = require('ncp').ncp,
EventEmitter = require('events').EventEmitter;
// path to the grunt executable
var gruntpath = path.resolve... |
"use strict";
const express = require('express');
const http = require('http');
const os = require('os');
const bodyParser = require('body-parser');
const jsonParser = bodyParser.json();
const ruuviParser = require('ruuvi.endpoints.js');
//GW sends malformed JSON, work around it
const gwjsonParser = bodyParser.text({
... |
import React, { useState, useEffect, Fragment } from "react";
import { Button } from "antd";
import IntroNeolasticsComponent from "./IntroNeolasticsComponent";
import CollectionsComponent from "./CollectionsComponent";
import { ethers } from 'ethers';
import meta from "./meta.png";
function IntroPage(props) {
c... |
import EventEmitter from 'eventemitter3'
import paper from 'paper'
import Mousetrap from 'mousetrap'
import localeval from 'localeval'
import linesIntersection from 'lines-intersection'
import jsonBeautify from 'json-beautify'
import Color from 'color'
class Tool extends EventEmitter {
constructor(tool, project, par... |
const flatCheckbox = document.querySelector('#checkbox');
const darkCheckbox = document.querySelector('#checkbox2');
const cornerCheckbox = document.querySelector('#checkbox3');
const flatTheme = localStorage.getItem('flat');
const darkTheme = localStorage.getItem('dark');
const cornerTheme = localStorage.getItem('corn... |
var TPL ='<li>'+
'<a href="{storeDetailsURL}" >'+
'<table cellpadding="0" cellspacing="0">'+
'<tr>'+
'<td class="img"><img src="{imgurl}"></td>'+
'<td class="info">'+
'<div class="name">{name}</div>'+
'<div class="address">'+
'<span class="icon addr"></span>'+
... |
import React, { Component } from 'react';
import Prism from 'prismjs';
import {
CodeBlock,
Section,
Link,
ComponentDescription,
SideScrollMenu,
PageTitle,
ComponentSubtitle,
CodeInline,
Helmet,
} from '@components';
const sections = [
{ name: 'Install' },
{ name: 'Setup' },
{ name: 'Usage' },
... |
'use strict';
process.on('warning', (warning) => {
console.log(warning.stack);
});
const fs = require('fs');
const express = require('express');
const helmet = require('helmet');
var cookieParser = require('cookie-parser');
var expressSession = require('express-session');
var bodyParser = require('body-parser');
va... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getSearchResults = exports.getPostsInCurrentChannel = undefined;
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.pro... |
/////////////////////////////////// Dynamic Panels - Profile Centre ///////////////////////////////////
var $selects = $('.filters select');
$selects.on('change', getValues).first().trigger("change");
function getValues() {
var vals = $selects.map(function() {
return this.value;
}).get();
if ... |
/**
* Build styles
*/
require('./index.css').toString()
function debounce(func, wait, immediate) {
var timeout;
return function executedFunction() {
var context = this;
var args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};... |
import handle, {adaptEvent, forProp, forward, not} from '@enact/core/handle';
import kind from '@enact/core/kind';
import Spotlight from '@enact/spotlight';
import SpotlightContainerDecorator from '@enact/spotlight/SpotlightContainerDecorator';
import Group from '@enact/ui/Group';
import {Cell, Layout} from '@enact/ui/... |
import React from "react";
import { withRouter } from "react-router-dom";
import styled from "styled-components";
import { theme, mq } from "../../constants/theme";
import SvgIcon from "../Icon/SvgIcon";
import SearchSvg from "../../assets/icons/search.svg";
import CloseSvg from "../../assets/icons/close-btn.svg";
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.