text
stringlengths
3
1.05M
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* global test, jest, expect */ var _react = r...
import React from "react" import { useKeenSlider } from "keen-slider/react" import "keen-slider/keen-slider.min.css" const ServicesSlider = (props) => { const [sliderRef] = useKeenSlider({ slidesPerView: 4, spacing: 15, breakpoints: { "(max-width: 768px)": { slidesPerView: 2, mode: "free-sn...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Footer.css'; function Footer ({ caption, countCurrent, countSeparator, countTotal, showCount, ...props, }, { theme, }) { if (!caption && !showCount) return null; const imageCount = showCount ? ( <div className="footerC...
/* Language: C++ Category: common, system Website: https://isocpp.org */ /** @type LanguageFn */ function cPlusPlus(hljs) { const regex = hljs.regex; // added for historic reasons because `hljs.C_LINE_COMMENT_MODE` does // not include such support nor can we be sure all the grammars depending // on it would de...
const fs = require('fs'); const path = require('path'); // openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem const key = fs.readFileSync(path.join(__dirname, './key.pem')); const cert = fs.readFileSync(path.join(__dirname, './certificate.pem')); module.exports = { key, cert }...
(function dartProgram(){function copyProperties(a,b){var t=Object.keys(a) for(var s=0;s<t.length;s++){var r=t[s] b[r]=a[r]}}function mixinProperties(a,b){var t=Object.keys(a) for(var s=0;s<t.length;s++){var r=t[s] if(!b.hasOwnProperty(r))b[r]=a[r]}}var z=function(){var t=function(){} t.prototype={p:{}} var s=new t() if...
$(document).ready(function() { var request; $("#login_form").submit(function(event) { // Prevent default posting of form - put here to work in case of errors event.preventDefault(); // Abort any pending request if (request) { request.abort(); } // setup some local variables ...
'use strict'; const _ = require('lodash'); module.exports = ({ Aigle, Bluebird }) => { let count; return { all: { doc: true, setup: (config) => { count = config.count; }, aigle: () => { const tasks = _.times(count, (n) => { return new Aigle((resolve) => setIm...
""" regexparser will give us tables of VERB:OBJECT or OBJECT:VERB or ... pairs. We want to use those for calculating similarities, either directly or after doing LSA (i.e. after using SVD do get a diagonal matrix, deleting the lower parts and then reconstructing the original (i.e. GlOVe)) This all only works if you ha...
/* * Copyright 2019 Lightbend Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
import convertToHumanTime from './ConvertToHumanTime'; function createMarkup(tracks) { return tracks.map(track => ` <div class="music" data-track-preview="${track.preview_url}"> <p class="music-number">${track.track_number}</p> <p class="music-title">${track.name}</p> <p class="music-duration"...
/** * Thinker d'apparition spectrale * Ce fantome emet un son quand on le regarde */ O2.extendClass('MANSION.WraithThinker', MANSION.GhostThinker, { _bSwitchNotSeenYet: false, _nLife: 0, _nLifespan: 0, thinkSpawning: function() { __inherited(); this.playSound('spawn'); this.setThink('Living'); }, move:...
const Client = require('instagram-private-api').V1; const delay = require('delay'); const chalk = require('chalk'); const _ = require('lodash'); const rp = require('request-promise'); const S = require('string'); const inquirer = require('inquirer'); var fs = require('fs'), request = require('request'); const User...
import React, { Children } from "react"; import Document, { Html, Head, Main, NextScript } from "next/document"; import { AppRegistry } from "react-native-web"; import config from "../app.json"; // Force Next-generated DOM elements to fill their parent's height const normalizeNextElements = ` #__next { display: f...
/*! * GestureKit Helper v2.1.1 * http://gesturekit.com/ * * Copyright (c) 2014, RoamTouch * Released under the Apache v2 License. * http://gesturekit.com/ */ (function (window, gesturekit) { 'use strict'; var doc = window.document, docEl = doc.documentElement, msPointerSupported = wind...
#!/usr/bin/env python3 import unittest import numpy as np import ahrs wmm = ahrs.utils.WMM(latitude=ahrs.MUNICH_LATITUDE, longitude=ahrs.MUNICH_LONGITUDE, height=ahrs.MUNICH_HEIGHT) REFERENCE_MAGNETIC_VECTOR = np.array([wmm.X, wmm.Y, wmm.Z]) REFERENCE_GRAVITY_VECTOR = np.array([0.0, 0.0, ahrs.utils.WGS().normal_gravit...
import React from "react" import { Link } from "gatsby" import Layout from "../components/Layout" export default function NotFound() { return ( <Layout page="404" bgColor="inherit"> Page not found </Layout> ) }
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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...
/************************************************/ /* IPB3 Javascript */ /* -------------------------------------------- */ /* ips.attach.js - Attachment manager */ /* (c) IPS, Inc 2008 */ /* -------------------------------------------- */ /* Author: Rikki Tissier */ /*******************************...
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import os import pytest import numpy as np from astropy.io import fits from astropy import __minimum_asdf_version__ asdf = pytest.importorskip('asdf', minversion=__minimum_asdf_version__) from asdf.tests import helpers from ......
var ACTIVE_LOCALE = window.ACTIVE_LOCALE; if (ACTIVE_LOCALE !== 'en') { require('moment/locale/' + ACTIVE_LOCALE); } var Locale = require('locale/index'); var Polyglot = require('node-polyglot'); require('promise-polyfill'); var polyglot = new Polyglot({ locale: ACTIVE_LOCALE, // Needed for pluralize behaviour ph...
const chalk = require('chalk') const rimraf = require('rimraf') const os = require('os') const path = require('path') const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup') module.exports = async function() { console.log(chalk.green('Teardown Puppeteer')) await global.__BROWSER_GLOBAL__.close(...
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> </p> <a className="App-link" hr...
/* All functions... */ (function ($) { 'use strict'; jQuery(document).ready(function () { /* Preloader */ $(window).on('load', function() { $('body').addClass('loaded'); }); /* Smooth Scroll */ $('a.smoth-scroll').on("click", function (e) { ...
import struct def get_png_dimensions(data): if is_png(data): w, h = struct.unpack('>LL', data[16:24]) return int(w), int(h) else: return None, None def is_png(data): return ( (data[:8] == b'\x89\x50\x4E\x47\x0D\x0A\x1A\x0A') and (data[12:16] == b'IHDR') ...
import React from 'react'; import { graphql } from 'gatsby'; import styled from 'styled-components'; import { ThemeProvider } from 'styled-components'; import { GlobalStyle, theme } from '../theme/theme'; import { Section } from './index'; import { CivicDays } from './team'; import Footer from '../components/Layout/Foo...
function executeCommandFromFloor(commandParameters) { var parameters = commandParameters.split(","); console.log(parameters[0]); switch (parameters[0]) { case "gestureRecieved": //console.log("YES"); document.getElementById("gesture").innerHTML = "Gesture: " + parameters[1]; ...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware 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 ...
'use strict';Object.defineProperty(exports,'__esModule',{value:!0}),exports.default=createWidgetsManager;var _utils=require('./utils');function createWidgetsManager(a){function b(){d||(d=!0,(0,_utils.defer)(function(){d=!1,a()}))}var c=[],d=!1;return{registerWidget:function registerWidget(e){return c.push(e),b(),functi...
'use strict' const create = require('./create') module.exports = create()
// This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. import Rails from "@rails/u...
import ctypes import logging import multiprocessing import os import pathlib import shutil import time import pytest import salt.channel.client import salt.channel.server import salt.config import salt.ext.tornado.gen import salt.ext.tornado.ioloop import salt.master import salt.utils.platform import salt.utils.proces...
const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits // Main Views const TxView = require('./components/tx-view') const WalletView = require('./components/wallet-view') module.exports = AccountAndTransactionDetails inherits(AccountAndTransaction...
import Vue from 'vue'; import { mount } from '@vue/test-utils'; import createStore from '../createStore'; import SelectionBox from '../SelectionBox'; const getDefaultStore = selectedRowKeys => { return createStore({ selectedRowKeys: selectedRowKeys || [], selectionDirty: false, }); }; describe('SelectionB...
"use strict"; /* * Copyright 2020 NEM * * 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 agre...
'use strict'; let globalPath = __dirname + '/../../storage/organist.db'; module.exports = function (DATABASE_LOCATION) { let locationString; if (DATABASE_LOCATION === 'memory') { locationString = ':memory:'; } else if (DATABASE_LOCATION === 'global') { locationString = globalPath; } el...
import axios from 'axios'; axios.defaults.baseURL = "http://192.168.1.4:8005/liveshow/"; //axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; axios.defaults.headers.post['Content-Type'] = 'application/json'; //application/x-www-form-urlencoded axios.defaults.timeout=2000;
import React from "react" import { AlertIcon } from "../core/icons" const TextWidget = () => { return ( <section className="text-widget"> <p> {" "} <AlertIcon /> **Note:** This theme isn't{" "} <a href="https://www.tesla.com/">Tesla Corp</a>, but like{" "} <a href="https://t...
import os import imp from celery.schedules import crontab import djcelery djcelery.setup_loader() from configurations import Settings from configurations.utils import uppercase_attributes try: DEFAULT_PATH = os.environ['LOCALSHOP_HOME'] except KeyError: DEFAULT_PATH = os.path.expanduser('~/.localshop') def...
(function(d){d['he']=Object.assign(d['he']||{},{a:"לא ניתן להעלות את הקובץ הבא:",b:"סרגל תמונה",c:"Table toolbar",d:"יישור לשמאל",e:"יישור לימין",f:"יישור באמצע",g:"מרכוז גבולות",h:"יישור טקסט",i:"סרגל כלים יישור טקסט",j:"מודגש",k:"נטוי",l:"קו תחתון",m:"הוסף תמונה או קובץ",n:"בלוק ציטוט",o:"בחר סוג כותרת",p:"כותרת",q:"...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _plugin() { const data = require("@parcel/plugin"); _plugin = function () { return data; }; return data; } function _utils() { const data = require("@parcel/utils"); _utils = function ...
# -*- coding: utf-8 -*- # Copyright (c) 2018, Oneiric Group Pty Ltd and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ITScheduler(Document): pass
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import Collapse from '@material-ui/core/Collapse'; import IconButton from '@material-ui/core/IconButton'; import Table from '@material-ui/core/Table'; import Tab...
import $ from 'jquery'; export class Tooltip { constructor(name, elem) { this.elem = $('<div />') .text(name) .addClass('tiptap-tooltip') .appendTo('body'); let timeout; elem.on('mouseover', (e) => { let left = `${elem.offset().left + 20}px`...
from rest_framework import serializers from ..models import Song, Artist, ContestStep, Entry, Country, Year class CountrySerializer(serializers.ModelSerializer): class Meta: model = Country fields = ['name'] class YearSerializer(serializers.ModelSerializer): class Meta: model = Year fields = ['year'] cl...
'use strict'; var Analytics = require('./dreamdata'); // Create a new `analytics` singleton. var dreamdata = new Analytics(); // Expose `require`. dreamdata.require = require; // Expose package version. dreamdata.VERSION = require('../package.json').version; /* * Exports. */ module.exports = dreamdata;
require('dotenv').config(); const { join } = require('path'); const { createCanvas, loadImage } = require('canvas'); const request = require('node-superfetch'); const isImageUrl = require('is-image-url'); const { stripIndents } = require('common-tags'); const threekyears = async (image) => { if (!isImageUrl(image)...
import { authenticatedMethod, RpcMethod } from './../../../../jsonRpc'; import WebDollarCoins from './../../../../common/utils/coins/WebDollar-Coins'; /** * The list of addresses in the wallet. */ class Accounts extends RpcMethod { constructor(name, oWallet, oAddressBalanceProvider) { ...
import Multivalue from '../multivalue/Multivalue'; import { delay, convertStringToHTMLElement } from '../../../utils/utils'; import Widgets from '../../../widgets'; import _ from 'lodash'; export default class Input extends Multivalue { constructor(component, options, data) { super(component, options, data); ...
gXMLBuffer="<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?><pk><wd nm=\"eatedatafile\" rd=\"365,0:662,920,1025:0\"/><wd nm=\"eatedataobject\" rd=\"248,0:4064:0|888,0:390:0|960,0:69,342,417,715:0|1030,0:2529:0|1114,0:348:0|1129,0:4171:0|1130,8:765,7733,8064,26776,27703,31782,46274,57549,59380,81132,93452,93...
#!/usr/bin/env python #!/trinity/shared/opt/python-3.7.1/bin/python3.7 # coding: utf-8 import numpy as np import pandas as pd import json import pickle import csv from pandas.io.json import json_normalize import scipy import SALib from SALib.sample import saltelli import os import subprocess def writting_files(str_val...
import pytest from crawler.models.fund import get_current_fund_amount, Currency @pytest.mark.run_loop async def test_get_current_fund(pg_engine): async with pg_engine.acquire() as conn: fund = await get_current_fund_amount(conn, Currency.USD) assert isinstance(fund, float)
module.exports = { parser: '@babel/eslint-parser', parserOptions: {} }
'use strict' const SEARCH_TERM = 'SQL Assignment' const ASSIGNMENT_NAME_STARTSWITH = [ 'Files Assignment Q1-', 'Files Assignment Q6-' ] const TO_IGNORE = [ '', '' ] const OUT_PATH = 'reports' const FILE_PATTERN = /([\w ]+ Q\d+-Q?\d+.*) for (\d+) Quiz/ const COURSE_ID = 00000 // Obtain from Canvas const DOMA...
"""track reference changes Revision ID: e98016f3cfec Revises: a2ac148441cf Create Date: 2018-09-24 21:49:20.811276 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. from sqlalchemy.dialects.postgresql import UUID revision = 'e98016f3cfec' down_revision = 'a2ac148441cf' bra...
// flow-typed signature: 5424f3038583c263ad173d9a0e94e5f6 // flow-typed version: 6175de7811/puppeteer_v1.2.x/flow_>=v0.58.x // @flow /** * Based on typescript definitions found at the url below * https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/puppeteer */ declare module 'puppeteer' { impor...
const SERVICE_UUID = '0000aadb-0000-1000-8000-00805f9b34fb'; const CHARACTERISTIC_UUID = '0000aadc-0000-1000-8000-00805f9b34fb'; const SYSTEM_SERVICE_UUID = '0000aaaa-0000-1000-8000-00805f9b34fb'; const SYSTEM_READ_UUID = '0000aaab-0000-1000-8000-00805f9b34fb'; const SYSTEM_WRITE_UUID = '0000aaac-0000-1000-8000-00805f...
# -*- coding: utf-8 -*- # ====================================================================================================================== # Imports # ====================================================================================================================== from python_practice.strings_part_two impor...
from flask import Flask from app.extensions import register_extensions from config import Config def create_app(): app = Flask(__name__) app.config.from_object(Config) app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///db.sqlite" app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False app.config["T...
// Initialize Firebase var config = { apiKey: "AIzaSyCmAoY3w4CXqrWutcYv9r5Mm7mP4KymryY", authDomain: "sunny-6120a.firebaseapp.com", databaseURL: "https://sunny-6120a.firebaseio.com", storageBucket: "sunny-6120a.appspot.com", messagingSenderId: "394620378190" }; firebase.initializeApp(config);
import apiService from '../../services/apiService'; import collectionElement from '../../templates/picture.hbs'; import debounce from 'lodash.debounce'; import scroll from'./scroll'; import 'basiclightbox/dist/basicLightbox.min.css'; const refs = { collection: document.querySelector('.gallery'), searchForm: docume...
'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.normalize = exports.isJSONString = exports.getTestEnvironment = undefined;var _utils; function _load_utils() {return _utils = require('./utils');}Object.defineProperty(exports, 'getTestEnvironment', { enumerable: true, g...
// @flow import type { HullContext, HullStatusResponse } from "hull"; import _ from "lodash"; async function statusCheckAction(ctx: HullContext): HullStatusResponse { const { connector: ship } = ctx; const { private_settings } = ship; const { username, token, synchronized_segments } = private_settings; const ...
import { stringify } from 'qs'; import request from '../utils/request'; export async function push_system_message(params) { return request(`/itunes/socket/push_system_message?${stringify(params)}`); } export async function enter_chat_room(params) { return request(`/itunes/socket/enter_chat_room?${stringify(params...
import jwt from 'jsonwebtoken'; import dotenv from 'dotenv'; dotenv.config(); /** * @param {object} payload the payload to encode the token * @param {object} expiresIn the expiration time of the token * @returns {string} the generated token */ export default (payload = {}, expiresIn = { expiresIn: '1d' }) => { ...
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { ...
print("This is another test")
import {authHeader, get_uid} from "../_helpers"; import fetch from "cross-fetch"; import {apiConstants} from "../_constants"; export const dataService = { search, getPosting, newPost, newMedia, like, deleteP }; function search(query) { const options = { method: "OPTIONS", headers: authHeader(),...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
exports.onCreatePage = async ({ page, actions }) => { const { createPage } = actions if (page.path === "/cycle/") { page.matchPath = "/cycle/*" createPage(page) } }
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image2', 'de-ch', { alt: 'Alternativer Text', btnUpload: 'Zum Server senden', captioned: 'Bild mit Überschrift', captionPlaceholder: 'Über...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.Typing = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentC...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var util_1 = require("./util"); function rgbToRgb(r, g, b) { return { r: util_1.bound01(r, 255) * 255, g: util_1.bound01(g, 255) * 255, b: util_1.bound01(b, 255) * 255, }; } exports.rgbToRgb = rgbToRgb; function...
from dataclasses import dataclass, field from typing import List, Iterable, Optional from laxleague.guardian import Guardian @dataclass class Player: """ A lacrosse player in the league """ first_name: str last_name: str guardians: List[Guardian] = field(default_factory=list) def add_guardian(s...
'use strict'; const server = require('./src/server.js'); const dotenv = require('dotenv'); dotenv.config(); const PORT = process.env.PORT || 3000; server.start(PORT);
import React from 'react'; import { Link as RouterLink, useNavigate } from 'react-router-dom'; import * as Yup from 'yup'; import { Formik } from 'formik'; import { Box, Button, Container, Grid, Link, TextField, Typography, makeStyles, Dialog, DialogActions, DialogContent, DialogContentText, D...
let shared=require("../shared/Shared.js"); let response=shared.readSetting(); const ipc = require('electron').ipcRenderer, Return = document.querySelector('#Return'); var fs = require('fs'); function GetSettings() { document.getElementById("SnapShot").value=parseInt(response.SnapShot) / (60*1000) ; document....
# -*- coding: utf-8 -*- from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("payment", "0002_payment_active"), ] operations = [ migrations.C...
describe('AutocompleteEditor', function() { var id = 'testContainer'; var choices = ["yellow", "red", "orange", "green", "blue", "gray", "black", "white", "purple", "lime", "olive", "cyan"]; var hot; beforeEach(function() { this.$container = $('<div id="' + id + '" style="width: 300px; height: 200px; ove...
const {parse_str} = require("../function/parse_str.js"); test("test parse_str()", ()=>{ let _a = null; _a = {}; expect(parse_str("first=value&arr[]=foo+bar&arr[]=baz",_a)).toStrictEqual(undefined) expect(_a).toStrictEqual({"first":"value","arr":["foo bar","baz"]}) _a = {}; expect(parse_str("a b.c=value",_a))...
# # PluMDAnalysis setuptools script # from setuptools import setup, find_packages def get_version(): import os import sys sys.path.append(os.path.abspath('PluMDAnalysis')) from PluMDAnalysis.version_info import VERSION as version sys.path.pop() return version def get_readme(): """ ...
function s (p){return p[0]<0?p[1]<0?2:0:p[1]>0?1:3} // ((x>0&&y<0)?3:((x<0&&y>0)?0))) console.log(s([5,5]));
'use strict'; const names=['bag','banana','bathroom','boots','breakfast','bubblegum', 'chair','cthulhu','dog-duck','dragon','pen','pet-sweep','scissors', 'shark','sweep','tauntaun','unicorn','usb','water-can','wine-glass', ]; const imgSection=document.getElementById('imgSection'); const leftImg=document.getEle...
require('./test-helper'); var parse = require('./parser').parse; describe('AST parser', function () { it('parses plain text', function () { var res = parse('You are in a cold and dark place'); assert.equals(res, [ ['plainText', 'You are in a cold and dark place'] ]); }); it('parses multiple ...
import { postAction, getAction } from "./actions" export const setNotifications=(data)=>( { type:'SET_NOTIFICATIONS', payload:data.notifications } ) export const notificationMarkedAsRead=(id)=>( { type:'MARK_NOTIFICATION_AS_READ', payload:{id} } ) export const notifica...
// @flow // We need to reference these files directly to avoid loading things that are not available // in this environment (e.g. JitsiMeetJS or interfaceConfig) import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton'; import type { Props } from '../base/toolbox/components/Abstrac...
var M, ANY2 = [ "", "" ], A = function() { "use strict"; var Constructor; function A() { !function(instance, Constructor) { if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); }(this, A); } return (function(target, pro...
import React from 'react' import SEO from '../components/seo' import HomeSection from '../components/HomeAllPages' import MainSection from '../components/MainAbout' import ActionButton from '../components/ActionButton' import Footer from '../components/Footer' const IndexPage = (props) => { return ( <> ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
export const SET_IS_ADDING_RESOURCE = 'SET_IS_ADDING_RESOURCE'; export const setIsAddingResource = (bool) => ({ type: SET_IS_ADDING_RESOURCE, payload: { isAddingResource: bool }, });
const webpack = require('webpack') const fs = require('fs') const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const AddAssetHtmlWebpackPlugin = require('add-asset-html-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin') function resolve (dir) { return path....
#!/usr/bin/env python3 """ Test control for SDS011 sensor """ import time import unittest import pytest import serial from pysds011.sds011 import SDS011 from pysds011.definitions import WorkingMode, ReportMode, Modifier, Command @pytest.mark.skip(reason="Only works with real SDS011 sensor.") class TestSDS011Simula...
exports.up = (pgm) => { pgm.createTable('token', { id: 'id', value: { type: 'varchar(1000)', notNull: true }, createdAt: { type: 'timestamp', notNull: true, default: pgm.func('current_timestamp'), }, }); };
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import pytest from eth_utils import ( decode_hex, ) TEST_ADDRESS = '0x16D9983245De15E7A9A73bC586E01FF6E08dE737' EXPECTED_DATA_A = 1234 EXPECTED_DATA_B = (b'abcd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') def test_contr...
/*! jQuery UI - v1.10.1 - 2013-02-15 * http://jqueryui.com * Includes: jquery.ui.datepicker-az.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.az={closeText:"Bağla",prevText:"&#x3C;Geri",nextText:"İrəli&#x3E;",currentText:"Bugün",monthNames:["Ya...
// This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is dis...
/** * FragmentParser.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.paste.core.FragmentParser', [ ], function () { var validCont...
const chai = require("chai"); const { ethers } = require("hardhat"); const chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); const expect = chai.expect; describe("NTDaoGene", function () { let GeneContract; let gene; let owner; let addr1; let nftAddr; beforeEach(async function () { ...
import React from 'react'; import { InView } from 'react-intersection-observer'; import './discord-termynal.css'; import Termynal from './termynal'; export default class Terminal extends React.Component { discordTerminal = null; startedAlready = false; componentDidMount() { this.discordTerminal = ...