text
stringlengths
3
1.05M
// adapted the majority of this function from // https://bl.ocks.org/boeric/e16ad218bc241dfd2d6e // "D3 Dynamic Array of Tables" function updateTable(office, sort) { sort = sort || "contract_date"; var officeRows = contracts.find(function(table) { return table.office == office }); var sortedRows = officeRo...
import './App.css'; import Workspace from './Workspace.jsx'; function App() { return ( <div className="App"> <Workspace></Workspace> </div> ); } export default App;
#-*- coding:utf-8 -*- # # This file is part of CoTeTo - code templating tool # name = 'libSimModel' description = 'SimXML file reader, return objects from SimXML files' version = '0.1' author = 'EnEff-BIM team' helptxt = """ Help yourself""" def fetchData(uriList, systemCfg, generatorCfg, logger): from mapapi.Map...
Search.setIndex({docnames:["index","modules/data","modules/datasets","modules/nn","modules/transforms","modules/utils","notes/create_dataset","notes/create_gnn","notes/installation","notes/introduction"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"...
// call this from the developer console and you can control both instances var calendars = {}; $(document).ready( function() { // assuming you've got the appropriate language files, // clndr will respect whatever moment's language is set to. // moment.lang('ru'); // here's some magic to make sure the...
define("ace/mode/xquery",["require","exports","module","ace/worker/worker_client","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/xquery_highlight_rules","ace/range","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../worker/worker_client").WorkerClient,i=e("../lib/oop"),s=e("./te...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { cleanGeometry, geoJsonCleanAndValidate, } from './geo_json_clean...
"""Provides device trigger for lights.""" from __future__ import annotations import voluptuous as vol from openpeerpower.components.automation import AutomationActionType from openpeerpower.components.device_automation import toggle_entity from openpeerpower.const import CONF_DOMAIN from openpeerpower.core import CAL...
/* Copyright 2018 New Vector Ltd 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, software ...
#!/usr/bin/env python # -*- coding: utf-8 -* __author__ = 'pablo' import subprocess import os import matrix import count import sort import random from threading import Thread threads = [] num_threads = 20 def my_function(another_function, param): """ Llama a una función dada por parámetro (param1) y le pa...
import { Avatar, Box, Card, CardContent, Grid, Typography } from '@mui/material'; import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'; import MoneyIcon from '@mui/icons-material/Money'; import { red } from '@mui/material/colors'; const Budget = (props) => ( <Card sx={{ height: '100%' }}...
// rayTracing.js is the entrypoint to the raytracing code. It will be separate from canvasRenderer.js as that will allow it to be used with ascii renderers etc. import { Scene } from './scene.js'; import { SphereObject } from './sphereObject.js'; import { PlaneObject } from './planeObject.js'; import { Vector } from '...
module.exports={A:{A:{"2":"H C G E A B EB"},B:{"2":"D g w J L N I"},C:{"2":"0 1 2 4 5 6 7 8 YB BB F K H C G E A B D g w J L N I O P Q R S T U V W X Y Z z b c d e f M h i j k l m n o p q r s t u v x y WB QB"},D:{"1":"0 1 2 4 5 6 7 8 V W X Y Z z b c d e f M h i j k l m n o p q r s t u v x y KB aB FB DB GB HB IB","16":"F ...
/* Copyright 2017 Carmilla Mina Jankovic 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,...
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
/*-------*/ var Script = function () { $(function() { }); $('').click(function () { }); }();
const { mailer } = require('../models/Mailer.js') /** * GET /contact * Contact form page. */ exports.getContact = (req, res, next) => { res.render('contact', { title: 'Contact' }); }; /** * POST /contact * Send a contact form via Nodemailer. */ exports.postContact = (req, res) => { req.asser...
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import gettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): """serializer for the users object""" class Meta: model = get_user_model() fields = ( ...
# Copyright 2013-2021 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) from spack import * class PyDatasets(PythonPackage): """Datasets is a lightweight library providing two main fea...
(function() { "use strict"; angular .module('tornano') .controller('builderController', BuilderController); BuilderController.$inject = ['$scope', '$rootScope', '$http']; function BuilderController($scope, $rootScope, $http) { } })();
describe('utils/matter', function () { let pInst; beforeEach(function () { pInst = new p5(function () {}); }); afterEach(function () { pInst.remove(); }); describe('createMatter()', function () { it('Returns a Matter object', function () { let m = pInst.createMatter(); const keys ...
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import form from '../common-components/form.scss'; // const InputElement = styled.input` // font-size: 1rem; // width: 100%; // vertical-align: top; // margin: 0; // outline: none; // -webkit-appearance:...
import {build, files} from '$service-worker' import {CACHE_NAME} from './constants' export default (event) => { event.waitUntil( caches .open(CACHE_NAME) .then((cache) => Promise.all([ cache.addAll(['/']), // cache root page cache.addAll(build), cache.addAll(file...
/* eslint-env browser */ import React, { Component } from "react"; import { propTypes, defaultProps } from "./video-prop-types"; import SkySportsBanner from "./sky-sports-banner"; const css = ` .video-js .vjs-big-play-button { width: 70px; height: 70px; margin-top: -35px; margin-left: -35px; background: rgb...
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=wrong-import-position, redefined-outer-name, range-builtin-not-iterating, too-many-locals, try-except-raise, import-outside-toplevel, line-too-long """ Reco class for performing reconstructions """ from __future__ import absolute_import, division, print_...
# Copyright 2020–2021 Cirq on IQM developers # # 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 React, { Component } from 'react'; export default class Resume extends Component { render() { let resumeData = this.props.resumeData; return ( <section id="resume"> <div className="row education"> <div className="three columns header-col"> <h1><span>Educat...
#! /usr/bin/env python import tensorflow as tf import numpy as np import os import data_helpers from tensorflow.contrib import learn import csv from sklearn import metrics import yaml from knx.util.logging import Timing def softmax(x): """Compute softmax values for each sets of scores in x.""" if x.ndim == 1:...
import React, { useEffect, useState } from "react"; import { TouchableOpacity, StyleSheet, TextInput, View, Image, Dimensions, } from "react-native"; import { Input, Button, Text, useTheme } from "react-native-elements"; import { BButton, BackCancelButtons } from "../../components/index"; import { AntDesign...
# Copyright (c)2014 Rackspace US, Inc. # 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 re...
/** * EasyStar.js * github.com/prettymuchbryce/EasyStarJS * Licensed under the MIT license. * * Implementation By Bryce Neal (@prettymuchbryce) **/ var EasyStar = {} var Instance = require('./instance'); var Node = require('./node'); var Heap = require('heap'); const CLOSED_LIST = 0; const OPEN_LIST = 1; mod...
# # References # 1. url https://matplotlib.org/gallery/animation # /double_pendulum_animated_sgskip.html [20210205]. # from numpy import sin, cos import numpy as np import matplotlib.pyplot as plt import scipy.integrate as integrate import matplotlib.animation as animation G = 9.8 # acceleration due to gravity,...
import types from struct import pack from vertica_python.vertica.messages import * class Message(object): @classmethod def _message_id(cls, message_id): instance_message_id = message_id def message_id(self): return instance_message_id setattr(cls, 'message_id', types....
testTransformSpecifToTTL = (specifData) => { return transformSpecifToTTL("https://www.example.com",specifData) }; transformSpecifToTTL = (baseUri, specifData) => { let {id,dataTypes,propertyClasses,resourceClasses,statementClasses,resources,statements,hierarchies,files} = specifData; let projectID = id; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tf = require("@tensorflow/tfjs-core"); var tfjs_image_recognition_base_1 = require("tfjs-image-recognition-base"); function extractorsFactory(extractWeights, paramMappings) { function extractDepthwiseConvParams(numChannels, mappedPrefix)...
from pgmpy.models import MarkovModel from pgmpy.factors.discrete import JointProbabilityDistribution, DiscreteFactor from itertools import combinations from flyingsquid.helpers import * import numpy as np import math from tqdm import tqdm import sys import random class Mixin: ''' Triplet algorithms as a Mixin....
const fs = require('fs-extra') const database = require('../database') const prompts = require('prompts') const config = require('../config') function validateNotEmpty (value) { if (value.trim() === '') { return 'Must not be empty' } else { return true } } module.exports = async function (dir) { await...
import * as mars2d from "mars2d" let map let graphicLayer let shortestPathLayer let polygonZAM let pointQD let pointZD /** * 初始化地图业务,生命周期钩子函数(必须) * 框架在地图初始化完成后自动调用该函数 * @param {mars2d.Map} mapInstance 地图对象 * @returns {void} 无 */ export function onMounted(mapInstance) { map = mapInstance // 记录map // 创建矢量数据图层 ...
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); const paths = { src: 'src', dist: 'dist', assets: 'assets', }; const webpackConfig = { entry: { pre: path.join(__dirname, paths.src, 'scripts/pre.js'), ...
# Copyright (c) 2008 The Hewlett-Packard Development Company # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of...
const yargs = require('yargs'); yargs.version('1.1.9'); yargs.command({ command: 'add', describe: '- "Add a new note"', builder: { title: { describe: 'Note title', demandOption: true, //without title will be error. Title get as required* type: ...
function countLetter(str, letter) { let count = 0; for (let i = 0; i<str.length; i++) if (str[i] == letter) count++; return count; } console.log(countLetter('hello', 'l'))
""" * Project Name: AngelDocs * File Name: test_ignore_flag.py * Programmer: Kai Prince * Date: Mon, Apr 19, 2021 * Description: This file contains test for a --ignore flag. """ from pathlib import Path from utils import make_ignore_matcher import pytest from main import build_docs, resolve_file_sources @pytest.mark...
import time import mechanicalsoup as ms from .cli import get_args from .codeo import CodeoBrowser from .utils import get_enviroment_vars, show_results def main(): args = get_args() with ms.StatefulBrowser() as browser: cb = CodeoBrowser(browser) username, password = get_enviroment_vars() ...
// // ASPX::sqloledb_1_sspi数据库驱动代码模板 // module.exports = require('./default');
import 'bootstrap'; export function configure(aurelia) { aurelia.use .standardConfiguration() .developmentLogging(); //Uncomment the line below to enable animation. aurelia.use.plugin('aurelia-animator-css'); //Anyone wanting to use HTMLImports to load views, will need to install the following plugin...
import json from django.db.models import Count, Prefetch, QuerySet from rest_framework import authentication, request, response, serializers, viewsets from rest_framework.decorators import action from posthog.auth import PersonalAPIKeyAuthentication, TemporaryTokenAuthentication from posthog.models import Element, El...
import { TypeCreator } from "@compas/code-gen"; export function extendWithAuth(app) { const T = new TypeCreator("auth"); const R = T.router("/auth"); const session = T.object("session").keys({ id: T.uuid(), createdAt: T.date(), }); const tokenPair = T.object("tokenPair").keys({ accessToken: T.s...
import React from 'react' const Footer = () => { return ( <div className='footer'> <p>Copyright&copy; 2018</p> </div> ) } export default Footer
""" Primo Chato Seu primo possui muitos livros, todos em papel, e vive emprestando aos amigos dele. Entretanto, muitas vezes ele esquece a quem emprestou e já perdeu diversos Livros por causa disso. No almoço da família, no último final de semana, ele não parou de falar e se lamentar a respeito até q...
#!/usr/bin/env python #----------------------------------------------------------------------------- # Title : PyRogue XPM Cu Generator Module #----------------------------------------------------------------------------- # File : CuGenerator.py # Created : 2019-06-24 #------------------------------------...
""" HPCCM recipe for DALTON image (MPI) Contents: Ubuntu 18.04 GNU compilers (upstream) Intel MKL as linear algebra backend HDF5 OpenMPI OFED/MOFED PMI2 (SLURM) UCX Generating recipe (stdout): $ hpccm --recipe recipe_dalton_mpi.py --format singularity --singularity-version=3.2 """ import re os_ver...
export default function cssClass(...c) { return c.join(" "); } function setLocalStorageArray(key, value) { let val = window.localStorage.getItem(key); if (val) { try { val = JSON.parse(val); window.localStorage.setItem( key, JSON.stringify(Array.from(new Set([...val, value.toLowerC...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const md_file_converter_1 = require("md-file-converter"); const model_impl_1 = require("./model-impl"); function makeUnConfiguredMapParsedDocument({ marked, getSlug }) { return (conf) => { return (mdParsedDocument) => { ...
# License: MIT # Dynamic CGI serving using dynamic path imports for # CGI supporting executable for Interpreted languages Embedded Distribution # Contribution: 2018 Ganesh K. Bhat <ganeshsurfs@gmail.com> import os dictions = {} def return_statement(): for k, v in os.environ.items(): dictions[...
/** * Created by zhangxiaojing on 2017/12/12. */ import React, {Component} from 'react'; import {connect} from 'react-redux'; import { Link } from 'react-router-dom'; import {Pagination} from 'nl-design'; import {ROOT_AVATAR} from '../actions/types'; import {fetchUserStrategy} from '../actions/strategy'; // 引入 EChart...
// 文章详情类接口 import requestCore from '@/api/request-core' class detailApi extends requestCore { //人行征信提交接口 creditRequest (arg, ...other) { this.post('Api/workplatform/creditrequestsubmit', arg) } //风控初审详情接口 getArtificalOneDetail (arg, ...other) { this.get('Api/workplatform/getworkinfo/', arg) } //...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OptionComponent } from './option.component'; import { OptionGroupComponent } from './option-group.component'; import { CheckboxModule } from './../../free/checkbox/checkbox.module'; import { SelectAllOptionComponent } fro...
var { PythonShell } = require("python-shell"); const date = require(`./Time`); const cron = require("node-cron"); const shell = require("shelljs"); const time = require(`./Time`); const chalk = require("chalk"); const os = require("os"); const path = require("path"); const fs = require("fs"); function update_bot() { ...
const mongoose = require('mongoose') const Schema = mongoose.Schema const PlantSchema = new Schema({ name: { type: String, required: true, unique: true, }, litersPerWatering: { type: Number, required: true, }, }) module.exports = mongoose.model('Plant', PlantSchema)
const mongoose = require("mongoose"); const Schema = mongoose.Schema; //Create Schema const AvatarSchema = new Schema({ user: { type: Schema.Types.ObjectId, ref: "users" }, avatar: { type: String, required: true } }); module.exports = Avatar = mongoose.model("avatars", AvatarSchema);
from math import hypot import plotly.plotly as py import pandas as pd DEGREE_COLORS = { 'unknown': 'lightgreen', 'ms/phd': 'gold', 'phd': 'coral', 'ms': 'royalblue', 'undergrad': 'sienna'} def _find_closest_city(cities, coord, max_distance=1): closest_city = None closest_distance = None ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListObjectsCommand = void 0; const models_0_1 = require("../models/models_0"); const Aws_restXml_1 = require("../protocols/Aws_restXml"); const middleware_bucket_endpoint_1 = require("@aws-sdk/middleware-bucket-endpoint"); const middle...
export const getPosts = async (req, res, next) => { const posts = [ { id: 1, title: 'Hello World!', body: 'This is a hello world post', }, { id: 2, title: 'Another Post!', body: 'This is a another post', }, ]; return res.status(200).json({ data: { suc...
"use strict"; var LangSelect = /** @class */ (function () { // コンストラクタメソッド function LangSelect(info_list) { this.info_list = info_list; // Map配列格納 if (this.check_browser_cookie() == false) { // ブラウザに前回拒否したことを示すクッキーが埋め込まれていない var prop = this.check_info_list(); // info_listからユーザの第一言語と一...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'ui', environment: environment, baseURL: '/', locationType: 'auto', apiUrl: '/fixtures/data.json', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary b...
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' Project-wide **PEP-compliant type hint tester** unit tests. This submodule unit tests the public API of the private :mod:`beartype...
# 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 u...
// http://127.0.0.1:9001 // http://localhost:9001 // const accountSid = 'AC667383016263c00b06c5ca55f60aa462'; const authToken = '1588492378244469c5bcda850c1d4045'; const client = require('twilio')(accountSid, authToken); client.tokens.create({ttl: 3600 * 24 * 10}).then(token => console.log(token)); const fs = req...
'use strict'; const express = require('express'); const Cache = require('json-fetch-cache'); const { logger, ah, platforms, titleCase, trimPlatform, } = require('../lib/utilities'); const router = express.Router(); const rivenCaches = {}; const groupRivenData = (cacheStrData) => { /* istanbul ignore if */ if (!...
(window["webpackJsonpel-algoritmo-del-ritmo"]=window["webpackJsonpel-algoritmo-del-ritmo"]||[]).push([[77],{138:function(e,t){ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=funct...
const request = require("supertest"); const app = require("./../src/app"); const Task = require("./../src/models/task"); const { userOneId, userOne, userTwoId, userTwo, taskOne, taskTwo, taskThree, setupDatabase } = require("./fixtures/db"); beforeEach(setupDatabase); test("Should create task for user", async () => {...
import * as cyclic from './cyclic.js' import * as diverging from './diverging.js' import * as gist from './gist.js' import * as qualitative from './qualitative.js' import * as seasons from './seasons.js' import * as sequential from './sequential.js' import * as uniform from './uniform.js' import * as vega from './vega....
const Util = require('./util/Util'); module.exports = { // "Root" classes (starting points) Client: require('./client/Client'), Shard: require('./sharding/Shard'), ShardClientUtil: require('./sharding/ShardClientUtil'), ShardingManager: require('./sharding/ShardingManager'), WebhookClient: require('./clien...
//// [mergedInterfacesWithMultipleBases3.ts] // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected class C<T> { a: T; } class C2<T> { b: T; } class C3<T> { c: T; } class C4<T> { d: T; } interface A<T> extends C<string>, C3<string> { ...
const fs = require('./fs'); const config=require('./config') const abrTemplate = () => { let line = `#EXTM3U\n#EXT-X-VERSION:3\n` if(config.isLD) line += `#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360\n360p/index.m3u8\n` if(config.isSD) line += `#EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=842x480\...
class Genderizer: def __init__(self): pass #This will be dropped in elsewhere def checkName(self,name,year=1990,host="melville.seas.harvard.edu"): import urllib destination = "http://" + host + "/cgi-bin/genderizer.py" params = {'name':name,'year':year} encoded...
// @format const path = require("path"); const reactDocgenTypescript = require("react-docgen-typescript").withCustomConfig( "./tsconfig.base.json" ); const typescriptPropsParser = reactDocgenTypescript.parse; module.exports = { title: "nteract components", defaultExample: false, propsParser: typescriptProps...
"""\ flask-pytest ------------ Runs pytest in a background process when DEBUG is True. Links ````` * `Website <http://github.com/joeyespo/flask-pytest>`_ """ import os from setuptools import setup, find_packages def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return ...
function namePuppy() { var parent = document.getElementById("textbox"); var lineBreak = document.createElement("BR"); var input = document.createElement("INPUT"); input.type = "text"; input.id = "pname"; input.name = "pname"; input.value = "Spot"; parent.appendChild(lineBreak); paren...
cuenta = input("¿Quiere abrir una cuenta en el banco?:") saldo = 0 class banco: def __init__(self,cuenta,saldo): #defino el constructor self.cuenta = cuenta self.saldo = saldo def respuesta(self): if self.cuenta == "no": print("De acuerdo, gracias") if self.cuenta ==...
import merge from "ember-metal/merge"; import { get } from "ember-metal/property_get"; export function routeArgs(targetRouteName, models, queryParams) { var args = []; if (typeof targetRouteName === 'string') { args.push('' + targetRouteName); } args.push.apply(args, models); args.push({ queryParams: que...
var net = require('net'); var readline = require('readline'); var inherits = require('util').inherits; var spawn = require('child_process').spawn; exports.port = 5858; exports.start = function() { if (process.argv.length < 3) { console.error("Usage: node debug script.js"); process.exit(1); } var interf...
from typing import Any, Dict, List, Sequence, TypeVar, Union import pandas as pd from ..shopcore import shop_rest ShopCore = TypeVar("ShopCore") #To represent shop_pybind.ShopCore ShopApi = Union[ShopCore,'shop_rest.ShopRestNative'] IntStrFloat = Union[int,str,float] DataFrameOrSeries = Union[pd.DataFrame,pd.Series]...
""" OOPyCQL ------------- An object oriented interface for the CypherQueries in Python. """ import sys try: from setuptools import setup except ImportError: from distutils.core import setup append_to_deps = [] try: from functools import lru_cache del lru_cache except ImportError: if sys.version_...
import React, { Component } from 'react' import AnimatedCurve from './AnimatedCurve' import styled, { css } from 'styled-components' const Wrapper = styled.h1` margin-bottom: 0; margin-top: 0; display: flex; flex-direction: column; height: calc(100vh - 70px); justify-content: center; align-items: center;...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import React from "react" import PropTypes from "prop-types" import styled, { ThemeProvider } from "styled-components" import "fontsource-roboto/400.css" import "fontsource-roboto/700.css" import { lightTheme, darkTheme } from "../styles/theme" import { useDarkMode } from "../hooks" import GlobalStyle from "../styles/...
import styled, { css } from 'styled-components'; import PropTypes from 'prop-types'; import BaseTheme from '../../style/themes/base'; import OptionsHelper from '../../utils/helpers/options-helper'; import CloseIconClassicStyling from './dismiss-button-classic.style'; import Link from '../link'; import StyledIcon from '...
const _ = require('lodash') const md5 = require('blueimp-md5') const { mdToJson, jsonToMd } = require('./mdParser/yaml') const CmdHelper = require('./cmdHelper') const { MARKDOWN_CMD, MOD_CMD_BEGIN, MOD_CMD_END } = require('./cmdHelper') const ModAdaptor = require('./modAdaptor') const blockHelper = { buil...
const { Thought, User } = require('../models'); const thoughtController = { createThought({ body }, res) { //create a new thought Thought.create(body).then(({ _id }) => { return User.findOneAndUpdate({ _id: body.userId }, { $push: { thoughts: _id } }, { new: true }) .populate({...
import matplotlib.pyplot as plt import sys,os sys.path.append(os.path.realpath('../AI3603_HW1')) from hybrid_a_star import hybrid_a_star def main(): print(__file__ + " start!!") # start and goal position sx, sy, stheta = 0, 0, 0 gx, gy, gtheta = 4, 4, 0 current_map = [ [0, 0, 0, 0, 0, 0, ...
!function(e){const t=e.jv=e.jv||{};t.dictionary=Object.assign(t.dictionary||{},{"Bulleted List":"","Bulleted list styles toolbar":"",Circle:"Bunder",Decimal:"","Decimal with leading zero":"",Disc:"Kaset","List properties":"","Lower-latin":"","Lower–roman":"","Numbered List":"","Numbered list styles toolbar":"","Reverse...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {View, Dimensions} from 'react-native'; import Animator from './Animator'; const SCREEN_HEIGHT = Dimensions.get('window').height; export default class BottomDrawer extends Component { static propTypes = { /** * Height of th...
module.exports = (app) => { app.use('/tasks', require('./api/tasks')); app.use('/books', require('./api/books')); };
########################################################################## # Copyright (c) 2009, 2010, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, Haldeneggsteig 4, C...
exports.seed = async knex => { await knex("foods").del(); await knex("foods").insert([ { food_name: "Oatmeal", qty: 1, // date format YYYY-MM-DD date: "2015-03-06", children_id: 1, category_id: 4 }, { food_name: "Banana", qty: 1, // date format YYYY-...
import os.path import sys # Enable running IDLE with idlelib in a non-standard location. # This was once used to run development versions of IDLE. # Because PEP 434 declared idle.py a public interface, # removal should require deprecation. idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__...
""" MIT License Copyright (c) 2021 TheHamkerCat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...