text stringlengths 3.22k 29.5k |
|---|
/*
Hooking into searchpartyd and other daemons related to AirTags. Never ending story :(
These hooks are so generic that they work on all daemons that use a SPBeacon that
contains the AirTag info like serial number, version, etc.
Attach as follows:
frida -U searchpartyd --no-pause -l hook_durian_update_searchparty... |
'use strict';
import mongoose, {Schema} from 'mongoose';
const shipSchema = Schema({
shipType: String,
length: Number,
coordinates: [String],
health: Number,
placed: Boolean,
});
const gridSchema = Schema({
a: {type: [Number], required: true, default: [1,2,3,4,5]},
b: {type: [Number], required: true, d... |
/*
Software License Agreement (Apache 2.0)
Copyright (c) 2020, The MITRE Corporation.
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
https://www.apache.org/licenses/LICENSE-2... |
var clock;
import { relativeAge, autoUpdatingRelativeAge, updateRelativeAge, breakUp, number } from 'nilavu/lib/formatter';
module("lib:formatter", {
setup: function() {
clock = sinon.useFakeTimers(new Date(2012,11,31,12,0).getTime());
},
teardown: function() {
clock.restore();
}
});
var format = "t... |
var express = require('express'),
router = express.Router(),
fs = require('fs'),
multer = require('multer'),
mime = require('mime'),
path = require('path'),
crypto = require("crypto"),
config = require('../config/config'),
User = require('../models/user.model'),
For... |
var schema5 = {
definitions: {
hobby: {
type: "object",
properties: {
name: { type: "string" },
durationInMonth: { type: "integer" },
}
}
},
title: "A registration form",
description: "A simple form example.",
type: "object",
required: [
... |
/**
* Controller for the Add Contributor modal.
*/
'use strict';
var $ = require('jquery');
var ko = require('knockout');
var moment = require('moment');
var Raven = require('raven-js');
var koHelpers = require('./koHelpers');
require('knockout.punches');
require('jquery-autosize');
ko.punches.enableAll();
var Raven... |
"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];
})... |
// To parse this data:
//
// const Convert = require("./file");
//
// const openMIDIRealtimeSpecification = Convert.toOpenMIDIRealtimeSpecification(json);
//
// These functions will throw an error if the JSON doesn't
// match the expected interface, even if the JSON is valid.
// Converts JSON strings to/from your ... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
// 获取图片相关信息
var imageDatas = require("../data/imageDatas.json");
// 利用自执行函数,将图片名信息转成图片URL路径信息
imageDatas =( function genImgUrl(imgDataArr){
for (var i = 0 ;i < imgDataArr.length ; i++... |
/**
* Created by chkui on 2017/7/7.
*/
import React from 'react'
import {render} from 'react-dom'
import Im from '../src/im'
import Chat from '../src/chat'
import style from './demo.scss'
import cnTool from 'classnames/bind'
const cn = cnTool.bind(style)
/**
* 用于演示Im工具的组件。
* 1)例子同时提供了浏览器源生websocket和socket.io链接的功... |
import {
assetDataUtils,
BigNumber,
generatePseudoRandomSalt,
signatureUtils,
} from '0x.js';
import {
Web3Wrapper,
} from '@0x/web3-wrapper';
import {
contractWrappers,
contractAddresses,
httpClient,
providerEngine,
web3Wrapper,
} from './connector';
import {
getRandomFutureDateInSeconds,
} from ... |
'use strict';
const electron = require('electron');
const config = require('./config');
const ipc = electron.ipcRenderer;
const shell = electron.shell;
const webFrame = electron.webFrame;
ipc.on('new-note', () => {
// Create new note
document.querySelector('#gwt-debug-Sidebar-newNoteButton').click();
});
ipc.on(... |
const chalk = require('chalk');
const fs = require('fs');
const header = (title, cssUrl, lang, theme) => `<!doctype html>
<html lang="${lang}">
<head>
<meta charset="utf-8">
<title>${title}</title>
${cssUrl ? `<link rel="stylesheet" href=${cssUrl}>` : ''}
<meta name="viewport" content="width=device-width, initial-scal... |
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 &... |
/*
* gulp tasks
* */
/**
* @name gulp
* @property task
* @property pipe
*/
/**
* @name fse
* @property readFileSync
*/
import path from 'path';
import gulp from 'gulp';
import webpack from 'webpack';
import gulpWebpack from 'gulp-webpack';
import del from 'del';
import gulpPostcss from 'gulp-postcss';
import ... |
const { min, sortedLastIndexOf, now } = require('lodash');
window.flatpickr = require("flatpickr");
window.$ = require('jquery');
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
he... |
//==================== top menu js ==================//
( function( $ ) {
$('#cssmenu').prepend('<div id="menu-button">Menu</div>');
$('#cssmenu #menu-button').on('click', function(){
var menu = $(this).next('ul');
if (menu.hasClass('open')) {
menu.removeClass('open');
}
else {
menu.addClass('open');
... |
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) { try { step(gene... |
/**
* Porsche.js is licensed under the MIT license. If a copy of the
* MIT-license was not distributed with this file, You can obtain one at:
* http://opensource.org/licenses/mit-license.html.
*
* @author: <NAME> (<EMAIL>)
* @license MIT
* @copyright <NAME>, 2015
*/
"use strict";
var Class = require("../../class");
va... |
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { gsap } from 'gsap';
import playCardSound from '../../../sounds/card_played.wav';
class CardsOnTable extends Component {
static propTypes = {
currentTable: PropTypes.arrayOf(PropTypes.shape()),
myPos: PropTypes.s... |
//provided z, calculate x and y such that x,y,z form a basis
var calcBasis = function(x,y,z) {
var cxx = 0;
var cxy = z[2];
var cxz = -z[1];
var cyx = -z[2];
var cyy = 0;
var cyz = z[0];
var czx = z[1];
var czy = -z[0];
var czz = 0;
var lx = Math.sqrt(cxy * cxy + cxz * cxz);
var ly = Math.sqrt(cyx * cyx + cy... |
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens... |
// eslint-disable-next-line import/no-unassigned-import
require('console-polyfill');
const cuid = require('cuid');
const format = require('@ladjs/format-util');
const formatSpecifiers = require('format-specifiers');
const isError = require('iserror');
const omit = require('omit.js');
const parseAppInfo = require('pars... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
class AddCountry extends Component {
render() {
return (
<div className="modal fade" id="edit_confirm" tabIndex="-1" role="dialog" aria-labelledby="user_delete_confirm_title" aria-hidden="true">
<div className="modal-... |
import { select, mouse } from 'd3-selection';
import { bisector, max } from 'd3-array';
import { timeFormat } from 'd3-time-format';
import { scaleTime, scaleLinear } from 'd3-scale';
import { axisBottom, axisLeft } from 'd3-axis';
import { line } from 'd3-shape';
import { transition } from 'd3-transition';
import { ea... |
function tran(str) {
var v, j, sj, rv = "";
v = str.replace(/,/g, "").split(".");
j = v[0].length % 3;
sj = v[0].substr(j).toString();
for(var i = 0; i < sj.length; i++) {
rv = (i % 3 == 0) ? rv + "," + sj.substr(i, 1) : rv + sj.substr(i, 1);
}
var rvalue = (v[1] == undefined) ? v[0].substr(0, j) + rv : v[0].s... |
// JavaScript Document
//公共操作
var cmTool = {
resetDefault: function($input, isHolder){/*某个地方在用着,别删哦~*/}
,loadBts: function($bt){
$bt.html('<span>正在加载中</span> <img src="../www.100bt.com/qq/zn/style/img_s/loading.gif" style="width:15px;height:15px;" />');
}
,loadPage: function(){
var id = "loading_page", $l = $("... |
"use strict";
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.hasOwnPrope... |
const fetch = require('node-fetch');
const {createContentDigest} = require(`gatsby-core-utils`);
const { getGatsbyImageResolver } = require("gatsby-plugin-image/graphql-utils");
const { generateImageData, getLowResolutionImageURL } = require("gatsby-plugin-image");
const { getContentTypes, getDeletedObjects, getContent... |
// Get the menu
var configMenu = document.getElementById("configMenu");
// Get mobile menu
var mobileConfigMenu = document.getElementById("mobileConfigMenu");
// Get all buttons inside the container
var menuBtns = configMenu.getElementsByClassName("configmenubutton");
// Get all buttons inside mobile container
var m... |
const color = require('./utils/color');
// foreground and background colors, generally
const neutralColors = {
'color-FG0': '#fafafa',
'color-FG05': '#e8e9ea',
'color-FG10': '#d6d7d9',
'color-FG20': '#b2b3b8',
'color-FG30': '#8f9096',
'color-FG40': '#6b6c75',
'color-FG50': '#474954',
'color-BG0': '#0d... |
var app = angular.module("app",['appComponents', 'appControllers']);
var appComponents = angular.module("appComponents",['appControllers']);
var appControllers = angular.module("appControllers",[]);
appComponents.component("booking",{
templateUrl: "../partials/booking.html",
controller: "bookingCtrl"
})
appComponents... |
import accounting from 'ferly/utils/accounting';
import PrimaryButton from 'ferly/components/PrimaryButton';
import PropTypes from 'prop-types';
import React from 'react';
import SimpleCurrencyInput from 'ferly/components/SimpleCurrencyInput';
import Spinner from 'ferly/components/Spinner';
import Theme from 'ferly/uti... |
import React, { PureComponent, Component } from "react";
import ReactMapGL, { Source, Layer, Marker } from "react-map-gl";
import PropTypes from "prop-types";
import {
createNewViewport,
createBuffer,
createLayerFilter,
} from "../../../utils/mapUtils";
import { calculatePanelScrollToHeight } from "../../../utils... |
/**
* Created by Administrator on 2016/3/3 0003.
*/
$(function(){
$('input[name="checkCart"]').click(function(){
refreshPriceTotal();
var checked = false;
$('input[name="checkCart"]').each(function(){
if($(this).prop('checked')){
checked = true;
return false;
}
})
if(checked == false){... |
$.ajaxSetup({
cache: false
});
// Set-up
$(document).ready(function () {
// Global variables
touchScreen = false;
deviceWidth = 0;
deviceHeight = 0;
mobileSubNavActive = false;
var cnzz_html=$("#cnzz_stat_icon_1259858308").html();
$("#cnzz_stat_icon_1259858308").html('');
$("#footer .... |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Image from "../components/image"
import AboutMeDetails from "../components/aboutMeDetails"
const runningTime = 5000;
const stopAnimationTime = 30000;
const canvasWidth = () => (t... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
import Chart from 'chart.js';
const helpers = Chart.helpers;
const Brush = Chart.DatasetController.extend({
initialize(){},
// Determine if the mouse is in the area according to the coordinate position
positionInChartArea(chartInstance, position) {
if(Chart.TimeLine.configDefaults.brushPosition){
let... |
import React, { useContext } from 'react';
import {
Grid,
TextField,
Button,
Typography,
FormControl,
InputLabel,
Select,
MenuItem,
withStyles,
makeStyles
} from '@material-ui/core';
import PropTypes from 'prop-types';
import moment from 'moment';
import { PapperBlock } from 'dan-components';
import... |
debug = true;
function easy_image_manager (sliderEntriesContainer) {
// sliderEntriesContainer = $('.image-items');
// Le template
var _templateSlide = _.template($('#imageTemplate').html());
var is_first_file = true;
// Les options du FileUpload
var args = {
... |
'use-strict';
const SQRT_2 = Math.sqrt(2);
/**
*
* @param {*} grid Grid object
* @param {*} pause callback pauses algorithm animation
*/
export function stepPathfinding(grid, pause) {
// TODO add heuristic changes to steps (undo)
// no optimal path made yet, still searching
if (!grid.pathTile) {
... |
'use strict';
var _ = require('lodash');
var utils = require('../utils');
var d3 = require('d3');
var inherits = require('inherits');
var EventEmitter = require('events').EventEmitter;
var participants = require('../data/participants.json');
var getAngle = function(i) {
return (((i+7)%14) * Math.PI * 2) / 14;
};... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
/*
KeyValuePair
Helper class to represent a key-value pair in QuoteStats' Map.
*/
class KeyValuePair {
constructor() {
this.key = null;
this.value = null;
}
update(key, value) {
this.key = key;
this.value = value;
}
clear() {
this.key = null;
this.value = null;
}
}
/*
Quote... |
import axios from 'axios'
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import SweetAlert from 'react-bootstrap-sweetalert';
class BarangEdit extends Component {
constructor (props) {
super(props)
this.state = {
nama_barang: '',
harga_bara... |
import axios from "axios";
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router-dom";
import Loader from "../components/Loader";
import { getMovieDetails, updateMovie } from "../redux/actions/movieActions";
con... |
const _ = require('lodash');
const async = require('async');
const debug = require('debug')('seguir:user');
/**
* This is a collection of methods that allow you to create, update and delete social items.
*
* These methods all exclude the 'loggedinuser' parameter as they are all carried out only by
* the currently ... |
let assert = require('assert');
let exec = require('child_process').exec;
let fs = require('fs-extra');
let utils = require('./utils');
describe('diagrams dot', function(){
it('should create .svg from .dot files', function(cb) {
let generatedSVGPath = `${utils.getTmpDir()}/dot.svg`;
exec(`./bin/dia... |
var menuHandler = {
"init":function(json, uniName) {
var o = this.setupPtrs(json, uniName);
this.gid = o.gid;
return {"uni":this.uni, "gid":this.gid};
},
"setupPtrs":function(json, uniName) {
this.uniName = uniName;
var graph = new Graph();
graph.setFromJSON(json);
this.gid = graph.id;
... |
'use strict';
const kEntryUnicity = require('../constants').kEntryUnicity;
const CouchError = require('../util/CouchError');
const debug = require('../util/debug')('main:entry');
const ensureStringArray = require('../util/ensureStringArray');
const nanoMethods = require('./nano');
const util = require('./util');
cons... |
import Conversations from '../conversations.model';
import { trackerDateRangeStage } from './utils';
const convertToEvent = ({ name, type }) => {
if (type === 'slot') {
return { event: 'slot', name };
}
if (type === 'event') {
return { event: 'action', value: name };
}
if (type ===... |
'use strict';
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.definePrope... |
let weatherInterval = 1000 * 30
let weatherCountdown = weatherInterval
const fetchWeatherData = function () {
d3.xml('/api/weather')
.then((data) => {
// console.log("Fetched Weather card data ");
processWeather(data)
})
.catch(function (err) {
// console.error("Error fetching Weather ca... |
// Run dotenv
require('dotenv').config();
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.login(process.env.DISCORD_TOKEN);
client.on('message', msg => {
var message = msg.con... |
var back = false;
var ready = false;
var rightClicked = false;
var leftClicked = false;
var upClicked = false;
var downClicked = false;
var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
var iOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
var slide_num = 0;
var video;
$(document).ready(fu... |
"use strict";
var util = require("util");
var events = require("events");
var dgram = require("dgram");
var fs = require("fs");
var path = require("path");
var net = require("net");
var createOptions = require("./create-options");
var GetStream = require("./streams/server/get-stream");
var PutStream = requir... |
class Junior {
constructor (name) {
this.name = name;
this.wishes = [];
}
setWish(n, name) {
wishes[n] = name;
}
}
var juniorList = [];
if (localStorage.getItem('juniorList') !== null) {
juniorList = JSON.parse(localStorage.getItem('juniorList'));
load();
}
... |
var lastTimeTimer;
$(function() {
$("dd").first().css("display", "block");
$("#preSubject").click(function() {
var nowShow = parseInt($("dl").attr("subject"));
if((nowShow-1) < 1) {
return;
}
$("dd[index="+nowShow+"]").css("display", "none");
$("dd[index="+(nowShow-1)+"]").css("display", "block"... |
const EMPTY_FUNCTION = ()=>{};
class CubY_Core{
constructor(props = {}){
let self = this;
this.init(props);
}
init(props) {
let self = this;
this.dataMap = {};
this.connectionMap = {};
this.browser = this.getBrowser();
window.ccaxy = this;
thi... |
const bodyParser = require('body-parser');
const fs = require('fs')
const WebRoot = __dirname + "/Web";
const multer = require('multer')
let _servers;
exports.Init = function (servers, NovelLibrary) {
_servers = servers;
let web = servers.webServer;
// 创建 application/x-www-form-urlencoded 编码解析
var url... |
/**
* appl.js
*
* <NAME>
*
* Contains map initialization data, mapError, and mapSuccess functions
* that are called on success or failure regarding the call to the Google
* Maps API, respectively.
*
*/
// Contains map initialization information and 5 hard-coded locations/markers
// Toggle the sidebar
$(... |
/*
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
const crypto = require('crypto');
const promisify = require('bluebird').promisify;
const pull = require('pull-stream');
const constants = require('./constants');
const PersistenceIdsIndex = require('./persistenceIdsIndex');
const EntityEventsIndex = require('./entityEventsIndex');
const AccessIndex = require('./auth/i... |
'use strict';
/* global currentUser, Activity, addElement */ // from app.js
// Activity object references for candidate activities.
// Of these the user selected activity will be appended to the current user's activity list in the User object .
var walkActivity = {};
var runActivity = {};
var bikeActivity = {};
// O... |
var redis = require('redis'),
net = require('net'),
when = require('when');
function Sentinel(endpoints) {
// Instantiate if needed
if (!(this instanceof Sentinel)) {
return new Sentinel(endpoints);
}
this.endpoints = endpoints;
this.clients = [];
this.pubsub = [];
}
/**
* C... |
import {connect} from 'react-redux';
import LoginView from '../components/LoginView';
import {injectReducer} from 'STORE/reducers';
const SET_MODULES = "SET_MODULES";
const SET_SYS_USER = 'SET_SYS_USER';
export const setSysUser = (sysUser) =>
{
return(
{
type: SET_SYS_USER,
payload: sysUser
});
}
const setM... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; 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 ... |
import {
timeout as PromiseTimeout,
} from 'promise-timeout';
import Logger from '../../utils/Logger';
import utils from '../../utils/utils';
import RouterBaseManager from './RouterBaseManager';
import Router from './Router';
import iframeEventHandlers from './iframeEventHandlers';
import StreamConfiguration from '... |
// model/model.js
const fs = require("fs");
const customPath = require("../services/customPath.js");
const syncGetPreps = require("../services/syncGetPreps.js");
const lib = require("../services/lib.js");
const _DB_ = "data/db.json";
const _PREPS_ = "data/preps.json";
const _STRINGS_ = "data/strings.json";
// functio... |
import React from 'react';
import { Amplitude } from '@amplitude/react-native';
import { gql } from '@apollo/client';
import { withNavigation, withNavigationFocus } from '../ReactNavigation';
import { CreateCardScreen } from './CreateCardScreen';
import { sendAsync } from '../core/CoreEvents';
import * as AdjustEvents... |
function saveTest(){
var id=$("#testId").val();
var zuulServerUrl=$("#zuulServerUrl").val();
var testTitle=$("#testTitle").val();
var testScoreTest=$("#testScoreTest").val();
var entryScore=$("#entryScore").val();
var deviceId=$("#deviceId").val();
var academyNumber=$("#academyNumber").val()... |
var objFirebase;
var objDatabase;
var appMySkills = {
lblMessage,
mdlMessage,
btnLogoff,
arrLevels: [],
arrSkills: [],
arrMySkills: [],
lstMySkills,
mdlUserSkill,
lnkSalvarSkills,
objModalUserSkill: null,
lblSkillID,
lblSkillName,
lblSkillImage,
txtSkillMyLevel,
pgbSkillMyLevel,
... |
// pages/xjorder/xjorder.js
const utils = require('../../utils/utils.js');
const LocUtil = require('../../utils/location.js');
let isLocationClick = true;
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
username:'',
imgs: [
'https://dss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=11412... |
'use strict';
var Notify = require('osg/notify');
var MACROUTILS = require('osg/Utils');
var GLObject = require('osg/GLObject');
var StateAttribute = require('osg/StateAttribute');
var Timer = require('osg/Timer');
var WebglCaps = require('osg/WebGLCaps');
/**
* FrameBufferObject manage fbo / rtt
* @class FrameBuffe... |
import "regenerator-runtime/runtime";
import React, { useState } from "react";
import { login, logout } from "./utils";
import Mintbase from './components/Mintbase'
import "./global.css";
import getConfig from "./config";
const { networkId } = getConfig(process.env.NODE_ENV || "development");
//modal component import... |
/**
* 1. What is the difference between == and === ?
*/
console.log("12" == 12); // true
console.log("12" === 12); // false
/**
* 2. What will be the result of next program?
*/
var a = {
b: 12,
};
//console.log(a.c.d); // Cannot read property 'd' of undefined
/**
* 3. Objects are passed by reference, primitive... |
// Assignment Code
var generateBtn = document.querySelector("#generate");
//Password Element Variable Arrays. This will allow us to pull from these arrays based on the user input later in the cub
var lowerCase = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "... |
/*
---- Program Outline ----
** dom elements to access/change: **
- #wordDisplay: begin with underscores for each letter, fill in correct
letters as they are guessed;
- #embedLink: use birbs.[...].embedLink as src value;
- #gifLink: use birbs.[...].gifLink as href value;
- #winNumber: track number of wins;
- #guess... |
import React, { Component } from 'react';
import baseStyles from '../assets/base.less'
import iconfont from '../assets/iconfont.less'
import styles from '../Users/Users.less'
import {getGroups} from '../services'
import { Tree, Avatar,Spin } from 'antd';
import Search from '../Search';
const { TreeNode } = Tree;
expor... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
export var DiffType;
(function (DiffType) {
DiffType["removed"] = "removed";
DiffType["common"] = "common";
DiffType["added"] = "added";
})(DiffType || (DiffType = {}));
const REMOVED = 1;
const ... |
Date.prototype.format = function(fmt) {
if (this == 'Invalid Date') {
return '';
}
var o = {
'M+': this.getMonth() + 1,
'D+': this.getDate(),
'h+': this.getHours(),
'm+': this.getMinutes(),
's+': this.getSeconds(),
'q+': Math.floor((this.getMonth() + 3... |
/*
* This implements a OAuth2 server methods, as specified at:
* http://tools.ietf.org/html/draft-ietf-oauth-v2-10
*
* Only features the "web server" schema:
* http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-1.4.1
*
* Terminology:
* http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-1.2
*
... |
'use strict'
const safeStringify = require('json-stringify-safe')
const { load, setEntResults } = require('./graph')
const makeTableFromObjectList = require('./lib/html-table')
const prettyMs = require('pretty-ms')
const fromPairs = require('lodash/fromPairs')
function readFile(file) {
return new Promise((resolve, r... |
"use strict";
/**
* @module botbuildercommunity/adapter-twilio-whatsapp
*/
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))(... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------... |
"use strict";
var Class = require( '../utils/common/ClassV6' );
var process = require( 'process' );
var fs = require( 'fs' );
var path = require( 'path' );
var mkdirp = require('mkdirp' );
var walk = require( 'walk' );
var extend = require( 'util' )._extend;
var CACHE_DIR = path.join( __dirname, '../../../.cache' );... |
import FormUtil from './FormUtil';
import Util from './Util';
function getValueFromSchemaProperty(fieldProps) {
let value = '';
if (fieldProps.default != null) {
value = fieldProps.default;
if (typeof value === 'number') {
value = value.toString();
}
}
if (Array.isArray(fieldProps.default) ... |
import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { messageActions } from '../actions';
import {
Card,
Table,
CardText,
TableRow,
CardTitle,
TableBody,
TextField,
FlatButton,
CardActions,
TableHeader,
AutoComplete,
... |
const app = getApp();
const log = console.log.bind(console)
import create from '../../../utils/create'
import store from '../../../store/index'
const plugin = requirePlugin("WechatSI")
const manager = plugin.getRecordRecognitionManager()
const util = require('../../../utils/util.js')
create(store, {
data: {
hasFa... |
/**
* @author <a href="http://www.affka.ru"><NAME></a>
* @license MIT
*/
'use strict';
const Jii = require('jii');
const QueryBuilder = require('./QueryBuilder');
const TableSchema = require('jii/data/TableSchema');
const Expression = require('jii/data/Expression');
const SqlQueryException = require('jii/data/SqlQu... |
'use strict';
const testEnv = process.env.NODE_ENV === 'test';
const https = require('https');
const xml2js = require('xml2js');
const { parseNumbers, parseBooleans, } = xml2js.processors;
const { Duplex, } = require('stream');
const fs = require('fs-extra');
const crypto = require('crypto');
const periodic =... |
import React, { Component } from 'react';
import {
View,
ActivityIndicator,
ScrollView,
Text,
TouchableOpacity,
} from 'react-native';
import { SearchBar } from 'react-native-elements';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useIsFocused, useNavigation } from '@react-navigatio... |
"use strict";
/**
* Created by liangdas on 2016/12/6 0006.
* Email :<EMAIL>
* 主界面
*/
var extend = require('../utils/inherits.js');
var Hero = require('../objects/Player.js');
var Enemy = require('../objects/Enemy.js');
var Coin = require('../objects/Coin.js');
var GameMap = require('../maps/DesertMap.js');
var mqan... |
// ==UserScript==
// @name AoPS Enhanced 6
// @namespace https://gitlab.com/epiccakeking
// @match https://artofproblemsolving.com/*
// @grant none
// @version 6.0.1
// @author epiccakeking
// @description AoPS Enhanced adds and improves various features of the AoPS website.
// @license ... |
function foo(arr) {
var a = [], b = [], prev;
arr.sort();
for ( var i = 0; i < arr.length; i++ ) {
if ( arr[i] !== prev ) {
a.push(arr[i]);
b.push(1);
} else {
b[b.length-1]++;
}
prev = arr[i];
}
return [a, b];
}
function graph1(... |
var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
var timer = require('../../../utils/wxTimer.js');
var remaintimer = require('../../../utils/remainTime.js');
const pay = require('../../../services/pay.js');
const app = getApp()
// TODO 拼团订单不能退款
Page({
data: {
ApiRo... |
/*
* Planck.js
* The MIT License
* Copyright (c) 2021 <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... |
import React from 'react';
import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform } from 'react-native';
import { Block, Text, theme } from 'galio-framework';
import { LinearGradient } from 'expo-linear-gradient';
//import { Icon } from '../components';
import { Images, materialTheme } from '../... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.