text
stringlengths
3
1.05M
#!/usr/bin/env node // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. 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() { r...
# -*- coding: utf-8 -*- # Copyright European Organization for Nuclear Research (CERN) since 2012 # # 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-...
_base_ = [ '../_base_/models/mask_keypoint_rcnn_r50_fpn.py', '../_base_/datasets/coco_keypoint.py', '../_base_/schedules/schedule_1x_0.01.py', '../_base_/default_runtime.py' ]
// Copyright 2014 the V8 project authors. All rights reserved. // AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY // Flags: --allow-natives-syntax --harmony var _fun = function() {}; var arg1 = 0; %GetBreakLocations(_fun, arg1);
import styled from 'styled-components'; export const RoomCell = styled.div` height: 14px; width: 14px; margin: 1px; @media screen and (max-width: 700px) { height: 6px; width: 6px; } border-top: ${({ roomWalls, color }) => (color === 'black' && '3px solid black') || (roomWalls.indexOf('n')...
// Node modules. import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // Relative imports. import AuthContent from '../AuthContent'; import LegacyContent from '../LegacyContent'; import UnauthContent from '../UnauthContent'; import featureFlagNames from 'platform/utiliti...
// 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 ...
''' resnet18 model from https://github.com/kuangliu/pytorch-cifar/blob/master/models/resnet.py ''' import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): expansion = 1 def __init__(self, in_planes, planes, stride=1): super(BasicBlock, self).__init__() ...
describe('basic test', function () { var app; before(function (done) { app = require('cantina').createApp(); app.boot(function (err) { if (err) return done(err); app.silence(); app.conf.set('redis:prefix', 'cantina-cron-test-' + Date.now()); app.require('../'); app.start(done)...
/* * Kendo UI Complete v2013.1.319 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be gover...
import matplotlib matplotlib.use('Agg') import os, sys import yaml from argparse import ArgumentParser from tqdm import tqdm import imageio import numpy as np from skimage.transform import resize from skimage import img_as_ubyte import torch from vision.first_order_motion.model.sync_batchnorm.replicate import DataPara...
function clearInputText(c,a){var f=null==a?0:a.length;$("#"+c).find("input[type=text]").each(function(c,d){for(var e=!0,b=0;b<f;b++)if(a[b]==$(d).attr("id")){e=!1;break}e&&$(d).val(null)})}function clearTextArea(c,a){var f=null==a?0:a.length;$("#"+c).find("textarea").each(function(c,d){for(var e=!0,b=0;b<f;b++)if(a[b]=...
import React, { useState, useEffect, useRef } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components/native' import { TouchableWithoutFeedback, Image, Dimensions, Animated } from 'react-native'; import MyAppText from '../TextComponents/MyAppText'; const StyledModal = styled.Modal` flex...
module.exports = { plugins:{ autoprefixer:{}, "postcss-px-to-viewport":{ viewportWidth:375, viewportHeight:667, unitPrecision:5, viewportUnit:'vw', selectorBlackList:['tab-bar'], minPixeValue:1, mediaQuery:false, ...
/* * @flow */ import React from 'react'; import styled from 'styled-components'; import { List } from 'immutable'; import { Checkbox } from 'lattice-ui-kit'; import { ContentOuterWrapper } from '../../../../components/layout'; import { FACILITY_TYPES } from '../../../../utils/DataConstants'; import { FACILITY_TYPE...
"use strict"; /* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0, * ap-southeast-2 (https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 4.3.0, * eu-central-1 (https://d1mta8qj...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
'use strict'; //Syndicates service used to communicate Syndicates REST endpoints angular.module('syndicates').factory('Syndicates', ['$resource', function($resource) { return $resource('syndicates/:syndicateId', { syndicateId: '@_id' }, { update: { method: 'PUT' } }); } ]);
var searchData= [ ['gauss_318',['Gauss',['../struct_gauss.html',1,'']]], ['globalparms_319',['GlobalParms',['../class_global_parms.html',1,'']]] ];
/*! * Select2 4.0.0 * https://select2.github.io * * Released under the MIT license * https://github.com/select2/select2/blob/master/LICENSE.md */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typ...
tinyMCEPopup.requireLangPack(); var MergeCellsDialog = { init : function() { var f = document.forms[0]; f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); }, merge : function() { var func, f = document.forms[0]; tinyMCEPopup.res...
import { H1, Subtitle, List, Footer, Container, Div } from "./styles"; import { ReactComponent as Arrow } from "./assets/arrow.svg"; import { Link } from "react-scroll"; const Instructions = () => ( <Container> <Div> <H1>Challenge Front-end Dev</H1> <Subtitle>Instrucciones</Subtitle> <List> ...
import React, { useState, useEffect, useMemo } from 'react'; import { NativeModules } from 'react-native'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { View, List, } from 'native-base'; import { getProductsSelector, getMaxPrice } from 'selectors'; import Format from 'h...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'E:\StudyHawk\StudyHawkSetupGUI.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_SetupWindow(object): def setu...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
(function(){function square(a){return a*a}function getDistanceFunction(point,fn){return function(obj){return fn(point,obj)}}function distSquared(p1,p2){return square(p2.x-p1.x)+square(p2.y-p1.y)}function distToLineSquared(p1,l1,l2){var dot=(p1.x-l1.x)*(l2.x-l1.x)+(p1.y-l1.y)*(l2.y-l1.y),ratio=dot/distSquared(l1,l2);if(...
defineSuite([ 'Widgets/PerformanceWatchdog/PerformanceWatchdogViewModel', 'Core/defined', 'Core/getTimestamp', 'Scene/FrameRateMonitor', 'Specs/createScene' ], function( PerformanceWatchdogViewModel, defined, getTimestamp, FrameRateMo...
/** * OptionWidgets are special elements that can be selected and configured with data. The * data is often unique for each option, but it does not have to be. OptionWidgets are used * with OO.ui.SelectWidget to create a selection of mutually exclusive options. For more information * and examples, please see the [O...
/** Licensed to OffGrid Networks (OGN) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. OGN licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use...
#!/usr/bin/env python from pydbus import SessionBus # get the session bus bus = SessionBus() # get the manager the_manager = bus.get("org.example.MyApp")["org.freedesktop.DBus.ObjectManager"] # list all managed objects reply = the_manager.GetManagedObjects() print(reply) # get a managed object the_child = bus.get(...
/************************************************* * Copyright (c) 2016 Ansible, Inc. * * All Rights Reserved *************************************************/ export default ['i18n', function(i18n) { return { // editTitle: 'Authorization Configuration', name: 'configuration_tacacs_template', ...
#!/usr/bin/env node /** * Copyright Zendesk, Inc. * * Use of this source code is governed under the Apache License, Version 2.0 * found at http://www.apache.org/licenses/LICENSE-2.0. */ /* eslint-disable no-console */ const inquirer = require('inquirer'); const chalk = require('chalk'); const pelorous = chalk.h...
/*! * ofa v3.0.6 * https://github.com/kirakiray/ofa.js * * (c) 2018-2021 YAO * Released under the MIT License. */ ((glo) => { "use strict"; // public function const getRandomId = () => Math.random().toString(32).substr(2); // const getRandomId = (len = 40) => { // return Array.from(crypto...
module.exports = { // 平常模式使用单引号 singleQuote: true, // 尾随逗号 trailingComma: 'none', // tab 为2个空格长度 tabWidth: 2, // 不需要分号 semi: false, // 单行长度 printWidth: 120 }
function sendResponse(data) { const response = new Twilio.Response(); response.appendHeader("Access-Control-Allow-Origin", "*"); response.appendHeader("Access-Control-Allow-Methods", "POST,OPTIONS,GET,PUT"); response.appendHeader("Content-Type", "application/json"); response.setBody(data); return response; ...
import _extends from 'babel-runtime/helpers/extends'; import Tabs from './tabs'; import TabPane from '../vc-tabs/src/TabPane'; import TabContent from '../vc-tabs/src/TabContent'; Tabs.TabPane = _extends({}, TabPane, { name: 'ATabPane', __ANT_TAB_PANE: true }); Tabs.TabContent = _extends({}, TabContent, { name: 'ATabCon...
function createUser(email, password) { if (!inputIsValid(email, password)) { showErrorMessage('Invalid input!'); return; } saveUser(email, password); } function createSupportChannel(email) { if (!emailIsValid(email)) { showErrorMessage('Invalid email - could not create channel'); } // ... } ...
import sys class TopNUsersInTestingSplitter: def __init__(self, n, decoratee = None): self._n = n self._decoratee = decoratee def convert(self, dataset): """ dataset is array of tuple with content (user, item, vote)... [ (user, item, vote), ....
import React from 'react'; import { BasketProvider } from 'components/basket'; const WrappedBasketProvider = ({ children }) => ( <BasketProvider shippingCost="199" freeShippingMinimumPurchaseAmount="800"> {children} </BasketProvider> ); export default WrappedBasketProvider;
import React from 'react'; import ReactDOM from 'react-dom'; import './Backdrop.css'; const Backdrop = props => { return ReactDOM.createPortal ( (<div className="backdrop" onClick={props.onClick}></div>), document.getElementById('backdrop-hook') ); }; export default Backdrop;
/* eslint-disable no-param-reassign */ /* eslint-disable no-shadow */ import Vue from 'vue'; const state = { savedItems: JSON.parse(localStorage.getItem('savedItems')) || [], }; const getters = { }; const mutations = { addToSaved(state, id) { state.savedItems.push(id); this.commit('saved/save'); }, ...
import random import math import time from collections import namedtuple from problog.ddnnf_formula import DDNNF from problog.engine import DefaultEngine from problog.evaluator import Evaluator, Semiring from problog.program import PrologFile from problog.logic import Term, Constant from problog.formula import LogicFo...
import '../css/style.scss'; import Data from './Data/Data.js'; import MakeElement from './Tools/MakeElement.js'; import TitleCard from './Page/TitleCard.js'; import PersonDetail from './Page/PersonDetail.js'; import Projects from './Page/ProjectDetail.js'; function RenderSite(){ let body = document.querySelector('b...
import template from './template.twig'; const { Component } = Shopware; Component.override('sw-data-grid-inline-edit', { template });
import {assert} from 'chai' import {getIntersection} from '../src/utilities-data.ts' describe('utilities - getIntersection', () => { it('should produce empty array from empty input', () => { const result = getIntersection() assert.sameMembers(result, []) }) it('should replicate single array', () => { ...
/** * Blockly Apps: Block Factory * * Copyright 2012 Google Inc. * http://blockly.googlecode.com/ * * 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/license...
/* Extends ParseObject Prototype methods: * getAnswers() - Returns all answers for this question as promise. Static methods: * getById( id ) - Makes get request and accepts id as first parameter. Calling this method will increase question views count by 1. Returns promise for the request. */ "use stri...
from typing import Dict from setuptools import find_packages, setup # type: ignore def long_description() -> str: return """ ## Dagster Dagster is a data orchestrator for machine learning, analytics, and ETL. Dagster lets you define pipelines in terms of the data flow between reusable, logical components, then...
export { default } from "ember-uikit/components/uk-card";
/** * Kendo UI v2020.2.617 (http://www.telerik.com/kendo-ui) * Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
import torch from torch_sparse import spspmm, coalesce from torch_geometric.utils import remove_self_loops from torch_geometric.transforms import BaseTransform class TwoHop(BaseTransform): r"""Adds the two hop edges to the edge indices.""" def __call__(self, data): edge_index, edge_attr = data.edge_i...
"""Support for the Swedish weather institute weather service.""" from __future__ import annotations import asyncio from datetime import datetime, timedelta import logging from typing import Any, Final, TypedDict import aiohttp import async_timeout from smhi import Smhi from smhi.smhi_lib import SmhiForecast, SmhiFore...
import React from 'react'; import { render } from 'enzyme'; import { requiredProps } from '../../test/required_props'; import { EuiBadge, COLORS, ICON_SIDES } from './badge'; describe('EuiBadge', () => { test('is rendered', () => { const component = render(<EuiBadge {...requiredProps}>Content</EuiBadge>); ...
const rp = require('request-promise'); const Url = require('url'); const apiLogoutUrl = process.env.API_LOGOUT_URL; const internalApiUrl = process.env.INTERNAL_API_URL; function removeURLParameter(url, parameter) { //prefer to use l.search if you have a location/link object var urlparts = url.split('?'); i...
import React from "react" import RightSidebar from "./" import SidebarBox from "../SidebarBox" import FeaturedVideoIcon from "@material-ui/icons/FeaturedVideo" export default { title: "RightSidebar", component: RightSidebar } export const Basic = () => ( <div style={{ width: 500, height: 500 }}> <RightSideb...
import express from "express"; import SocketIO from "socket.io"; import uuidv4 from "uuid/v4"; import path from "path"; // Room helper functions import {makeRoom} from "./room"; // Server-sider sockets code for each context import * as audience from "./audience"; import * as speaker from "./speaker"; const DEVELOPM...
#!/usr/bin/env node const logger = require('@acyort/logger')() const parser = require('../lib/cli/parser') const acyort = require('../lib') const getConfig = require('../lib/config') const argv = process.argv.slice(2) const base = process.cwd() const ignores = ['init', '-h', '--help', '-v', '--version'] try { cons...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OPEN_HAND = exports.CLOSE_HAND = void 0; /* eslint-disable max-len */ var OPEN_HAND = 'data:image/png;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
// Nested $elemMatch clauses. SERVER-5741 t = db.jstests_arrayfind7; t.drop(); t.save({a: [{b: [{c: 1, d: 2}]}]}); function checkElemMatchMatches() { assert.eq(1, t.count({a: {$elemMatch: {b: {$elemMatch: {c: 1, d: 2}}}}})); } // The document is matched using nested $elemMatch expressions, with and without an ...
class Singleton { constructor(name) { this._name = name; if (!Singleton._instance) { Singleton._instance = this; console.log('new Singleton instance has been created.'); } return Singleton._instance; } get name() { return this._name; } } export default Singleton;
assert.ok(find('.foo')); assert.ok(find('.foo')[0]); assert.ok(find(foo)); assert.ok(find(foo.bar)); assert.ok(find('.foo'), 'custom message'); assert.ok(find('.foo')[0], 'custom message'); assert.ok(find('.foo', '.parent-scope')); assert.ok(find('.foo', '.parent-scope')[0]); assert.ok(find('input:first')); assert.o...
/** * A Node in the autocompleter Trie. */ var Node = function (nodeObject) { /* The maximum score of all the values in this element * or its children */ if (nodeObject) { this.score = nodeObject.score; this.values = nodeObject.values; this.sorted = nodeObject.sorted; this...
/** * @constructor * @param {Number} userId User id * @extends twic.ModelList */ twic.Timeline = function(userId) { twic.ModelList.call(this); this.userId = userId; }; /** * @constant */ twic.Timeline.collectionName = 'timeline'; // twic.utils.inherits(twic.Timeline, twic.ModelList);
# Released under the BSD license, see LICENSE for details from _spice import *
''' Validates the user input, to check whether the API requirements are fulfilled and whether the input graph is correct. It there is a violation it throws an error with a hint what is violated. Depending on the input, the default parameters are substituted. ''' import numpy as np from ugd.high_level_interface.constru...
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class TestIdpReachability(object): """Implementation of the 'TestIdpReachability' model. Specifies the parameters to test the reachability of an IdP. Attributes: issuer_id (string): Specifies the IdP provided Issuer ID for the app. ...
import React from 'react' import Badge from '@pluralsight/ps-design-system-badge' import * as core from '@pluralsight/ps-design-system-core' import { Chrome, Code, Content, Example, P, PageHeading, PropTypes, SectionHeading } from '../../src/ui/index.js' export default _ => ( <Chrome> <Content t...
'use strict'; var assert = require('assert'); var Browser = require('./lib/browser'); var Homescreen = require('./lib/homescreen'); var Server = require('./lib/server'); var FlowManager = require('./lib/flow_manager'); var Actions = require('marionette-client').Actions; marionette('Remove bookmark on homescreen', fun...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['is']={"dir":"ltr","editor":"Rich Text Editor","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Fletta í skjalasafni","url":"Vefslóð","protocol"...
const enginesList = getJson("enginesList.json"), searchbox = document.getElementById("search"), urlRegex = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/; //On `Enter` key press, do search searchbox.addEventListener("keydown", function(...
'use strict'; module.exports = interrupt; function interrupt(interruptors, tokenizers, ctx, params) { var bools = ['pedantic', 'commonmark']; var count = bools.length; var length = interruptors.length; var index = -1; var interruptor; var config; var fn; var offset; var bool; var ignore; while ...
'use strict'; exports.type = 'perItem'; exports.active = true; exports.description = 'collapses multiple transformations and optimizes it'; exports.params = { convertToShorts: true, // degPrecision: 3, // transformPrecision (or matrix precision) - 2 by default floatPrecision: 3, transformPrecision: ...
{"windows":[{"tabs":[{"entries":[{"url":"http://gnuradio.org/redmine/projects/gnuradio/wiki","title":"WikiStart - GNU Radio - gnuradio.org","ID":3,"docshellID":6,"docIdentifier":3,"persist":true}],"lastAccessed":1434938431154,"hidden":false,"attributes":{},"image":"http://gnuradio.org/redmine/favicon.ico?1387561505","i...
// 存放接口地址的常量 // const url = 'http://192.168.0.103:8090/' const url = 'http://127.0.0.1:8090/' export default url
""" Slixmpp: The Slick XMPP Library Copyright (C) 2010 Nathanael C. Fritz This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.plugins.base import PluginManager, PluginNotFound, BasePlugin from slixmpp.plugins.base import register_plugin, load_plugin __all__ = ...
// serverstatus.js var error = 0; var d = 0; var server_status = new Array(); function timeSince(date) { if(date == 0) return "从未."; var seconds = Math.floor((new Date() - date) / 1000); var interval = Math.floor(seconds / 31536000); if (interval > 1) return interval + " 年前."; interval = Math.floor(seconds ...
from nltk.corpus import wordnet def lesk_max_overlap(context_sentence, ambiguous_word, pos=None, synsets=None): context = set(context_sentence) if synsets is None: synsets = wordnet.synsets(ambiguous_word) if pos: synsets = [ss for ss in synsets if str(ss.pos()) == pos] if not synsets...
/* http://keith-wood.name/datepick.html Hungarian localisation for jQuery Datepicker. Written by Istvan Karaszi (jquery@spam.raszi.hu). */ (function($) { 'use strict'; $.datepick.regionalOptions.hu = { monthNames: ['Január','Február','Március','Április','Május','Június', 'Július','Augusztus','Szeptember','O...
import React, { Component } from 'react' import { StyleSheet, Text, TouchableHighlight, View } from 'react-native' import { WebView } from 'react-native-webview' import branch, { BranchEvent } from 'react-native-branch' const styles = StyleSheet.create({ container: { flex: 1, flexDirection: 'column', ma...
from django.shortcuts import render from revisions.models import Revision from django.views.decorators.cache import never_cache from django.views.decorators.csrf import csrf_exempt from django.core import serializers from django.http import HttpResponse import json @csrf_exempt @never_cache def revision(request): ...
const inquirer = require('inquirer'); const Engineer = require('../lib/Engineer'); const getEngineer = require('../src/prompts/get-engineer'); jest.mock('inquirer'); describe('getEngineer()', () => { it("returns a new Engineer object", async () => { const data = { name: 'Dave', i...
/* * * * (c) 2009-2020 Øystein Moseng * * Accessibility component for chart zoom. * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import AccessibilityComponent from '../AccessibilityComponent.js'; import ChartUtiliti...
/* * Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * BK-CI 蓝鲸持续集成平台 is licensed under the MIT license. * * A copy of the MIT License is included in this file. * * * Terms of the MIT...
# # SelfTest/Math/test_Primality.py: Self-test for Primality module # # =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are ...
const randomChoice = arr => { let index = Math.floor(Math.random() * arr.length) return arr[index] } const rand = (min, max) => Math.random() * (max - min + 1) + min export { randomChoice, rand }
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import * as serviceWorker from './serviceWorker'; import 'bootstrap/dist/css/bootstrap.min.css'; import App from './App'; ReactDOM.render( <App></App>, document.getElementById('root') ); // If you want your app to work offline...
var assert = require('assert'); var multipartser = require('multipartser'), boundary = '-----------------------------168072824752491622650073', parser = multipartser(), mb = 100, buffer = createMultipartBuffer(boundary, mb * 1024 * 1024), callbacks = { partBegin: -1, partEnd: -...
class Stack: def __init__(self): self.items = [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[-1] def get_max(self): if len(self.items) == 0: return None return m...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
'use strict'; /** * Module dependencies */ var acl = require('acl'); // Using the memory backend acl = new acl(new acl.memoryBackend()); /** * Invoke Chatrooms Permissions */ exports.invokeRolesPolicies = function () { acl.allow([{ roles: ['admin'], allows: [{ resources: '/api/chatrooms', p...
/*========================================================================================= File Name: bi-polar-bar.js Description: Chartist bi-polar bar chart ---------------------------------------------------------------------------------------- Item Name: Modern admin - Clean Bootstrap 4 Dashboard H...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './styles/index.scss'; import App from './components/App'; import store from './stores/store'; ReactDOM.render( <Provider store={store}> <App /> </Provider> , document.getElementById('root'));
var oxmmanufacturercert_8h = [ [ "CreateConMCertificateBasedSelectOxmPayload", "oxmmanufacturercert_8h.html#a25ed394c356bbdba3b1722012b734b89", null ], [ "CreateMCertificateBasedOwnerTransferPayload", "oxmmanufacturercert_8h.html#ae02ab4a0d6cca4da1d7e93f078dc721d", null ], [ "CreateMCertificateBasedSelectOx...
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{168:function(t){t.exports={pages:[{componentChunkName:"component---src-pages-index-jsx",jsonName:"index",path:"/"},{componentChunkName:"component---src-templates-post-jsx",jsonName:"sample-fe5",path:"/.sample/"},{componentChunkName:"component---src-pages-404-jsx...
""" ASGI config for django_blog project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
(function() { const FILL_SCREEN_VERTEX_SHADER_SOURCE = `#version 300 es layout (location = 0) in vec2 position; void main(void) { gl_Position = vec4(position, 0.0, 1.0); } ` const INITIALIZE_PARTICLE_FRAGMENT_SHADER_SOURCE = `#version 300 es precision highp float; layout (location = 0) out ...
/*! jQuery UI - v1.10.2 - 2013-04-10 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.datepicker.js * Copyright 2013 jQuery Foundation and other contributors Licensed MIT */ (function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a....
import MockRedis from 'ioredis'; describe('spop', () => { it('should return a random item', () => { const redis = new MockRedis({ data: { myset: new Set(['one', 'two', 'three']), }, }); return redis.spop('myset').then((result) => { expect(result.constructor).toBe(String); ...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = ["1",893]; var argument3 = r_0; var argument4 = function callback(){callbackArguments.push(arguments)}; var argument5 = ""; var argument6 = function callback(){callbackArguments.push(arguments)}; va...