text
stringlengths
3
1.05M
"""Support for the GPSLogger device tracking.""" import logging from homeassistant.components.device_tracker import SOURCE_TYPE_GPS from homeassistant.components.device_tracker.config_entry import TrackerEntity from homeassistant.const import ( ATTR_BATTERY_LEVEL, ATTR_GPS_ACCURACY, ATTR_LATITUDE, ATTR...
from operator import itemgetter import nltk from util.ctc_util import get_alphabet from util.string_util import replace_numeric, remove_punctuation, unidecode_with_alphabet def process_line(line, language='german', min_words=4, ): sentences = [] sents = nltk.sent_tokenize(line.strip(), language=language) ...
import cv2, numpy as np class DetectParking: def __init__(self): self.isFirstDetection = True self.isSecondLine = False self.lastRho = -1 def reset(self): self.isFirstDetection = True self.isSecondLine = False self.lastRho = -1 def isHorizontal(self, theta...
// Set new default font family and font color to mimic Bootstrap's default styling Chart.defaults.global.defaultFontFamily = '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif'; Chart.defaults.global.defaultFontColor = "#292b2c"; // Area Chart Example var ctx = document...
var a02737 = [ [ "Handle", "a02737.html#a222b830b361c256f1e1bf38b2c514352", null ], [ "Inherited", "a02737.html#ade50d12536e1a3a8ed79f7536ab3c6f4", null ], [ "Self", "a02737.html#af5edd1ac75bd74946a92eb5de80dfafb", null ], [ "EF", "a02737.html#a17cbe938fa7ec75cdfadc2d32208722b", null ], [ "raise", "...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['km']={"editor":"แžงแž”แž€แžšแžŽแŸโ€‹แžŸแžšแžŸแŸแžšโ€‹แžขแžแŸ’แžแž”แž‘โ€‹แžŸแž˜แŸ’แž”แžผแžšโ€‹แž”แŸ‚แž”","editorPanel":"แž•แŸ’แž‘แžถแŸ†แž„โ€‹แžงแž”แž€แžšแžŽแŸโ€‹แžŸแžšแžŸแŸแžšโ€‹แžขแžแŸ’แžแž”แž‘โ€‹แžŸแž˜แŸ’แž”แžผแžšโ€‹แž”แŸ‚แž”","common":{"editorHelp":"แž…แžปแž… ALT 0 แžŸแž˜แŸ’แžšแžถแž”แŸ‹โ€‹แž‡แŸ†แž“แžฝแž™","browseServ...
module.exports = function (grunt) { // 1. All configuration goes here grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), qunit: { hello: ['test/helloQUnit.html'], all: ['test/**/*.html'] }, connect: { uses_defaults: {} }, ...
import GalanoGrotesqueReg from './GalanoGrotesque-Regular.otf' import GalanoGrotesqueBold from './GalanoGrotesque-Bold.otf' import GalanoGrotesqueItalic from './GalanoGrotesque-Italic.otf' export { GalanoGrotesqueReg, GalanoGrotesqueBold, GalanoGrotesqueItalic }
import { AsyncStorage } from 'react-native'; export const storeData = async (key, value, callback = ()=>{}) => { try { await AsyncStorage.setItem(key, value, callback); } catch (error) { //console.log(error); } } export const retrieveData = async (key, callback = ()=>{}) => { try { await AsyncStor...
import React, { Fragment } from 'react' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Meta from './Meta' import Nav from './Nav' import GithubCorner from './GithubCorner' import 'modern-normalize/modern-normalize.css' import './globalStyles.css' export default ({ children, met...
const express = require('express'); const os = require('os'); const app = express(); // Stupid service that returns an animal based on our advertised Avahi service const ANIMALS = [ 'Elephant', 'Ocelot', 'Lesser Spotted Pygmy Shrew', 'Zookeeper', 'Rhinoceros', 'Pigeon', ]; app.get('/', (_req,...
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "f27f117ce20a2de08431e54fb9f60fd3", "url": "./index.html" }, { "revision": "2109e8248f8065714a78", "url": "./static/css/main.ad272e2b.chunk.css" }, { "revision": "61091f7d2421853f0432", "url": "./static/js...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Pipe } from '@angular/core'; import { getPluralCategory, NgLocalization } from '../i18n/localization'; import...
import React, { Component } from 'react' import { connect } from 'react-redux' class AdminRestrict extends Component { render() { const { users, children } = this.props const { isAdmin } = users[users.curUser] || {} if (isAdmin) return children return ( <p className="errMsg"> You do no...
from discord.ext import commands from math import * import re import functools def get_math(mat): """Retrieve results from python""" return eval(mat) class Calculator(commands.Cog): """Discord.py cog to make complex math operations.""" def __init__(self, bot): self.bot = bot def saniti...
"use strict" module.exports = { "extends": "stylelint-config-recommended", "rules": { "at-rule-empty-line-before": ["always", { except: [ "blockless-after-same-name-blockless", "first-nested", ], ignore: ["after-comment"], }], "at-rule-name-case": "lower", "at-rule...
import { createSelector } from 'reselect'; import { TYPES } from '../../constants/common'; import { values, sortBy } from '../../utils/lodash'; const shapes = (state) => state.Diagram.shapes; const content = (state) => state.Diagram.content; const downloadData = (state) => state.Diagram.downloadData; expo...
(function(e){const t=e["lv"]=e["lv"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 no %1","Align center":"Centrฤ“t","Align left":"Pa kreisi","Align right":"Pa labi",Aquamarine:"Akvamarฤซns",Big:"Liels",Black:"Melns","Block quote":"Citฤts",Blue:"Zils",Bold:"Trekns","Bulleted List":"Nenumurฤ“ts Saraksts",C...
alert('yes');
// @flow import type { HKT2 } from './HKT' import type { Setoid } from './Setoid' import type { Semigroupoid } from './Semigroupoid' import type { Semigroup } from './Semigroup' import type { Monoid } from './Monoid' import type { Functor } from './Functor' import type { Contravariant } from './Contravariant' import ty...
const readline = require('readline'); const fs = require('fs'); const childProcess = require('child_process'); let jsonLorem = {}; let numberOfLines = 0; let splitted = null; const rl = readline.createInterface({ input: fs.createReadStream('lorem.txt') }); rl.on('line', (line) => { if (line.length > 0) { sp...
module.exports = require('../lib') .extend('faker', function() { try { return require('faker/locale/zh_TW'); } catch (e) { return null; } });
import {StyleSheet} from 'react-native'; import color from './Color'; export default StyleSheet.create({ mainView: { marginVertical: 40, margin: 10 }, view: { margin: 20, marginBottom: 20 }, title: { fontSize: 22, marginBottom: 20 }, textInput: { height: 40, borderColor: '...
if (require.main == module) { let claims = readClaimsFromFile() let claimedCoordinates = buildClaimedCoordinate2dArray(claims) let nrOfSquareInches = calculateMultipleClaimedSquareInches(claimedCoordinates) console.log(`Part 1, number of square inches: ${nrOfSquareInches}`) let claim = getClaimWith...
"""facerec URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
import { StyleSheet } from "react-native"; export const globalOptions = { name: "chngpersonaltrainin_34148", url: "https://chngpersonaltrainin_34148.botics.co", api: "https://chngpersonaltrainin_34148.botics.co/api/v1" } export const modulesOptions = { "@modules/app-menu": { "copy": "Routes available!" }...
memberSearchIndex = [{"p":"org.assimbly.docconverter","c":"DocConverter","l":"convertCsvToJson(String)","url":"convertCsvToJson(java.lang.String)"},{"p":"org.assimbly.docconverter","c":"DocConverter","l":"convertCsvToXml(String)","url":"convertCsvToXml(java.lang.String)"},{"p":"org.assimbly.docconverter","c":"DocConver...
async function register() { const emailInput = document.getElementById('email'); const passwordInput = document.getElementById('password'); const nameInput = document.getElementById('name'); const birthdayInput = document.getElementById('birthday'); const genderInput = document.getElementById('gender'); co...
/*global QUnit*/ sap.ui.define(['<%= projectNamespaceAMD %>/model/GroupSortState', 'sap/ui/model/json/JSONModel'], function( GroupSortState, JSONModel ) { 'use strict'; QUnit.module('GroupSortState - grouping and sorting', { beforeEach: function() { this.oModel = new JSONModel({});...
function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function isElectron(){return!("undefined"==typeof wind...
/** * GraphQL error messages */ export const errorMsgs = { cannotReturnNull: 'Cannot return null for non-nullable field Query.getTransactionByHash.' };
const fs = require("fs"); const loadCommands = Client => { // eslint-disable-line arrow-body-style return new Promise((resolve, reject) => { fs.readdir(`../../commands`, (err, files) => { if (err) reject(err); files.forEach(file => { let Command = require(`../../commands/${file}`); le...
""" Consolidate Services Description of all APIs # noqa: E501 The version of the OpenAPI document: version not set Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from argocd_python_client.model_utils import ( # noqa: F401 ApiTypeError, Mo...
"""Philips Hue sensors platform tests.""" import asyncio import logging from unittest.mock import Mock import aiohue from homeassistant.components.hue.hue_event import CONF_HUE_EVENT from .conftest import create_mock_bridge, setup_bridge_for_sensors as setup_bridge _LOGGER = logging.getLogger(__name__) PRESENCE_SE...
import pytest from rest_framework.test import APIClient @pytest.fixture(autouse=True) def enable_db_access_for_all_tests(db): pass @pytest.fixture def user(db, django_user_model, django_username_field): UserModel = django_user_model username_field = django_username_field try: user = UserMo...
# oracle/__init__.py # Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from sqlalchemy.dialects.oracle import base, cx_oracle, zxjdbc base.dialect = cx_o...
export const deleteView = async (ctx) => { if (confirm("Do you want to delete it?") == true) { const id = ctx.params.id; await ctx.data.del(id); ctx.page.redirect('/'); } }
from core.himesis import Himesis import uuid class H05aProperty2AttributeNoType(Himesis): def __init__(self): """ Creates the himesis graph representing the DSLTrans rule 05aProperty2AttributeNoType. """ # Flag this instance as compiled now self.is_compiled = True super(H05aProperty2AttributeNoType, self...
๏ปฟ//@ts-check ///<reference path="msdyn_systemuserschedulersetting.d.ts" /> "use strict"; var formInformation = (function () { "use strict"; async function onLoad(executionContext) { } async function onSave(executionContext) { } return { OnLoad: onLoad, OnSave: onSave }; })();
let XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; const API = 'https://rickandmortyapi.com/api/character/'; const fetchData = (url_api, callback) => { let xhttp = XMLHttpRequest(); xhttp.open('GET', url_api, true); xhttp.onreadystatechange = event => { if (xhttp.readyState === 4) { if (xht...
import React from 'react'; import ReactDOM from 'react-dom'; import './css/index.css'; import './css/bootstrap.css'; import './css/App.css'; import './css/Form.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( (<App />), document.getElementById('ro...
$(function() { var ApexCharts = require('apexcharts'); /* Dashboard content */ $('#compositeline').sparkline('html', { lineColor: 'rgba(255, 255, 255, 0.6)', lineWidth: 2, spotColor: false, minSpotColor: false, maxSpotColor: false, highlightSpotColor: null, highlightLineColor: null, fillColor: 'rgb...
const dm = require('@progress/kendo-date-math'); dm.loadTimezone({ "zones": { "America/Martinique": [ [ 244.33333333333334, "-", "LMT", -2493072000000 ], [ 244.33333333333334, "-", "FFMT", -1851552000000 ], [ 240...
import React from 'react'; import { Animated, Text } from 'react-native'; class NegativeScaleExample extends React.Component { state = { animation: new Animated.Value(1) } componentDidMount() { Animated.timing( this.state.animation, { toValue: -2, duration: 2000 } )...
from django import forms from GamesPlay.game.models import Game class GameForm(forms.ModelForm): class Meta: model = Game fields = '__all__' class GameDeletionForm(GameForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) for (_, field) ...
import React from 'react'; import PropTypes from 'prop-types'; import Cookies from '../Cookies'; import CookieBannerContent from './CookieBannerContent'; import { isServer } from '../helpers'; const CONSENT_GIVEN = 'rcl_consent_given'; const PREFERENCES_COOKIE = 'rcl_preferences_consent'; const STATISTICS_COOKIE = 'rc...
/* Native JavaScript for Bootstrap 4 | Modal -------------------------------------------- */ import passiveHandler from 'shorter-js/src/misc/passiveHandler.js'; import emulateTransitionEnd from 'shorter-js/src/misc/emulateTransitionEnd.js'; import getElementTransitionDuration from 'shorter-js/src/misc/getElementTransi...
import random import unittest from python.src.util.minheap import MinHeap class MinHeapTest(unittest.TestCase): def setUp(self): self.heap = MinHeap() self.randmax = 999999 def test_size_is_empty(self): self.assertTrue(self.heap.is_empty()) self.assertEqual(0, self.heap.size...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Chart/nls/strings":{_widgetLabel:"\u0e41\u0e1c\u0e19\u0e20\u0e39\u0e21\u0e34",executeCha...
import React from 'react'; import {Buttons} from './../Buttons.js'; import {TextInput} from './../Forms.js'; import {SectionHeader,Grid} from './../Layouts.js'; import {SimpleCard, StatsCard} from './../Cards.js'; import {Modal} from './../Windows.js'; import {SVGIcons} from './../UtilityComponents.js'; import {xhttpP...
import React from "react" import { Card, Container } from "react-bootstrap" import SplitInfoCard from "./splitInfoCard" import { getStateLink } from "../data/states" function getStateInfo(info, stateData){ try { return ( stateData[info].map((info)=> <li key={"_" + info}>{info}</li> )); } ca...
require('../lib/node_loader'); var AWS = require('../lib/core'); var Service = require('../lib/service'); var apiLoader = require('../lib/api_loader'); apiLoader.services['route53'] = {}; AWS.Route53 = Service.defineService('route53', ['2013-04-01']); require('../lib/services/route53'); Object.defineProperty(a...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import unittest from amber_automate.automate_builder import AutomateBuilder from amber_automate.state import State from amber_condition.text_condition import TextConditionFactory from amber_condition.epsilon_condition import EpsilonC...
import { takeLatest } from 'redux-saga'; import { take, call, put, fork, cancel } from 'redux-saga/effects'; import { LOCATION_CHANGE } from 'react-router-redux'; import { toastr } from 'react-redux-toastr'; import { get } from 'lodash'; import request from '../../utils/request'; import { FETCH_ADMINS, EDIT_DASHBO...
{% if cookiecutter.tailwindcss == 'yes' %} import 'tailwindcss/dist/base.min.css' {% endif %}
var stackedData = [] var mapai = {} var chart2; var empresas = {'CEMARGOS':'CEMARGOS','BCOLOMBIA':'CEMARGOS','BIOMAX':'CEMARGOS'} var fechas = {} loadGraph(); function updateSuperComparison() { var values = $('#tablela').val(); values.forEach(function(value) { empresas[value] = value }); c...
let path = require('path'); let { createConfig, resolveMergeStylesSerializer } = require('@uifabric/build/jest/jest-resources'); module.exports = createConfig({ setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))], snapshotSerializers: [resolveMergeStylesSerializer()] });
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Machinecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test the BIP66 changeover logic # from test_framework.test_framework import MachinecoinTestFrame...
var currentValue = null; var isDisabled = true; var config = null; var list = null; function updateDisabled(disabled) { var elements = $(".selector").add(".remove").add(".spacer"); if (disabled) { elements.hide(); } else { elements.show(); } updateSize(); isDisabled = disabled; ...
import fs from 'fs' import path from 'path' import util from 'util' import EventEmitter from 'events' import logger from '@wdio/logger' import { initialiseWorkerService, initialisePlugin, executeHooksWithArgs } from '@wdio/utils' import { ConfigParser } from '@wdio/config' import BaseReporter from './reporter' import...
import json import requests import mysql.connector from mysql.connector import connect, Error, errorcode config = { 'user': 'badgeruser', 'password': '5wacN131s386HCQBXoePO3xC', 'host': 'localhost', 'database': 'badger', 'auth_plugin': 'mysql_native_password', 'raise_on_...
// Karma configuration // Generated on Tue Apr 04 2017 09:23:46 GMT+0200 (Hora de verano romance) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.o...
""" Views for configuration files """ import os from django.conf import settings from django.views.generic.edit import FormView from django.core.urlresolvers import reverse from django.contrib import messages from django.utils.translation import ugettext as _ from project.manager_frontend.forms.config import ConfigEd...
module.exports={C:{"52":0.02871,"72":0.00359,"73":0.17227,"78":0.0323,"88":0.00718,"89":0.01077,"90":0.02871,"91":0.01436,"92":0.00359,"93":0.00718,"94":0.5563,"95":1.0767,"96":0.00718,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48...
import pandas as pd from pathlib import Path import click import logging @click.command() @click.argument('interim', type=click.Path(exists=True)) def main(interim): ptr = pd.read_pickle(Path(interim) / 'pitching_team_records.pkl') ptr = ptr.sort_values(['PIT_TEAM_ID', 'year']) ptr_pred = ptr[['AdjHPG',...
# Authors: Martin Luessi <mluessi@nmr.mgh.harvard.edu> # # License: BSD (3-clause) import copy import numpy as np from mne.utils import logger, verbose from .utils import fill_doc from .base import SpectralConnectivity, SpectroTemporalConnectivity from .spectral import spectral_connectivity_epochs @verbose @fill_d...
/* * Copyright (C) 2014 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ /** * @exports Tile * @version $Id: Tile.js 3125 2015-05-29 14:43:25Z tgaskins $ */ define([ '../error/ArgumentError', '../geom/Bound...
import flux from 'control'; import {createStore, bind} from 'alt/utils/decorators'; import actions from 'actions/dummyActions'; @createStore(flux) class DummyStore { name = 'awesome'; userAuth = null; @bind(actions.updateName) updateName(name) { this.name = name; } @bind(actions.updateAuthInfo) upd...
var express = require('express'); var router = express.Router(); var db = require('../util/db').mysqlDB; router.post('/', function(req, res, next) { var body = req.body; var username = body.username, password = body.password; db.getConnection(function(err, connection) { if (err) throw err; ...
/** * Copyright IBM Corp. 2016, 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. */ var _16 = { "elem": "svg", "attrs": { "xmlns": "http://www.w3.org/200...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
import { Fraction } from 'fractional'; import { elements } from './base'; export const clearRecipe = () => { elements.recipe.innerHTML = '' }; const formatCount = count => { if (count) { // count = 2.5 -> 2 1/2 // count = 0.5 -> 1/2 const newCount = Math.round(count * 10000) / 10000; ...
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Copyright (c) 2019-2020 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import argparse import os import subprocess import sys de...
$wnd.showcase.runAsyncCallback14("function Jrb(a){this.a=a}\nfunction Lrb(a){this.a=a}\nfunction Nrb(a){this.a=a}\nfunction pOb(){qOb.call(this,true,false,'popup')}\nfunction ucb(){ucb=m8;kcb=new g9((U9(),new L9('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD/2wBDAAUDBAQEAwUEBAQFBQUG...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.genCode = void 0; require("cross-fetch/polyfill"); const spec_1 = require("./spec"); const js_1 ...
from os.path import exists import magic import onedrivesdk from onedrivesdk.helpers import GetAuthCodeServer from logs import * from utils import thread_loader class OneDrive(object): """ """ def __init__(self, config): self.__config = config self.__onedrive_service = None self....
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @return {number} */ var sumNumbers = function (root) { let sum = 0 if (root === null) { return sum } let res = [] let ...
import React from "react"; const HomeTwoHeader = () => { return <h3 className="home-two-header">Vyzkouลกej si u nรกs lekci zdarma</h3>; }; export default HomeTwoHeader;
class FeatureSymbol { constructor(key) { this.key = key || "@NONE"; this.symbol = Symbol(key); } } Gamelab.FeatureSymbol = FeatureSymbol; Gamelab.FeatureInjectors = Gamelab.FeatureInjectors || {}; Gamelab.FeatureInject = function(constructor, args) { //console.log('Gamelab.FeatureInject()'); var GC...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var crypto = require("crypto"); var fs = require("fs-extra"); var nodepath = require("path"); var tsc = require("typescript"); var postprocess_1 = require("./postprocess"); var utils_1 = require("./utils"); function process(src, path, config, ...
var class_a_d_c = [ [ "Sync_result", "struct_a_d_c_1_1_sync__result.html", "struct_a_d_c_1_1_sync__result" ], [ "ADC", "class_a_d_c.html#a60b6e21403b1f30984f63832c0562960", null ], [ "analogRead", "class_a_d_c.html#aaf6079870b115d8b029d3613d44091dd", null ], [ "analogRead", "class_a_d_c.html#a4196bada3d...
module.exports = Dest; function Dest (stream) { this.dest = stream; this.streamed = true; this.streams = []; this.plainChunks = []; this.chunk = ''; } Dest.prototype.write = function (chunk) { if (this.streamed) { this.dest.write(chunk); } else { this.chunk += chunk; this.plainChunks.pop()...
#!/usr/bin/env python # Copyright 2012 - 2017, New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """ <Program Name> slow_retrieval_server.py <Author> Konstantin Andrianov. <Started> March 13, 2012. <Copyright> See LICENSE-MIT OR LICENSE for licensing information. <P...
module.exports = { showVariablesBefore: (req, ctx, ee, next) => { console.log({ ...ctx.vars, '$processEnvironment': undefined }); return next(); }, showRequestInfo: (req, ctx, ee, next) => { console.log({ method: req.method, que...
import { confetti } from 'dom-confetti'; import { createStore } from './mini'; import { getRebuses } from './rebuses'; export const actionsCreators = { next: ({ current, rebuses }) => ({ current: current < rebuses.length - 1 ? current + 1 : 0, animation: 'flip-vertical-right' }), prev: ({ current, rebuse...
from typing import Dict from torch.optim import AdamW from knodle.trainer.baseline.baseline import NoDenoisingTrainer from knodle.model.logistic_regression.logistic_regression_model import LogisticRegressionModel from knodle.trainer.baseline.majority_config import MajorityConfig def get_majority_logistic_regression_...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Table, Spin, notification } from 'antd'; import { CSVLink } from 'react-csv'; import { bindActionCreators } from 'redux'; // import ChangeFees from './changeFees'; import UserFeesForm from './UserFeesForm'; import { feeUpdate } fr...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; // import { } from '../../redux'; import './Home.scss'; class Home extends React.Component { constructor(props) { super(props); this.state = { count: 0, } this....
var _; _ = DTRACE_NET_STREAM_END.length; _ = DTRACE_NET_STREAM_END.name; _ = DTRACE_NET_STREAM_END.arguments; _ = DTRACE_NET_STREAM_END.caller; _ = DTRACE_NET_STREAM_END.prototype; DTRACE_NET_STREAM_END.length = {}; DTRACE_NET_STREAM_END.name = {}; DTRACE_NET_STREAM_END.arguments = {}; DTRACE_NET_STREAM_END.caller = {}...
import { meta } from "utils"; import { vec3, vec4, quat } from "math"; @meta.type("EveSOFDataHullPlaneSetItem") export class EveSOFDataHullPlaneSetItem extends meta.Model { @meta.float blinkRate = 0; @meta.float blinkPhase = 0; @meta.uint blinkMode = 0; @meta.uint boneIndex = -1; ...
var shell = require('shelljs'); var BPromise = require('bluebird'); module.exports = function(grunt) { grunt.registerTask('tag', 'Create or move git tag and push it', function(type) { function ifEnabled(option, fn) { if (options[option]) { return fn; } } ...
/** * create reset password token */ var async = require('async'); var util = require('util'); var utils = require('../../../../lib/utils'); var daos = require('../../../../daos'); var u = require('underscore'); function parsePostData(data) { var postData = { email : data.email, securityQuestio...
import Component from './component.react'; import React from 'react'; // Higher order component for exposing router. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function exposeRouter(BaseComponent) { class ExposeRouter extends Component { rend...
const Discord = require('discord.js') const { get } = require('../constructors/sqlite.js') module.exports = { execute: async(client, member, db) => { if (member.user.bot) return if (await db.fetch(`coins_${member.user.id}`) === null) return let data = await get(member, member.user) let time = Date.n...
(function() { 'use strict'; angular .module('hackathons') .factory('FacebookService', hackathonsService); hackathonsService.$inject = ['$q']; function hackathonsService($q) { // Facebook service service logic // Public API return { getMyLas...
# ๅค‰ๆ•ฐๅฎฃ่จ€ name = 'NerdApe' double_name = "KustomApe" twitter_id = 12345 faceBook = 1.23 # ๆ–‡ๅญ—ๅˆ—ๅž‹ 'ๆ–‡ๅญ—' "ๆ–‡ๅญ—" '1234' "1234" 'hogehoge' "I don't know your name." # ๆ•ดๆ•ฐๅž‹ 123456 # ๆตฎๅ‹•ๅฐๆ•ฐ็‚นๅž‹ 1.23 4.56789 kata = 1.234 print(type(kata)) # str(), int(), float() # ๆ–‡ๅญ—ๅˆ—ๅž‹ใ€ๆ•ดๆ•ฐๅž‹ใ€ๆตฎๅ‹•ๅฐๆ•ฐ็‚นๅž‹
//#include include/takeable.js var label = "Piece of Butterfly Bone Hair Clip"; var version = "1350087050"; var name_single = "Piece of Butterfly Bone Hair Clip"; var name_plural = "Pieces of Butterfly Bone Hair Clip"; var article = "a"; var description = "One of four fragments that make up Gwendolyn's long-forgotten ...
# DADSA - Assignment 1 # Reece Benson import json import random from math import ceil, floor from classes import Player from classes import Season from classes import Tournament from classes import Round from classes import Match class Handler(): # Define the variables we will be using app = None prize_mo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
require('dotenv').config(); // Apollo server express configs: https://www.apollographql.com/docs/apollo-server/migration-two-dot/ const { ApolloServer, AuthenticationError } = require('apollo-server-express'); const mongoose = require('mongoose'); const jwt = require('jsonwebtoken'); const express = require('express')...