text
stringlengths
3
1.05M
"use strict"; (function() { console.saver = (function() { var logs = []; window.addEventListener('load', function getLogs() { var storedLogs = sessionStorage.getItem('console-log-saver-logs'); if(storedLogs) { logs = JSON.parse(storedLogs); } }); window.addEventListener('unload', function sa...
import React, { useState } from "react"; import { Link, Redirect } from "react-router-dom"; import { Helmet } from "react-helmet"; import { connect } from "react-redux"; import PropTypes from "prop-types"; // actions components import { signup } from "../actions/auth" import { setAlert } from "../actions/alert"; co...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Layout from '../components/Layout/Layout'; import SEO from "../components/seo"; const getdata = graphql` { wpgraphql { page(id: "cG9zdDo3MzI5") { title content } } } ` const Terms = () => { const data = useS...
module.exports = (sequelize, DataTypes) => { var AnswerStatistics = sequelize.define('AnswerStatistics', { Id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement:true }, ExtremelySatisfied:{ type: DataTypes.INTEGER, allowNul...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mySuperProject.settings') try: from django.core.management import execute_from_command_line exce...
import React from 'react'; import { useStaticQuery, graphql } from 'gatsby'; import Img from "gatsby-image"; const VumbleRedditTV = () => { const data = useStaticQuery(graphql` query { imageSource: file(relativePath: { eq: "vumble/vumble-reddittv.png" }) { childImageSharp { flui...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // No Node.js APIs are available in this process because // `nodeIntegration` is turned off. Use `preload.js` to // selectively enable features needed in the rendering // process. class Renderer { constru...
from flask import Flask app = Flask(__name__) ## Creates the WSGI application # Decorator @app.route(rule = "/") # rule tells the URL where we will be running the app def welcome(): return "Welcome to flask environment :)" # these function is seen in the URL web page @app.route(rule = "/flask") # rule...
import React, {Component} from 'react'; import { StyleSheet, Text, View, TouchableOpacity, Platform, } from 'react-native'; import { InfoService } from '@bibilgi/services'; import style from '@bibilgi/style/main'; export default class FavoritesTab extends Component { constructor(props) { super(props); t...
import {Tabs} from 'antd'; import React from 'react'; import {AlcazarConfig} from 'torrents/assets/components/AlcazarConfig'; import {AlcazarInstances} from 'torrents/assets/components/AlcazarInstances'; export class AlcazarSettings extends React.Component { render() { return <Tabs> <Tabs.TabP...
/** * @author Yusuf Al Majid <ajidalmajid6@gmail.com> * @license MIT * @version 0.0.1 */ document.addEventListener("DOMContentLoaded", function(){ var detail = document.getElementsByClassName("detailBtn"); for (var i=0; i < detail.length; i++){ detail[i].onclick = function(){ var id = this.getAttrib...
import React from 'react'; import Helmet from 'react-helmet'; import './all.scss'; import Navbar from './Navbar'; import '../helpers/cursor'; import useSiteMetadata from './SiteMetadata'; const TemplateWrapper = ({ children }) => { const { title, description } = useSiteMetadata(); return ( <div> ...
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/personal/storesCode/bindingSucceeded"],{"211c":function(t,n,o){"use strict";o.r(n);var e=o("d7b7"),i=o("c614");for(var u in i)"default"!==u&&function(t){o.d(n,t,(function(){return i[t]}))}(u);o("88eb");var c,a=o("f0c5"),r=Object(a["a"])(i["default"],e["b...
import React from "react"; import PropTypes from "prop-types"; import { withStyles } from "@material-ui/core/styles"; import Table from "@material-ui/core/Table"; import TableBody from "@material-ui/core/TableBody"; import TableCell from "@material-ui/core/TableCell"; import TableFooter from "@material-ui/core/TableFoo...
import { useRouter } from 'next/router' export default function Post(props) { const router = useRouter() if (typeof window === 'undefined') { if (router.query.post?.startsWith('redir')) { console.log(router) throw new Error('render should not occur for redirect') } } if (typeo...
import Snackbar from '@material-ui/core/Snackbar'; import Typography from '@material-ui/core/Typography'; import {withStyles} from '@material-ui/core/styles'; import CloudUploadIcon from '@material-ui/icons/CloudUpload'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import * as React from 'react'; import...
import React from 'react' import { useStaticQuery, graphql } from 'gatsby' import './footer.css' const socialURLs = { twitter: 'https://twitter.com', github: 'https://github.com', facebook: 'https://facebook.com', medium: 'https://medium.com', linkedin: 'https://linkedin.com/in', instagram: 'https://insta...
interact(document).on('DOMContentLoaded', function () { /* global interact, Modernizr */ /* * This demo is very broken! */ let preTransform = Modernizr.prefixed('transform'), snapTarget = {}; interact('#gallery .thumbnail') .draggable({ snap: { targets: [], relativePoints: [ ...
const StopBox = () => { return ( <section id="settings" className="popUp"> <p>are you sure you want to reset timer</p> <button>yes</button> <button>no</button> </section> ); } export default StopBox;
var searchData= [ ['random_5fexponential',['RANDOM_EXPONENTIAL',['../classdrake_1_1symbolic_1_1_variable.html#a1d1cfd8ffb84e947f82999c682b666a7a06dc64955d502a26fe9dc48935c8344a',1,'drake::symbolic::Variable']]], ['random_5fgaussian',['RANDOM_GAUSSIAN',['../classdrake_1_1symbolic_1_1_variable.html#a1d1cfd8ffb84e947f...
import time import gym import numpy as np from jaxrl.wrappers.common import TimeStep class EpisodeMonitor(gym.ActionWrapper): """A class that computes episode returns and lengths.""" def __init__(self, env: gym.Env): super().__init__(env) self._reset_stats() self.total_timesteps = 0...
const skynet = require('@nebulous/skynet'); const database = require('./store.js'); const encryption = require('./encryption') const fs = require("fs"); const db = new database() const pgp = new encryption() class Upload { async uploadToSkynet(file) { const skylink = await skynet.UploadFile( file, ...
$(document).ready(function(){$('[data-toggle="popover-custom-content"]').each(function(e,o){$(this).popover({html:!0,placement:"auto",template:'<div class="popover popover-custom" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',content:function(){var e=$(t...
import React, {Component} from 'react' import {connect} from 'react-redux' import {getCart, updateCart, removeItem} from '../store/cart' import history from '../history' import {CartItem} from './index' //#region CARD & TABLE import Card from '@material-ui/core/Card' import Table from '@material-ui/core/Table' impor...
import React,{useState,useEffect} from 'react'; import { makeStyles } from '@material-ui/core/styles'; import IconButton from '@material-ui/core/IconButton'; import FavoriteBorderIcon from '@material-ui/icons/FavoriteBorder'; import Store from '../../store/store' import { Typography } from '@material-ui/core'; const ...
function msg() { }
export default normalizeModelName; import Ember from 'ember'; /** All modelNames are dasherized internally. Changing this function may require changes to other normalization hooks (such as typeForRoot). @method normalizeModelName @public @param {String} modelName @return {String} if the adapter can genera...
import cv2 import numpy import imutils #img read and display img=cv2.imread("rubesh.jpg") # draw green text on the image output = img.copy() cv2.putText(output, "Rubesh", (180, 250),cv2.FONT_HERSHEY_SIMPLEX, 0.7, (255, 250, 0), 2) cv2.imshow("Text", output) cv2.waitKey(0)
# SPDX-Copyright: Copyright (c) Capital One Services, LLC # SPDX-License-Identifier: Apache-2.0 # Copyright 2020 Capital One Services, 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 # # ...
''' This is intended to build the feature matrix X that will be fed into the classifier pipeline. ''' import os import sys import click import tables import numpy as np import pandas as pd from ipyparallel import Client from sklearn.pipeline import Pipeline, FeatureUnion from feature_extractors import * from src.dat...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Models for storing data from Campaign Disclosure Statements (Form 460). """ from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from calaccess_processed.managers import ProcessedDataManager f...
""" Provides a test case for issue 283 - "Inheritance breaks". The issue is outlined here: https://github.com/neo4j-contrib/neomodel/issues/283 More information about the same issue at: https://github.com/aanastasiou/neomodelInheritanceTest The following example uses a recursive relationship for economy, but the ide...
(function() { 'use strict'; angular.module('admin').controller('AdminController', AdminController); AdminController.$inject = ['$state']; function AdminController($state) { let vm = this; vm.state = $state; } })();
const createError = require('http-errors'); const express = require('express'); const path = require('path'); const cookieParser = require('cookie-parser'); const logger = require('morgan'); const session = require('express-session'); const passport = require('passport'); const redisStore = require('./helpers/redisStor...
#!/usr/bin/env node /* * @Author: etong * @Date: 2021-10-26 11:28:19 * @LastEditTime: 2021-10-27 18:34:33 * @LastEditors: your name * @Description: * @FilePath: \jj-cli\bin\www\index.js * Think first, Program later */ // const testTiny = function(string) { // if (typeof string !== "string") throw new TypeE...
'use strict'; module.exports = { cookie: '', redis: '', };
#!/usr/bin/env python # coding: utf-8 import setuptools import os import sys this_directory = os.path.abspath(os.path.dirname(__file__)) sys.path.append(this_directory) with open(os.path.join(this_directory, 'README.md'), 'r', encoding='utf-8') as fh: readme = fh.read() tabugen_version = '0.8.0' ...
from os import PathLike class FrameCapture: def __init__(self, saveLocation: PathLike = None, snapTime: int = None): self.saveLocation = saveLocation self.snapTime = snapTime def getSaveLocation(self) -> PathLike: return self.saveLocation def getSnapTime(self) -> int: ...
from functools import partial, wraps from inspect import getfullargspec # Modified version of fn.py decorator to support type annotations def curried(func): @wraps(func) def _curried(*args, **kwargs): f = func count = 0 while isinstance(f, partial): if f.args: ...
var searchData= [ ['nb_5fsentinels',['NB_SENTINELS',['../classreactphysics3d_1_1_sweep_and_prune_algorithm.html#ab535d3236b24b716b6260680088b5acb',1,'reactphysics3d::SweepAndPruneAlgorithm']]], ['next',['next',['../structreactphysics3d_1_1_joint_list_element.html#acc8cf193fe5d89c099f45a4f563623ec',1,'reactphysics3d...
/** * @file lavas config * @author my_liao(13723683480@163.com) */ 'use strict'; const path = require('path'); const BUILD_PATH = path.resolve(__dirname, 'dist'); const isDev = process.env.NODE_ENV === 'development'; const isProd = process.env.NODE_ENV === 'production'; module.exports = { build: { ssr...
// Compiled using marko@4.5.0 - DO NOT EDIT "use strict"; var marko_template = module.exports = require("marko/src/html").t(__filename), components_helpers = require("marko/src/components/helpers"), marko_registerComponent = components_helpers.rc, marko_componentType = marko_registerComponent("/marko-webpa...
import api from '../api'; class PanoramaController { constructor (func) { this._isPanoramas = func; } createPanorama (container, state, options) { this._container = container; this._coordinates = state.center; this._options = options; this._panorama = api.getAPI()....
# ---------------------------------------------------------------------- # SegmentTopology class # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python...
import { useMeeting, useParticipant } from "@videosdk.live/react-sdk"; import { Close, MoreVert, SearchOutlined, MicOff as MicOffIcon, Mic as MicIcon, VideocamOff as VideocamOffIcon, Videocam as VideocamIcon, } from "@material-ui/icons"; import { Avatar, Box, IconButton, InputAdornment, TextFiel...
import React from 'react' import Config from '../Config' class AppBar extends React.Component { render ( ) { return ( <div className="navbar navbar-default appbar-brand navbar-static-top"> <div className="container-fluid"> <div className="navbar-header"> <a className="navbar-...
const { Schema, model } = require('mongoose'); const userSchema = new Schema ( { username: { type: String, unique: true, required :true, trim:true }, email: { type: String, unique: true, required :true, match: [/.+@.+\..+/] }, though...
// 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("node_modules/codemirror/lib/codemirror.js")); else if (typeof define == "function...
/** * Kendo UI v2021.2.511 (http://www.telerik.com/kendo-ui) * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved....
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) { try { step(gene...
/* eslint-disable class-methods-use-this */ import $ from 'jquery'; import Flash from '../flash'; import FileTemplateTypeSelector from './template_selectors/type_selector'; import BlobCiYamlSelector from './template_selectors/ci_yaml_selector'; import DockerfileSelector from './template_selectors/dockerfile_selector';...
'use strict'; import UserService from './../../services/user/user.service'; import template from './app-header.template.html'; import './app-header.style.css'; class AppHeaderComponent { constructor(){ this.controller = AppHeaderComponentController; this.template = template; } static ...
''' Created on 01.09.2020 @File: variablen.py @author: Georg Maubach ''' def frageNachName(): nname = input("Nachname: "); vname = input("Vorname: "); print("Sie heissen {} {}.".format(vname, nname)); print("Sie heissen", vname, nname, "."); # Der Punkt ist dann wegen sep="" abgesetzt. ...
'use strict' /* * Create a `sub` function that takes 2 numbers as arguments and substract them * * @notions Primitive and Operators, Functions */ // Your code : function sub(number, number2) { return number - number2 } //* Begin of tests const assert = require('assert') const rand = Math.random() assert.str...
import React, { Component } from 'react'; import { connect } from 'dva'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import { Tabs, Button, Table,Modal } from 'antd'; import router from 'umi/router'; const TabPane = Tabs.TabPane; function callback(key) { console.log(key); } function goRegistrat...
var cache_manager = require('cache-manager'); var s3 = new (require('aws-sdk')).S3({params:{Bucket: process.env.S3_BUCKET_NAME}}); module.exports = { init: function() { this.cache = cache_manager.caching({ store: s3_cache, ttl: 10/*seconds*/ }); }, beforePhantomRequest: functio...
"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 typescript from '@rollup/plugin-typescript' import { terser } from 'rollup-plugin-terser' import resolve from 'rollup-plugin-node-resolve' import commonjs from 'rollup-plugin-commonjs' import license from 'rollup-plugin-license' import pkg from './package.json' function licenseBanner() { return license({ ...
NEWSCHEMA('Settings/TotalAPI', function(schema) { schema.define('totalapi', 'String(100)', true); schema.addWorkflow('exec', function($, model) { if (UNAUTHORIZED($)) return; TotalAPI(model.totalapi, 'check', EMPTYOBJECT, $.callback); }); });
window.onload = async () => { const delay = (ms) => new Promise((res) => setTimeout(res, ms)); while (document.querySelector(".container__YPDh") == undefined) { await delay(1000); } document.querySelector(".container__YPDh").style.fontSize = "18px"; };
# Copyright 2019 The Forte 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 applicable ...
'use strict'; var React = require('react/addons'); var AutomateActions = require('../actions/AutomateActions'); require('styles/AutomatRuleView.less'); var AutomatRuleView = React.createClass({ onMyClick: function() { AutomateActions.changeRule(this.props.rule.get('id')); }, render: function...
const express = require("express"); // NodeJS Framework const app = express(); // Init the EXPRESS App const server = require("http").Server(app); // Init the HTTP Server with the EXPRESS App const port = process.env.PORT || 8080; // Define the Port const io = require("socket.io")(server); // Init the Socket.io Library...
# 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Generated by Django 2.0.5 on 2018-05-09 18:20 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Choice', fields=[ ...
var KoolReport = KoolReport || {}; KoolReport.d3 = KoolReport.d3 || {}; KoolReport.d3.C3Chart = KoolReport.d3.C3Chart || function (settings) { settings.data.onclick = this.onClick.bind(this); this.settings = settings; this.events = {}; this.c3chart = c3.generate(settings); }; KoolReport.d3.C3Chart.prot...
/** * 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. * * @flow */ import invariant from 'shared/invariant'; import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; import...
define(function(require) { 'use strict'; var CollapseActionView; var AbstractActionView = require('oroui/js/app/views/jstree/abstract-action-view'); var _ = require('underscore'); var __ = require('orotranslation/js/translator'); CollapseActionView = AbstractActionView.extend({ options...
// Generated by CoffeeScript 1.6.3 var SkeletonSync, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; SkeletonSync = (function() { function SkeletonSync(skeleton, endpoint) { this.skeleton = skeleton; this.endpoint = endpoint != null ? endpoint : 'local'; this.onSocke...
from datetime import timedelta from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.contenttypes.models import ContentType from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.urls import reverse, reverse_la...
const { merge } = require('webpack-merge') const common = require('./webpack.common.js') module.exports = merge(common, { mode: 'production', devtool: 'source-map', })
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule('<%= moduleName %>');
import React from 'react' import MainNavbar from 'components/Navbars/MainNavbar.js' import JobPostingHeader from 'components/Headers/JobPostingHeader' import MainFooter from 'components/Footers/MainFooter' import JobsForm from './AddJobs.js' function JobPostings() { document.documentElement.classList.remove('nav-o...
import DappLib from "@decentology/dappstarter-dapplib"; import DOM from "../../components/dom"; import { LitElement, html, customElement, property } from "lit-element"; @customElement("composer-page") export default class ComposerPage extends LitElement { @property() get; @property() post; @property() titl...
import { render } from '@testing-library/react' import { MockedProvider } from '@apollo/client/testing' jest.mock('@apollo/client', () => ({ __esModule: true, ...jest.requireActual('@apollo/client'), useQuery: jest.fn() })) import { useQuery } from '@apollo/client' jest.mock('react-i18next', () => ({ ...jest....
/******/ (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...
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") # We define our externals here instead of directly in WORKSPACE def register_sorbet_dependencies(): http_archive( name = "doctest", urls = _github_public_urls("onqtam/doctest/archive/7d42bd0fab6c44010c8aed9338bd02bea5...
// Copyright (c) 2019 Magic Leap, Inc. All Rights Reserved import log, { MessageSeverity } from '../../../util/logger.js'; import { PrismController } from 'lumin'; import { ReactMagicScript } from '../../../react-magic-script/react-magic-script.js'; import { ControlPose3DofInputEventData } from '../types/event-data/c...
import argparse import os from nst import neural_style_transfer if __name__ == "__main__": # # fixed args - don't change these unless you have a good reason # default_resource_dir = os.path.join(os.path.dirname(__file__), "data") content_images_dir = os.path.join(default_resource_dir, "content-i...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TableOfContents from 'rsg-components/TableOfContents'; import StyleGuideRenderer from 'rsg-components/StyleGuide/StyleGuideRenderer'; import Sections from 'rsg-components/Sections'; import Welcome from 'rsg-components/Welcome'; import ...
const WebhooksController = require('./src/features/webhooks/controller') const WalletController = require('./src/features/wallet/controller') const PricesController = require('./src/features/prices/controller') const TransactionController = require('./src/features/transaction/controller') const StakingController = requ...
var assert = require('assert'); var httpHelper = require('./helpers/httpHelper.js'); var appHelper = require('./helpers/appHelper'); describe('router :: ', function() { describe('View routes', function() { var appName = 'testApp'; before(function(done) { this.timeout(5000); appHelper.build(done); }); ...
from typing import List, Optional import discord import member from discord_utils import find_guild_in, find_channel_id_in, get_guild_members_as_string_from, choose_member_from, \ find_role from emoji_wrapper import get_count_for_emoji, BALLOT_BOX from model.topic import Topic def get_vote_count(msg): retur...
'use strict'; const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, BadRequest, InsufficientFunds, InvalidAddress, BadSymbol, InvalidOrder } = require ('./base/errors'); const Precise = require ('./base/Precise'); module.exports = class xena extends Exchange { describe () { ...
import csv import datetime as dt from django.core.management import BaseCommand from scheduler.models import Course, Attendance class Command(BaseCommand): help = "Exports a CSV of all attendances for all students in the given course to stdout." def add_arguments(self, parser): parser.add_argument("c...
/* Реализуйте (с использованием рекурсивного процесса) функцию sequenceSum, которая находит сумму последовательности целых чисел. Последовательность задается двумя значениями: begin - начало последовательности, end - конец последовательности. Например: begin = 2 и end = 6 дают нам такую последовательность 2, 3, 4, 5,...
/** * @category saltcorn-cli * @module commands/configuration-check */ const { Command, flags } = require("@oclif/command"); const { cli } = require("cli-ux"); const { maybe_as_tenant } = require("../common"); /** * ConfigurationCheckCommand Class * @extends oclif.Command * @category saltcorn-cli */ class Confi...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOverseasTaxAdvancedCreateModel(object): def __init__(self): self._doc_id = None self._extend_param = None self._identify_account_no = None self._identify_acc...
/* @flow */ import React from 'react' import Helmet from 'react-helmet' function About () { return ( <div style={{ textAlign: 'center' }}> <Helmet title="About" /> Produced with ❤️ by &nbsp <a href="https://twitter.com/controlplusb" target="_blank" rel="noopener noreferrer"> ...
const strif = require('../strif'); strif.template(); let formatter = strif.create({ transformers: { date: s => new Date(s), lds: d => d.toLocaleDateString(), upper: d => d.toUpperCase(), } }); let template = formatter.template(`Hi {name}!`, { props: { name: {}, } }); ...
import gulp from 'gulp'; import path from 'path'; import webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import webpackConfig from './webpack.dev.config.js'; import webpackProductionConfig from './webpack.prod.config.js'; gulp.task('wp.dev', done => { webpack(webpackConfig).run((err, stat...
"""add is_dead, is_web_archive columns Revision ID: c41abb284c8f Revises: Create Date: 2021-10-20 16:38:27.128115 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "c41abb284c8f" down_revision = None branch_labels = None depends_on = None def upgrade(): # #...
const mongoose = require('mongoose') const Product = new mongoose.Schema({ id: { type: Number }, brand: { type: String, default: '' }, description: { type: String, default: '' }, image: { type: String, default: '' }, price: { type: Number, default: 0 }, }) module.exports = mongoose.model('Product', Product)...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require...
const { slash } = require( `gatsby-core-utils` ); const singlePageTemplate = require.resolve(`../src/templates/blog-post-archive.js`); const createPaginatedPages = require('gatsby-paginate'); // Get all the posts. const GET_POSTS = ` query WpAllCategories { allWpCategory { categories: edges { node { ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z"...
"gpsd client functions" # This file is Copyright (c) 2010 by the GPSD project # BSD terms apply: see the file COPYING in the distribution root for details. # # This code run compatibly under Python 2 and 3.x for x >= 2. # Preserve this property! from __future__ import absolute_import, print_function, division import j...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, InsufficientFunds, InvalidOrder, OrderNotFound, AuthenticationError, BadSymbol } = require ('./base/errors'); const Precise = require ('...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var ViewAgenda = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createE...
import React, { Component, PropTypes } from 'react'; import HeaderBar from './HeaderBar'; import Board from './Board'; class Project extends Component { static propTypes = { projectName: PropTypes.string.isRequired, entries: PropTypes.array.isRequired, }; state = { sidebarVisible: false }; togg...