text stringlengths 3 1.05M |
|---|
(this.webpackJsonpweasley_clock_v2=this.webpackJsonpweasley_clock_v2||[]).push([[0],{77:function(n,e,t){},79:function(n,e,t){},94:function(n,e,t){"use strict";t.r(e);var r=t(0),c=t(3),o=t.n(c),i=t(46),a=t.n(i),u=(t(77),t(13)),s=t.n(u),l=t(15),d=t(14),f=(t(79),t(10)),j=t(5),b=t(23),h=t(6),O=t(24);function p(){var n=Obje... |
# This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import absolute_import, unicode_literals
import logging
import pprint
import time
import ... |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
/* eslint-env jest */
/* eslint-disable no-unused-vars */
import { Constants, Feature, LanguageModelFactory } from 'alpheios-data-models'
// import LanguageDatasetFactory from '@views/lib/language-dataset-factory.js'
import BaseTestHelp from '@tests/data/base-test-help.js'
describe('verified-issues.test.js', () ... |
#!/usr/bin/env python3
__AUTHOR__ = 'Florian Roth'
__VERSION__ = "0.20.0 January 2021"
"""
Install dependencies with:
pip install -r requirements.txt
pip3 install -r requirements.txt
"""
import codecs
import configparser
import requests
from requests.auth import HTTPBasicAuth
import time
import re
import os
import m... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Web', '0028_usuario_membresia'),
]
operations = [
migrations.CreateModel(
name=... |
'use strict';
const config = {
home: __dirname
};
module.exports = config;
|
from bokeh.io import curdoc, show
from bokeh.models import ColumnDataSource, Grid, HexTile, LinearAxis, Plot
source = ColumnDataSource(dict(
q=[0, 0, -1, -1, 1, 1, 0],
r=[0, -1, 0, 1, -1, 0, 1],
)
)
plot = Plot(
title=None, plot_width=300, plot_height=300,
min_border=0, toolbar_locatio... |
import pytest
import sys
from loguru import logger
from loguru._ansimarkup import AnsiMarkup
def parse(text, colorize=True):
if colorize:
return AnsiMarkup(strip=False).feed(text, strict=True)
else:
return AnsiMarkup(strip=True).feed(text, strict=True)
def test_record(writer):
logger.add... |
"use strict";
//REFERENCE:
//https://code.lengstorf.com/get-form-values-as-json/
//LAYOUT:
//Have a fixed tab system on the top of the page that scrolls you down to whatever part of the form you need
//MOU
//RFR
//Service Selection
//Editable Cart
//Grand Total
//Signature block
$(function() {
/**Hides and show... |
import React, { useEffect, useState } from "react";
import { Link } from "gatsby";
import ThreeDotLoader from "../shared/three-dot-loader";
const defaultRewardsMsg = {
type: "info",
message: "Enter your rewards redemption code and click 'GET BALANCE'.",
};
const isDefined = thing => typeof thing !== "undefined" &... |
from .kf_v1 import KF
import unittest
import numpy as np
class TestKFV1(unittest.TestCase):
def test_able_to_compile_correctly(self):
kf = KF()
kf2 = KF(init_state=np.ones((800, 1)), state_var=10)
self.assertEqual(kf.cov[1, 1], 1)
self.assertEqual(kf.cov[2, 2], 1)
self.ass... |
"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... |
/*
* This is the Hello World App demo that uses the Hello World Reporter and Observer Hyperties
*
*/
let RUNTIME;
const hypertyURI = (hyperty_domain, hyperty) => `hyperty-catalogue://catalogue.${hyperty_domain}/.well-known/hyperty/${hyperty}`;
let runtime_domain = 'hybroker.rethink.ptinovacao.pt';
let hyperty_domai... |
let seek = 0;
let timer = null;
onmessage = (e) => {
const command = e.data.command;
switch(command) {
case 'start':
startTimer(e.data.beginSeek);
return;
case 'pause':
pauseTimer();
return;
case 'stop':
stopTimer();
return;
default:
// Do nothing
}
};
f... |
import React from 'react';
import Ux from 'ux';
import {Button, Transfer} from "antd";
import Ex from "ex";
import Rdr from './Web';
import Op from './Op';
const componentInit = (reference) => {
const state = {};
const {tree = [], treeConfig = {}, data = []} = reference.props;
const {selectable = true, che... |
/*
Copyright 2018-2019 OCAD University
Licensed under the New BSD license. You may not use this file except in compliance with this licence.
You may obtain a copy of the BSD License at
https://raw.githubusercontent.com/fluid-project/sjrk-story-telling/master/LICENSE.txt
*/
"use strict";
var fluid = require("infusion... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2010 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... |
import socket
from django.conf import settings
import mock
from nose.tools import eq_, ok_
import mkt.site.tests
from mkt.users.models import UserProfile
import mkt
from mkt.api.tests.test_oauth import RestOAuth
_langs = ['cs', 'de', 'en-US', 'es', 'fr', 'pl', 'pt-BR', 'pt-PT']
@mock.patch.object(settings, 'LAN... |
"use strict";
var Clapp = require('clapp');
var Table = require('cli-table2');
var str = require('./str-en.js');
class App extends Clapp.App {
constructor(options) {
super(options);
}
_getHelp() {
const LINE_WIDTH = 55;
var r =
this.name + (typeof this.version !== 'undefin... |
// This is a manifest file that'll be compiled into application.js, which will
// include all the files listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts,
// vendor/assets/javascripts, or vendor/assets/javascripts of plugins, if any,
// can be referenced here using a relative ... |
// MSSQL Query Compiler
// ------
import inherits from 'inherits';
import QueryCompiler from '../../../query/compiler';
import { assign, isEmpty, compact, identity } from 'lodash'
function QueryCompiler_MSSQL(client, builder) {
QueryCompiler.call(this, client, builder)
}
inherits(QueryCompiler_MSSQL, QueryCompiler... |
import React from 'react';
import {connect} from "react-redux";
import {Link} from "react-router-dom";
import classNames from "classnames";
import gravatar from "../utils/gravatar";
import { logoutRequest } from '../actions';
import "../styles/Header.css";
import Logo from "../assets/logo-platzi-video-BW2.png";
import ... |
let Tetrahedron = function () {
let _ = Object.create (Primitive);
_.name = "tetrahedron";
_.getShapeBuilder = function () {
let builder = ShapeBuilder.new ();
builder.addVertex([1, 1, 1]);
builder.addVertex([-1, 1, -1]);
builder.addVertex([-1, -1, 1]);
builder.addV... |
// global variables
let triangleMode = true;
//
// Start here
//
function main() {
const canvas = document.querySelector('#glcanvas');
// Connect inputs
document.addEventListener('keydown', onKeyDown, false);
document.addEventListener('keyup', onKeyUp, false);
// Connect Button
document.getEle... |
var common = require('../common');
var assert = require('assert');
var t = Date.now();
var diff;
setTimeout(function () {
diff = Date.now() - t;
console.error(diff);
}, 0.1);
process.on('exit', function() {
assert.ok(diff < 100);
});
|
const getConfig = require("probot-config");
const mongoose = require("mongoose");
const commands = require("probot-commands");
const createScheduler = require("probot-scheduler");
const RT_Stale = require("./lib/stale");
// The first code was derivied from probot-stale plugin
module.exports = async app => {
// Visit... |
const { Schema, model } = require("mongoose");
const schema = Schema({
guildID: { type: String, default: "" },
userID: { type: String, default: "" },
cezapuan: { type: Number, default: 0 }
});
module.exports = model("cezapuan", schema); |
/*=========================================================================================
File Name: moduleCalendarGetters.js
Description: Calendar Module Getters
----------------------------------------------------------------------------------------
Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard T... |
class LED_128_4s:
keySize = 128
sBox = [0x0C, 0x05, 0x06, 0x0B, 0x09, 0x00, 0x0A, 0x0D, 0x03, 0x0E, 0x0F, 0x08, 0x04, 0x07, 0x01, 0x02]
RC = [0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3E, 0x3D, 0x3B, 0x37, 0x2F,
0x1E, 0x3C, 0x39, 0x33, 0x27, 0x0E, 0x1D, 0x3A, 0x35, 0x2B,
0x16, 0x2C, 0x18, 0x3... |
/**
* Copyright 2022 F5 Networks, 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 agr... |
expr = str(input('Digite uma expressão: '))
pilha = []
for simb in expr:
if simb == '(':
pilha.append('(')
elif simb == ')':
if len(pilha) > 0:
pilha.pop()
else:
pilha.append(')')
break
if len(pilha) == 0:
print('Sua expressão está correta!')
else:... |
import face_recognition
from scipy.spatial import distance
import cv2
import base64
import numpy as np
import matplotlib.pyplot as plt
from skimage.io import imread
import io
def compareImage(imageencoding,unknownencode):
for unknown_encode in unknownencode:
d = distance.euclidean(imageencoding,unknown_en... |
# Copyright 2019 The TensorFlow 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
#
# Unless required by applica... |
assert = function(is_true){if (!(is_true)) {throw new Error("Test failed")}}
// Copyright JS Foundation and other contributors, http://js.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 ... |
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const CreditCard = forwardRef(({ color = 'currentColor', size = '1em', ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
... |
# model settings
model = dict(
type='TTFNet',
pretrained='modelzoo://resnet18',
backbone=dict(
type='ResNet',
depth=18,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_eval=False,
style='pytorch'),
neck=None,
bbox_head=dict(
... |
'use strict';
var express = require('express');
var os = require('os');
module.exports = function(app) {
app.get('/whoami', function (req, res) {
// need access to IP address here
var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
var lang = req.headers["accept-language"]... |
import tensorflow as tf
# Flags for defining the tf.train.ClusterSpec
tf.app.flags.DEFINE_string("ps_hosts", "",
"Comma-separated list of hostname:port pairs")
tf.app.flags.DEFINE_string("worker_hosts", "",
"Comma-separated list of hostname:port pairs")
# Flags fo... |
const path = require("path")
const TerserPlugin = require("terser-webpack-plugin")
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
let isProduction = process.env.NODE_ENV === "production"
const { CleanWebpackPlugin } = require("clean-webpack-plugin")
module.exports = {
entry: {
"CoCreate-croppie"... |
var localtopoData = {
nodes: [
{
"id": 0,
"name": "EID 0",
"address": "10.0.0.0",
"action": "discard",
"rlocs2": [1,1,1,1,1],
"rlocs": [
{
"address": "11.11.11.11"
},
{
"address": "... |
# Based on code at:
# http://programarcadegames.com/python_examples/f.php?file=array_backed_grid.py
# 1 - Import pygame library ####################################################
import pygame, random
from pygame.locals import *
# 2 - Set game global variables ################################################
boards... |
EPFD_TYPE = {
0: 'Undefined',
1: 'GPS',
2: 'GLONASS',
3: 'GPS/GLONASS',
4: 'Loran-C',
5: 'Chayka',
6: 'Integrated navigation system',
7: 'Surveyed',
8: 'Galileo',
15: 'Undefined'
}
SHIP_TYPE = {
0: 'Not available',
20: 'Wing in ground (WIG)',
21: 'Wing in ground (WIG... |
ace.define("ace/ext/beautify", ["require", "exports", "module", "ace/token_iterator"], function (e, t, n) {
"use strict";
function i(e, t) {
return e.type.lastIndexOf(t + ".xml") > -1
}
var r = e("../token_iterator").TokenIterator;
t.singletonTags = ["area", "base", "br", "col", "command",... |
define([ 'Ractive/prototype/animate/requestAnimationFrame' ], function ( rAF ) {
'use strict';
var queue = [];
var animations = {
tick: function () {
var i, animation;
for ( i=0; i<queue.length; i+=1 ) {
animation = queue[i];
if ( !animation.tick() ) {
// animation is complete, remove it fr... |
import socket
import struct
import threading
import pickle
CHUNKSIZE = 4096
SIZE_LEN = 8
class MySocket(socket.socket):
def __init__(self, *args, **kwargs):
super(MySocket, self).__init__(*args, **kwargs)
self.__block = threading.Lock()
self.__client = None
def close(self) -> None:
... |
//BEGIN-SNIPPET index-snippet.js
import Controller from '@ember/controller';
import opacity from 'ember-animated/motions/opacity';
export default Controller.extend({
/* Sets scroll position so that the demo animates between routes without
scrolling to the top of the page every time, see scroll-to-top */
preserve... |
const fs = require("fs");
const path = require("path");
function checkDir() {
let paths = [path.resolve(__dirname, "../stat"),
path.resolve(__dirname, "../log")
];
paths.forEach(p => {
if (!fs.existsSync(p))
fs.mkdirSync(p);
});
}
function pad(n) {
return n < 10 ? '0' + String( n ) : n;
}
con... |
from math import sqrt
from tools.ROOT_utils import get_histograms_from_files
from config import XSectionConfig
cuts = None
cuts_electrons = [
"Preselection", #
"Event cleaning/HLT", #
"One isolated electron", #
"Muon veto", #
"Dilepton veto", #
"Conversion veto", #
... |
(function () {
'use strict';
// Lista de elementos dinámicos. Este componente incluye la gestión: añadir y eliminar.
// label: Texto para la etiqueta.
// tooltip: Texto para el tooltip.
// list: Lista de elementos que se modificará.
// resolve: Información del controller desde donde es... |
def test_dummy():
assert 2 == 2
|
'use strict'
const { countInDegrees, getRoots, getNonRoots } = require('./utils')
// :: { dependencyId: dependentId } -> [[taskId]]
const batchingToposort = dag => {
const indegrees = countInDegrees(dag)
const sorted = []
let roots = getRoots(indegrees)
while (roots.length) {
sorted.push(roo... |
const socketIo = require('socket.io');
const { createAdapter } = require('@socket.io/redis-adapter');
const { getSubConnection, getConnection } = require('../lib/redisConnection');
const passport = require('passport');
const { jwtStrategy } = require('../config/passport');
const routes = require('./socket.routes');
//... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export function checkLicense(xpackLicenseInfo) {
// If, for some reason, we... |
var class_antura_1_1_profile_1_1_player_icon =
[
[ "Deselect", "class_antura_1_1_profile_1_1_player_icon.html#a7ae2f193fa459dbd92ca9107c02adb88", null ],
[ "Init", "class_antura_1_1_profile_1_1_player_icon.html#af77c80deecaf2d5c2cdf2e2da8fab518", null ],
[ "Select", "class_antura_1_1_profile_1_1_player_icon... |
import time
import threading
import queue
from datetime import datetime
# vytvoření fronty
q = queue.Queue()
# simulace konzumenta
def consumer():
name = threading.current_thread().name
while True:
job = q.get()
print(f'{name} thread: Starting consuming {job} [{datetime.utcnow().strftime("%H... |
/**
* This file is part of Totara Learn
*
* Copyright (C) 2019 onwards Totara Learning Solutions LTD
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
... |
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const DividerLine = () => {
const data = useStaticQuery(graphql`
query {
line: file(relativePath: { eq: "doodles/line.jpg" }) {
childImageSharp {
fluid {
...GatsbyImageSha... |
import chai from 'chai';
import chaiImmutable from 'chai-immutable';
import { Map } from 'immutable';
chai.use(chaiImmutable);
import * as EnvironmentVariables from 'emulator-state/environment-variables';
describe('environment-variables', () => {
const ENV_VARIABLES = EnvironmentVariables.create({
'cwd': '/',
... |
import AsyncStorage from '@react-native-community/async-storage';
const BASE_API = 'https://api.b7web.com.br/devbarber/api';
export default {
checkToken: async (token) => {
const req = await fetch(`${BASE_API}/auth/refresh`, {
method: 'POST',
headers: {
Accept: 'app... |
export const getMetrics = metadata => {
try {
let currentMetrics = JSON.parse(
metadata.annotations['autoscaling.alpha.kubernetes.io/current-metrics']
);
let metrics = JSON.parse(
metadata.annotations['autoscaling.alpha.kubernetes.io/metrics']
);
let currentMetric = currentMetrics[0][... |
import serial
import struct
from enum import Enum
from .utils.structparse import mystruct, t, STRUCT_FORMAT
class PacketId(Enum):
INVALID_PACKET = 0x00
ANSWER_TO_RESET = 0x01
CONTINUE_BOOT = 0x02
FIRMWARE_UPGRADE = 0x03
FW_UPGRADE_READY = 0x04
FW_WRITE ... |
const path = require('path');
const {escape} = require('querystring');
const test = require('ava');
const {stat} = require('fs-extra');
const nock = require('nock');
const {stub} = require('sinon');
const proxyquire = require('proxyquire');
const clearModule = require('clear-module');
const SemanticReleaseError = requi... |
import numpy as np
from scipy.optimize import linear_sum_assignment
from ...utils.validation import check_consistent_length, check_array
__all__ = ["consensus_score"]
def _check_rows_and_columns(a, b):
"""Unpacks the row and column arrays and checks their shape."""
check_consistent_length(*a)
check_cons... |
var searchData=
[
['exceptions',['Exceptions',['../namespaceowncloudsharp_1_1_exceptions.html',1,'owncloudsharp']]],
['owncloudsharp',['owncloudsharp',['../namespaceowncloudsharp.html',1,'']]],
['types',['Types',['../namespaceowncloudsharp_1_1_types.html',1,'owncloudsharp']]]
];
|
function uuid() {
function _p8(s) {
var p = (Math.random().toString(16) + "000000000").substr(2, 8);
return s ? "-" + p.substr(0, 4) + "-" + p.substr(4, 4) : p;
}
return _p8() + _p8(true) + _p8(true) + _p8();
}
function getParameterByName(name, url = window.location.href) {
name = name.... |
#!/usr/bin/env python3
import hashlib
import struct
from smda.intel.IntelInstructionEscaper import IntelInstructionEscaper
from smda.common.SmdaBasicBlock import SmdaBasicBlock
from smda.common.Tarjan import Tarjan
from smda.common.DominatorTree import build_dominator_tree, get_nesting_depth
from .SmdaInstruction impo... |
export const cisLocationGpsOff = ["512 512"," <defs> <style> .cls-1{fill:currentColor} </style> </defs> <path d='M400.1855,370.1758,354.4771,324.489l-.0049.0072-25.3208-25.3209-141.6873-141.62-45.7078-45.686L45.8413,16H16V45.4219l96.0767,96.077A183.168,183.168,0,0,0,73.5649,232H16v64H76.3918A184.53,184.53... |
import prefapp_core
from prefapp_core.comando import Comando
from prefapp_core.tarea import Tarea
class Test1(Comando):
def __validar__(self):
return True
def __ejecutar__(self):
self.resultado("original_path", self.PATH_ORIGINAL)
|
import React from 'react'
import { useAuth } from "../contexts/AuthContext"
import {Redirect} from 'react-router-dom';
import ChatList from './ChatList';
import ChatWindow from './ChatWindow';
import {Row,Col,Jumbotron, Container} from 'react-bootstrap'
export default function Dashboard() {
const { currentUser } = ... |
define("ace/ext/modelist",["require","exports","module"], function(require, exports, module) {
"use strict";
var modes = [];
function getModeForPath(path) {
var mode = modesByName.text;
var fileName = path.split(/[\/\\]/).pop();
for (var i = 0; i < modes.length; i++) {
if (modes[i].supportsFile(fil... |
/*
* @lc app=leetcode.cn id=576 lang=javascript
*
* [576] 出界的路径数
*/
// @lc code=start
/**
* @param {number} m
* @param {number} n
* @param {number} N
* @param {number} i
* @param {number} j
* @return {number}
*/
var findPaths = function(m, n, N, i, j) {
};
// @lc code=end
//* Testcase E... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule TextInput
* @flow
* @format
*/
'use strict';
const ColorPropType = require('../../StyleSheet/ColorPropType');
const... |
const TicTacToe = require("../lib/tictactoe")
let handler = async (m, { conn, usedPrefix, command, text }) => {
conn.game = conn.game ? conn.game : {}
if (Object.values(conn.game).find(room => room.id.startsWith('tictactoe') && [room.game.playerX, room.game.playerO].includes(m.sender))) throw '_Kamu masih dida... |
const passportSocketIo = require("passport.socketio");
const models = require("../models");
var Notification = function (socketIO) {
this.socketIO = socketIO;
};
Notification.prototype.notifyUser = function (user, message, url) {
models.Notification.create({content: message, UserId: user.id, url: url}).then((... |
// console.log('Loading Box...')
Spontaneous.Box = (function($, S) {
var dom = S.Dom;
var Box = new JS.Class(Spontaneous.Content, {
initialize: function(content, container) {
this.callSuper(content);
this.container = container;
var box = this;
$.each(this.entries(), function(index, entry) {
entry... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Nurse Practitioner", "CONTRIBUTION AMOUNT (F3L Bundled)": "25.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Planned Parenthood", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "3705 French Ave.", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC... |
var searchData=
[
['updateloop',['updateloop',['../classgame_1_1_player_1_1player.html#a36c4719a5155181787e577197de2f4fd',1,'game::Player::player']]],
['updatethread',['updatethread',['../classgame_1_1_player_1_1player.html#a3924cdbb3a2e56cd1ff60d8562e29551',1,'game::Player::player']]],
['use_5freloader',['use_re... |
/*
* Event emitter to transmit message from REST API to SOCKET
*/
const EventEmitter = require('events');
const util = require('util');
function CommentEmitter() {
EventEmitter.call(this);
}
util.inherits(CommentEmitter, EventEmitter);
const emiter = new CommentEmitter();
emiter.setMaxListeners(100);
export funct... |
"use strict";
/**
* @license
* Copyright (c) 2017 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 c... |
import { login, logout } from '@/api/system/user'
import { getToken, setToken, removeToken, getUserInfo, setUserInfo, getCurrentRole, setCurrentRole } from '@/utils/auth'
import { resetRouter } from '@/router'
const state = {
token: getToken(),
userinfo: getUserInfo(),
currentrole: getCurrentRole()
}
const muta... |
function __extends(t,e){function i(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);i.prototype=e.prototype,t.prototype=new i}var egret;!function(t){function e(){return""}function i(t){throw new Error("#"+t)}function n(){}function r(){}function s(){}t.getString=e,t.$error=i,t.$warn=n,t.$markReadOnly... |
from abc import ABC, abstractmethod
from collections import namedtuple
from enum import Enum
from heapq import nlargest, nsmallest, heappush
from random import randint, random
from typing import Any, Callable, List
__all__ = {"HeapFactory"}
class HeapNode(namedtuple("HeapNode", "key value")):
"""A lightweight cl... |
// /**
// * Sample React Native App
// * https://github.com/facebook/react-native
// * @flow
// */
//
// import React, { Component } from 'react';
// import {
// AppRegistry,
// StyleSheet,
// Text,
// View,
// TouchableOpacity,
// Platform,
// WebView,
// } from 'react-native';
// var Dimension... |
# valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to ht... |
import { each } from 'lodash';
import { secondsToHis } from '../../utils';
import { http } from '..';
export const albumInfo = {
/**
* Get extra album info (from Last.fm).
*
* @param {Object} album
*/
fetch(album) {
return new Promise((resolve, reject) => {
if (album.info) {
resolv... |
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
var Example = {
init : function(){
// some data yanked off the web
var myData = [
['3m Co',71.72,0.02,0.03,'9/1 12:00am'],
['Alcoa Inc',29.01,0.42,1.47,'9... |
import React, { useState, useEffect } from "react";
// react plugin for creating charts
// core components
import GridItem from "components/Grid/GridItem.js";
import GridContainer from "components/Grid/GridContainer.js";
import Table from "components/Table/Table.js";
import { makeStyles } from "@material-ui/core/style... |
from genrl.deep.agents.sac.sac import SAC # noqa
|
// npm build command
// everything about the installation after the creation of
// the .npm/{name}/{version}/package folder.
// linking the modules into the npm.root,
// resolving dependencies, etc.
// This runs AFTER install or link are completed.
var npm = require('./npm.js')
var log = require('npmlog')
var chain ... |
#!/usr/bin/python3
# encoding='utf-8'
# author:weibk
# @time:2021/10/22 14:28
from selenium import webdriver
from selenium.webdriver.common import keys
driver = webdriver.Chrome()
driver.get('https://www.suning.com/')
driver.maximize_window()
driver.find_element_by_xpath('//*[@id="searchKeywords"]').send_keys('小米10')... |
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... |
/*
Make sure the bot runs from the correct directory.
(Fix using require(), loading plugins, etc.)
*/
if (process.cwd() !== __dirname) {
console.log('Attempting to switch directory... '+process.cwd()+' -> '+__dirname);
try {
process.chdir(__dirname);
if (process.cwd() !== __dirname) {
... |
#!/usr/bin/python
# -*- coding:utf-8 -*-
import random
def selectUserAgent():
user_agent_list = [ \
'Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0', \
'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15... |
Ext.define('Slate.proxy.Locations', {
extend: 'Slate.proxy.Records',
alias: 'proxy.slate-locations',
config: {
url: '/locations'
}
}); |
# copied values from electrum source
# IDK, maybe?
ELECTRUM_VERSION = '2.6.4' # version of the client package
PROTOCOL_VERSION = '0.10' # protocol version requested
# monacoin address type
ADDRTYPE_P2PKH = 50
ADDRTYPE_P2SH = 55
ADDRTYPE_P2SH_ALT = 5
SEGWIT_HRP = "mona"
# note: 'v' and 'p' are effectively reserve... |
from setuptools import setup, find_packages
setup(
name='some_package',
description='Demonstrate packaging and distribution',
version='1.0',
author='Brian Okken',
author_email='brian@pythontesting.net',
url='https://pragprog.com/book/bopytest/python-testing-with-pytest',
packages=find_pac... |
import { Color, PerspectiveCamera, Vector3 } from "three";
import { SpatialControls } from "spatial-controls";
import { ProgressManager } from "../utils/ProgressManager";
import { PostProcessingDemo } from "./PostProcessingDemo";
import * as Sponza from "./objects/Sponza";
import {
BlendFunction,
DotScreenEffect,
... |
/* eslint-disable no-console */
// @if MODULE_FORMAT!='cjs'
import { saveAs } from "./libs/FileSaver.js";
// @endif
import { globalObject } from "./libs/globalObject.js";
import { RGBColor } from "./libs/rgbcolor.js";
import { btoa } from "./libs/AtobBtoa.js";
import { console } from "./libs/console.js";
import { PDFS... |