text stringlengths 3 1.05M |
|---|
/*!
Waypoints Sticky Element Shortcut - 4.0.0
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
(function () {
'use strict'
var $ = window.jQuery
var Waypoint = window.Waypoint
/* http://imakewebthings.com/wayp... |
var domUtil = require('wind-dom');
var binders = {};
binders.text = function(el, value) {
if (value === null || value === undefined) {
value = '';
} else {
value = '' + value;
}
if (el.nodeType === 3) {
el.nodeValue = value;
} else {
el.innerText = el.textContent = value;
}
};
binders.htm... |
const os = require('os');
const { DynamicPool } = require('node-worker-threads-pool');
const Pool = new DynamicPool(os.cpus().length, { shareEnv: true });
const someFunction = async (params) =>
await Pool.exec({
task: async function() {
const { params } = this.workerData;
console.log('params', param... |
'use strict'
const { expect } = require('chai')
const cheerio = require('cheerio')
const nock = require('nock')
const supertest = require('supertest')
const mockSession = require('../../../test-helpers/mock-session.js')
const getApp = require('../../../../server.js').getApp
const userFixtures = require('../../../fixt... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... |
var managment_View = require('managment_View');
var managment_Data = require('managment_Data');
var utils = require('utils');
var validate = require('hdjs.validate');
var validator = new validate.FormValidator();
show();
/* ***********************************************************
* Public functions
* ********... |
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"388":"D X g H L"},C:{"164":"1 2 e f K h i j k l m n o p q v w x y z s r","676":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d PB OB"},D:{"164":"1 2 7 9 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s... |
module.exports = {
name: 'CustomerFeed',
object: {
feed: { _description: 'The feed being linked to the customer.', _type: 'string' },
matching_function: {
function_string: {
_description:
'String representation of the Function. Examples: 1. IDENTIT... |
/* eslint-disable global-require */
module.exports = () => {
require('v8').setFlagsFromString('--expose_gc')
return require('vm').runInNewContext('gc')()
}
|
import random
import string
from PIL import Image, ImageFont, ImageDraw, ImageFilter
def getRandomChar():
poolOfchars=string.ascii_letters+string.digits
code=''.join([random.choice(poolOfchars) for i in range(4)])
return code
def getColor():
return (random.randint(0,255),random.randint(0,255),random.... |
from helper import *
def fgft():
pl = player_list()
player_ids = pl['player_id']
l = list()
for pi in player_ids:
try:
totals = player_totals(pi)
fga = totals['FGA'].sum()
fg = totals['FG'].sum()
fta = totals['FTA'].sum()
ft = totals['... |
import React from 'react'
const Ticket = props => (
<svg
fill='currentColor'
viewBox='0 0 576 512'
width='1em'
height='1em'
{...props}
>
<path d='M576 208v-96c0-26.51-21.49-48-48-48H48C21.49 64 0 85.49 0 112v96c26.51 0 48 21.49 48 48s-21.49 48-48 48v96c0 26.51 21.49 48 48 48h480c26.51 0 48-... |
module.exports = {
version: '1.0.0',
init: function (pluginContext) {
const condition = require('./conditions/header-match.js')
pluginContext.registerCondition(condition)
}
} |
/**
* 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 React from 'react';
import {createRoot} from 'react-dom';
import './index.css';
import Router from './Router';
createRoot(... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.19.15
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitt... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.... |
var cooking = require('cooking');
var gen = require('../../build/gen-single-config');
cooking.set(gen(__dirname, 'ElLoading'));
module.exports = cooking.resolve();
|
import {
Platform,
StyleSheet
} from 'react-native';
import { colors, fonts } from 'Tesloop/src/settings';
let styles = StyleSheet.create({
leftButton: {
paddingHorizontal: 16,
paddingVertical: 15,
marginRight: 10
},
title: {
color: 'black',
fontFamily: fonts.light,
fontSize: 20,
}
});
// IOS Platf... |
/*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation
* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.... |
class WebDollarCoins{
constructor(){
this.MAX_SAFE_COINS = Number.MAX_SAFE_INTEGER;
this.MIN_SAFE_COINS = Number.MIN_SAFE_INTEGER;
//max safe int: 90071992547 40992
//rewards 42000000000.00000
this.WEBD = 10000;
this.UNIT = 1;
}
validateCo... |
// Define your own mock data here:
export const standard = (/* vars, { ctx, req } */) => ({
users: {
id: 42,
},
})
|
const Discord = require("discord.js");
require("discord-reply");
const client = new Discord.Client();
const config = require(__dirname+"/config.json");
const fetch = require("node-fetch");
const fetchJson = async (url, options) => new Promise(async (resolve, reject) => {
fetch(url, options)
.then(response =... |
const { CellsHypelinksApi, CellsHypelinks_GetWorksheetHyperlinksRequest } = require("asposecellscloud");
const clientId = process.env.CellsCloudTestClientId;
const clientSecret = process.env.CellsCloudTestClientSecret;
cellsApi = new CellsApi(clientId, clientSecret);
filename = "Book1.xlsx"
var req = new C... |
"""
A simple module for playing music
Usage Examples:
- "Play some music"
- "Turn up!"
"""
from celestai.classes.module import Module
from celestai.classes.task import ActiveTask
from celestai.tts import play_mp3
# Checks 'media' folder by default
TURN_UP_SONG = 'godj.mp3'
class PlaySongTask(ActiveTask):
... |
'use strict';
module.exports = {
en: {
translation: {
Welcome: {
LaunchFirstTime: 'Welcome to Forest Fantasy! I can play an excellent piece of music so that '
+ 'you can relax, or frighten, it depends on you. Would you like to listen to it now?',
Launch: 'Welcome back. Ready for a... |
#!/usr/bin/env python
'''
Remote Control Library: This object contains all of the common variables and
functions that are shared by the various remote control devices on NaviGator.
'''
import functools
import itertools
import actionlib
from geometry_msgs.msg import WrenchStamped
from navigator_alarm import AlarmBro... |
/*
* Kendo UI v2014.3.1316 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... |
import {mockTimeSource} from '@cycle/time';
import R from 'ramda';
// Modified from
// https://github.com/cyclejs-community/redux-cycles/blob/master/example/cycle/test/helpers.js
/**
*
* @param {Object} sources Diagram Mapping of the Cycle sources to assert in a form like this:
* {
ACTION: { 'ab|': actionS... |
describe('CTS Real Model Test', function() {
const assert = chai.assert;
const nn = navigator.ml.getNeuralNetworkContext();
it('Check result for layer-4 CONV_2D example/3 of resnet50v1 model', async function() {
let model = await nn.createModel(options);
let operandIndex = 0;
let op1_value... |
"""patient_management_system URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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='... |
import os
import random
import unittest
import big_file_sort
class BigFileSort(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def verify_contents_same_length(self, input_lines, output_lines):
input_len = sum([len(x) for x in input_lines])
output_len =... |
/*! insight-bitcore 0.2.4 */
!function(P,W,s){"use strict";function y(b){return function(){var c,a=arguments[0],a="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.2.21/"+(b?b+"/":"")+a;for(c=1;c<arguments.length;c++)a=a+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toSt... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fab';
var iconName = 'wpexplorer';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = 'f2de';
var svgPathData = 'M512 256c0 141.2-114.7 256-256 256C114.8 512 0 397.3 0 256S114.7 0 256 0s256 114.7 256 256zm-32 0c... |
//! moment-timezone.js
//! version : 0.5.5
//! author : Tim Wood
//! license : MIT
//! github.com/moment/moment-timezone
!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["moment"],b):"object"==typeof module&&module.exports?module.exports=b(require("moment")):b(a.moment)}(this,function(a){"... |
/* Our bundler for the desktop app.
* We build:
* Electron main thread / render threads for the main window and remote windows (menubar, trackers, etc)
*/
import TerserPlugin from 'terser-webpack-plugin'
import merge from 'webpack-merge'
import path from 'path'
import webpack from 'webpack'
import HtmlWebpackPlugin ... |
import React, { useContext, Fragment } from "react";
import { Segment, Grid, GridColumn } from "semantic-ui-react";
import { RootStoreContext } from "../store/rootStore";
import { observer } from "mobx-react-lite";
import LoadingComponent from "./LoadingComponent";
const colors = ["orange", "teal", "purple"];
const ra... |
import { Input, ContentChildren, QueryList } from '@angular/core';
import { MenuItemComponent } from './menu-item.component';
import { ItemTemplateDirective } from './templates/item-template.directive';
import { ItemLinkTemplateDirective } from './templates/item-link-template.directive';
/**
* @hidden
*/
export class... |
import React from 'react';
import Avatar from '@material-ui/core/Avatar';
import AvatarGroup from '@material-ui/lab/AvatarGroup';
import withStyles from "@material-ui/core/styles/withStyles";
import Badge from "@material-ui/core/Badge";
import classNames from "classnames";
export default function GroupAvatars(props) {... |
// 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 ... |
import numpy
from Utils.conjugate_gradient_method import conjugate_solver
from Utils.CrossEntropy import stable_softmax, accelerate_obj
import sys
import numba
home_dir = '../../../'
sys.path.append(home_dir)
class CrossEntropyExecutor(object):
def __init__(self, x_mat, y_vec, num_class):
self.s, self.d ... |
/**
* Copyright 2017 IBM Corp.
*
* 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 wr... |
import React from "react";
import { Link } from "react-router-dom";
// reactstrap components
import {
Button,
Collapse,
DropdownToggle,
DropdownMenu,
DropdownItem,
UncontrolledDropdown,
NavbarBrand,
Navbar,
NavItem,
NavLink,
Nav,
Container,
UncontrolledTooltip,
} from "reactstrap";
function I... |
// Simple React Native specific changes
import '../I18n/I18n'
export default {
// font scaling override - RN default is on
allowTextFontScaling: true
}
|
import logging as logging
import os
from pymongo import MongoClient
class MongoAPI:
MONGO_URI = os.environ.get("MONGO_URI")
def __init__(self):
self.instance = MongoClient(self.MONGO_URI)
db = self.instance["pages"]
self.collection = db["pages"]
def read(self,metadata):
... |
"""
This module tests if all the modules from saturated_muatgenesis are available
"""
def test_module():
try:
from .. import mutate_pdb
from .. import pele_files
from .. import analysis
from .. import helper
except ImportError as e:
raise ImportError(" the... |
#!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the fundrawtransaction RPC."""
from decimal import Decimal
from test_framework.test_framework imp... |
define(function(require) {
return {
"game": {
"title": "BMount-spaceships",
"levels": [{
"name": "Level 1",
"speed": 2,
"background": {
"type": "color",
"color": "rgba(0,0,0,0.8)",
... |
var TooltipDemoCtrl = function ($scope) {
$scope.dynamicTooltip = "Hello, World!";
$scope.dynamicTooltipText = "dynamic";
};
|
import React from 'react';
import { addons, types } from '@storybook/addons';
import { ToolbarManager } from './components/ToolbarManager';
import { ADDON_ID } from './constants';
addons.register(ADDON_ID, function () {
return addons.add(ADDON_ID, {
title: ADDON_ID,
type: types.TOOL,
match: function match... |
// Make sure we wait to attach our handlers until the DOM is fully loaded.
$(function () {
$(".change-devour").on("click", function (event) {
event.preventDefault();
event.stopPropagation();
var id = $(this).data("id");
var newDevour = $(this).data("devoured");
var devouredS... |
import assert from "assert";
import exported from "../dist";
import Container from "../dist/Container";
import Resolver from "../dist/Resolver";
import ResolverError from "../dist/ResolverError";
describe("exports", function() {
it("should only specify `Container`, `Error`, & `Resolver`", function() {
const key... |
var logger = require('logger')('custodian')
var property = require('@yoda/property')
var wifi = require('@yoda/wifi')
var _ = require('@yoda/util')._
var WIFI_TIMEOUT_SECS = 15
module.exports = Custodian
function Custodian (runtime) {
wifi.enableScanPassively()
this.runtime = runtime
this.component = runtime.com... |
import React from "react"
import { graphql, Link } from "gatsby"
import Img from "gatsby-image"
import Layout from "../components/layout_1"
import "../styles/styles.css"
const Article = ({ data }) => {
let article = data.article.nodes[0]
return (
<Layout>
<Link to="/">Go back to index page</Link>
... |
import React from "react"
import { Link } from "gatsby"
import { StaticImage } from 'gatsby-plugin-image'
import { useLocation } from "@reach/router"
//상단 헤더 + 푸터부분 (구조 완성 - css 남음! 액션이랑)
const Layout = props => {
const { title, children } = props
const [toggleNav, setToggleNav] = React.useState(false)
const {... |
(this.webpackJsonp=this.webpackJsonp||[]).push([[192],{1460:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return r}),n.d(t,"language",function(){return i});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")... |
# Copyright 2019 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... |
"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 = _interopRequireWildcar... |
export default class CSS3D {
constructor(camera) {
this.camera = camera;
this.scene = new THREE.Scene();
this.renderer = this.buildRenderer();
this.loop = this.loopRenderer();
window.addEventListener('resize', () => {
this.renderer.setSize(window.innerWidth, window.innerHeight);
this.... |
#!/usr/bin/env python3
import rospy
from std_msgs.msg import Int32
rospy.init_node('fourth')
pub = rospy.Publisher('fourth_up',Int32, queue_size=1)
rate = rospy.Rate(20)
n = 0
def cb(message):
pub.publish(message.data*4)
if __name__== '__main__':
rospy.init_node('fourth')
sub = rospy.Subscriber('third_up', Int32, ... |
'use strict';
(function() {
// Strategies Controller Spec
describe('Strategies Controller Tests', function() {
// Initialize global variables
var StrategiesController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating and dele... |
# -*- python -*-
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later versio... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _babelHelperPluginUtils() {
const data = require("@gerhobbelt/babel-helper-plugin-utils");
_babelHelperPluginUtils = function () {
return data;
};
return data;
}
var _default = (0, _babelHe... |
# coding=utf-8
# Copyright 2020 The Google Research 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 applicab... |
(function () {
'use strict';
angular
.module('app', ['ui.router', 'ngMessages', 'ngStorage', 'angular-jwt'])
.config(config)
.run(run);
function config($stateProvider, $urlRouterProvider,$httpProvider, jwtOptionsProvider) {
// default route
$urlRouterProvider.other... |
import { Animated } from 'react-native';
import styled from 'styled-components/native';
export const Container = styled(Animated.View)`
height: 100px;
margin-top: 20px;
`;
export const TabsContainer = styled.ScrollView.attrs({
horizontal: true,
contentContainerStyle: { paddingLeft: 10, paddingRight: 20 },
s... |
/*
* "Bushed Bricks" JavaScript Game
* source code : https://github.com/shtange/bushed-bricks
* play it here : https://shtange.github.io/bushed-bricks/
*
* Copyright 2016, Yurii Shtanhei
* GitHub : https://github.com/shtange/
* Habr : https://habrahabr.ru/users/shtange/
* email : y.shtanhei@gmail.com... |
/*
* jQuery mmenu footer addon
* mmenu.frebsite.nl
*
* Copyright (c) Fred Heusschen
*/
(function( $ ) {
var _PLUGIN_ = 'mmenu',
_ADDON_ = 'footer';
$[ _PLUGIN_ ].addons[ _ADDON_ ] = {
// _init: fired when (re)initiating the plugin
_init: function( $panels )
{
var that = this,
opts = this.... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Slider from 'react-slick'
import 'slick-carousel/slick/slick.css'
import 'slick-carousel/slick/slick-theme.css'
function SampleNextArrow(props) {
const { className, style, onClick } = props
return (
<div
className={classNa... |
module.exports = {
todoValidate(req, res, next) {
const { description, title, completed = null } = req.body;
if (
!description ||
typeof description !== "string" ||
!description.trim()
) {
return res
.status(422)
.json({
error: "description cannot be null,... |
/**-----------------------------------------------------------------------------------------
* Copyright © 2020 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*--------------------------------------------------------------... |
'use strict';
const beans = require('../../testutil/configureForTest').get('beans');
const fieldHelpers = beans.get('fieldHelpers');
beans.get('initI18N'); // initialize iternationalization for results
const expect = require('must-dist');
describe('Activity application', () => {
it('removes all special characters ... |
/**
* Copyright 2013-2022 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
"""The tests for the Script component."""
# pylint: disable=protected-access
import asyncio
from contextlib import contextmanager
from datetime import timedelta
import logging
from types import MappingProxyType
from unittest import mock
from unittest.mock import patch
from async_timeout import timeout
import pytest
im... |
/**
* See LICENSE file.
*
* An actor to show the path and its handles in the scene graph.
*
**/
(function() {
/**
* This class paints and handles the interactive behavior of a path.
*
* @constructor
* @extends CAAT.ActorContainer
*/
CAAT.PathActor= function() {
CAAT.PathActor.super... |
######################################################################
# Deep Reinforcement Learning for Autonomous Driving
# Created/Modified on: February 5, 2019
# Author: Pinaki Gupta
#######################################################################
from __futu... |
/**
* @param {number[]} nums
* @return {number[][]}
*/
var subsetsWithDup = function(nums) {
let ans = [];
let subset = [];
nums.sort();
function helper( i ) {
if( i === nums.length ) {
ans.push([...subset]);
return;
}
subset.push(... |
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
import re
from spack import *
tools_url = 'https://github.com/ROCm-Developer-Tools'
compute_url = 'https://git... |
exports.columnsForeign = function() {
return SpreadsheetApp.Dimension.COLUMNS;
}
exports.rowsForeign = function() {
return SpreadsheetApp.Dimension.ROWS;
}
exports.js2psImpl = (a) => (e) {
switch (e) {
case SpreadsheetApp.Dimension.COLUMNS:
return a[0];
case SpreadsheetApp.Dimension.ROWS:
return a[1... |
import React, { Component } from 'react'
import BookList from '../containers/book-list'
import BookDetail from '../containers/book-detail'
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
)
}
}
|
import React, { PureComponent } from "react";
import "./Quiz.css";
import QuoteNOptionContainers from "../../containers/QuoteNOptionContainers";
class Quiz extends PureComponent {
static displayName = "Quiz";
render() {
return (
<div className="quizpage">
<br />
<br />
<QuoteNOpt... |
var expect = require('chai').expect,
sort = require('sorter');
describe('Sort', function () {
it('Should be able to handle nested values', function () {
var list = [
{
foo: {
bar: {
name: 'Tom'
}
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["locale.ar-YE-d-ts"],{"./node_modules/@formatjs/intl-datetimeformat/locale-data/ar-YE.d.ts":function(t,a,o){"use strict";o.r(a)},"./node_modules/@formatjs/intl-numberformat/locale-data/ar-YE.d.ts":function(t,a,o){"use strict";o.r(a)}}]); |
import React from "react";
import PropTypes from "prop-types";
import styles from "./styles.scss";
import PhotoActions from "components/PhotoActions";
import PhotoComments from "components/PhotoComments";
import TimeStamp from "components/TimeStamp";
import CommentBox from "components/CommentBox";
import UserList from ... |
import React, {Component} from 'react';
import {Container} from 'react-bootstrap';
import { LineChart } from 'react-chartkick';
import 'chart.js';
class GopherRepoIssues extends Component{
constructor(props){
super(props);
this.state = {
items:[],
isLoaded: false,
}
... |
'use strict';
const authentication = require('feathers-authentication');
const GoogleStrategy = require('passport-google-oauth20').Strategy;
const GoogleTokenStrategy = require('passport-google-token').Strategy;
const SpotifyStrategy = require('passport-spotify').Strategy;
module.exports = function() {
const app =... |
from __future__ import print_function
#
# Copied from VTK/Common/Testing/Python/PythonSmoke.py
#
import qt
try:
import vtk
except:
print("Cannot import vtk")
qt.QApplication.exit(1)
try:
print(dir(vtk))
except:
print("Cannot print dir(vtk)")
qt.QApplication.exit(1)
try:
try:
try:
o = vtk.vt... |
// @flow
import * as React from 'react'
import * as I from 'immutable'
import * as Constants from '../../../constants/chat'
import {Box} from '../../../common-adapters'
import {dataToRouteState} from '../../../route-tree'
import {storiesOf, action} from '../../../stories/storybook'
import {Provider} from 'react-redux'
... |
'''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.3/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/extendsHelper ../core/tsSupport/decorateHelper ../core/typescript ./core/ExtensionConfigurationBase".split(" "),function(a... |
const electron = require('electron');
const url = require('url');
const path = require('path');
const { app, BrowserWindow, ipcMain } = electron;
const shutdown = require('electron-shutdown-command');
require('dotenv').config();
// Let electron reloads by itself when webpack watches changes in ./app/
require('electr... |
from collections import namedtuple
import math
Circle = namedtuple('Circle', 'x, y, r')
def solveApollonius(c1, c2, c3, s1, s2, s3):
'''
solveApollonius((0, 0, 1), (4, 0, 1), (2, 4, 2), 1,1,1)
Circle(x=2.0, y=2.1, r=3.9)
solveApollonius((0, 0, 1), (4, 0, 1), (2, 4, 2), -1,-1,-1)
Circle(x=2.0, y=0.... |
var searchData=
[
['resx',['RESX',['../_affichage_8hpp.html#a24c80669099d62cf0538af82c1cff466',1,'Affichage.hpp']]],
['resy',['RESY',['../_affichage_8hpp.html#ac610e52e0fd370b03b49194aab3eae62',1,'Affichage.hpp']]]
];
|
/**
* Copyright 2013-2018 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
from polygon import WebSocketClient
from polygon.websocket.models import WebSocketMessage
from typing import List
c = WebSocketClient(subscriptions=["T.*"])
def handle_msg(msgs: List[WebSocketMessage]):
for m in msgs:
print(m)
c.run(handle_msg)
|
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"OdorMeanChey":{"normal":"OdorMeanChey.ttf","bold":"OdorMeanChey.ttf","italics":"OdorMeanChey.ttf","bolditalics":"OdorMeanChey.ttf"}}; |
import React from 'react';
import { Draggable } from 'react-beautiful-dnd';
// Redux State....
import { useSelector, useDispatch } from 'react-redux';
import { newRecipe } from '../../../utils/globalSlice';
// MUI Components....
import {
TextField,
Box,
MenuItem,
Paper,
Typography,
} from '@mui/material'
... |
import React from "react";
import PropTypes from "prop-types";
const SvgComponent = ({ size, width, height, ...otherProps }) => {
if (size !== height) {
width = width * (size / height);
height = height * (size / height);
}
return (
<svg
width={width}
height={height}
viewBox="0 0 37... |
export * from './default-function-logger-options';
export * from './default-class-logger-options';
//# sourceMappingURL=index.js.map |
import React from 'react'
import { VictoryLine, VictoryAxis, VictoryLabel } from 'victory'
import { getStyles, stringToColor } from '../../styles/graph-styles'
import moment from 'moment'
import { ordinalSuffixOf } from '../../utils.js'
class CasesTimeSeries extends React.Component {
renderCombinedCountries (data, s... |
from _pytest.mark import param
import pytest, json, requests
api = "http://localhost:5000/api/zones/search"
def add_zone(hotel_name, address, phone):
file = {
"img": open("./test/018-2.jpg", "rb")
}
data = {
"data": json.dumps({
"hotel_name": hotel_name,
"address":... |