text
stringlengths
3
1.05M
webpackJsonp([63],{ /***/ 1878: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddonModQuizReviewPageModule", function() { return Add...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """File for dice class tests.""" import unittest import dice class TestDiceClass(unittest.TestCase): """ Class for testing Dice. Contains functions for testing the dice object. """ def test_default_object(self): """ Check object...
(this["webpackJsonpniceup-console"]=this["webpackJsonpniceup-console"]||[]).push([[18],{673:function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return i}));var r=n(0);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnPr...
const express = require('express'); const router = express.Router(); const initData = async (M) => { try { await M.Player.remove({}); } catch (e) { console.log(e); return false; } return true; }; router.get('/init', (req, res) => { res.json({ status: initData(res.M) }); }); module.exports = rout...
import Joi from '@hapi/joi'; const articleSchema = (body) => { const schema = Joi.object({ title: Joi.string().required().min(10).max(50), article: Joi.string().required().min(20).max(1000), category: Joi.string(), }); return schema.validate(body); }; export default articleSchema;
# -*- coding: utf-8 -*- import os import zipfile from sys import version_info from tempfile import TemporaryDirectory from textwrap import dedent from unittest import skipIf import torch from torch.package import PackageExporter, PackageImporter from torch.testing._internal.common_utils import ( run_tests, IS_...
import React, { Component } from 'react'; import firebase from 'firebase/app'; import { Link } from 'react-router-dom'; import FormInput from '../../FormInput/FormInput'; import CustomButton from '../../CustomButton/CustomButton'; import { auth } from '../../../firebase/index'; import classes from './Signin.module.scss...
#!BPY # -*- coding: UTF-8 -*- # # # 2018.05.20 Natukikazemizo #import bpy import re # emotions emotions = ( ("expectation", "Expectation", ""), # (識別子, UI表示名, 説明文) ("joy", "Joy", ""), ("reception", "Reception", ""), ("fear", "Fear", ""), ("surprise", "Surprise", ""), ("sorrow", "Sorrow...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/** * Istanbul Grunt Configuration */ 'use strict'; var config = require('../config'); module.exports = { // TODO env: { coverage: { APP_DIR_FOR_CODE_COVERAGE: '../test/coverage/instrument/app/' } }, instrument: { files: 'app/*.js', options: { la...
/// @file MessageUserModel.js /// Contains information about the users involved in a chat message define([ 'jquery', 'marionette', 'backbone', 'underscore' ], function($, Marionette, Backbone, _) { 'use strict'; return Backbone.Model.extend({ initialize: function(){ _.b...
import React, { useState, useEffect } from 'react'; import { makeStyles, withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/...
# -*- encoding:utf-8 -*- # Copyright (c) Alibaba, Inc. and its affiliates. """Define cv_input, the base class for cv tasks.""" import tensorflow as tf from google.protobuf import text_format from easy_rec.python.input.csv_input import CSVInput from easy_rec.python.input.csv_input_ex import CSVInputEx from easy_rec.py...
export default { code: 'am', name: 'አማርኛ', locales: ['am-ET'], };
import Notification from './notification'; import Request from './request'; import Utils from './utils'; export default { init: function () { var clearCacheCommand = $('[data-command=clear-cache]'); var makeBackupCommand = $('[data-command=make-backup]'); if (clearCacheCommand) { ...
import scraper import ahfod from itertools import permutations from pprint import pprint palettes = scraper.get_palettes('https://www.color-hex.com/color-palettes/popular.php') salmon = palettes['Facebook Messenger 1'] # salmon.reverse() # pprint(salmon) comb = permutations(salmon, 5) pprint(list(list(comb)[0])) #...
(function() { 'use strict'; var App = angular.module('Rcorrie'); App.directive('terminal', function() { return { restrict: 'AE', controller: 'TerminalController', template: ' <div ng-repeat="messageId in terminal.messages">\ <termin...
/******/ (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...
'use strict' const Boom = require('boom') const Joi = require('joi') const Config = require('./config') const UserModel = require('../api/users/model') const internals = {} exports.register = function (server, options, next) { server.dependency(['hapi-auth-cookie', 'Database'], internals.setupAuth) next() } ex...
# -*- coding: utf-8 -*- # 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 o...
var myApp = angular.module('myApp', ['ngRoute']); myApp.config(function($routeProvider){ $routeProvider .when('/',{ templateUrl: 'pages/main.html', controller:'mainController' }) .when('/second/:num',{ templateUrl: 'pages/second.html', controller:'secondController' }) }); myApp.service('nameService',...
'use strict'; /** * @ngdoc function * @name utxoPmc.controller:VerifythreeCtrl * @description * # VerifythreeCtrl * Controller of the utxoPmc that simply redirects the user. */ angular.module('utxoPmc') .controller('VerifythreeCtrl', function ($scope, person, $timeout, $location) { $timeout(function () { ...
function saveOptions(e) { BhxBrowser.storage.sync.set({ languages: undefined }); e.preventDefault(); };
import requests from valor import Valor from util import ErrorEmbed, HelpEmbed, LongFieldEmbed, LongTextEmbed, CURRENCY_CODES from discord.ext.commands import Context from dotenv import load_dotenv import os load_dotenv() async def _register_coin(valor: Valor): desc = "Performs a currency conversion. Example -coin...
import React, { useRef, useState, useEffect, useCallback } from "react"; import animations from "create-keyframe-animation"; import { CSSTransition } from "react-transition-group"; import Scroll from "../../../baseUI/scroll/index"; import ProgressBar from "../../../baseUI/progress-bar/index"; import { playMode, list } ...
/** * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui) * Copyright 2016 Telerik AD. All rights reserved. ...
const teamCombinations = require("./teamCombinations.js"); const config = require("./config.json"); const Balancer = {}; Balancer.getFairestTeams = (players, teamSize) => { let teams = [], diff, currentDiff; const matchups = teamCombinations(players, teamSize); for (let i = 0; i < matchups.l...
/** * * InvitationForm * */ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { useInjectSaga } from 'utils/injectSaga'; import { useInjectReducer } from 'u...
'use strict'; Object.defineProperty(globalThis, "Promise", { value: initPromise().Promise, writable: true, configurable: true }); function Test262Error(message) { this.message = message || ""; } Test262Error.prototype.toString = function() { return "Test262Error: " + this.message; }; var $ERROR; $ERROR = fu...
import { graphql } from "gatsby" import React from "react" import { Helmet } from "react-helmet" import styled, { createGlobalStyle } from "styled-components" import Layout from "../components/layout" import RequiredAuthView from "../components/RequiredAuthView" import { basedStyles } from "../styles" const GlobalStyl...
function stoppedTyping() { if (this.value.length > 0) { document.getElementById("startCustomRetrieveBtn").disabled = false; } else { document.getElementById("startCustomRetrieveBtn").disabled = true; } } function verify() { if(document.getElementById("customEntity").value == "") { alert("No value entered in ...
var HDWalletProvider = require("truffle-hdwallet-provider"); const MNEMONIC = 'peace stable alley intact mystery absent elegant country congress setup letter occur'; module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> // to customize your Truffle configuration! networks: { ...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("faa81dc98fc13338aca921d45eebae79.js"); /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the ...
var BLACK_COLORS = { 100: '#000', 95: '#0D0D0D', 85: '#262626', 65: '#595959', 45: '#8C8C8C', 25: '#BFBFBF', 15: '#D9D9D9', 6: '#F0F0F0', }; var WHITE_COLORS = { 100: '#FFFFFF', 95: '#F2F2F2', 85: '#D9D9D9', 65: '#A6A6A6', 45: '#737373', 25: '#404040', 15: '#2...
import angular from 'angular'; import '@uirouter/angularjs'; import addComponent from '../../add-replicas'; import routing from './add-replicas.routing'; const moduleName = 'enterpriseCloudDatabaseServiceGetStartedAddReplicas'; angular .module(moduleName, [ 'ui.router', addComponent, ]) .config(routing...
import pybfms from spi_bfms.qspi_xfer_mode import QSpiXferMode @pybfms.bfm(hdl={ pybfms.BfmType.Verilog : pybfms.bfm_hdl_path(__file__, "hdl/qspi_target_bfm.v"), pybfms.BfmType.SystemVerilog : pybfms.bfm_hdl_path(__file__, "hdl/qspi_target_bfm.v"), }, has_init=True) class QSpiTargetBfm(): def __init_...
/* exported dataSet1, dataSet2, dataSet3, dataSet4 */ var dataSet1 = [ { 'type':['complete'], 'img-uri':'assets/img/face-ghisly.jpg', 'title':'Ghisly Echezuria', 'html-description':'Ghisly Echezuria' }, { 'type':['complete'], 'img-uri':'assets/img/face-brent.jpg', 'title':'Brent', 'html-description':'Brent' }, { ...
#!/usr/bin/env python """ Usage: Shut down your registry service to avoid race conditions and possible data loss and then run the command with an image repo like this: delete_docker_registry_image.py --image awesomeimage --dry-run """ import argparse import json import logging import os import sys import shutil import...
import cloneDeep from 'lodash/cloneDeep'; import { freezeSys, toPlainObject } from 'contentful-sdk-core'; import enhanceWithMethods from '../enhance-with-methods'; import createOrganizationApi from '../create-organization-api'; import { wrapCollection } from '../common-utils'; /** * This method creates the API for th...
import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; import _get from "@swc/helpers/lib/_get.js"; import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; import _inherits from "@swc/helpers/lib/_inherits.js"; import _create_super from "@swc/helpers/lib/_create_super.js"; //@target: es6 ...
import Alert from 'react-s-alert'; import history from '../history'; import moment from 'moment'; import momentTimeZone from 'moment-timezone'; import React from 'react'; // import base64 from 'base-64'; // import utf8 from 'utf8'; //export const API_URL = "http://localhost:61487" //staging export const API_URL = "http...
# 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...
const process = require('process'); const version = require('./../../lib/meta').version; const Connection = require('./../../lib/connection/Connection'), SubscriptionType = require('./../../lib/connection/SubscriptionType'), WebSocketAdapterFactoryForNode = require('./../../lib/connection/adapter/WebSocketAdapterFa...
# # Copyright (c) 2017, Massachusetts Institute of Technology 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 o...
// flow-typed signature: ec319c372deedf4ab1525809c2ba7969 // flow-typed version: <<STUB>>/karma-sourcemap-loader_v^0.3.8/flow_v0.125.1 /** * This is an autogenerated libdef stub for: * * 'karma-sourcemap-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to ...
/** * Module Imports */ const { Client, Collection, Intents, MessageEmbed } = require("discord.js"); const { readdirSync } = require("fs"); const { TOKEN, PREFIX, OWNERID, EMBEDCOLOR } = require("./config.json"); const DisTube = require('distube'); const client = new Client({ disableMentions: "everyone", par...
var handleInitHighlightJs=function(){$('.hljs-container pre code').each(function(i,block){hljs.highlightBlock(block);});};$(document).ready(function(){handleInitHighlightJs();});
import os from typing import Iterable, List, Optional, Dict, Set, Tuple, Union import abc import warnings import logging import numpy as np import json from pathlib import Path from ray.util.debug import log_once from ray.util.ml_utils.dict import flatten_dict from ray.util.ml_utils.json import SafeFallbackEncoder fro...
import CoreLayout from '../layouts/CoreLayout' import Home from './Home' import LoginRoute from './Login' import SignupRoute from './Signup' import ProjectsRoute from './Projects' import AccountRoute from './Account' import NotFoundRoute from './NotFound' import ContactRoute from './Contact' // import ServicesRoute fro...
import React, { Component } from 'react'; class EndTrimForm extends Component{ handleConfirm(e){ e.preventDefault(); this.props.confirm(); } render(){ return <div className="col-sm-offset-2 col-sm-8 "> <div className="panel-heading"><h2>Confirm End Trim</h2></div> ...
const prefDistance = 120; const minDistanceFromWall = 50; function vectorStr(v) { return v.x() + ";" + v.y(); } let input; while (input = bus.poll()) { let position = input.position(); let others = []; for (let other of input.neighbours()) { others.push({ "distance": Vector.distanc...
import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Button from '@material-ui/core/Button'; import Ty...
// exports module.exports = fnValidateConfigShares; // dependencies const fnHas = require("/startup/functions/fnHas.js"); const fnIsString = require("/startup/functions/fnIsString.js"); const fnIsValidPath = require("/startup/functions/fnIsValidPath.js"); const fnIsArray = require("/startup/functions/fnIsArray.js...
/* global _ */ const mongoose = require('mongoose'); const faker = require('faker'); const { appConfigUpdateValidation } = require('../util/validation/applicationConfig'); const { SERVER_ERROR, APPLICATION_CONFIG_NOT_FOUND, APPLICATION_CONFIG_UPDATED, BAD_REQUEST, INVALID_REQUEST_PARAMS, APPLICATION_DETAILS_NOT_FOUN...
'use strict'; const superagent = require('superagent'); const Weather = require('./Weather'); function weatherHandler(request, response) { let url = `https://api.darksky.net/forecast/${process.env.WEATHER_API_KEY}/${request.query.data.latitude},${request.query.data.longitude}`; superagent.get(url) .then(data...
import unittest import streambot import os import shutil class TastStreamBot(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_is_full_uri_http(self): uri = 'http://example.com' self.assertTrue(streambot.is_full_uri(uri)) def test_is_full_ur...
"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["icon.vis_bar_vertical-js"],{ /***/ "./node_modules/@elastic/eui/es/components/icon/assets/vis_bar_vertical.js": /*!*********************************************************************************!*\ !*** ./node_modules/@elastic/eui/es/compone...
import environment from './environment'; import {ValidationMessageProvider} from 'aurelia-validation'; import {I18N, Backend, TCustomAttribute} from 'aurelia-i18n'; import {PLATFORM, LogManager} from 'aurelia-framework'; import {ConsoleAppender} from 'aurelia-logging-console'; LogManager.addAppender(new ConsoleAppende...
const tests = { input: `@button toust { button-color: yellow white white; button-background: white yellow silver; button-border: 4px yellow yellow silver; button-class: active disabled; padding: 0.75rem; } .my-button { button: toust; padding: 0.75rem; } `, output: `.my-button,.my-button:visited { c...
# seguros documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are ...
''' Created on Mar 17, 2015 @author: pe25171 ''' import datetime, time from itertools import count import json import re from subprocess import call import sys import timeit import community from dateutil.parser import parse from igraph import * from networkx.algorithms.centrality.betweenness import edge_betweenness...
// enable debug for gulp /* eslint-disable prefer-object-spread/prefer-object-spread */ process.env.DEBUG = process.env.DEBUG || 'fcc:*'; require('dotenv').load(); require('babel-core/register'); const Rx = require('rx'), gulp = require('gulp'), path = require('path'), debug = require('debug')('fcc:gulp'), yar...
import { CONSTANTS, CM_SECRET } from '../configuration/config'; import logger from './logger'; import { decrypt } from './helper/crypto'; // import JWTController from '../controller/jwt-controller'; // context mapping with the configuration and payload const contextMappingResolver = (configuration, data) => { // l...
import { Howl, Howler } from 'howler'; import AssetLoader from '../assetloader'; let AudioLoader = function () { return new AssetLoader({ name: 'audio', filetypes: ['webm', 'mp3', 'wav'], load: function (path) { //TODO how to deal with loading a file multiple times with different extensions? return new Pr...
export ImgUpload from './ImgUpload';
#!/usr/bin python import time import thread import threading import re from collections import deque from os.path import expanduser, join, splitext import subprocess # Number of reading before cleaning repo noCountBeforeResetClean = 2880 # Target reading number to have in the data file dataFileLen = 2880 class GitW...
(function(d){d['nl']=Object.assign(d['nl']||{},{a:"Kan bestand niet uploaden:",b:"Image toolbar",c:"Table toolbar",d:"Bezig met uploaden",e:"Cursief",f:"Vet",g:"Doorhalen",h:"Onderlijnen",i:"Code",j:"Subscript",k:"Lettergrootte",l:"Standaard",m:"Zeer klein",n:"Klein",o:"Groot",p:"Zeer groot",q:"Superscript",r:"Letterty...
import pytest from .models import MyModel try: from .enums import Color # Use the new location of Color enum except ImportError: Color = MyModel.Color # Attempt the 0.7.4 location of color enum @pytest.mark.django_db def test_fields_value_is_enum_when_unsaved(): obj = MyModel(color='r') assert Col...
#!/usr/bin/env python # -*- coding:utf-8 -*- from flask import Flask, render_template from backend.wordle import Wordle app = Flask(__name__, template_folder='templates', static_folder='static') wordle = Wordle(logger=app.logger) @app.route('/') def root(): info = wordle.get_info() return render_template('wo...
import React from 'react' import { StyleSheet, Text, TouchableOpacity } from 'react-native' const Tag = ({ tag, onClick, remove, count, isSelected }) => ( <TouchableOpacity style={[styles.tagContainer, isSelected ? styles.active : null]} onPress={onClick}> <Text style={[styles.tagItem, styles.tag]}>{tag}...
define("ace/snippets/puppet",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText =undefined; exports.scope = "puppet"; }); (function() { window.require(["ace/snippets/puppet"], function(m) { if (typeof module...
/** * @license * Copyright Google Inc. 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 */ import { __decorate, __extends, __metadata, __param } from "tslib"; import { DOCUMENT, ɵgetDOM as getDOM } from '@ang...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { motion, AnimatePresence } from "framer-motion"; import { MAX_SELECTED_LINK_IDS } from '../types/const'; import { addSelectedLinkIds, deleteSelectedLinkIds } from '../actions'; import { makeIsLinkIdSelected, g...
(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else { factory(root.jQuery); } })(this, function($) { var has_VML, has_canvas, create_canvas_for, add_shape_to, clear_canvas, shape_from_area, canvas_style, hex_to_decimal,...
import { authHeader } from '../_helpers'; export const userService = { login, logout, register, getAll, getById, update, delete: _delete }; function login(username, password) { const requestOptions = { method: 'POST', headers: { 'Content-Type': 'application/json' }, ...
import styled from "styled-components"; export const Form = styled.form` list-style: none; margin: 0 auto; padding: 1rem; width: 90%; max-width: 40rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); border-radius: 6px; background: white; `;
const constants = require('../constants') const BaseSpider = require('./base') class JianshuSpider extends BaseSpider { /** * 输入编辑器 */ async inputEditor() { // 输入标题 await this.page.evaluate(this.inputTitle, this.article, this.editorSel, this.task) await this.page.waitFor(3000) // 按tab键切换 ...
import { fromJS } from 'immutable'; export default () => fromJS({ apiActions: { addClient: { isPending: false, }, deleteClient: { isPending: false, }, editClient: { isPending: false, }, getClient: { isPending: false, }, getClients: { isPending: false,...
(function(undefined) { if (!("Intl"in self&&Intl.RelativeTimeFormat&&Intl.RelativeTimeFormat.supportedLocalesOf&&1===Intl.RelativeTimeFormat.supportedLocalesOf("en-GM").length )) { // Intl.RelativeTimeFormat.~locale.en-GM /* @generated */ // prettier-ignore if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat...
''' Readme Development Metrics With waka time progress ''' import re import os import base64 from pytz import timezone import pytz import requests from github import Github, GithubException, InputGitAuthor import datetime from string import Template from loc import LinesOfCode import time import traceback...
const path = require('path'); const babelConfig = require('./babel.conf.js'); function factory (vendor) { return { mode: 'none', entry: `./vendor/${vendor}/index`, output: { path: path.resolve(__dirname, 'dist'), filename: `numeric_keyboard.${vendor}.js`, ...
(function(env) { "use strict"; env.ddg_spice_dogo_news = function(api_result) { if (!api_result || !api_result.results || !api_result.results.length) { return Spice.failed('dogo_news'); } // Get original query. var script = $('[src*="/js/spice/dogo_news/"]')[0], ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const UserSchema = new Schema({ // Username username: {type: String}, // User's biography bio: {type: String}, // User join date dateJoined: {type: Date}, // Certifications of the user. E.g. MTC, Has gotten a map into rotation, won a contest,...
'use strict' const after = require('after') const Base = require('yeoman-generator').Base const optParser = require('./option-parser') const subgenerators = [ 'npm' , 'git' , 'github' , 'travis' , 'appveyor' , 'cli' , 'readme' , 'gulp' ] const self = module.exports = class NomGenerator extends Base {...
/* function hfence(x, y, w, n) { for (let i = 0; i < n; i++) { lab.cam.mob.spawn( dna.prop.Fence, { type: 'center', x: x, y: y, }) x += w } } function vfence(x, y, h, n) { for (let i = 0; i < n; i++) { lab.cam.mob.spawn( dna.prop.Fence, { ...
//Core import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit'; import { persistStore, persistReducer } from 'redux-persist'; import { FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER } from 'redux-persist'; import AsyncStorage from '@react-native-async-storage/async-storage'; //Redux import { authRedu...
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
// Copyright (c) 2021, Eco Data & IAC and contributors // For license information, please see license.txt frappe.ui.form.on('Tickets', { refresh(frm) { $(cur_frm.fields_dict.create_ticket.input).addClass("btn-primary").css({'color':'white','font-weight': 'bold'}); }, create_ticket: function(frm){ if (cur_frm.d...
import pytest from hash_tables.hashtable import HashTable from hash_tables.hashmap_left_join import left_join def test_left_join_empty_hashmap(): ht1 =HashTable () ht2 =HashTable () assert left_join(ht1 , ht2) == [] def test_left_join_hashmap(): ht1 = HashTable() ht1.addItem("fond", "enamored") ...
# Conor Hogan 10/2/18 # Programming and scripting - Week 3 x = int(input("Enter number here:")) while x != 1: if x % 2 == 0: x = x/2 print (x) else: x = (x * 3) + 1 print (x)
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
// Given an array of numbers representing the stock prices of a company in chronological order, // write a function that calculates the maximum profit you could have made from buying and // selling that stock once. You must buy before you can sell it. // Try doing this problem without using a nested for-loop, // i.e. ...
import { BackSide, BoxGeometry, BufferAttribute, BufferGeometry, ClampToEdgeWrapping, Color, ConeGeometry, CylinderGeometry, DataTexture, DoubleSide, FileLoader, Float32BufferAttribute, FrontSide, Group, LineBasicMaterial, LineSegments, Loader, LoaderUtils, Mesh, MeshBasicMaterial, MeshPhongMateria...
from app import db, login_manager from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), index=True, unique=True) email = db.Column(db.Strin...
from bs4 import BeautifulSoup from urllib.parse import quote from urllib.request import urlopen def meaning_find(soup): find_span = soup.find("span", {"class":"fnt_k05"}) if find_span == None: return "Not Result" else: return find_span.text def main(): output_file = "testtts.wav" ...
Ext.namespace("Inubit.WebModeler"); /** * Abstract base class for models */ Inubit.WebModeler.ProcessModel = Ext.extend(Object, { constructor : function(config) { this.uri = config.uri; this.baseId = config.baseId; this.tmpId = config.tmpId; this.type = config.type; this.version = co...
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r...
const express = require('express'); const router = express.Router(); const bcrypt = require('bcryptjs') const auth = require('../../middleware/auth') const jwt = require('jsonwebtoken') const config = require('config') const { check, validationResult } = require('express-validator') router.get('/', auth, async...
import { takeLatest } from 'redux-saga'; import { take,takem, call, put, fork, cancel } from 'redux-saga/effects'; import { queryTaskListForCount } from '../services/task'; import { message } from 'antd'; function* taskListForCountGet(data) { try { var params = data.payload const { jsonResult } = yield call(...
module.exports = { presets: [["@babel/preset-env", { targets: { node: "current" } }], "@babel/preset-typescript"], }