text stringlengths 3.22k 29.5k |
|---|
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/*
* Copyright (C) 2008 Nokia Inc. All rights reserved.
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
*
* Redistribution and use in s... |
var machineLists = [{
"family" : "LINEA",
"machines" : [
"Linea 1",
"Linea 2",
"Linea 3",
"Linea 4",
"Linea 5",
"Linea 6",
"Linea 7",
"Linea 8",
"Linea 9",
"Linea 10",
"Linea 11"
]
... |
import fs from 'fs';
import marked from 'marked';
import escape from 'escape-html';
/* --- Symbols for Private Members --- */
// Private Values
const OPTIONS = Symbol('Options');
const FILE_NAME = Symbol('Filename');
const TOTALS = Symbol('Total count of passing and failing tests');
const STYLE_SHEETS =
'<link rel=... |
const fs = require('fs').promises
const _ = require('lodash')
const Papa = require('papaparse')
const moment = require('moment')
const GeoJsonGeometriesLookup = require('geojson-geometries-lookup');
function removeSpuh (arr) {
const newArr = []
for (var i in arr) {
// TODO Mixed results comparing MyEBirdData a... |
const { URL } = require('url');
const ogs = require('open-graph-scraper-bypasshtmlcheck');
const fetch = require("node-fetch");
const AbortController = globalThis.AbortController;
const UserAgents = require('user-agents');
const { containsKeyIndicators, cleanMessage, MINIMUM_INDICATORS } = require('./bodyparserApi');
c... |
const Archangel = artifacts.require('./Archangel.sol');
const no_previous_key = '0x0000000000000000000000000000000000000000000000000000000000000000';
contract('Archangel', (accounts) => {
const owner = accounts[0];
const reader = accounts[1];
const other_actor = accounts[2];
describe('permissions check', () ... |
// Set this to true for detailed console debugging.
const debug = false
? (...args) => {
console.log(
`%c${args[0]}`,
'background-color: #a7f6fa; color: #111; padding: 2px;',
...args.slice(1),
)
}
: () => {}
const $ = document.querySelector.bind(document)
const $$ = document... |
const fs = require("fs");
const path = require("path");
const { compile } = require("clio-core");
const { error, info, warn } = require("../lib/colors");
const { getPlatform, npmCommand } = require("../lib/platforms");
const { Progress } = require("../lib/progress");
const {
MODULES_PATH,
fetchNpmDependencies,
g... |
/*
* @forgerock/javascript-sdk
*
* index.ts
*
* Copyright (c) 2020 ForgeRock. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || fu... |
import typeUtils from '../../../core/utils/type';
const ROW_HEIGHT = 50;
export default class VirtualScrolling {
constructor(workspace, viewportHeight, scrollable) {
this._workspace = workspace;
this._viewportHeight = viewportHeight;
this._scrollable = scrollable;
this._init();
... |
// import React, { useState, useEffect } from 'react';
import React, { useState } from 'react';
import RepoTable from '../RepoPage/RepoTable';
import MeterDataService from '../../services/MeterDataService';
import { SimpleBarChart } from '@carbon/charts-react';
import '@carbon/charts/styles.css';
import './_ibm-plex-fo... |
//Game settings & data
var app = {};
//Game trackers
//state checker for 1st phase of selecting your character
app.goNoGoSC = true;
//state checker for 2nd phase of selecting your enemy
app.goNoGoSE = false;
//number of defeated enemies
app.defeatedEnemies = 0;
//era-selecting function
app.hideDifferent... |
/**
* 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.
*/
import $ from 'jquery';
import instantsearch from 'instantsearch.js';
import {hits, searchBox, r... |
import React from 'react';
import './App.css';
import { makeStyles } from '@material-ui/core/styles';
//Cards of movies
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-... |
var utils = {
//baseUrl: 'http://47.104.133.96/shaker_test',
baseUrl: 'http://127.0.0.1:9003/gateway',
productCode: function() {
return window.localStorage.getItem('productCode');
},
updateBy: function() {
return window.localStorage.getItem('updateBy');
},
isChecked: function... |
$().ready(function () {
$("#cpaff_reject_form").validate({
rules: {
profile_photo: "required",
name_mm: "required",
nrc_state_region: "required",
nrc_township: "required",
nrc_citizen: "required",
nrc_number: {
required:... |
var http = require("http");
var redis = require("redis");
var fs = require("fs");
var fail = require("../common").fail;
console.log("loaded module: pubsub");
/*
Two kinds:
-> realtime : as they come in you get it and it is removed from the queue
Q: anything coming in when you are not t... |
/**
* gameon - Inquirer custom prompt mix-in classes.
*
* Copyright (C) 2020-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 lim... |
import * as ECS from '../../../packages/ecs-js/index'
import {x} from '../../xapp/xworld'
import {XError} from '../../xutils/xcommon'
import XSys from '../../sys/xsys'
import {MorphingAnim} from '../../sys/tween/animizer'
import {CoordsGrid} from '../../xmath/chartgrid'
import {vec3} from '../../xmath/vec'
import xgeo... |
import { useEffect, useState } from 'react'
import { Map as PigeonMap, ZoomControl, Overlay } from 'pigeon-maps'
import { useDebounce } from 'use-debounce'
// Assets
import { Marker } from 'assets/images'
import {
AnalyzerIcon,
ArrowIcon,
MapIcon,
OutlineIcon,
TargetIcon,
} from 'assets/icons'
// Common
imp... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
'use strict';
const Hoek = require('@hapi/hoek');
const Topo = require('@hapi/topo');
const Traverse = require('./traverse');
const internals = {};
module.exports = (() => {
// This is an IIFE so that if joi-config switches back to
// an array we wont need to make major whitespace changes.
return (joi) ... |
function setup() {
createCanvas(400, 400);
background(220);
frameRate(0.5);
// frameRate(1);
// print('setup frameCount', frameCount);
// Need to draw in setup to avoid blank frame
// frameCount === 0 at this point
draw_step();
}
function draw() {
// When first draw called frameCount == 1
draw_s... |
import { capture } from '../global/capture';
import { isEqual, isNumeric } from '../utils/is';
import { removeFromArray } from '../utils/array';
import { handleChange, mark, teardown } from '../shared/methodCallers';
import getPrefixer from './helpers/getPrefixer';
import { isArray, isObject } from '../utils/is';
impor... |
import React from 'react';
import PropTypes from 'prop-types';
import {
//lighten,
makeStyles
} from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material... |
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
function appendPath(path, key)
{
if (typeof key == 'string') {
return path + "." + key;
}
else if (typeof key == 'number') {
return path + '[' + key + ']';
}
throw new Error("can't append path");
}
funct... |
import React from "react";
import Axios from "axios";
import {
Icon,
Accordion,
Grid,
Divider,
Sticky,
Button,
List,
Input,
Modal,
Form,
} from "semantic-ui-react";
import { Link } from "react-router-dom";
import Notifications from "./Notifications";
import Requests from "./Requests";
// Get rid o... |
//npm modules
const express = require('express');
const uuid = require('uuid/v4')
const session = require('express-session')
const FileStore = require('session-file-store')(session);
const bodyParser = require('body-parser');
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy... |
let startTime = 0;
let previousEnemyX = 0; //offSet calculation
let changeDirection = false;
let alreadyMovedDown = false; //prevents multiple movements ( they'd move 4 times - 4 rows)
let enemyWidth;
let enemyHeight;
let speedX;
class Enemy {
constructor(x, y, row) {
this.width = enemyWidth;
this.height = e... |
/* UI SCRIPTS */
class UI {
static init() {
let n = document.getElementsByTagName('novel')[0];
if (!n) {
n = document.getElementById('novel-area');
}
if (n) {
let d = document.createElement('div');
d.id = "novel-area";
d.innerHTML = `<div id="novel-style-area">
<div ... |
/* global describe, it, beforeEach, afterEach */
const assert = require('assert')
const sinon = require('sinon')
const proxyquire = require('proxyquire')
proxyquire.noPreserveCache()
describe('HttpApi', function () {
describe('Class', function () {
let httpApi = require('../../../lib/httpApi/index.js')
it(... |
const after = require('after')
, xtend = require('xtend')
, DEFAULT_FREQUENCY = 10000
, QUERY_SEPARATOR = 'x!'
function expirationKey (db, exp, key) {
var separator = db._ttl.options.separator
return queryStart(db) + exp + separator + key
}
function queryStart (db) {
return prefix(db) + QUERY_SEP... |
const CANVAS_NAME = "canvas";
const DONATE_BTN = "donateBtn";
console.log("yeah game is loaded");
var gameCanvas = document.getElementById(CANVAS_NAME);
var donate_btn = document.getElementById(DONATE_BTN);
var gameCtx = gameCanvas.getContext("2d");
// gameCtx.canvas.width = window.innerWidth;
// gameCtx.canvas.heig... |
import * as THREE from 'https://cdn.skypack.dev/three@0.133.1';
import { OrbitControls } from 'https://cdn.skypack.dev/three@0.133.1/examples/jsm/controls/OrbitControls.js';
const PORT = 5000
const URL = '127.0.0.1'
const canvas = document.getElementById("3dCanvas");
const indices =
[ 0,1,
1,4,
4,7,
7... |
/**
* @description 公用函数
* @author <EMAIL>
*/
import currency from 'currency.js'
const rnothtmlwhite = (/[^\x20\t\r\n\f]+/g)
const types = 'Boolean Number String Function Array Date RegExp Object Error Symbol'
.match(rnothtmlwhite)
export const class2type = {}
let i = 0
let name
const len = typ... |
'use strict';
var app = angular.module("app", ["ui.bootstrap", "app.pages.logger", "app.pages.ctrls"]);
app.factory("logger", [function () {
var logIt;
return toastr.options = {
closeButton: !0,
positionClass: "toast-bottom-right",
timeOut: "3000"
}, logIt = function (message, type)... |
var order = {};
function plotCharts(container, charts) {
d3.select(document.getElementById(container))
.selectAll('div')
.data(charts)
.enter()
.append('div')
.attr('class', 'vis bor wht rnd shd pad')
.html(function(d){
d.... |
import React from "react";
import Charts from "./Charts";
import axios from "axios";
import ModalChart from "./ModalChart";
import * as Sentry from '@sentry/browser';
var url = "https://nodestats.tokenanalyst.io";
class Row extends React.Component {
constructor(props) {
super(props);
this.datatype = props.... |
'use strict';
var helper = require('./helper.js');
function putAfter(db, doc, prevRev, callback){
doc._revisions = {
start: +doc._rev.split('-')[0],
ids: [
doc._rev.split('-')[1],
prevRev.split('-')[1]
]
};
helper.request.post(db.id(), {
qs: {
new_edits: false
},
body... |
function sc_PBindUtil() {}
sc_PBindUtil_c = sc_newClass("sc_PBindUtil", sc_PBindUtil, null, null);
sc_PBindUtil_c.trackAllObjects = true;
sc_PBindUtil_c.allObjects = {};
sc_PBindUtil_c.getPropertyValue = function(obj, prop) {
if (sc_instanceOf(prop, sc_IListener))
return prop.getPropertyValue(obj);
if (... |
import React, { useState, useContext } from "react";
import { Auth0Context } from "../../../react-auth0-spa";
import { useMutation, gql } from "@apollo/client";
import { Link } from "react-router-dom";
import { useParams } from "react-router-dom";
import { getUsername } from "../../usernameUtils";
import ReusedEventFor... |
/*jslint node: true */
/*jshint esversion: 6 */
'use strict';
var fs = require('fs');
var querystring = require('querystring');
var bodyParser = require('body-parser');
var logger = require('morgan');
var HttpStatus = require('http-status-codes');
var rateLimit = require("express-rate-limit");
var session = require('e... |
// Letter
// var GENERALS_PER_PAGE = 54;
// var HEADINGS_PER_PAGE = 18;
// var ACTIONS_PER_PAGE = 27;
// var CHARACTERS_PER_PAGE = 27;
// var PARENTHETICALS_PER_PAGE = 54;
// var DIALOGUES_PER_PAGE = 54;
// var TRANSITIONS_PER_PAGE = 26;
// var SHOTS_PER_PAGE = 18;
// A4
var GEN... |
// Copyright 2018, 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 in writ... |
const currentLanguage = (splittedHref) => {
if (window.location.pathname === '/') return 'en'
if (window.location.pathname === '/blogs/tag/es') return 'es'
if (window.location.pathname === '/blogs/tag/es/') return 'es'
if (window.location.pathname === '/blogs/tag/en') return 'es'
if (window.location.pathname ... |
import React, {Component} from 'react';
import '../../../style/add_portfolio.css';
import CriteriasStore, {fetchSendWithoutRes} from '../../../stores/criteriasStore'
import CriteriasForm from "../addAchievement/criteriasForm";
import {withRouter} from "react-router-dom";
import ConfirmationForm from "../confirmation/Co... |
const chalk = require('chalk');
const log = console.log;
const isBenchmarkingGateway = () => {
return (process.env.BENCHMARKING_GATEWAY == "true");
};
const isBenchmarkingHandshake = () => {
return (process.env.BENCHMARKING_HANDSHAKE == "true");
};
const isBenchmarkingVendor = () => {
return (process.env.BENCHMA... |
//<NAME> A01023234
var renderer = null, scene = null, camera = null, SolarSystem = null, cube = null, sphereGroup = null, sphere = null, orbitControls = null, timeForMercury = null,timeForVenus = null, timeForEarth = null, timeForMars = null, timeForJupiter = null, timeForSaturn = null, timeForUranus = null, timeForPlu... |
import React, { useEffect, useRef } from "react";
import * as d3 from "d3";
import {
Section,
Container,
TextWrapper,
Title,
Guide,
CartogramSVG,
ControlBarSVG,
ReferenceWrapper,
} from "./GridElements.js";
const Cartogram = () => {
// 카토그램
const mapRef = useRef();
const buttonRef = useRef();
... |
// set the dimensions and margins of the graph
const margin1 = {top: 30, right: 30, bottom: 70, left: 60},
width1 = 1200 - margin1.left - margin1.right,
height1 = 580 - margin1.top - margin1.bottom;
//width = window.innerWidth - margin.left - margin.right - 200;
//height = window.innerHeight - margin.top - marg... |
// GLOBAL VARIABLES
var camera, scene, renderer;
var geometry, material, mesh, cameraControl;
var particleSystem,particleCount,particles, particle;
var clock = new THREE.Clock(),optionsProjectile, projectileSpawnerOptions, particleSystem,
container, tick = 0, tock = 0, delta, delta2;
var stats;
var projectileSpawner... |
(function(b) {
b.host = location.protocol + "//" + location.host;
b.param = function(c) {
c = c.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var e = new RegExp("[\\?&]" + c + "=([^&#]*)"),
d = e.exec(location.search);
return d == null ? "": decodeURIComponent(d[1].replace(/\+/g... |
var NW = 0, NE = 1, SE = 2, SW = 3
var L = require("leaflet");
L.RectangleEditor = L.Polygon.extend ({
options: {
color: '#333',
weight: 1,
fillColor: '#ffb400',
fillOpacity: 0.2,
constraints: {
aspectRatio: 1
},
projection: L.CRS.EPSG3857.projection
},
initialize: function(bo... |
var sys_code = userLoginInfo.sysCode;
var userLoginUuid = userLoginInfo.uuid;
var userID = userLoginInfo.userID;
function getAddrInfo(uid){
// 取地址資料
var sendData = {
api: "AssCommonAddress/GetData_AssCommonAddress",
threeModal: true,
data:{
iCmid: uid,
iAddr_ty... |
function clickOverview(){
$('#panel-hit').click(function(){
$("#container").css('animation','');
$("#screen-overview").scrollTop(0);
$("#screen-overview").removeClass('hide');
screenState = SCREEN_STATE_ENUM.OVER;
});
$("#close-overview").click(function(){
$("#screen-overview").toggleClass('hide');
... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
document.querySelector('#button-submit').addEventListener('click', (event) => Form.submit(event))
document.querySelector('#active-items').addEventListener('click', () => FilteredTodos.toggle("active"))
document.querySelector('#all-items').addEventListener('click', () => FilteredTodos.toggle("all"))
document.querySelec... |
d3.selection.prototype.moveToFront = function() {
return this.each(function(){
this.parentNode.appendChild(this);
});
};
const labels = ['birdCall',
'blueSunglasses',
'canadaPencil',
'cloudSign',
'cupcakePaper',
'eyeball',
'hairClip',
'lavenderDie',
'metalKey',
'noi... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2020 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... |
import React, { Component, Fragment } from 'react';
import './styles.css';
/*
The BlockForm component is a form that is here to help you create a FocusBlock.
*/
class BlockForm extends Component {
constructor(props) {
super(props);
// This component can be rendered on creation and on edit. Set state depending ... |
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const fse = require('fs-extra');
const shell = require('shelljs');
const readline = require('readline');
const { exec } = require('child_process');
const chalk = require('chalk');
const utils = require('../generators/utils/fileUtils');
const an... |
//Import is to bring information from the particular address into this file. This file is then able to export information.
/* Importing React allows us to access its library and pull in the "react" module from our node_modules directory. If we don't
have react added as a dependency in our package.json, there will be n... |
import React from "react";
import * as ROUTES from "../../../constants/routes";
import NewChatComponent from "../NewChat/newChat";
import FileCenterComponent from "../FileSharing/fileSharing";
import Button from "@material-ui/core/Button";
import ChatListComponent from "../ChatList/chatList";
import ChatViewComponent f... |
$(function($){
//表单验证
$('#validation-form').validate({
errorElement: 'div',
errorClass: 'help-block',
focusInvalid: false,
rules: {
'Goods[name]': {
required: true
}
},
messages: {
'Goods[name]':{
... |
import React, { useCallback, useState } from 'react'
import { View, ScrollView, Dimensions } from 'react-native'
import {
Text,
ActivityIndicator,
Card,
List,
Portal,
Dialog,
Paragraph,
Button
} from 'react-native-paper'
import { RFValue } from 'react-native-responsive-fontsize'
import { TouchableOpacit... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TreeViewListItem = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const tree_view_1 = tslib_1.__importDefault(require("@patt... |
function bitarray_copy(x) {
var len = bitarray_length(x);
var ret = bitarray_alloc(len);
for (var i = 0; i < len; i++) {
bitarray_set_bit(ret, i, bitarray_at(x, i));
}
return ret;
}
// works on uint32_t
function weak_rng_stream(seed) {
var x = seed;
var mod = 4294967296; // 2 ^ 32
function to1bit (z) {
if... |
import { __assign, __awaiter, __generator, __spreadArrays } from "tslib";
import { __GLOBAL__, isEmpty, isFunction, isObject } from '@lxjx/utils';
import _debounce from 'lodash/debounce';
import _throttle from 'lodash/throttle';
import { useEffect, useState } from 'react';
import { useEffectEqual, useFn, useSelf, useSe... |
'use strict'
const childProcess = require('mz/child_process')
const deterministic = require('./deterministic')
const ErisDb = require('..')
const fs = require('mz/fs')
const G = require('g-functions')
const httpRequest = require('request-promise')
const I = require('iteray')
const jsonRpc = require('@nodeguy/json-rpc'... |
const gifts = [
{
id:1,
title:"Orkide",
price:"149,90 TL",
img:"https://cdn03.ciceksepeti.com/cicek/at3740-1/M/at3740-1-8d8d1c2f2f7cf6e-b3634bfc.jpg",
category:"Çiçek",
desc:"Gold çizgili vazoda 2 dal mor orkide çiçeği"
},
{
id:2,
ti... |
const kjs_canvas = document.querySelector("#canvas");
let kjs_screen = { x:0, y:0 , scaleX:1, scaleY:1 };
let kjs_gpad = {
state : [],
id : [],
}
/** @export */
function kjs_init(width, height)
{
kjs_canvas.width = width;
kjs_canvas.height = height;
let callback = window.addEventListe... |
import moment from 'moment';
import { fromJS } from 'immutable';
import { isoCodeConverterData } from '../Variables/countries';
import { GET_METRICS_ERROR, GET_METRICS_REQUEST, GET_METRICS_SUCCESS, SET_CHARTS_DATES } from '../constants';
const defaultState = {
dates: {
startDate: moment()
.startOf('day')
.s... |
//variable declarations
var question = document.querySelector('#question');
var quizDescription = document.querySelector('#quiz-description');
var answerList = document.querySelector('#answerList');
var startQuiz = document.querySelector('#startQuizBtn');
var timer = document.querySelector('#timer');
var submitNameForm... |
/**
*
* EventCard
*
*/
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Link } from 'react-router-dom';
import classnames from 'classnames';
import {
Card,
CardImg,
CardText,
CardBody,
CardTitle,
CardSubtitle,
Button,
Badge,
} fro... |
/* global Bullet, Player, Asteroid, Star */
var logger = null;
/**
* Kody klawiszy używane do gry
*/
var Keys = {
UP: 38,
DOWN: 40,
LEFT: 37,
RIGHT: 39,
SPACE: 32,
codes: [32, 37, 38, 39, 40]
};
function Game() {
this.keysPressed = [];
this.player = [];
this.bullets = [];
this.asteroids = [];
... |
/* Need a header here */
/*jslint node: true */
/* Comment need: why are these lines here? */
var express = require('express'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
methodOverride = require('method-override'),
session = require('express-session'),
passport =... |
import { u as indexAjaxData, bl as guildRE, K as getTextTrim, M as arrayFrom, b1 as attribType, bm as enhancementType, b as createDiv, aj as isUndefined, D as querySelector, t as createDocument, A as setInnerHtml, p as pCC, ar as guideUrl, aq as defSubcmd, bn as guildViewUrl, s as partial } from './calfSystem-d357ca6f.... |
// Modifications copyright 2020 Caf.js Labs and contributors
/*!
Copyright 2013 Hewlett-Packard Development Company, L.P.
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.or... |
log('Font Mixer Start ------------------------------------------------');
import BrowserWindow from 'sketch-module-web-view'
import * as ud from './modules/user-defaults'
const UI = require('sketch/ui')
// const pluginIdentifier = "net.creative-tweet.font-mixer"
export default function(context) {
// Language setting... |
/*
Copyright 2020 <NAME>
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 un... |
var RadialMenu=function(layer,collection){
this.layer=layer
this.point=view.center
this.group = new Group();
this.group.visible=false
var reference=0
//Create Each segment
// function createSegment(point,fillColor){
// //Segment One
// var start = new Point(point.x, point.y-130);
// var... |
/**
* @author <NAME> <<EMAIL>>
* @copyright Copyright (c) 2015 - 2019, Maple ApiDoc
* @license http://opensource.org/licenses/MIT MIT License
* @link https://www.ioa.tw/
*/
const Path = require('path')
const Exec = require('child_process').execSync
const Display = require('../... |
// Functions for calculating NOMINATE Pr(Yea)
// cdf and erf from http://stackoverflow.com/questions/14846767/std-normal-cdf-normal-cdf-or-error-function
function cdf(x,mean,variance) {
return 0.5 * (1 + erf((x - mean) / (Math.sqrt(2 * variance))));
}
function erf(x) {
var sign = (x >= 0) ? 1 : -1;
x = M... |
let reducedDanceList = ['Salsa', 'Lindy Hop', 'Hip Hop']; // Dance List
let map = {};
/**
* @description Initialize google maps
*
*/
function initialize() {
let mapOptions = {
zoom: 14,
center: new google.maps.LatLng(1.286055, 103.8510605),
mapTypeControl: false,
disableDefaultU... |
import Tooltip from 'tooltip.js';
import Ember from 'ember';
import { getOwner } from '@ember/application';
import { computed } from '@ember/object';
import { deprecatingAlias } from '@ember/object/computed';
import { assign } from '@ember/polyfills';
import { run } from '@ember/runloop';
import { warn } from '@ember/d... |
import SeeksGraphMath from '../SeeksGraphMath'
function SeeksAutoLayouter(layoutSetting, graphSetting) {
this.graphSetting = graphSetting
this.config = layoutSetting || {}
this.rootNode = null
this.allNodes = []
this.__origin_nodes = []
this.refresh = function() {
this.placeNodes(this.__origin_nodes, t... |
;
dragtable = {
// How far should the mouse move before it's considered a drag, not a click?
dragRadius2: 100,
setMinDragDistance: function (x) {
dragtable.dragRadius2 = x * x;
},
// Determine browser and version.
// TODO: eliminate browser sniffing except where it's really necessary.
... |
/*
*
* UserInfo
*
* path --> userInfo
*
* the page to show the user info for everyone, most linked by the avatar compnent
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { browserHistory } from 'react-router';
impor... |
/**
* 媒体消息预览主进程
*/
const path = require('path');
const { BrowserWindow, ipcMain, screen, dialog, app, clipboard, Notification, nativeImage } = require('electron');
const { IPC_CHANNELS } = require('./enums');
const { download } = require('electron-dl');
const config = require('../config/env');
const { checkFileExist... |
/**
* @module ol/layer/Heatmap
*/
import {listen} from '../events.js';
import {getChangeEventType} from '../Object.js';
import {createCanvasContext2D} from '../dom.js';
import VectorLayer from './Vector.js';
import {assign} from '../obj.js';
import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer';
/**
... |
/*global countries */
var http = require('http');
var fs = require('fs');
var url = require('url');
var querystring = require('querystring');
var async = require('async');
var cheerio = require('cheerio');
var nodemailer = require('nodemailer');
var d3 = require('d3');
var transporter = nodemailer.createTransport();
v... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.A11yCollapseGroup = void 0;
var _litElement = require("lit");
var _a11yCollapse = require("../a11y-collapse.js");
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {... |
var CG_CAPTCHA_TOKEN = null;
var CG_CAPTCHA_IMAGE = null;
var CG_CAPTCHA_NEXT_FUN = null;
var CG_CAPTCHA_BACK_FUN = null;
var CG_CAPTCHA_C_LOADING = false;
var CG_CAPTCHA_T_LOADING = false;
var CG_CAPTCHA_COOLDOWN = 0;
var CG_CAPTCHA_IMAGE_SRC =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAtCAYAAAAp... |
import window from 'global';
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import memoize from 'memoizerific';
import copy from 'copy-to-clipboard';
import { styled } from '@storybook/theming';
import { SET_CURRENT_STORY } from '@storybook/core-events';
import { types } from '... |
import React, { Component } from "react";
import { connect } from "react-redux";
//import TableData from "./components/TableData";
import Label from "egov-ui-kit/utils/translationNode";
import ServiceList from "egov-ui-kit/common/common/ServiceList";
//import FilterDialog from "./components/FilterDialog";
import MenuB... |
import React from 'react'
import { Howl } from 'howler'
import raf from 'raf' // requestAnimationFrame polyfill
import { throttle, difference, findIndex, pull } from 'lodash';
import { setDebug, propTypes, defaultProps } from 'proptypes-helper';
import Cassette from 'cassette-tape';
import { PlayerUI } from './playerU... |
'use strict';
require('dotenv').config();
require('ejs');
// ------------ DEPENDENCIES --------------
const pg =require('pg');
const cors = require('cors');
const express = require('express');
const superagent = require('superagent');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-par... |
const COMMENT_APPEARANCE_TIME = 1500;
const COMMENT_TO_STOP_AT = 5;
const FEEDBACK_APPEARANCE_TIME = 1500;
const COOLDOWN_TIME = 1000;
const TEN_MINUTES_IN_SECONDS = 60 * 10;
/**
* Sets the headers for the cache.
* We only want to pull from the client-side cache if two requests
* are made within 10 mins of eachothe... |
/**
* @description Set of short commonly used methods for handling HTML elements
* @author <NAME>
* @version v0.0.1b
*/
// Add startsWith for IE browser
if (!String.prototype.startsWith) { String.prototype.startsWith = function (str) { return this.lastIndexOf(str, 0) === 0; }; }
if (!String.prototype.endsWith) { Stri... |
const { uuid } = require('lib/uuid.js');
const moment = require('moment');
const { promiseChain } = require('lib/promise-utils.js');
const { folderItemFilename } = require('lib/string-utils.js');
const BaseModel = require('lib/BaseModel.js');
const Note = require('lib/models/Note.js');
const Tag = require('lib/models/T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.