text
stringlengths
3
1.05M
from decimal import Decimal, InvalidOperation from django import template from django.utils.safestring import mark_safe from l10n.utils import moneyfmt from satchmo_utils.templatetags import get_filter_args import logging log = logging.getLogger("satchmo_currency") register = template.Library() def currency(value, ...
const assert = require('assert') const chai = require('chai') const dirtyChai = require('dirty-chai') const path = require('path') const http = require('http') const url = require('url') const { ipcRenderer, remote } = require('electron') const { app, session, ipcMain, BrowserWindow } = remote const { closeWindow } = r...
import React from 'react' import SvgIcon from '@material-ui/core/SvgIcon' function CloudVerySlow (props) { return ( <SvgIcon {...props}> <path d="M7.58175798,16.492506 C5.45537399,16.492506 3.77198666,14.8091186 3.77198666,12.6827346 C3.77198666,10.7335493 5.27817532,9.13876132 7.13876132,8.87296332 L7.581...
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
$().ready(function() { validateRule(); }); $.validator.setDefaults({ submitHandler : function() { save(); } }); function getCheckedRoles() { var adIds = ""; $("input:checkbox[name=role]:checked").each(function(i) { if (0 == i) { adIds = $(this).val(); } else { adIds += ("," + $(this).val()); } }); ...
// @flow import React from 'react'; import { TouchableWithoutFeedback, Platform, Text, View, } from 'react-native'; import { withNavigation } from 'react-navigation'; import FastImage from 'react-native-fast-image'; import styled from 'styled-components'; import { ROUTE_NAMES } from '~/components/screens/home/rout...
import socketIOClient from 'socket.io-client' import sailsIOClient from 'sails.io.js' const io = sailsIOClient(socketIOClient); //io.sails.url="https://121.40.219.227/"; io.sails.url="https://www.opt.com.cn/"; io.sails.useCORSRouteToGetCookie = false; export default io
# Copyright (C) Mesosphere, Inc. See LICENSE file for details. """This module provides fixtures that are shared among all repository flavours (Open/EE)""" import json import os import pyroute2 import pytest from jwt.utils import base64url_decode, base64url_encode import generic_test_code.common from mocker.dns i...
#!/usr/bin/env python # Software License Agreement (MIT License) # # Copyright (c) 2020, control_warpper # All rights reserved. # # 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 rest...
var searchData= [ ['pacman',['Pacman',['../class_pacman.html',1,'Pacman'],['../class_pacman.html#a499408baab38f119ebd4f41e90fbe3fe',1,'Pacman::Pacman()'],['../class_pacman.html#af7a106cbda2c19a855f87dcbac2bfcf5',1,'Pacman::Pacman(QString pixmapPath, int x, int y)']]], ['pacman_2ecpp',['pacman.cpp',['../pacman_8cpp....
import React from 'react' import { DiscussionEmbed } from 'disqus-react' const Discussion = ({ title, url }) => { const config = { url: url, title: title, } return <DiscussionEmbed shortname="searle" config={config} /> } export default Discussion
import numpy as np import pytest import pytz import pandas as pd from pandas import ( DataFrame, Index, Series, date_range, ) import pandas._testing as tm class TestDataFrameAlign: def test_frame_align_aware(self): idx1 = date_range("2001", periods=5, freq="H", tz="US/Eastern") id...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
foo__1(); var foo__1;
import React from 'react' import markdown from 'markdown-in-js' import markdownOptions from '../utils/MarkdownOptions' import DefaultPage from './DefaultPage' import { EditorTranspiler } from '../components' const code = `const a = <View /> const b = ( <View foo='hello' bar={baz}> <Text>42</Text> </V...
// @flow import { List, AutoSizer } from "react-virtualized"; import cn from 'classnames'; import { NoContent, IconButton } from 'UI'; import { percentOf } from 'App/utils'; import { formatMs } from 'App/date'; import BarRow from './BarRow'; import stl from './timeTable.css'; import autoscrollStl from '../autoscrol...
$(function () { "use strict"; Morris.Area({ element: 'morris-area-chart' , data: [{ period: '2010' , iphone: 10 }, { period: '2011' , iphone: 1667 }, { period: '2012' ,...
import connectContract from "../../api/connectContract" import {formatResult} from "../../utils/formatUtils" import Accounts from "../../api/Account.js"; import {eventBus} from "../../utils/eventBus" const state = { web3: {}, contract: null } const value = 0; const gasLimit = -1; async function judgeContract(w...
// Generated by CoffeeScript 1.10.0 (function() { var Router, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; Router = function(options) { var _bodyparser, _extend, _getSessionHandler, _isEmpty, _make_reque...
# Copyright 2018 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...
from typing import List, Dict, Union from app.modules import bus_api from app.modules.bus_api.models.BusArrival import BusRouteInfo from app.modules.bus_api.models.GyeonggiArrival import GyeonggiBusArrival from app.modules.bus_api.models.IncheonArrival import IncheonBusArrival from app.modules.bus_api.models.KoreaArri...
module.exports = { collectCoverage: true, collectCoverageFrom: ['src/*.{ts,tsx}'], moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], preset: 'ts-jest', rootDir: process.cwd(), roots: ['<rootDir>/test'], setupFiles: ['raf/polyfill', '<rootDir>/scripts/jest/setupEnvironment.ts'], setupFilesAfterEnv: ['<r...
# Domoticz TUYA Plugin # # Author: Wagner Oliveira (wbbo@hotmail.com) # """ <plugin key="tuya" name="TUYA" author="Wagner Oliveira" version="1.0.0" wikilink="http://www.domoticz.com/wiki/plugins/plugin.html" externallink="https://github.com/guino/Domoticz-TUYA"> <description> <h2>TUYA Plugin</h2><br/> ...
'use strict'; const _ = require('lodash'); const Script = require('smooch-bot').Script; const scriptRules = require('./script.json'); module.exports = new Script({ processing: { //prompt: (bot) => bot.say('Beep boop...'), receive: () => 'processing' }, start: { receive: (bot) => ...
module.exports = require('./_shared')('native-function-to-string', Function.toString);
from .database import banco class Exclusao: def excluir_dados(self): linha = self.tela_admin.tbl_usuarios.currentRow() self.tela_admin.tbl_usuarios.removeRow(linha) cursor = banco.cursor() cursor.execute("SELECT id FROM dados") dados_lidos = cursor.fetchall() v...
export {default} from './ReplyBubble';
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
import "./App.css"; import { useState } from "react"; function App() { const [count1, setCount1] = useState(0); const [count2, setCount2] = useState(0); const [results, setResults] = useState([]); const increase1 = () => setCount1(count1 + 1); const increase2 = () => setCount2(count2 + 1); const decreas...
# test_bytebit.py # Copyright 2018 Roger Marsh # Licence: See LICENCE (BSD licence) """bytebit tests""" import unittest try: from bitarray import bitarray except: bitarray = False from .. import bytebit, _bytebit class Bitarray(unittest.TestCase): def setUp(self): pass def tearDown(self):...
'use strict'; var _32 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 32, height: 32, }, content: [ { elem: 'path', attrs: { d: 'M11.61 29.92a1 1 0 0 1-.6-1.07L12.83 17H8a1 1 0 0 1-1-1.23l3-13A1 1 0 0 1 11 2h10a1 1 0 ...
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE var Wrapper = { }; var Wrapper2 = { Wrapper: Wrapper }; var A = { }; var M2 = { M1: A }; var M3 = { M2: M2 }; export { Wrapper2 , A , M3 , } /* No side effect */
(() => { 'use strict'; const MongodbCrudManager = global.helper.MongodbCrudManager; //THis comes from the mongodb module using the helper api to export the class class ExampleCrudManager extends MongodbCrudManager { constructor() { super('myCollectionNameCrud', {dbName:'myDbName', tag:'myTag', scopes:...
import React from "react" import DefaultLayout from "./ui/DefaultLayout"; import { APP_SCOPE, LOCAL_SCOPE, SESSION_SCOPE, USER_SCOPE } from "./scopeNames"; import i18n from "./i18n"; export const DEFAULT_OPTS = { contextPath: "", appName: null, rootProcess: null, csrfToken: null, ...
var page = 2; jQuery(function($) { function appendPost(data, callback) { $.post(breeds_loadmore_params.ajaxurl, data, function(response) { if ($.trim(response) == "") { $(".loadmore").hide(); } $("#breeds-listing").append(response); page++; data.page = page; $.post(breeds_loadmore_params.ajaxu...
import base64 import datetime import json import os import requests SERVER = os.environ['JIRA_SERVER'] EMAIL = os.environ['JIRA_EMAIL'] PROJ_KEY = "EDU" BOARD_ID = 17 api_token = base64.b64encode( bytes(f"{EMAIL}:{os.environ['JIRA_API_TOKEN']}", 'utf-8') ).decode('utf-8') headers = { "Accept": "application/js...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.PanoramaWideAngle = React.forwardRef(function (props, ref) { var attrs = { "fill": ...
#!/usr/bin/env python from wand.image import Image from wand.drawing import Drawing from wand.color import Color # http://www.imagemagick.org/Usage/draw/#arcs w = 100 h = 60 bgcolor = Color('skyblue') # original imagemagick command: # convert -size 100x60 xc:skyblue -fill white -stroke black \ # -draw "pa...
unused_funarg_1: { options = { keep_fargs: false, unused: true, } input: { function f(a, b, c, d, e) { return a + b; } } expect: { function f(a, b) { return a + b; } } } unused_funarg_2: { options = { keep_fargs...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from textw...
/*! jQuery Validation Plugin - v1.15.1 - 7/22/2016 * http://jqueryvalidation.org/ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}...
/* * @Author: your name * @Date: 2021-12-16 18:29:22 * @LastEditTime: 2021-12-29 21:11:05 * @LastEditors: Please set LastEditors */ (() => { var typeHome = ["https://zjy2.icve.com.cn", "https://mooc.icve.com.cn"], //平台类型数组 typeIndex = typeHome.indexOf(location.origin); //当前平台 if (typeIndex...
import React, { Component } from 'react'; export default class Grass extends Component { constructor(props) { super(props); // console.log('Grass: ' + JSON.stringify(props)); this.state = { hasMine: props.cell.hasMine, hasFlag: props.cell.hasFlag, isOpened: props.cell.isOpened, co...
import NextAuth from "next-auth" import Providers from "next-auth/providers" import {Adapter} from "./../../../utils/fauna" import faunadb from "faunadb" import { redirect } from "next/dist/next-server/server/api-utils"; const faunaClient = new faunadb.Client({ secret: process.env.FAUNADB_SECRET_KEY, }); // For mor...
const fs = require('fs') const path = require('path') const tus = require('tus-js-client') const uuid = require('uuid') const createTailReadStream = require('@uppy/fs-tail-stream') const emitter = require('./emitter') const request = require('request') const serializeError = require('serialize-error') const { jsonStrin...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-celebrity-speed5"],{"05ef":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"uniTopBar",props:{barid:{type:Number,default:0},title:String,within:String,background:String},data:function()...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _styledComponents = _interopRequireWildcard(require("styled-components")); var _styledSystem = require("styled-system"); var _constants = require("./constants"); var _sx = _interopRequireDefault(require("./...
from sympy.vector.coordsysrect import CoordSys3D, CoordSysCartesian from sympy.vector.vector import ( Vector, VectorAdd, VectorMul, BaseVector, VectorZero, Cross, Dot, cross, dot, ) from sympy.vector.dyadic import Dyadic, DyadicAdd, DyadicMul, BaseDyadic, DyadicZero from sympy.vector...
############################################################################### # # Copyright (C) 2014, Tavendo GmbH and/or collaborators. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redi...
import * as loadEnv from './load-env' import * as storage from './storage' import * as utils from './utils' import help from './help' export { help, loadEnv, storage, utils } export * from './error'
import mock from twisted.internet import defer, reactor from twisted.trial import unittest from lbrynet import conf from lbrynet.daemon.auth import server from tests.mocks import mock_conf_settings class AuthJSONRPCServerTest(unittest.TestCase): # TODO: move to using a base class for tests # and add useful g...
import { Editor, Transforms, Range } from 'slate'; import { tableSelection } from '../rendering/elements/tableSelection'; import { tableResize } from '../rendering/elements/tableResize'; export const createDefaultElement = (text = '', attr = {}) => { return { type: 'paragraph', ...attr, children: [{ text }] }...
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import argparse import glob import json import os import torchaudio SPLITS = [ "train-clean-100", "dev-clean", "dev-other", "test-clean...
# Copyright 2018 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 writing, ...
class Storage { async _download() {} async _upload() {} async _deleteOldFiles() {} async _updateMetaData() {} async sync() { await this._download(); await this._upload(); await this._deleteOldFiles(); await this._updateMetaData(); console.log('Sync completed!'); } } (async () => { co...
from .github_analysis_orchestrator import GitHubAnalysisOrchestrator
import React from "react" import { Provider } from "react-redux" import store from "./configureStore" // eslint-disable-next-line react/display-name,react/prop-types export default ({ element }) => { // Instantiating store in `wrapRootElement` handler ensures: // - there is fresh store for each SSR page ...
import BaseAppointmentsStrategy from './strategy.base'; import dateUtils from '../../../../core/utils/date'; import { ExpressionUtils } from '../../expressionUtils'; const DEFAULT_APPOINTMENT_HEIGHT = 60; const MIN_APPOINTMENT_HEIGHT = 35; const DROP_DOWN_BUTTON_OFFSET = 2; const toMs = dateUtils.dateToMilliseconds; ...
import React, { Component } from "react" export default class Placepage extends Component { render() { return ( <div style={{ padding: "2rem", // border: "5px solid blue", margin: "1rem", fontWeight: "bold", fontFamily:"montserrat" }}> <h3>{this.props.p...
/* * Copyright 2018 American Express Travel Related Services Company, 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 r...
const fs = require("fs"); const esprima = require("../util/EsprimaUtils"); const estraverse = require("estraverse"); const fp = require("../util/FilePathUtil"); const tempSelected = require("../converters/wdio/TemporaryRegexReplacements").IS_SELECTED.temporary; const converter = require("../converters/ActiveConverter")...
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{405:function(t,a,s){"use strict";s.r(a);var e=s(27),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"dom节点操作"}},[s("a",{staticClass:"header-an...
export const knex = require('knex')({ client: 'pg', connection: process.env.DATABASE_URL, searchPath: 'knex,public' });
import koaBody from 'koa-body'; import LibraryConstants from '../constants'; import Utility from '@thzero/library_common/utility'; import BaseRoute from './index'; import authentication from '../middleware/authentication'; import authorization from '../middleware/authorization'; class BaseUsersRoute extends BaseRo...
// Copyright (c) 2016, Aditya Duggal and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Price Analysis"] = { "filters": [ { "fieldname":"investment", "label": "Investment Name", "fieldtype": "Link", "options": "Item", "reqd": 1 }, { "...
if (process && process.env && process.env.CONSOLE_LOG) { console.info('log from file: app/index.js'); // eslint-disable-line no-console } import React from 'react'; import { render } from 'react-dom'; import {nameSpace} from './config'; import FilteredTodos from './containers/filtered-todos'; import AddTodo from ...
/* Copyright 2022, Francesco Balzano (francescobalzano10@gmail.com), All rights reserved. */ // TODO: tutte queste variabili vanno dentro oggetto SEE (o App) const see = {}; var inputElementWSE; // single input element for the windows security logs var wselog; // FilePond for windows security log filename var uploade...
import { t, unixTimestampToDuration } from './i18n'; import manifest from './manifest'; import * as enums from './destinyEnums'; import * as SVG from '../svg'; export function ammoTypeToAsset(type) { let string; let icon; switch (type) { case 1: string = manifest.DestinyPresentationNodeDefinition[1731...
function passwordStrength(password) { var desc = new Array(); desc[0] = "Muito Fraca"; desc[1] = "Fraca"; desc[2] = "Média"; desc[3] = "Boa"; desc[4] = "Forte"; desc[5] = "Muito Forte"; var score = 0; //if password bigger than 6 give 1 point if (password.length > 6) score++; //if password h...
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Functions for Python 2 vs. 3 compatibility. ## Conversion routines In addition to the functions below, `as_str` converts an object to a `str`. ## Types The compatibility module also pr...
export const acornSmall = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ...
from flask import current_app current_app.logger.debug('debug') current_app.logger.error('error')
#!/usr/bin/env python class FetcherInterface(object): """ _FetcherInterface_ define standard interface for fetcher implementations. Init takes the working directory for the sandbox Call invokes the fetcher on a WMTask instance """ def __init__(self): self.workingDir = None ...
export default function CarsList() { return <h1>Cars List</h1> }
const catchError = require("../../extras/catchError"); module.exports.run = function (client, message, args) { let messageCount = parseInt(args[0]) + 1; if (!messageCount) return message.reply(client.translate.commands.purge.purge_instructions); if (messageCount > 100) return message.reply(client.translate.command...
import { doesParameterExist } from "@/utils/utils"; export function leopardLogBanner() { if (!doesParameterExist("embed") && !doesParameterExist("button")) { console.groupCollapsed( `%c Powered by %c Leopard Chat UI 💬 %c`, "background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff",...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","lt",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Bend...
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js * * Copyright (c) 2009-2016 The MathJax Consortium * * 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...
// Copyright 2017 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 ...
import os import csv import matplotlib.pyplot as plt import numpy as np import opendp.smartnoise.core as sn import pandas as pd epsilon = pd.read_pickle('epsilon.pkl') #data_path = os.path.join("adult.csv") NUM_TRIALS = 5 attribute = 'age' if attribute == 'age': #data_path = os.path.join("E:\\MS_Thesis\\public...
/* zero-parse.js Decoder for Zero motorcycle MBB or BMS log files. 1.0 02/22/2017 Copyright 2017 Keith Thomas License: MIT https://github.com/keithxemi/browser-parse/blob/master/LICENSE */ /* jslint browser: true */ /*global Highcharts, Blob, FileReader, DataView, Uint8Array, Uint16Array, Uint32Array */ (functi...
project = "stdlib" author = f"{project} contributors" copyright = "2022 Fortran programming language community" extensions = [ "ablog", "myst_parser", "sphinx_design", "sphinx_copybutton", "sphinx.ext.intersphinx", ] myst_enable_extensions = [ "colon_fence", "deflist", "substitution", ...
(function(bespoke) { var INVOKE_CHAR_CODE = 81; // q var SEARCH_SELECTORS = [ function( slide ) { return slide.querySelectorAll( "header, h1, h2, h3, h4, h5, h6" ); }, function( slide ) { return [ slide ]; } ]; function escapeRegExp( str ) { var ret = "", esc = "\\^$*+?.()=|{,}[]-"; for ( var i = 0; i < s...
import React from 'react'; import {shallow, mount} from 'enzyme'; import {cloneRepository, buildRepository} from '../helpers'; import GitTabView from '../../lib/views/git-tab-view'; import {gitTabViewProps} from '../fixtures/props/git-tab-props'; describe('GitTabView', function() { let atomEnv, repository; befor...
import React, { Component } from 'react' import PropTypes from 'prop-types' import Navigation from './presenter' class Container extends Component { state = { term: '' } static propTypes = { goToSearch: PropTypes.func.isRequired } render() { const { term } = this.state return <Navigation onSu...
module.exports = (req , res) => { req.session.destroy(() => { res.redirect('/') }) }
'use strict'; var React = require('react-native'); var TodoList = require('./TodoList'); var { AppRegistry, StyleSheet, Text, View, } = React; var myReactNativeTodoListApp = React.createClass({ render: function() { return ( <View style={styles.container}> <TodoList /> </View> )...
"use strict"; //----------------------------------------------------------------------------------------- function intToARGB(i) { return ('00' + ( i & 0xFF).toString( 16 ) ).substr( -2 ) + ('00' + ( ( i >> 8 ) & 0xFF ).toString( 16 ) ).substr( -2 ) + ...
import { scaleOrdinal, schemeCategory10 } from "d3-scale"; import { bisector } from "d3-array"; import noop from "./noop"; import identity from "./identity"; export { default as rebind } from "./rebind"; export { default as zipper } from "./zipper"; export { default as merge } from "./merge"; export { default as s...
if (!this.uuid) { // node.js uuid = require('../uuid'); } // // x-platform log/assert shims // function _log(msg, type) { type = type || 'log'; if (typeof(document) != 'undefined') { document.write('<div class="' + type + '">' + msg.replace(/\n/g, '<br />') + '</div>'); } if (typeof(console) != 'unde...
/* eslint-disable no-undef */ import React, { Fragment, useEffect } from 'react'; import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import { useRouter } from 'hooks'; const NODE_ENV = process.env.NODE_ENV; const GA_MEASUREMENT_ID = process.env.REACT_APP_GA_MEASUREMENT_ID; const Page = props ...
exports.sewa = () => { return`🇸 🇪 🇼 🇦 🇧 🇴 🇹 ❗ ┏━━━━━━ ┃𝗛𝗔𝗥𝗚𝗔 𝗦𝗘𝗪𝗔 : ┃ *1 MINGGU : Rp 5.000* ┃ *1 BULAN : Rp 15.000* ┃ *PERMANEN : Rp 35.000* ┗━━━━━━ ┏━━━━━━ ┃𝗙𝗜𝗧𝗨𝗥 𝗕𝗢𝗧 : ┃ *⚔️ Antilink Group* ┃ *👨‍🎨 Buat Stiker* ┃ *📥 Downloader* ┃ *Dll.* ┗━━━━━━ *SISTEM: TES BOT-MASUKIN B...
const { aggregateResults } = require('../src/aggregators'); const { impact, severeImpact } = require('../src/constants'); const { sampleData1 } = require('./fixtures/samples'); const covid19ImpactEstimator = require('../src/estimator'); test('should correctly return result object', () => { const results = { data...
# 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...
// You should implement your task here. module.exports = function towelSort (matrix) { if ( !Array.isArray(matrix) ) return []; if (matrix.length === 0) return []; return matrix.map((element, i)=> (i%2 !== 0) ? element.reverse() : element).flat(); }
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2014-2019 OpenEEmeter contributors 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/LIC...
var redis = require("redis"), client = redis.createClient(); module.exports = { /** * save or overwrite key-value pairs * * values : a list like ['key', 'subkey1', 'v1', 'subkey2', 737] * call back: function like: * function (err, reply) {console.log(reply.toString());} */ save : function(key, values...
import simpy class Event(simpy.Event): def __init__(self, env, name, **kwargs): """Base event class. Args: env (:class:`.simpy.Environment`) name (str) **kwargs: Arbitrary keyword arguments """ self.name = name super().__init__(env, **kw...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'format', 'sr-latn', { label: 'Format', panelTitle: 'Format pasusa', tag_address: 'Adresa', tag_div: 'Normalno (DIV)', tag_h1:...
""" © https://sudipghimire.com.np Dictionary Exercises Please read the note carefully and try to solve the problem below: """ """ 1. Create a dictionary of a person that contains key value pair of - name: str - age: int - profession: str - married: bool a. print the value of 'name' from the dic...