text stringlengths 3 1.05M |
|---|
#!/usr/bin/env python
"""Example process file."""
def execute(mp):
"""User defined process."""
# Reading and writing data works like this:
with mp.open("file1") as raster_file:
if raster_file.is_empty():
return "empty"
# This assures a transparent tile instead of a pink err... |
const zoomAdmin = {
type: "app",
app: "zoom_admin",
};
module.exports = {
name: "User Deactivated",
description:
"Emits an event each time a user is deactivated in your Zoom account",
version: "0.0.2",
dedupe: "unique", // Dedupe based on user ID
props: {
zoomAdmin,
zoomApphook: {
type:... |
const escape = require('shell-quote').quote;
const isWin = process.platform === 'win32';
module.exports = {
'**/*.{js,jsx,ts,tsx}': (filenames) => {
const escapedFileNames = filenames.map((filename) => `"${isWin ? filename : escape([filename])}"`).join(' ');
return [
`prettier --with-node-modules --ign... |
from djitellopy import Tello
tello = Tello()
tello.connect()
tello.takeoff()
tello.land()
pass |
import React, { Component } from 'react';
/**
* Simple component to render a square in board
*
* @param {*} props
*/
const Square = (props) => {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
)
}
/**
* Game's Board
*/
class Board extends... |
export { default } from './ConsultationDetails';
|
module.exports={A:{A:{"2":"I F E D A B hB"},B:{"2":"C N Q O H J K","132":"VB JB M IB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 rB GB G V I F E D A B C N Q O H J K W X Y Z a b c d e f g h i j k l m n o p q r s t u v w P y z UB BB FB DB CB AB T S R L KB LB MB NB OB oB gB","260":"PB QB RB SB TB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 G V I F E... |
/**
* FormValidation (https://formvalidation.io), v1.8.1 (1a099ec)
* The best validation library for JavaScript
* (c) 2013 - 2021 Nguyen Huu Phuoc <me@phuoc.ng>
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'functi... |
import PropTypes from 'prop-types'
import styled from 'styled-components'
const PositionedDiv = styled.div`
position: absolute;
${props => `
width: ${props.width}px;
height: ${props.height}px;
transform: translate(${props.xPos}px, ${props.yPos}px);
transform: translate3d(${props.xPos}px, ${props.yP... |
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).ReactHookForm={},e.React)}(this,(function(e,r){"use strict";var t=e=>e instanceof HTMLElement;const ... |
// This file was procedurally generated from the following sources:
// - src/annex-b-fns/eval-global-skip-early-err.case
// - src/annex-b-fns/eval-global/direct-if-decl-else-decl-a.template
/*---
description: Extension not observed when creation of variable binding would produce an early error (IfStatement with a decla... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../src/components/VBanner/VBanner.sass");
var _VSheet = _interopRequireDefault(require("../VSheet"));
var _VAvatar = _interopRequireDefault(require("../VAvatar"));
var _VIcon = _interopRequireDef... |
/*jslint node:true*/
var watch = require( '../promise-file-watch' );
watch( ['./test/folder', './test/folder'], function( cFullChangedPath ){
console.log( 'Changed:', cFullChangedPath );
})
.then(function( cWatchedPath ){
console.log( 'Watching', cWatchedPath, '...' );
}).done(); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compileGeneralSelector = void 0;
var attributes_1 = require("./attributes");
var pseudo_selectors_1 = require("./pseudo-selectors");
/*
* All available rules
*/
function compileGeneralSelector(next, selector, options, context, compil... |
import React from 'react';
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";
import { createBrowserHistory } from 'history'
import ExpenseDashboardPage from '../components/ExpenseDashboardPage';
import AddExpensePage from '../components/AddExpensePage';
import EditExpenseP... |
const initialState = {
latestResponse: null,
latestError: null,
isLoading: false,
}
const cartReducer = (state = initialState, action) => {
switch (action.type) {
case 'GET_ONECART_BEGIN': {
return {
...state,
isLoading: true,
latestError: null,
}
}
case 'GET_ON... |
#!/usr/bin/env python3
import argparse
import os
import subprocess
import sys
gsigs = 'https://github.com/lozzax-project/gitian.sigs.git'
gbrepo = 'https://github.com/devrandom/gitian-builder.git'
platforms = {'l': ['Linux', 'linux', 'tar.bz2'],
'a': ['Android', 'android', 'tar.bz2'],
'f': ['FreeBSD'... |
import { FETCH_PRODUCTS } from './types';
import axios from 'axios';
const productsAPI = "https://react-shopping-cart-67954.firebaseio.com/products.json";
const compare = {
'lowestprice': (a, b) => {
if (a.price < b.price)
return -1;
if (a.price > b.price)
return 1;
return 0;
},
'highe... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
const Convert = ({ language, text }) => {
const [translated, setTranslated] = useState('');
const [debouncedText, setDebouncedText] = useState(text);
useEffect(() => {
const timerId = setTimeout(() => {
setDebouncedText(tex... |
define(function (require) {
return function FetchMergeDuplicateRequests(Private) {
var isRequest = Private(require('components/courier/fetch/_is_request'));
var DUPLICATE = Private(require('components/courier/fetch/_req_status')).DUPLICATE;
function mergeDuplicateRequests(requests) {
// dedupe requ... |
import React, { Component, PropTypes } from 'react'
import { Item } from 'semantic-ui-react'
import { algolia } from 'store/search'
import { goTo } from 'util/location'
import SearchMini from './SearchMini'
import './InstantSearch.scss'
const index = algolia.initIndex('Users')
class InstantSearch extends Component {
... |
const fs = require('fs');
const deleteFile = filePath => {
fs.unlink(filePath, err => {
if (err) {
throw err;
}
});
};
exports.deleteFile = deleteFile;
|
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var colorAttributes = require('../../components/colorscale/color_attributes');
var colorbarAttrs = require('../.... |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-async-await
var Debug = debug.Debug;
var breakPointCount = 0;
function listener(event, exec_state, event_data, data) {
if (event... |
Clazz.declarePackage ("J.jvxl.readers");
Clazz.load (["J.jvxl.readers.MapFileReader"], "J.jvxl.readers.Dsn6BinaryReader", ["java.io.ByteArrayInputStream", "$.DataInputStream", "J.util.Logger", "$.SB"], function () {
c$ = Clazz.decorateAsClass (function () {
this.byteFactor = 0;
this.xyCount = 0;
this.nBrickX = 0;
... |
'use strict';
var through2 = require('through2');
var EE = require('events').EventEmitter;
var gutil = require('gulp-util');
function removeDefaultHandler(stream, event) {
var found = false;
stream.listeners(event).forEach(function (item) {
if (item.name === 'on' + event) {
found = item;
this.removeListener... |
# -*- coding: utf-8 -*-
import argparse
import datetime
import json
import logging.config
import os
import re
import urllib.request
import pandas as pd
from src.content_api.details_utils import extract_from_details
def save_all_to_file(json_dict, page_links, related_page_links, collection_links, destination_dir, pr... |
import React from 'react'
import { Link } from 'gatsby'
import { slide as Menu } from 'react-burger-menu'
import Logo from './Logo'
import Navigation from './Navigations'
import { IconBars } from './../icons'
class Header extends React.Component {
state = {
menu: false,
}
openMenu = () => {
this.setStat... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Input from '../../../utils/decorators/input';
import InputLabel from '../../../utils/decorators/input-label';
import InputValidation from '../../../utils/decorators/input-validation';
import tagComponent from '../... |
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
}
}
};
|
/*
*
* Activities
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, intlShape, injectIntl } from 'react-intl';
import { Box, Text } from 'grommet';
import { List, Map } from 'immutable';
import styled from 'styled-components';
import {
getActionConnectionField,
} fro... |
var searchData=
[
['hmc5883l_20base_20driver_20function_251',['hmc5883l base driver function',['../group__hmc5883l__base__driver.html',1,'']]],
['hmc5883l_20driver_20function_252',['hmc5883l driver function',['../group__hmc5883l__driver.html',1,'']]],
['hmc5883l_20example_20driver_20function_253',['hmc5883l examp... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.asn1.js"],{"02b8":function(t,e,r){"use strict";const n=e;n.der=r("2b73"),n.pem=r("2579")},"072c":function(t,e,r){"use strict";const n=r("a092"),o=r("e70b").Reporter,i=r("57de").Buffer;function s(t,e){o.call(this,e),i.isBuffer(t)?(this.base=t,this.offset=0,this.l... |
// @flow
import * as Lib from './lib';
class C {}
C = 1; // error in types-first, cannot reassign exported class
function foo() {}
foo = 1; // error in types-first, cannot reassign exported function
let x: number | string = "";
x = 1; // okay in both modes
function bar() {}
bar = 1; // okay, bar is not exported
L... |
from __future__ import absolute_import
from __future__ import unicode_literals
from django.utils.translation import ugettext as _
from corehq.apps.locations.permissions import location_safe
from corehq.apps.reports.datatables import DataTablesHeader, DataTablesColumn
from corehq.apps.reports.filters.select import Mont... |
/*
* CSS Gradient Generator
* v2.1.0
* CSS gradient generator with the best browser support. Three different layouts to meet Your requirement (from simple linear to complex radial gradients).
* http://www.virtuosoft.eu/tools/css-gradient-generator/
*
* Made by Virtuosoft:
* István Ujj-Mészáros - https:... |
'use strict';
var
gulp = require('gulp'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish');
gulp.task('default', ['jshint']);
gulp.task('jshint', lint);
function lint () {
return gulp
.src('./lib/**.js')
.pipe(jshint())
.pipe(jshint.reporter(stylish, {verbose: true}))
.pipe(jshint... |
export { default as Tab } from './Tab'
export { default as Tabs } from './Tabs'
|
var cacheName = 'discord-pwa';
var filesToCache = [
'./',
'./index.html',
'./css/style.css',
'./css/client.css',
'./js/main.js',
'./PWA_Install_Button.png'
];
/* Start the service worker and cache all of the app's content */
self.addEventListener('install', function (e) {
e.waitUntil(
... |
/*
* Copyright 2014-2019 MarkLogic Corporation
*
* 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... |
module.exports = {
name: "create-user",
description:
"Programmatically create a Netlify Identity user by invoking a function",
onComplete() {
console.log(`create-user function created from template!`);
console.log(
"REMINDER: Make sure to call this function with a Netlify Identity JWT. See https... |
// mongofiles_invalid.js; runs mongofiles with an invalid command and
// option - ensures it fails in all cases
var testName = 'mongofiles_invalid';
load('jstests/files/util/mongofiles_common.js');
(function() {
jsTest.log('Testing mongofiles with invalid commands and options');
var runTests = function(topology, p... |
module.exports = {
plugins: ['prettier'],
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
extends: [
'plugin:@typescript-eslin... |
module.exports = {
events: require('events'),
fs : require('fs'),
net : require('net'),
http : require('http'),
https : require('https'),
dgram : require('dgram'),
dns : require('dns')
}
|
for x in range(6, 0, -1):
if (x % 2 != 0):
ctrl = x + 1
else:
ctrl = x
for y in range(0, ctrl):
print("*", end="")
print() |
from Calculators.Calculator import Calculator
from Statistics.Z_Score import z_score
from Statistics.PopulationStandardDeviation import pop_stand_dev
from Statistics.ConfidenceInterval import confidence_interval
from Statistics.PopulationVariance import population_variance
from Statistics.PopulationMean import populati... |
# Copyright 2018 OpenStack Foundation.
# 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 requ... |
import numpy as np
from numpy.linalg import norm
from atomset import atomset
from neighbor import *
import math
def dotproduct(v1, v2):
return sum((a*b) for a, b in zip(v1, v2))
def length(v):
return math.sqrt(dotproduct(v, v))
def angle(v1, v2):
a = dotproduct(v1, v2) / (length(v1) * length(v2))
if (a... |
//來自 https://codepen.io/FrankFitzGerald/pen/LAbfm
//作者(同分享者)也不知道這個神作從哪裡來
(() => {
fx.sakura.onload = function(){
console.log("sakura is load!\ncode from https://69.run/ecnPww\ntips:This item isn't made from him")
fx.sakura.chg_opc()
var canvas = document.getElementById("sakura");
tr... |
const { CircularLinkedList } = PacktDataStructuresAlgorithms;
const list = new CircularLinkedList();
console.log('push element 15');
list.push(15);
console.log('list.toString() => ', list.toString());
console.log('push element 16');
list.push(16);
console.log('list.toString() => ', list.toString());
console.log('pu... |
_base_ = [
'../_base_/datasets/coco500_detection_augm.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# model settings
model = dict(
type='FOVEA',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
ou... |
Desc = cellDescClass("XOR2XL")
Desc.properties["cell_leakage_power"] = "1343.813166"
Desc.properties["cell_footprint"] = "xor2"
Desc.properties["area"] = "26.611200"
Desc.pinOrder = ['A', 'B', 'Y']
Desc.add_arc("A","Y","combi")
Desc.add_arc("B","Y","combi")
Desc.add_param("area",26.611200);
Desc.add_pin("A","input")
De... |
import constant
from discord import AllowedMentions
from discord.ext.commands import Bot, Cog
class Register(Cog):
def __init__(self, bot: Bot):
self.bot = bot
@Cog.listener()
async def on_raw_reaction_add(self, reaction):
if reaction.channel_id != constant.CH_REGISTER:
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 not use ... |
/**
* @license Angulartics v0.12.13
* (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics
* Contributed by http://github.com/chechoacosta
* License: MIT
*/
!function(a){"use strict";a.module("angulartics.chartbeat",["angulartics"]).config(["$analyticsProvider",function(a){angulartics.waitForVendorApi("p... |
const {Chart} = require("chart.js");
const {getPercentageColor} = require('../helpers/getPercentageColor.helper')
const {options} = require('../helpers/pie-chart-options.helper')
const {getCpuUsage} = require('../services/cpu.service')
let donutChart = null;
let chartPercentageSpan = null;
const renderChart = async ... |
# Copyright (C) 2012 Apple. 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. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the follo... |
import React from "react"
import Layout from "../components/layout"
import Head from "../components/head"
const AboutPage = () => (
<Layout>
<Head title="About" />
<h1>About!</h1>
</Layout>
)
export default AboutPage
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{cd13:function(module,exports){module.exports=function(hljs){var KEYWORDS="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall overr... |
ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(t,i,e){"use strict";var s=t("./lib/oop"),o=(t("./lib/lang"),t("./lib/event_emitter").EventEmitter),n=t("./editor").Editor,r=t("./virtual_renderer").... |
# -*- coding: utf-8 -*-
from django.core.mail import send_mail
from django.conf import settings
from celery_tasks.main import celery_app
@celery_app.task(name='send_verify_email')
def send_verify_email(to_email, verify_url):
"""
发送激活邮箱
:param to_email: 收件人邮箱
:param verify_url: 激活url
"""
subj... |
$(document).ready(function()
{
$('.save-company-info').click(function(){
saveInfo();
});
$('.save-company-seo').click(function(){
saveSeo();
});
$('.save-company-social').click(function(){
saveSocial();
});
$('.save-company-contact').click(function(){
saveEmails();
savePhones();
updateCompany()... |
import sys
import yaml
from tasks.TaskCheck import check
from tasks.TaskTraining import train
config_file = sys.argv[1]
configuration = {}
with open(config_file, 'r') as stream:
configuration = yaml.load(stream)
# save the configuration to the output in order to get all the information
with open('./Data/config.y... |
# Initializing Dictionaries
contacts = {
"John Doe": "1234 Main St",
"Jane Smith": "5678 Market St",
"Daisy Johnson": "1357 Wall St",
}
print(contacts)
# creating a dict from a list of lists
my_list = [["key1", "value1"], ["key2", "value2"], ["key3", "value3"]]
my_dict = dict(my_list)
print(my_dict)
|
// git bash python -m http.server
//http://127.0.0.1:8000/
// function to plot graphs
function buildCharts(id) {
// getting data from the json file
d3.json("Data/samples.json").then((data)=> {
console.log(data)
//open browser to view the data elements in the json
//create variables
// filter sample va... |
const mongoose = require('mongoose');
const medicationSchema = mongoose.Schema({
name: {
type: mongoose.SchemaTypes.String,
required: true
},
pet:{
type:mongoose.SchemaTypes.ObjectId,
required:true
},
dose:{
type:mongoose.SchemaTypes.String,
required:t... |
import time
import keras
class TimeHistory(keras.callbacks.Callback):
def on_train_begin(self, logs={}):
self.times = []
def on_epoch_begin(self, batch, logs={}):
self.epoch_time_start = time.time()
def on_epoch_end(self, batch, logs={}):
self.times.append(time.time() - self.epo... |
# Copyright 2018 Intel, 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 to in writing,... |
macDetailCallback("00c033000000/24",[{"d":"1998-04-22","t":"add","a":"SKANDERBORGVEJ 234\nDK-8260 VIBY\n\n","c":"DENMARK","o":"TELEBIT COMMUNICATIONS APS"},{"d":"2005-07-21","t":"change","a":"SKANDERBORGVEJ 234\nDK-8260 VIBY\nDENMARK\n","c":"DENMARK","o":"TELEBIT COMMUNICATIONS APS"},{"d":"2013-01-30","t":"change","a":... |
/*
* xpath.js
*
* An XPath 1.0 library for JavaScript.
*
* Cameron McCormack <cam (at) mcc.id.au>
*
* This work is licensed under the MIT License.
*
* Revision 20: April 26, 2011
* Fixed a typo resulting in FIRST_ORDERED_NODE_TYPE results being wrong,
* thanks to <shi_a009 (at) hotmail.com>.
... |
s1 = "mmlk"
s2 = 'mmilk'
max = 0
max_i = None
max_j = None
match = 1
mismatch = -1
gap = -1
def display(m):
for row in m:
print(row)
# 2 matrices - scores + traceback
# memory allocation
score = []
trace = []
for i in range(len(s1) + 1):
s = []
t = []
for j in range(len(s... |
import expect from 'expect.js';
import ngMock from 'ng_mock';
import { AggTypesMetricsPercentilesProvider } from '../../metrics/percentiles';
import { VisProvider } from '../../../vis';
import FixturesStubbedLogstashIndexPatternProvider from 'fixtures/stubbed_logstash_index_pattern';
describe('AggTypesMetricsPercentil... |
import React from "react"
import { FaChartLine,FaFlagCheckered } from "react-icons/fa"
import {FiTarget} from "react-icons/fi"
export default [
{
id: 1,
icon: <FiTarget className="service-icon" />,
title: "measurement",
text: `My science training enables creating solid experiments and tracking that va... |
const debug = require('debug')('upward-js:DirectoryResolver');
const path = require('path');
const serveStatic = require('express').static;
const AbstractResolver = require('./AbstractResolver');
const AllServers = new Map();
class DirectoryResolver extends AbstractResolver {
static get resolverType() {
re... |
'use strict';
// Summary:
// Add a page
// Usage:
// node remove_page.js featureName pageName
// Example:
// node remove_page.js employee ListView
const path = require('path');
const _ = require('lodash');
const shell = require('shelljs');
const helpers = require('./helpers');
const arr = (process.argv[2] || '').s... |
ease = {
noEasing: function (t, b, c, d) {
return c * t / d + b;
},
easeInQuad: function (t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInOutQuad: function (t, b, c, d) {
if ((t/... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
'use strict';
require('/shared/js/lazy_loader.js');
require('/shared/test/unit/mocks/mock_lazy_loader.js');
require('/shared/test/unit/mocks/mock_download.js');
requireApp('system/test/unit/mock_download_store.js');
requireApp('system/test/unit/mock_download_ui.js');
requireApp('system/test/unit/mock_download_formatte... |
"""
discpy.webhook
~~~~~~~~~~~~~~
Webhook support
:copyright: (c) 2021 The DiscPy Developers (c) 2015-2021 Rapptz
:license: MIT, see LICENSE for more details.
"""
from .async_ import *
from .sync import *
|
module.exports = {
NODE_ENV: '"production"',
RAPTOR: `{}`
}
|
const _handleKeyDown = function(event){
if (event.keyCode === 13){
if (this && typeof this._handleLoad === 'function'){
this._handleLoad()
}
} else if (event.keyCode === 27){
if (this && typeof this._handleClose === 'function'){
this._handleClose()
}
}
}
const withKeyDown = (target) =... |
import Button from './components/Button';
import Loader from './components/Loader';
import Tag from './components/Tag';
import Switch from './components/Switch';
describe('Button', () => {
it('is truthy', () => {
expect(Button).toBeTruthy();
});
});
describe('Loader', () => {
it('is truthy', () => {
exp... |
import DOM from './dom';
import Contract from './contract';
import './flightsurety.css';
(async() => {
let result = null;
let contract = new Contract('localhost', () => {
// Read transaction
contract.isOperational((error, result) => {
console.log(contract.flights);
... |
base_endpoint = 'https://www.instagram.com'
shared_data = '/data/shared_data/'
login_endpoint = '/accounts/login/ajax/'
logout_endpoint = '/accounts/logout/'
explore_tag = '/explore/tags/{hashtag}/'
like_endpoint = '/web/likes/{media_id}/like/'
unlike_endpoint = '/web/likes/{media_id}/unlike/'
delete_endpoint = '/cr... |
const lodashFilter = require('lodash.filter');
import {
GET_CONVERSATION,
GET_CONVERSATION_ERROR,
GET_CONVERSATION_SUCCESS,
SET_CONVERSATION_STATUS,
GET_MESSAGES,
GET_MESSAGES_SUCCESS,
GET_MESSAGES_ERROR,
UPDATE_CONVERSATION,
UPDATE_MESSAGE,
ALL_MESSAGES_LOADED,
ALL_CONVERSATIONS_LOADED,
SEND_M... |
function showCurrentRow(){
const current = $(window).scrollTop() + $(window).height();
let delay = 0;
$(".image-shareImages section.transparent-content").each(function(){
const that = this;
if(current >= parseFloat($(that).offset().top)){
setTimeout(function(){
$(that).animate({
... |
define([
'./version'
], function(){});
|
# -*- coding: utf-8 -*-
"""Collect render data.
This collector will go through render layers in maya and prepare all data
needed to create instances and their representations for submission and
publishing on farm.
Requires:
instance -> families
instance -> setMembers
context -> currentFile
... |
import { List, Map, fromJS } from 'immutable'
import { combineReducers } from 'redux-immutable'
import {
SET_RECENT_SNIPPETS,
SET_SNIPPET,
SET_PAGINATION_LINKS,
SET_SYNTAXES,
} from '../actions/types'
const snippets = (state = Map(), action) => {
switch (action.type) {
case SET_RECENT_SNIPPETS:
ret... |
# -*- coding: utf-8 -*-
# Voronoi diagram calculator/ Delaunay triangulator
#
# - Voronoi Diagram Sweepline algorithm and C code by Steven Fortune,
# 1987, http://ect.bell-labs.com/who/sjf/
# - Python translation to file voronoi.py by Bill Simons, 2005, http://www.oxfish.com/
# - Additional changes for QGIS by Carso... |
import { connect } from 'react-redux';
import ReviewBreakdown from '../ReviewBreakdown.jsx';
import fetchReviewList from '../review_actions/fetchReviews.js';
import reviewFilter from '../review_actions/filterReviews.js';
import applyFilter from '../review_actions/filterReviews.js';
const mapStateToProps = (state) => {... |
/*! For license information please see framework-94ae85c82b1ba08b8dc6.js.LICENSE.txt */
(self.webpackChunkmy_gatsby_site=self.webpackChunkmy_gatsby_site||[]).push([[774],{2703:function(e,t,n){"use strict";var r=n(414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==... |
// @flow
import * as React from "react"
import "./app.css"
type Props = {
image: {
heightPx: number,
/** Either absolute or relative to the `<project_root>/public` directory */
url: string
},
message: string
}
export default class App extends React.Component<Props> {
render() {
... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import React, { useContext, useState } from "react";
import './login.css';
import logo from '../images/logo.png';
import { AppContext } from "../../contexts/AppContext";
import { useAlert } from 'react-alert'
import {Link, useHistory} from "react-router-dom";
// export default class Login extends React.Component{
/... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... |
# Written by Bram Cohen
# see LICENSE.txt for license information
import socket
from errno import EWOULDBLOCK, ECONNREFUSED, EHOSTUNREACH
try:
from select import poll, error, POLLIN, POLLOUT, POLLERR, POLLHUP
timemult = 1000
except ImportError:
from selectpoll import poll, error, POLLIN, POLLOUT, POLLERR, ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_definePr... |
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Robin Rosenstock and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestSerie_media_management(unittest.TestCase):
pass
|