text
stringlengths
3
1.05M
/* Description: Raptor frida android enum * Mode: S * Version: 1.0 * Credit: https://github.com/0xdea/frida-scripts/tree/master/android-snippets * Author: @0xdea */ /* * raptor_frida_android_enum.js - Java class/method enumerator * Copyright (c) 2017 Marco Ivaldi <raptor@0xdeadbeef.info> * * Frida.re JS functi...
from telegram import Update from telegram.ext import CallbackContext from app.extensions import db from app.lib.handlers.base import BaseHandler, app_context from app.models import ( Bot, BotChannelMember, Channel, Human, HumanChannelMember, ) class LeftChatMemberFilter(BaseHandler): @app_con...
import numpy as np from ..errors import KaffeError, print_stderr from ..graph import GraphBuilder, NodeMapper from ..layers import NodeKind from ..transformers import (DataInjector, DataReshaper, NodeRenamer, ReLUFuser, BatchNormScaleBiasFuser, BatchNormPreprocessor, ParameterNamer) from ....
// let previousScrollPosition = window.pageYOffset; let showMenu = false; window.onscroll = () => { showMenu = false; let currentScrollPosition = window.pageYOffset; let social = document.querySelectorAll('.social'); const menuIcon = document.querySelector("#menuIcon"); const menuElement = documen...
from .dataset import * from .t2d import * from .semtab import * from .wdc import * from .efthymiou import * from .toughtables import ToughTables __all__ = [ "Dataset", "Annotation", "T2D", "Semtab", "WebDataCommons", "LimayeGS", "ToughTables", ]
import json import lzma import tempfile import zipfile from collections import namedtuple from pathlib import Path from celery import shared_task from django.core.files import File from django.utils import timezone from capapi.serializers import BulkCaseSerializer from capapi.views.api_views import CaseViewSet from c...
# -*- coding: utf-8 -*- ## @package inversetoon.pyqt.tool.base_tool # # inversetoon.pyqt.tool.base_tool utility package. # @author tody # @date 2015/07/21 from PyQt4.QtGui import * from PyQt4.QtCore import * ## Base Tool. class BaseTool(QObject): ## Constructor def __init__(self): sup...
# Generate plain notebooks with the required frontmatter defined # Usage: # $ python generate.py <notebook-names>... [-h] # # Generate plain notebooks with the required frontmatter defined. # # Positional arguments: # notebook_names Notebooks to generate # # Options: # -h, --help show this he...
/** * Copyright 2018 The AMP HTML 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 require...
const { createMacro } = require('babel-plugin-macros'); // copy to: // https://astexplorer.net/#/gist/642aebbb9e449e959f4ad8907b4adf3a/4a65742e2a3e926eb55eaa3d657d1472b9ac7970 module.exports = createMacro(ICUMacro); function ICUMacro({ references, state, babel }) { const t = babel.types; const { Trans = [], Plura...
var searchData= [ ['uart_2eh_75',['uart.h',['../uart_8h.html',1,'']]] ];
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
let item = ` <div class="row"> <input type="text" name="score" value="0" readonly> <input type="text" name="name" placeholder="Task (e.g. code a todo list app)"> <input type="date" name="date" placeholder="Due (Click to select)"> <input type="text" name="priority" placeholder="Priori...
import KUtils from '@/core/utils' import marked from 'marked' marked.setOptions({ gfm: true, tables: true, breaks: false, pedantic: false, sanitize: false, smartLists: true, smartypants: false }) /** * 根据当前swagger分组实例得到当前组下word文本 * @param {*} instance */ export default function wordText(instance) { ...
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2021-02-15 12:21 from tensorboardX import SummaryWriter from elit.common.structure import History from elit.utils.io_util import pushd class HistoryWithSummary(History): def __init__(self, save_dir): super().__init__() with pushd(save_dir): ...
/*! * Copied from ic-modal which is adapted from jQuery UI core * * http://jqueryui.com * https://github.com/instructure/ic-modal/tree/gh-pages * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core...
import path from 'path'; import pubsub from 'pubsub.js'; import utils from '../utils'; const EVENTS = utils.loadJSONSync(path.join(__dirname, '..', 'constants', 'events.json')); const EVENTS2 = { "APPLICATION_QUIT": "APPLICATION_QUIT", "FILE_LOAD": "FILE_LOAD", "FILE_LOAD_ERROR": "FILE_LOAD_ERROR", "PROJECT_L...
System.register(['angular2/core', 'angular2/http', 'rxjs/Observable', 'rxjs/add/operator/map', 'rxjs/add/operator/do', 'rxjs/add/operator/catch', './app.constants'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || fun...
import React from 'react'; import Header from '../components/Header'; export default function About() { return ( <> <Header /> <h1>About Page</h1> </> ) }
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import pytest import json from ..utils import make_task, make_annotation, make_prediction, project_id, make_annotator from projects.models import ...
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('series-areaspline', function (Y, NAME) { /** * Provides functionality for creating an areaspline series. * * @module charts * @submodule series-areaspline */ /*...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'print', 'sk', { toolbar: 'Tlač' } );
var lconfig = require("lconfig"); var dal = require('dal'); var logger = require('logger').logger('acl'); var crypto = require('crypto'); var ijod = require("ijod"); var async = require('async'); exports.init = function(callback) { logger.debug("Accounts DB Check"); logger.debug("If this spins, you need to import ...
import json import re #### READ LIST def read_list(text,value_list=None,sep = ',',modifier_list_not=None): if not modifier_list_not: modifier_list_not = ['!', '~', 'not', 'Not', 'NOT'] text = text.strip() negation = False # Test for Not if len(text) > 1 and text[0] in modifier_list_not ...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const merge = require('webpack-merge'); const base = require('./webpack.base'); module.exports = merge(base, { entry: { 'client': path.resolve(__dirname, '../src//entry-client.js') }, plugins: [ new HtmlWebpackPlugin(...
const { MessageVisual } = require('discord.js-prompts') const LocalizedPrompt = require('../common/utils/LocalizedPrompt.js') const Translator = require('../../../structs/Translator.js') const getConfig = require('../../../config.js').get const createLogger = require('../../../util/logger/create.js') /** * @typedef {...
# # The Python Imaging Library. # $Id$ # # MPO file handling # # See "Multi-Picture Format" (CIPA DC-007-Translation 2009, Standard of the # Camera & Imaging Products Association) # # The multi-picture object combines multiple JPEG images (with a modified EXIF # data format) into a single file. While it can theoretical...
class ContributionsButton extends HyperHTMLElement { created() {this.render()} render() { return this.html` <a id="contributions-button" class="fixed right-1 bottom-1 f6 link pointer br-pill ph3 pv2 gold bg-dark-gray animated bounceInRight" onclick=${this}>Contribution Opportunities</a>` ...
#!/usr/bin/env python3 # # Copyright (c) 2016 Intel Corporation. # # SPDX-License-Identifier: Apache-2.0 import sys import os import copy import threading import re try: import ply.lex as lex import ply.yacc as yacc except ImportError: print("PLY library for Python 3 not installed.") print("Please ins...
import cv2 import numpy # Camera resolution to capture at width = 240 height = 160 def process_stream(processor): #Camera buffers and handle camera = cv2.VideoCapture(0) camera.set(cv2.CAP_PROP_FRAME_WIDTH, width) camera.set(cv2.CAP_PROP_FRAME_HEIGHT, height) img = None while ...
'use strict' import * as FormActions from './formActions' export const ActionCreator = Object.assign({}, // add all action creators here FormActions )
/** * Represents a special return value during commmand execution or argument parsing. * @param {string} type - Type of flag. * @param {any} [data={}] - Extra data. */ class Flag { constructor(type, data = {}) { this.type = type; Object.assign(this, data); } /** * Creates a flag that cancels the command. ...
/** * * Copyright (c) 2020 Silicon Labs * * 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 a...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Holodeck = require('../../../../holodeck'); /* jshint ignore:line */ var Request = require( '../../../../../../lib/http/request')...
/* * This file is used to prevent cluttering of the main index file * Routes used in web application are defined here * Created by Ahmed Farghaly */ // Requiring necessarily files var express = require("express"); var router = express.Router(); // to break the routes out into little modular chunks. we will require t...
/** * Hilo 1.4.0 for commonjs * Copyright 2016 alibaba.com * Licensed under the MIT License */ var Class=require("../core/Class"),Hilo=require("../core/Hilo"),Renderer=require("./Renderer"),CanvasRenderer=Class.create({Extends:Renderer,constructor:function(e){CanvasRenderer.superclass.constructor.call(this,e),this....
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides object sap.ui.model.odata.AnnotationHelper sap.ui.define([ "jquery.sap.global", "sap/ui/base/BindingParser", "./_Annot...
/// <reference path="../_all.ts" /> var app; (function (app) { var about; (function (about) { 'use strict'; angular. module('app.about'). config(AboutConfig); AboutConfig.$inject = ['$stateProvider']; function AboutConfig($stateProvider) { $sta...
import styled from '@emotion/styled/macro' const View = styled.div` align-items: stretch; border-width: 0; border-style: solid; box-sizing: border-box; display: flex; flex-basis: auto; flex-direction: column; flex-shrink: 0; margin: 0; padding: 0; position: relative; min-height: 0; min-width:...
/* eslint-disable no-underscore-dangle */ import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import reducers from './reducers'; const middleware = [thunk]; // const composeEnhancers = // typeof window !== 'undefined' // ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 10.4.3-1-10-s description: > Strict Mode - checking 'this' (FunctionExpressio...
/******************************************** * This file is part of Webelexis * * Copyright (c) 2016-2018 by G. Weirich * * License and Terms see LICENSE * ********************************************/ const assert = require('assert'); const should=require('chai').should() const app = requi...
# Copyright The OpenTelemetry Authors # # 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 ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[78],{"71a3":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("q-page",{staticClass:"flex flex-top"},[[a("div",{staticClass:"q-pa-md"},[a("div",{staticClass:"q-gutter-y-md",staticStyle:{"max-width":"100%...
import { mapSetters, normalizePopulated, paginateQuery, initLogger, } from '../../utils/store'; import _ from 'lodash'; import { MEDICAL_RECORD_TYPES } from './constants'; export const STORE_NAME = 'medical-records'; const log = initLogger(STORE_NAME); const currentEncounterRecords = {}; MEDICAL_RECORD_TYPES...
import { context } from '@ember/-internals/environment'; import { run } from '@ember/runloop'; import { get, setNamespaceSearchDisabled } from '@ember/-internals/metal'; import { guidFor, getName } from '@ember/-internals/utils'; import EmberObject from '../../../lib/system/object'; import Namespace from '../../../lib/...
/** * @flow */ export type AttribsType = { type: string, id: string, src: string; width: string; height: string; } export type NodeType = { name: string, attribs: AttribsType, children?: Array<NodeType>, type: string, data: string, } export type AttachmentType = { id: string, src: string, ...
module.exports = [ { name: 'CSS Gradient', url: 'https://cssgradient.io/' }, { name: 'Crontab Cheatsheet', url: 'https://devhints.io/cron' }, { name: 'Moment.js Cheatsheet', url: 'https://devhints.io/moment', }, { name: 'Svelte Examples', url: 'https://svelte.dev/examples' }, { name: 'Chrome Dev...
// Copyright (C) 2015 André Bargull. All rights reserved. // Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: > Atomics.isLockFree.name is "isLockFree". includes: [propertyHelper.js] ---*/ assert.sameValue(Atomics....
import React from 'react'; const Panel = ({ children }) => <div className="panel">{children}</div>; export default Panel;
/* * Lamarr JS * * @author Jiri Hybek <jiri@hybek.cz> * @license See LICENSE file distriubted with this source code. */ var def = require("./langdef.js"); /* * Parser exceptions * * @param Parser parser * @param string message * @param integer offset (optional) */ var ParserException = function(parser, mes...
angular.module('adminNg.resources') .factory('NewEventProcessingResource', ['$resource', function ($resource) { var transform = function (data) { var result = []; try { result = JSON.parse(data); } catch (e) { } return result; }; return $resource('/admin-ng/event/ne...
/*global define*/ define(function() { "use strict"; /** * Functions for performing Lagrange interpolation. * @exports LagrangePolynomialApproximation * * @see LinearApproximation * @see HermitePolynomialApproximation */ var LagrangePolynomialApproximation = { type : 'L...
// # Ghost bootloader // Orchestrates the loading of Ghost // When run from command line. var express, ghost, parentApp, errors; var path = require('path'); var hbs = require('express-hbs'); // Make sure dependencies are installed and file system permissions are correct. require('./core/server/utils/star...
import React from 'react' import './ExtensionControls.css' export const ControlMeta = ( { title, description, error } ) => ( <div className='control-meta'> <div className='control-meta-error' style={ { display: error ? '' : 'none' } }> { error ? error.toString(): null } </div> <div className='c...
{ "global" : { "save" : "ذخیره", "cancel" : "لغو", "delete" : "حذف", "required" : "لازم", "download" : "بارگیری", "link" : "پیوند", "bookmark" : "بوکمارک", "close" : "بستن", "tags" : "برجسپ‌ها" }, "tree" : { "subscribe" : "مشترک شوید", "import" : "درون‌ریز...
import torch import torch.nn as nn import torch.nn.functional as F # this class is heavily based on the one implemented in the tutorial from pytorch # and forum https://discuss.pytorch.org/t/lstm-to-bi-lstm/12967 class BiLSTMClassifier(nn.Module): def __init__(self, embedding_dim, hidden_dim, sentset_size, num_l...
import numpy as NP import numpy.ma as MA import multiprocessing as MP import itertools as IT import copy import h5py import scipy.constants as FCNST import scipy.sparse as SpM from astropy.io import fits import matplotlib.pyplot as PLT import progressbar as PGB from astroutils import DSP_modules as DSP from astroutils ...
var searchData= [ ['actors',['Actors',['../namespacedroid_1_1_runtime_1_1_prototyping_1_1_actors.html',1,'droid::Runtime::Prototyping']]], ['actuators',['Actuators',['../namespacedroid_1_1_runtime_1_1_prototyping_1_1_actuators.html',1,'droid::Runtime::Prototyping']]], ['boundingbox',['BoundingBox',['../namespaced...
function autoreload_subscribe() { Genie.WebChannels.sendMessageTo("autoreload", "subscribe"); console.log("Autoreloading ready"); } setTimeout(autoreload_subscribe, 2000); Genie.WebChannels.messageHandlers.push(function(event) { if ( event.data == "autoreload:full" ) { location.reload(true); } });
# # (C) Copyright 2015-2018 by Rocky Bernstein # (C) Copyright 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com> # # 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...
from pprint import pprint from dataset.utils.parser import CodeParser from dataset.utils.test import (LANGUAGES, SO_FILES_MAP) LANG = 'python' parser = CodeParser(so_file=SO_FILES_MAP[LANG], language=LANG) # code = \ # """ # def sum_of_list(arr_, idx = 0): # arr_len = len(arr_) # if idx == a...
export default { navTheme: 'dark', // 菜单的主题 content: dark or light layout: 'sidemenu', // 菜单的布局,值为 sidemenu 菜单显示在左侧,值为 topmenu 菜单显示在顶部 contentWidth: 'Fluid', // 内容的布局 Fixed 为定宽到1200px ,Fluid 为流式布局 fixedHeader: false, // 固定页头 autoHideHeader: false, // 下滑时自动隐藏页头 fixSiderbar: false, // 固定菜单 sysName: 'cjet-ad...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{198:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(222),l=a(203),i=a(202);t.default=function(){return r.a.createElement(l.a,null,r.a.createElement(i.a,{title:"Page two"}),r.a.createElement("h1",null,"Hi from the second page"),r.a.createElement("p",nu...
describe('Nodes Detail Page', function () { beforeEach(function () { cy.configureCluster({ mesos: '1-task-healthy', nodeHealth: true }) }); context('Navigate to node detail page', function () { it('navigates to node detail page', function () { cy.visitUrl({url: '/nodes', identify:...
// ecma.js import commonJs from './common-js' console.log('Requiring a CommonJS' + ' from ecma:') console.log(commonJs) // The default import // using the import keyword 🙏🏾 // 2018+ JavaScript <3
import sys import asyncio import warnings from . import hdrs from .errors import HttpProcessingError, ClientDisconnectedError from .websocket import do_handshake, Message, WebSocketError from .websocket_client import MsgType, closedMessage from .web_exceptions import ( HTTPBadRequest, HTTPMethodNotAllowed, HTTPInt...
import Ember from 'ember'; import RSVP from 'rsvp'; const { computed } = Ember; export default Ember.Mixin.create({ showDropzone: computed.or('draggingOver', 'processingDrop'), dragEnter() { this.set('draggingOver', true); }, dragOver(evt) { evt.preventDefault(); }, drop(evt) { evt.preventD...
console.log(module.exports) // já existe um objeto criado module.exports que é o principal console.log(module.exports === this) // os outros estão referenciados para adicionar a ele console.log(module.exports === exports) this.a = 1 exports.b = 2 module.exports.c = 3 c...
from app import db from collections import namedtuple, Counter from enum import Enum, auto from typing import Optional, List, Set Ship = namedtuple('Ship', ['name', 'symbol', 'size']) symbol_to_ship = { 'C': Ship('Carrier', 'C', 5), 'B': Ship('Battleship', 'B', 4), 'R': Ship('Cruiser', 'R', 3), 'S': S...
import Cascader from './cascader.vue'; export default Cascader;
/** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ //require([ // 'jquery', // 'bootstrap/js/bootstrap.min' //], function ($) { //}); require([ 'jquery', 'mage/smart-keyboard-handler', 'mage/mage', 'mage/ie-class-fixer', 'domReady!' ], function (...
import o from"./LockPage.38f42d3b.js";import{u as e}from"./lock.da1b51d8.js";import{k as t,f as a,K as r,o as s,n,Q as d,X as c,T as m}from"./vendor.9d9efc92.js";import"./index.734d8392.js";import"./header.d801b988.js";var u=t({name:"Lock",components:{LockPage:o},setup(){const o=e();return{getIsLock:a((()=>{var e,t;ret...
# -*- coding: utf-8 -*- # # Copyright 2017 Google Inc. 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 requir...
import warnings from chainer.backends import cuda from chainer.functions.array import broadcast from chainer.functions.array import reshape from chainer.functions.normalization import batch_normalization def group_normalization(x, groups, gamma, beta, eps=1e-5): """Group normalization function. This functio...
/* abre e fecha o menu quando clicar no icone: hamburguer e x */ const nav = document.querySelector('#header nav') const toggle = document.querySelectorAll('nav .toggle') for (const element of toggle) { element.addEventListener('click', function () { nav.classList.toggle('show') }) } /* quando clicar em um i...
var chartDom_3 = document.getElementById('dist3'); var myChart_3 = echarts.init(chartDom_3); var option_3; $.get('https://monex-p.github.io/dashboard_prototype/data/payday_distribution_data.json', function (count_dict) { $.get('https://monex-p.github.io/dashboard_prototype/data/payday_default_data.json', function ...
import { storiesOf } from '@storybook/vue'; import DateRangePicker from './DateRangePicker'; import readme from './README.md'; storiesOf('Picker', module) .add('Date Range', () => ({ components: { DateRangePicker }, template: ` <DateRangePicker :maxRangeLength="365" exceedLengthErrorMsg...
import torch import torch.nn as nn from .py_utils import TopPool, BottomPool, LeftPool, RightPool from .py_utils.utils import convolution, residual, corner_pool from .py_utils.losses import CornerNet_Loss from .py_utils.modules import hg_module, hg, hg_net # 做池化层 def make_pool_layer(dim): return nn.Sequential()...
import './tariffService'; describe('tariffService', function () { var $httpBackend, tariffService, tariffsGETResponse, tariffsPUTResponse, tariffsPOSTResponse, categories, result; tariffsGETResponse = { tariff_list: { items: [ { 'created': '2015-05-29T12:33:59+0...
from sys import maxsize class Contact: def __init__ (self, firstname = None, middlename = None, lastname = None, nickname = None, title = None, company = None, company_address = None, ...
import { checkSession, checkIsAlreadyConnected, checkPermission } from 'source/modules/Auth/router/middleware' import { otherwise } from 'src/router' import { signIn, recoverPassword, layout } from 'source/modules/Auth/components' import { checkModified } from 'source/modules/General/router/middleware' /** * @param {A...
import io from 'socket.io-client'; export default class WebSocketClient { constructor(uri ='/', { path ='/', forceNew =true, transports = ['websocket','polling'], autoConnect =false, } = {} ){ this.client = io(uri,{path, forceNew,transports,autoConnec...
/** * material-design-lite - Material Design Components in CSS, JS and HTML * @version v1.0.4 * @license Apache-2.0 * @copyright 2015 Google, Inc. * @link https://github.com/google/material-design-lite */ !function(){"use strict";function e(e,s){if(e){if(s.element_.classList.contains(s.CssClasses_.MDL_JS_RIPPLE_E...
import React, { Fragment, useEffect } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Spin } from 'antd'; import { getNotifications, markAllReadNotifications, clearAllNotifications, } from '../../redux/actions/notification'; import NotificationItem from './Notif...
def process_2arrays(arr1, arr2): s1,s2 = set(arr1), set(arr2) return [len(s1 & s2), len(s1 ^ s2), len(s1 - s2), len(s2 - s1)]
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
# Copyright 2019 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. import re """Presubmit for build/util""" USE_PYTHON3 = True def _GetFilesToSkip(input_api): files_to_skip = [] affected_files = input_api.change.Affe...
/** * This file is part of Wizkers.io * * The MIT License (MIT) * Copyright (c) 2016 Edouard Lafargue, ed@wizkers.io * * 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 restric...
const elm = document.getElementById('status'); const hudContainer = document.getElementById('top-right'); const currentLevelDisplay = hudContainer.querySelector('.levelHud') const pointsDisplay = hudContainer.querySelector('.pointHud') const speedDisplay = hudContainer.querySelector('.speedHud') function showMessage(m...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
#When run on (my) windows box, this builds and cleans everything in #preparation for a release. import os import sys #Replace version strings if len(sys.argv)>1: oldVersion = sys.argv[1] newVersion = sys.argv[2] query = raw_input("Replace %s with %s?: " % (oldVersion, newVersion)) if query == "y": ...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("babylonjs")); else if(typeof define === 'function' && define.amd) define("babylonjs-gui", ["babylonjs"], factory); else if(typeof exports === 'object') exp...
module.exports = { siteMetadata: { title: `Koray Ece`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helmet`, { ...
import React from "react"; import ResetPassword from "../Auths/ResetPassword"; import { MemoryRouter } from "react-router-dom"; describe("ResetPassword component", () => { it("should render the form", () => { const wrapper = mount( <MemoryRouter> <ResetPassword /> </MemoryRouter> ); ...
'use strict' const http = require('http') const { proxy: forward } = require('fast-proxy')({ base: 'http://127.0.0.1:3000/', undici: { connections: 100, pipelining: 10 } }) const proxy = http.createServer((req, res) => { forward(req, res, req.url, { rewriteRequestHeaders (req, headers) { dele...
# Names scores # Problem 22 # Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first # names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, # multiply this value by its alphabetical position in the list to obt...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Comd(MakefilePackage): """CoMD is a reference implementation of classical molecula...
function toggle(div_id) { var el = document.getElementById(div_id); if ( el.style.display == 'none' ) { el.style.display = 'block';} else {el.style.display = 'none';} } function blanket_size(popUpDivVar) { if (typeof window.innerWidth != 'undefined') { viewportheight = window.innerHeight; } else { viewportheig...