text
stringlengths
3
1.05M
"use strict"; var assert = require("assert"); var stringmap = require("stringmap"); var stringset = require("stringset"); var is = require("simple-is"); var fmt = require("simple-fmt"); var error = require("./error"); var options = require("./options"); function Scope(args) { assert(is.someof(args.kind, ["hoist",...
const fas = 'ad,address-book,address-card,adjust,air-freshener,align-center,align-justify,align-left,align-right,allergies,ambulance,american-sign-language-interpreting,anchor,angle-double-down,angle-double-left,angle-double-right,angle-double-up,angle-down,angle-left,angle-right,angle-up,angry,ankh,apple-alt,archive,a...
import React, { useState, useEffect } from "react"; import { useHistory, useParams } from "react-router-dom"; import { createTimesheet, getTimesheet, updateTimesheet, } from "../../axios/timesheetServices"; import { useGlobalState } from "../../utils/stateContext"; import "./NewTimesheetElements.css"; // create ...
define({ _action_query_label: 'Interogare după extindere', listSource: 'Sursă listă', maxItems: 'Număr maxim de elemente', itemPerPage: 'Elemente per pagină', selectMode: 'Selectați modul', verticalAlignment: 'Aliniere verticală', horizontalAlignment: 'Aliniere orizontală', verticalSpacing: 'Spa...
/** * Created by Pawan on 5/24/2017. */ /** * Created by Veery Team on 9/8/2016. */ agentApp.factory("templateService", function ($http, baseUrls, authService) { var getMyChatTemplates = function () { return $http({ method: 'get', url: baseUrls.templateUrl + "TemplateService/M...
#!/usr/bin/python3 # -*- coding: utf-8 -*- from .permission_resolver import main if __name__ == "__main__": main()
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 14 14:02:28 2021 @author: wil9fd @organisation: CSIRO @detail: Take bathymetry geotiffs and output hillshade and optimised geotiffs @version: 1.0 @changes: N/A @todo: Improve speed """ import os # Prompt for entering voyage name VOYAGE_ID = ...
/* * * Backpack - Skyscanner's Design System * * Copyright 2018 Skyscanner 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 ...
n = int(input()) i=1 a = 0 while i < n: i *= 2 a += 1 print(a)
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],o):e.dayjs_locale_it=o(e.dayjs)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var o={name:"it",weekdays:"domenica_lunedì_martedì_mer...
$( document ).ready(function() { $("#date_transfer_picker").datepicker({ prevText : "ก่อนหน้า", nextText: "ถัดไป", currentText: "Today", changeMonth: true, changeYear: true, isBuddhist: true, monthNamesShort: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.'...
import React from "react"; import ReactDOM from "react-dom"; import ReactTestUtils from "react-dom/test-utils"; import makeAsyncScriptLoader from "../src/async-script-loader"; class MockedComponent extends React.Component { callsACallback(fn) { assert.equal(this.constructor.name, "MockedComponent"); fn(); ...
const axios = require('axios') const link = 'https://arugaz.herokuapp.com' const fileyt = 'https://raw.githubusercontent.com/ArugaZ/scraper-results/main/20201111_230923.jpg' const eroryt = 'https://raw.githubusercontent.com/ArugaZ/scraper-results/main/20201111_234624.jpg' const dewabatch = async (judul) => new Promise...
Clazz.declarePackage ("J.popup"); Clazz.load (["J.popup.PopupResource"], "J.popup.MainPopupResourceBundle", ["J.i18n.GT", "J.util.SB", "$.TextFormat"], function () { c$ = Clazz.declareType (J.popup, "MainPopupResourceBundle", J.popup.PopupResource); Clazz.overrideMethod (c$, "getMenuName", function () { return "p...
import React, { Component } from 'react'; import logo from '../../logo.svg'; import bulma from '../../bulma-logo.png'; import '../../App.scss'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom' class One extends Component { render() { return ( <div class="dropdown is-active"...
import React from 'react' const DEFAULT_SIZE = 24 export default ({ fill = 'currentColor', width = DEFAULT_SIZE, height = DEFAULT_SIZE, style = {}, ...props }) => ( <svg viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` } style={{ fill, width, height, ...style }} { ...props } > <path d...
(function($) { var counter = 0; var DEFAULTS = { url: 'imageselect/server/upload.php', crop: { aspectRatio: null, minSize: null, maxSize: null, setSelect: null }, savingMessage: 'Saving...', loadingMessage: 'Loading...', ...
import af from './translations/af' import ar from './translations/ar' import bg from './translations/bg' import bs from './translations/bs' import ca from './translations/ca' import cs from './translations/cs' import da from './translations/da' import de from './translations/de' import ee from './translations/ee' impor...
class ItemsChangedEventArgs(EventArgs): """ Provides data for the System.Windows.Controls.ItemContainerGenerator.ItemsChanged event. """ Action=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets the action that occurred on the items collection. Get: Action(self: ItemsChangedEventAr...
let Matrix = require("./matrix.js") let Vector = require("./vector.js") class LinearAlgebra{ transpose(a){ let c; if(a instanceof Vector){ c = new Vector(a.dim); c.cols = a.rows; c.rows = a.cols; for(let i = 1; i <= c.dim; i++){...
import React from 'react'; import PropTypes from 'prop-types'; import { ActionBar, Breadcrumb, LayoutPanel } from 'fundamental-react'; import LuigiClient from '@luigi-project/client'; EntryNotFound.propTypes = { entryType: PropTypes.string.isRequired, entryId: PropTypes.string, navigate: PropTypes.func, }; expo...
/** * HYPERLOOP GENERATED - DO NOT MODIFY * * This source code is Copyright (c) 2018 by Appcelerator, Inc. * All Rights Reserved. This code contains patents and/or patents pending. */ var $dispatch = Hyperloop.dispatch, $init, $imports, $class; var NSObject = require('/hyperloop/foundation/nsobject'); /** ...
import './AudioComponent.html'; export default class AudioComponent { constructor() { this.playing = ''; this.audioCmp = ''; this.isAndroid = Ext.os.is.Android; } audioReady = (event) => { this.audioCmp = event.deatail.cmp; this.audioCmp.setControls(!this.isAndroid)...
import redirect from "./redirect"; import firebaseManager from './firebaseManager' export const doGooglePopup = () => firebaseManager.sharedInstance.handleLogin() export const isAuthenticated = ctx => firebaseManager.sharedInstance.isLoggedIn() export const redirectIfAuthenticated = ctx => { if (isAuthenticated(ct...
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=50) evaluation = dict(interval=50, metric='mAP', save_best='AP') optimizer = dict( type='Adam', lr=0.0015, ) optimizer_config = dict(grad_clip=None) # learning p...
import React from "react"; import PropTypes from "prop-types"; import Task from "./Task"; import { connect } from "react-redux"; import { archiveTask, pinTask } from "../lib/redux"; export function PureTaskList({ loading, tasks, onPinTask, onArchiveTask }) { const events = { onPinTask, onArchiveTask, }; ...
/* COPYRIGHT 2009 ESRI TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL Unpublished material - all rights reserved under the Copyright Laws of the United States and applicable international laws, treaties, and conventions. For additional information, contact: Environmental Systems Research Institute, Inc. Att...
/** * Copyright 2015 The AMP HTML 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 require...
(function(e){const i=e["he"]=e["he"]||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"0% מתוך %1","Align center":"יישור באמצע","Align left":"יישור לשמאל","Align right":"יישור לימין",Aquamarine:"",Big:"",Black:"","Block quote":"בלוק ציטוט",Blue:"","Blue marker":"סימון כחול",Bold:"מודגש","Bulleted List":"רשימ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe import unittest from bs4 import BeautifulSoup import re from frappe.utils import set_request from frappe.website.serve import get_response from frappe.utils import random_string from frappe.website.doctype.bl...
# -*- coding: utf-8 -*- ''' Classes that manage file clients ''' from __future__ import absolute_import # Import python libs import contextlib import logging import hashlib import os import shutil import ftplib from tornado.httputil import parse_response_start_line, HTTPInputError # Import salt libs from salt.excepti...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const moment = require("moment"); const lodash_1 = require("lodash"); const objection_1 = require("objection"); const Media_1 = require("./Media"); class Entry extends objection_1.Model { static get tableName() { return 'entry'; ...
/* eslint-env mocha */ 'use strict' const IPFS = require('..') const IPFSFactory = require('ipfsd-ctl') const bootstrapList = require('../src/core/runtime/config-browser.js')().Bootstrap const waitFor = require('./utils/wait-for') /* * These tests were graciously made for lgierth, so that he can test the * WebSocke...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'indent', 'zh-cn', { indent: '增加缩进量', outdent: '减少缩进量' } );
var db = require('../src/db').sequelize; module.exports = { up: function() { return db.query(` ALTER TABLE users ADD phoneNumber varchar(64) DEFAULT null AFTER zipcode, ADD streetName varchar(64) DEFAULT null AFTER zipcode, ADD city varchar(64) DEFAULT null AFTER zipcode, ADD houseNumber var...
import flask import logging import rcs_chatbot chatbot = rcs_chatbot.Chatbot( "API_URL", "BOT_ID", "TOKEN", None, logging.DEBUG ) app = flask.Flask(__name__) @app.route('/', methods=['POST']) def event(): try: chatbot.processEvent(flask.request.get_json()) return "ok", 200 except maap.RequestFa...
import { a } from "x"; import b from "y"; const arr = (a, b());
class ValidateComment: """validates the comments added to a course Returns: [boolean] -- [returns true for valid fields and false for invalid fields] """ def __init__(self, data): self.data = data def validate_comment_body(self): """validates the commen...
Potree.Measure = class Measure extends THREE.Object3D { constructor () { super(); this.constructor.counter = (this.constructor.counter === undefined) ? 0 : this.constructor.counter + 1; this.name = 'Measure_' + this.constructor.counter; this.points = []; this._showDistances = true; this._showCoordinates...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.DirectionsSubway = React.forwardRef(function (props, ref) { var attrs = { "fill":...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.addColumn('EDDLiens', 'certifiedDoctor', { type: Sequelize.STRING, allowNull: true }); await queryInterface.addColumn('EDDLiens', 'certifiedBodyParts', { type: Sequelize.STRING, allowN...
from rest_framework import serializers from base.models import Resource, Organization class ResourceSerializer(serializers.ModelSerializer): class Meta: model = Resource fields = ('id', \ 'source', \ 'source_path', \ 'path', \ ...
'use strict'; const common = require('../../common'); // Refs: https://github.com/nodejs/node/issues/34731 // Refs: https://github.com/nodejs/node/pull/35777 // Refs: https://github.com/nodejs/node/issues/35778 const { Worker, isMainThread } = require('worker_threads'); if (isMainThread) { const worker = new Worke...
from __future__ import absolute_import, division, print_function from stripe.api_resources.abstract.api_resource import APIResource class DeletableAPIResource(APIResource): def delete(self, **params): self.refresh_from(self.request("delete", self.instance_url(), params)) return self
import { useLayoutEffect, useState } from "react"; import { getBanners } from "@service"; import Swiper from "../../components/swiper"; export default function Banner({ customClassName }) { const [banners, setBanner] = useState([]); useLayoutEffect(() => { const fetchData = async () => { const banners =...
const PhoneToken = artifacts.require('PhoneToken'); const PreSale = artifacts.require('PreSale'); const IPhoneToken = artifacts.require('IPhoneToken'); const Factory = artifacts.require('Factory'); const MasterFactory = artifacts.require('MasterFactory'); const Devices = artifacts.require('Devices'); const Store = arti...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import axios from 'axios'; import { Button, Container, Menu, Sidebar, Segment } from 'semantic-ui-react'; class Navbar extends Component { constructor(props) { super(props); // initia...
var assert = require('assert'), cb = require('assert-called'), wtfos = require('../'); wtfos.result = { distribution: 'ubuntu' }; wtfos(cb(function (err, data) { assert(!err); assert.deepEqual(data, { distribution: 'ubuntu' }); }));
module.exports = { // where it all starts -- the site's root Notion page (required) rootNotionPageId: '57758ac572924056bfd87669ee5b422f', // if you want to restrict pages to a single notion workspace (optional) // (this should be a Notion ID; see the docs for how to extract this) rootNotionSpaceId: null, ...
var _ = require('lodash'); const caspersdk = require("casper-js-sdk"); const CasperClient = caspersdk.CasperClient; const CLValueBuilder = caspersdk.CLValueBuilder; const DeployUtil = caspersdk.DeployUtil; const Keys = caspersdk.Keys; const RuntimeArgs = caspersdk.RuntimeArgs; const CasperServiceByJsonRPC = caspersdk.C...
import React, { useState } from "react"; import Button from "../Button/Button"; import { headingSecondary as HeadingSecondary } from "../Text/Text"; import { headingTertiary as HeadingTertiary } from "../Text/Text"; import PropTypes from "prop-types"; import Technology from "../Technology/Technology"; import styles fr...
export const UNMERGE_DATA = 'UNMERGE_DATA'; const unmergeData = ({ mergedData, previousState, currentState }) => ({ type: UNMERGE_DATA, payload: { mergedData, previousState }, meta: { currentState, shouldPost: true, timestamp: Date.now(), }, }); export default unmergeData;
import _ from 'lodash/fp'; const generateFetchListOnMount = (fetchRequest) => { return { componentDidMount() { const { actions, match } = this.props; const userId = _.get('params.userId', match); if (userId) actions[fetchRequest]({ userId }); }, componentWillReceiveProps(nextProps) { ...
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2). // Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, // session persistence, api calls, and more. const Alexa = require('ask-sdk-core'); const LaunchRequestHa...
import os import subprocess import pytest def run_make(sub_command): cmd = ['make', sub_command] return subprocess.run(cmd, check=True) def has_uncommited_changes(): cmd = ['git', 'diff'] result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, chec...
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
import { getBusinessObject } from 'bpmn-js/lib/util/ModelUtil'; import { sortBy } from 'min-dash'; import { TextFieldEntry, isTextFieldEntryEdited, isSelectEntryEdited } from '@bpmn-io/properties-panel'; import ReferenceSelect from '../../../entries/ReferenceSelect'; import { useService } from '../../../hooks'...
import { combineReducers } from 'redux'; import Library from './list'; import SelectLib from './select'; export default combineReducers({ libraries: Library, sellib: SelectLib });
const withCSS = require('@zeit/next-css') const withMDX = require('@zeit/next-mdx') const config = { cssModules: true, cssLoaderOptions: { importLoaders: 1, localIdentName: '[name]_[local]' }, pageExtensions: ['js', 'jsx', 'mdx'], webpack: config => { config.resolve.extensions.push('.mdx') re...
import os import csv import numpy as np import matplotlib.pyplot as plt paths = [r".\data\archive\attack\Parasite Chain Attack\IOTA",r"..\G-IOTA",r"..\E-IOTA"] res = [] for path in paths: os.chdir(path) temp = dict() with open('DiffTxChain.txt', 'r',) as file: reader = csv.reader(file, delimiter...
// Underscore.js 1.8.2 // http://underscorejs.org // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. (function() { // Baseline setup // -------------- // Establish the root object, `window` i...
(this["webpackJsonpsoft-mock-template"]=this["webpackJsonpsoft-mock-template"]||[]).push([[30],{1531:function(e,n,t){!function(e){"use strict";e.defineMode("apl",(function(){var e={".":"innerProduct","\\":"scan","/":"reduce","\u233f":"reduce1Axis","\u2340":"scan1Axis","\xa8":"each","\u2363":"power"},n={"+":["conjugate"...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement( 'g', null, React.createElement('path', { d: 'M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z' }) ), 'Nature');
var Polygon = (function () { var color = { axis: '#ccc', side: { hover: { plain: '#dddfa4', special: '#9d9c64' }, final: { plain: '#b0c598', special: '#4f7337' } } }, display = {}, points = {}, canvas, context, origin = {}, turtle...
import React from 'react'; import { createStackNavigator } from '@react-navigation/stack'; const CheckoutStack = createStackNavigator(); import CheckoutScreen from '../../features/checkout/screens/CheckoutScreen'; import CheckoutErrorScreen from '../../features/checkout/screens/CheckoutErrorScreen'; import CheckoutS...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { // All imported modules in your tests should be mocked automatically // automock: false, // Stop running tests after `n` failures // bail: 0, // Respect "browser" f...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBlockByTimestamp = (service) => (timestamp, includeTransactions) => service.query('getBlock', { timestamp, includeTransactions }); //# sourceMappingURL=getBlockByTimestamp.js.map
/*! * ${copyright} */ //Provides control sap.ui.unified.Calendar. sap.ui.define([ 'sap/ui/core/Control', 'sap/ui/Device', 'sap/ui/core/delegate/ItemNavigation', 'sap/ui/unified/calendar/CalendarUtils', 'sap/ui/unified/calendar/CalendarDate', 'sap/ui/core/date/UniversalDate', "sap/ui/unified/DateRange", 'sap/...
/** * Implement Gatsby's Node APIs in this file. * * See: https://www.gatsbyjs.org/docs/node-apis/ */ const path = require('path'); const _ = require('lodash'); exports.createPages = async ({ actions, graphql, reporter }) => { const { createPage } = actions; const postTemplate = path.resolve(`src/templates/po...
""" Get some sample version strings from the wild. """ # https://python-forum.io/Thread-pip-list-available-packages # download file # curl! # parse out version strings # https://pypi.org/simple/epicurus/ import requests import os import subprocess def execute_get_text(command): try: result = subproces...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _draftJs = require("draft-js"); exports.default = function (editorState) { var selection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : editorState.getSelection(); var styles = ["BOLD", "ITALIC", "STRIKETHR...
"""`marketprice.messages.neo` namespace."""
function SvgFlashAuto(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path d='M0 0h24v24H0z' fill='none' /> <path d='M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1....
//========================================// // Main Fonts Included All Files // //========================================// // Main Fonts SASS File import './assets/scss/linkedfonts.scss';
# 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. """ Wrapper around various loggers and progress bars (e.g., tqdm). """ import atexit import json import logging import os import...
var express = require('express'); var router = express.Router(); var path = require('path'); /* GET home page. */ var isLogin = false; router.get('/', function(req, res,next) { // res.sendFile("E:\\WorkSpace\\JavaScriptProgram\\STAVisor\\app\\indexHome.html"); if(isLogin){ res.sendFile(path.resolve('app...
exports.menu1 = (id, A187, tampilTanggal, whatsapp, youtube, tampilWaktu, instagram, nomer, aktif) => { return ` ❉──────────❉ FUBUKII 🤨 ❉──────────❉ FUBUKII DOMINA 🤠🤙 𝐎𝐋𝐇𝐄 𝐎𝐒 𝐂𝐎𝐌𝐀𝐍𝐃𝐎𝐒 𝐀𝐁𝐀𝐈𝐗𝐎 ╔════════════════════ ║ ╠════════════════════ ║╭──❉ *MEDIAS* ❉── ║│➸ _*!sticker*_ ║│...
"use strict" define("controller/app",["exports","controller/resolver","ember-load-initializers","controller/config/environment"],(function(e,t,n,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.construct...
# coding: utf-8 import pprint import re import six class EdgeImageRegionInfo: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the valu...
$(function() { consoleInit(main) }); const OBERON_CHEF_ABI = [{"inputs":[{"internalType":"contract OberonToken","name":"_oberon","type":"address"},{"internalType":"uint256","name":"_oberonPerBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"int...
export { default as layer } from './layer'
import React from 'react' import PropTypes from 'prop-types' import createStyles from '../styles/createStyles' /** * A view for object property names. * * If the property name is enumerable (in Object.keys(object)), * the property name will be rendered normally. * * If the property name is not enumerable (`Objec...
let {parallel, watch, src} = require('gulp'); let connect = require('gulp-connect'); function serverLivereload(cb) { connect.server({livereload: true}); cb(); } function watchTemplates(cb) { watch('src/Controller/**/*.php', {interval: 1000, usePolling: true}, reload); watch('templates/**/*.twig', {int...
from preprocessing import process_embedding from preprocessing import subset_embedding from preprocessing import check_valid_file from preprocessing import check_valid_dir import multiprocessing as mp import tensorflow as tf import pandas as pd import numpy ...
!function(t,d){"object"==typeof exports&&"undefined"!=typeof module?d(exports):"function"==typeof define&&define.amd?define(["exports"],d):d((t=t||self).libphonenumber={})}(this,(function(t){"use strict";var d={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY...
/** * @license * Copyright 2021 Google LLC. * SPDX-License-Identifier: Apache-2.0 */ function initMap() { const map = new google.maps.Map(document.getElementById("map"), { center: { lat: 37.7893719, lng: -122.3942, }, zoom: 16, heading: 320, tilt: 47.5, mapId: "90f87356969d889c...
import django try: from django.db.models.loading import get_model except ImportError: # Django 1.9 > from django.apps import apps get_model = apps.get_model
import Ember from 'ember'; import ajax from 'ic-ajax'; export default Ember.Route.extend({ model() { function addCrates(store, crates) { for (var i = 0; i < crates.length; i++) { crates[i] = store.push(store.normalize('crate', crates[i])); } } return ajax('/summary').then((da...
DEFAULT_CORS_CONFIG = {"allow_origins": [], "allow_methods": ["GET"]}
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UsersTable = void 0; const typeorm_1 = require("typeorm"); class UsersTable { async up(QR) { await QR.createTable(new typeorm_1.Table({ name: 'users', columns: [ { ...
const createState = ({ state, only }) => { const crudState = { entities: {}, list: [], entity: {} }; if (only.includes('FETCH_LIST')) { Object.assign(crudState, { isFetchingList: false, fetchListError: null }); } if (only.includes('FETCH_SINGLE')) { Object.assign(crudStat...
(function () { 'use strict'; angular.module('frontend.core.auth.forgotPassword', []); })();
import React, { Component } from 'react' import PropTypes from 'prop-types' import { FormattedMessage } from 'react-intl' import classNames from 'classnames' import _get from 'lodash/get' import _isFinite from 'lodash/isFinite' import { WidgetDataTarget, registerWidgetType } from '../../../services/Widget/Widget...
import { Text } from 'slate' export const input = { text: '', custom: true, } export const test = value => { return Text.isText(value) } export const output = true
import setupWeb3 from './setupWeb3'; import setupState from './setupState'; import setupDOM from './setupDOM'; async function init() { window.dapp = window.dapp || {}; await setupWeb3(); await setupState(); await setupDOM(); } window.addEventListener('load', () => { init(); });
window.Vue = require('vue'); //Vue.component('example-component', require('./components/ExampleComponent.vue').default); Vue.component('main-component', require('./components/MainComponent.vue').default); /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin ad...
import { configureStore } from '@reduxjs/toolkit'; import authReducer from './slices/auth'; import notesReducer from './slices/notes'; // eslint-disable-next-line import/prefer-default-export export const createStore = () => configureStore({ reducer: { auth: authReducer, notes: notesReducer, }, ...
/* * Ext JS Library 2.2 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.onReady(function(){ Ext.QuickTips.init(); // Album toolbar var newIndex = 3; var tb = new Ext.Toolbar({ items:[{ text: 'New Album', iconCls: '...
const path = require('path') const fs = require('fs') const spawn = require('child_process').spawn const lintStyles = ['standard', 'airbnb'] /** * Sorts dependencies in package.json alphabetically. * They are unsorted because they were grouped for the handlebars helpers * @param {object} data Data from questionnai...
const mongoose = require('mongoose'), Schema = mongoose.Schema; const beverageModel = new Schema({ name: {type: String} }); module.exports.Beverage = mongoose.model('Beverage', beverageModel);