text
stringlengths
3
1.05M
import numpy import unittest from mta.dataset import Dataset from mta.profile import Profile class TestProfile(unittest.TestCase): def setUp(self): ratings = numpy.loadtxt('cust_ratings',delimiter=',') touchs = numpy.loadtxt('cust_touchs',delimiter=',') self.dataset = Dataset(ratings,t...
import requestCreator from 'core/request' import Common from '../stores/Common' import Account from '../stores/Account' import Todos from '../stores/Todos' import Leads from '../stores/Leads' export default (state) => { const request = requestCreator(state.account.token) return { state, store: { comm...
# -*- coding: utf-8 -*- """ 不同壁纸分辨率对应的规则 """ # 不同壁纸分辨率对应的规则 images_resolution_list = { "1024x768": "sProdImgL2", "1280x720": "sProdImgL3", "1280x1024": "sProdImgL4", "1440x900": "sProdImgL5", "1920x1080": "sProdImgL6", "1920x1200": "sProdImgL7", "1920x1440": "sProdImgL8" }
import * as THREE from "three"; import model from "./myT"; const DEG_TO_RAD = 0.0174533; export default class Tank { constructor( scene = null, params = { id: 1, name: "", type: "", isMe: "", x: 0, y: 0, z: 0, ...
const portfolioItems = [ { title: 'Hely Cosmetics', synopsis: 'Full-stack MERN Online Store', desc: 'React frontend using styled components and Node with Express backend. Features protected routes using local Passport.js authentication and Stripe integration for payments. MongoDB database.', img: './H...
/* * ! SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.P13nSortItem. sap.ui.define([ 'jquery.sap.global', './library', 'sap/ui/core/Item' ], function...
from standard_calc import bound_to_180, is_angle_between """ Tests for bound_to_180() """ def test_bound_basic1(): assert bound_to_180(0) == 0 """ Tests for is_angle_between() """ def test_between_basic1(): assert is_angle_between(0, 1, 2)
var namespaceorg_1_1onosproject_1_1net_1_1flowobjective = [ [ "impl", "namespaceorg_1_1onosproject_1_1net_1_1flowobjective_1_1impl.html", "namespaceorg_1_1onosproject_1_1net_1_1flowobjective_1_1impl" ], [ "DefaultFilteringObjective", "classorg_1_1onosproject_1_1net_1_1flowobjective_1_1DefaultFilteringObjective....
from model.card import Card class Hand: __BLACKJACK = 21 __FACE_VALUE = 10 __ACE_VALUE_HIGH = 11 __ACE_VALUE_LOW = 1 def __init__(self, dealer: bool = False): self.__dealer = dealer self.__cards = [] self.__value = 0 def add_card(self, card: Card): self.__c...
import React from "react"; import AppHeader from "../../components/AppHeader"; import Main from "../../components/Main"; import Footer from "../../components/Footer"; import ProductsListing from "../../components/ProductsListing"; import Cart from "../../components/Cart"; function Home({ products, cartItems, is...
/* Philosophy: A tile should have no awareness of the overall board. */ (function () { var points = [ 42,0, // top-left 45,0, // top-right 86,27, // right-top 86,28, // right-bottom 45,55, // bottom-right 42,55, // bottom-left 1 ,28, // left-bottom 1 ,27, // left-top 42,0 // close ]; Tacti...
let data = { "body": "<path d=\"M16 12H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
$.fn.rwdTables=function(){return this.each(function(){var t=jQuery("th",this);$("tbody td",this).wrapInner("<span class='rwd-tables tbody'></div>"),$("tfoot",this).insertAfter($("tbody",this)),$("tbody tr",this).each(function(){$("td",this).each(function(s){$("span",this).before("<span class='rwd-tables thead'>"+t.eq(s...
from setuptools import setup, find_packages long_description = """finmarketpy is a Python based library that enables you to analyze market data and also to backtest trading strategies using a simple to use API, which has prebuilt templates for you to define backtest.""" setup(name='finmarketpy', version='0.11....
const data = { name: "fr-MG", likelySubtags: { fr: "fr-Latn-FR" }, identity: { language: "fr", territory: "MG" }, territory: "MG", calendar: { patterns: { d: "dd/MM/y", D: "EEEE d MMMM y", m: "d MMM", M: "d MMMM"...
const Sequelize = require('sequelize') const db = require('../db') const Category = db.define('category', { name: Sequelize.STRING, description: Sequelize.STRING, imageUrl: Sequelize.STRING }) module.exports = Category
export const BASE_URL = "https://pokeapi.co/api/v2"
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.protot...
def teste(v, i): valor = v incremento = i resultado = incremento + valor return resultado print(teste(5, 10))
// - // 2_generatore_pattern_0.2 by Eleonora Di Francesco [modulo, pattern] // 2020 © Eleonora Di Francesco, Daniele @Fupete and the course DSII2020 at DESIGN.unirsm // github.com/dsii-2020-unirsm — github.com/fupete // Educational purposes, MIT License, 2020, San Marino // — // // Help: // [key == 1] colori freddi /...
/*! * YieldFarming * Boilerplate for a Static website using EJS and SASS * https://yieldfarming.info * @author Jongseung Lim -- https://yieldfarming.info * Copyright 2021. MIT Licensed. */ $(function() { consoleInit(main) }); const DUCK_CHEF_ABI = [{"inputs":[{"internalType":"contract DuckToken","name":"_duck"...
import cleanup from "rollup-plugin-cleanup"; import babel from "rollup-plugin-babel"; import minify from "rollup-plugin-babel-minify"; module.exports = [{ input: "./src/index.js", output: { name: "SimplexNoise", file: "simplex.js", format: "es", }, plugins: [ cleanup({ comments: "none", ...
var RedisPool = require('sol-redis-pool'), getProp = require("../../AppProperties").get, async = require("async"); /** * Redis cache store. * @param args * @returns {{}} * @constructor */ function RedisStore(args) { args = args || {}; var id = args.id; var self = {}, host = args.host |...
'use strict' var webpack = require('webpack') var env = process.env.NODE_ENV var reactExternal = { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react' } var reduxExternal = { root: 'Redux', commonjs2: 'redux', commonjs: 'redux', amd: 'redux' } var config = { externals: { 'react'...
// This file was automatically generated from common.soy. // Please don't edit this file by hand. if (typeof apps == 'undefined') { var apps = {}; } apps.messages = function(opt_data, opt_ignored, opt_ijData) { return '<div style="display: none"><span id="subtitle">en visuell programmeringsmiljö</span><span id="bl...
var UDomain = {}; UDomain.init = function() { window.uauth = initUDomain( 'IkYioPn2RAV2lOSYtZMU9JmrWTXqd1FWXXR8VqEjsbk=', 'ZLsn2pPoEd4n5+EG1CWfVKktRUOu4QuqVFZg+gPyZa4=', 'https://hnihsan-cryptopunksmarket.vercel.app/' ); }
/*! * Dashmix - v1.2.0 * @author pixelcave - https://pixelcave.com * Copyright (c) 2018 */ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{...
from setuptools import setup, find_packages import platform try: import distro distro, version, _ = distro.linux_distribution(full_distribution_name=False) except ImportError: distro = version = '' platform_name=platform.system() # Default to CentOS7 data_files = [('/usr/lib/systemd/system', ['pkg/source...
import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Compon...
import React, { useState, useEffect } from 'react' import styled from 'styled-components' import useDebounce from '../../util/useDebounce' const Input = styled.input` margin: 10px; background: #fff; font-size: 16px; padding: 10px; outline: none; border: 1px solid #cec1c1; border-radius: 3px; width: cal...
module.exports = { extends: 'erb', rules: { // A temporary hack related to IDE not resolving correct package.json 'import/no-extraneous-dependencies': 'off', 'react/jsx-props-no-spreading': 'off', '@typescript-eslint/no-non-null-assertion': 'off', }, parserOptions: { ecmaVersion: 2020, s...
var a04006 = [ [ "AvgVariance", "a04006.html#a103fb43e23f0285fdb1444a1b4635273", null ], [ "CoVariance", "a04006.html#af88d9abad41518925b74e978c48a3638", null ], [ "Max", "a04006.html#a08f8e609b8463cf76890d162e7e0c18a", null ], [ "Min", "a04006.html#aa3df38b86e57ed0b58e1eb91076053b0", null ] ];
import React from "react"; import {login} from "./UserFunction"; // reactstrap components import { Button, Card, CardHeader, CardBody, FormGroup, Form, Input, InputGroupAddon, InputGroupText, InputGroup, Row, Col } from "reactstrap"; class Login extends React.Component {...
var _ = require('./lodash'), sanitize = require('./util').sanitize, sanitizeOptions = require('./util').sanitizeOptions, getUrlStringfromUrlObject = require('./util').getUrlStringfromUrlObject, addFormParam = require('./util').addFormParam, self; /** * Parses Raw data from request to fetch syntax * * @par...
# Copyright (c) 2015 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test', 'type': 'executable', 'sources': ['rule.ext'], 'rules': [{ 'rule_name': 'r...
// Pure referentially transparent functions which have no side effects function getFontFormat (fontExtension) { return { woff: 'woff', woff2: 'woff2', ttf: 'truetype', otf: 'opentype', eot: 'embedded-opentype', svg: 'svg', }[fontExtension]; } module.exports = { getFontFormat, };
import { createCurrentUserHook, createClient } from 'next-sanity' import createImageUrlBuilder from '@sanity/image-url' export const config = { dataset: 'production', projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID, apiVersion: '2021-10-21', useCdn: process.env.NODE_ENV === 'production', } export const s...
#!/usr/bin/env python """ braces_test.py: Tests for braces.py """ from pprint import pprint import sys import unittest from core import braces # module under test from osh import word_parse_test from osh.meta import ast word_part_e = ast.word_part_e # Silly wrapper def _assertReadWord(*args): return word_parse_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const TextItem_1 = require("./TextItem"); const Link_1 = require("./Link"); const Content_1 = require("./Content"); const ButtonList_1 = require("./ButtonList"); const Social_1 = require("./Social"); const ThumbnailList_1 = require("./Thumbnai...
angular.module('kibana.map2', []) .controller('map2', function ($scope, eventBus, keylistener) { // Set and populate defaults var _d = { query: "*", map: "world", colors: ['#C8EEFF', '#0071A4'], size: 100, exclude: [], spyable: true, group: "default", index_lim...
""" 79 - Crie um programa onde o usuário possa digitar vários valores numéricos e cadastre-os em uma lista. Caso o número já exista lá dentro, ele não será adicionado. No final, serão exibidos todos os valores únicos digitados, em ordem crescente. """ lista = [] while True: n = (int(input('Digite um valor: '))) ...
!function(e){function r(r){for(var n,i,l=r[0],a=r[1],f=r[2],c=0,s=[];c<l.length;c++)i=l[c],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r...
/** * 报价 * Created by zhangjh on 2015/9/18. */ (function ($) { "use strict"; var infoURL = path + "/development/quotepre/info/"; var editURL = path + "/development/quotepre/edit/"; var listURL = path + "/development/quotepre/list/"; var submitURL = path + "/development/quotepre/submit/"; /*...
const debug = require('ghost-ignition').debug('web:parent'); const express = require('../../../shared/express'); const vhost = require('@tryghost/vhost-middleware'); const config = require('../../../shared/config'); const compress = require('compression'); const netjet = require('netjet'); const mw = require('./middlew...
'use strict'; angular.module('users') .controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication','toaster', function($scope, $http, $location, Authentication, toaster) { $scope.authentication = Authentication; //If user is signed in then redirect back home ...
const aws_provider = require("../provider") const resources = Object.freeze({"monday":1, "tuesday":2, "wednesday":3}) module.exports = aws_provider(resources)
import VantaBase, {VANTA} from './_base.js' import {rn, ri, sample, mobileCheck} from './helpers.js' class Effect extends VantaBase { static initClass() { this.prototype.defaultOptions = { color: 0xff8820, color2: 0xff8820, backgroundColor: 0x222222, size: 3, spacing: 35, }; }...
import React from "react"; import { Link } from 'gatsby' import "./NavItem.css"; const NavItem = ({ link, text, icon, alt }) => ( <Link className="nav-item--link" to={link}> <span>{text}</span> <img src={icon} alt={alt}/> </Link> ); export default NavItem;
"""Some simple test to confirm the artifact path is correctly set """ import logging import os from copy import deepcopy from typing import Dict from typing import List from typing import NamedTuple from typing import Optional from typing import Union from queue import Queue from unittest.mock import patch from unitte...
'use strict'; export function routeConfig($routeProvider, $locationProvider, $httpProvider) { 'ngInject'; $routeProvider.otherwise({ redirectTo: '/login' }); $locationProvider.html5Mode(true); }
#!env/bin/python import imp from migrate.versioning import api from app import db from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) migration = SQLALCHEMY_MIGRATE_REPO + ('/versions/%03d_migration.py' % (v+1)) tmp_...
# Program for Simple search with List as an input def LinSearch(myList, item): print("Entered List is: ", myList) if item in myList: print("Item found!!!& guess what..? it's at location: ",myList.index(item)) else: print("No Luck!!@") my = input("Enter elements: ") myList = my....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Animal = void 0; const Command_1 = require("../Command"); class Animal extends Command_1.Command { constructor() { super(...arguments); this.template = "default.html" /* DefaultHTML */; this.meme = {...
deepmacDetailCallback("000aae000000/24",[{"d":"2002-08-03","t":"add","a":"6573A Cochran Rd.\nSolon Ohio 44139-3922\n\n","c":"UNITED STATES","o":"Rosemount Process Analytical","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"6573A Cochran Rd. Solon Ohio US 44139-3922","c":"US","o":"Rosemount Process Analytical"}...
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
(function() { /** * Scheme class for a collection of maps within a range defined by encoding. * @param encoding hash encoding (hex or base64) * @constructor */ CH.Scheme = function(encoding) { this.range = new CH.Range(0, 1); switch (encoding) { case CH.ENCODING....
/*global QUnit, sinon */ sap.ui.define([ "sap/ui/core/UIComponent", "sap/ui/core/mvc/JSView", "sap/ui/core/routing/Route", "sap/ui/core/routing/Views", "sap/ui/core/routing/Targets", "./AsyncViewModuleHook", "sap/m/Panel" ], function(UIComponent, JSView, Route, Views, Targets, ModuleHook, Panel) { "use strict";...
memberSearchIndex = [{"p":"cycling","c":"BadCyclingPortal","l":"addCategorizedClimbToStage(int, Double, SegmentType, Double, Double)","u":"addCategorizedClimbToStage(int,java.lang.Double,cycling.SegmentType,java.lang.Double,java.lang.Double)"},{"p":"cycling","c":"BadMiniCyclingPortal","l":"addCategorizedClimbToStage(in...
const mongoose = require('mongoose'); const TournamentInscription = require('../models/TournamentInscription'); const Tournament = require('../models/Tournament'); exports.getAllTeamsRegistered = async tournamentId => await TournamentInscription.find({ tournamentId: mongoose.Types.ObjectId(tournamentId), ...
/** * Module dependencies. */ var program = require('../'); var program = new (require('../').Command)(); var test = require('tape'); function parseRange(str) { return str.split('..').map(Number); } program .version('0.0.1') .option('-a, --alpha <a>', 'hyphen') .option('-b, --bravo <b>', 'hyphen') .optio...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); tslib_1.__exportStar(require("./Panel"), exports); tslib_1.__exportStar(require("./Panel.types"), exports); //# sourceMappingURL=index.js.map
import React, { Component } from 'react'; import { LoadingComponent } from 'app/components/'; import { dateFormat as DATE_FORMAT } from 'constants/index'; import { ETH_SCAN, txidUrl as TXID_URL } from 'constants/config.js' import { convertNumberToText, check0xPrefix, calcMaxPageNum, nToBr } from 'utils' import moment f...
(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{297:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return i})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return u}));var r=n(2),o=n(9),a=(n(0),n(395)),i={id:"settings",titl...
const music = require("@koenie06/discord.js-music"); const score = require("../socalCredit"); module.exports = { name: "repeat", description: "Repeat the song over and over and over...", cooldown: 1, usage: " ", category: "music", perms: ["SEND_MESSAGES", "CONNECT", "SPEAK"], userperms: ["CONNECT"], asy...
NDContentPage.OnToolTipsLoaded({3516:"<div class=\"NDToolTip TClass LCSharp\"><div class=\"NDClassPrototype\" id=\"NDClassPrototype3516\"><div class=\"CPEntry TClass Current\"><div class=\"CPModifiers\"><span class=\"SHKeyword\">public</span></div><div class=\"CPName\"><span class=\"Qualifier\">Engine.&#8203;src.&#820...
# -*- coding: utf-8 -*- # base16-prompt-toolkit (https://github.com/memeplex/base16-prompt-toolkit) # Base16 Prompt Toolkit template by Carlos Pita (carlosjosepita@gmail.com # Atelier Heath scheme by Bram de Haan (http://atelierbramdehaan.nl) try: # older than v2 from prompt_toolkit.output.vt100 import _256_color...
/** * EasyUI for jQuery 1.5.5 * * Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"treegrid"); v...
'use strict'; /** * @ngdoc function * @name angularWpClientApp.controller:TermCtrl * @description * # TermCtrl * Controller of the angularWpClientApp */ angular.module('angularWpClientApp') .controller('TermCtrl', function ($scope, $stateParams, posts) { $scope.awesomeThings = [ 'HTML5 Boilerplate', ...
from openchem.models.openchem_model import OpenChemModel from openchem.optimizer.openchem_optimizer import OpenChemOptimizer from openchem.optimizer.openchem_lr_scheduler import OpenChemLRScheduler from openchem.data.utils import cut_padding import torch class MoleculeProtein2Label(OpenChemModel): r""" Crea...
const path = require('path'); const { readTxt, writeTxt, parseTpl } = require('./util'); const _ = require('lodash'); /** * * config = { * env: { * [env]: { * name, * dir, * vars * } * } * } */ const generateDCY = async ({ tplPath, config, tarDir }) => { const tpl = aw...
const db = require("./models"); // Only start everything if the database is functional db.sequelize.sync() .then(() => { process.bot = require("./bot"); process.input = require("./console"); }) .catch(startupError); /* Close everything */ function startupError(error) { if (error) { ...
/* -----------H-ui前端框架------------- * H-ui.admin.js v3.1 * http://www.h-ui.net/ * Created & Modified by guojunhui * Date modified 2017.02.03 * Copyright 2013-2017 北京颖杰联创科技有限公司 All rights reserved. * Licensed under MIT license. * http://opensource.org/licenses/MIT */ var num=0,oUl=$("#min_title_list"),hide_nav=...
import axios from 'axios' // action types const GOT_BOARD_FROM_DB = 'GOT_BOARD_FROM_DB' // action creators const gotBoardFromDB = board => { return { type: GOT_BOARD_FROM_DB, board } } // thunk creators export const fetchBoard = boardId => { return async dispatch => { const res = await axios.get...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { ShowingTimes } from './ShowingTimes'; export const FilmBrief = ({ film, showings, currentDate }) => { const { poster_path, runtime, title, tagline } = film; const history = useHistory(); return ( <> <section onClick={han...
from tool.runners.python import SubmissionPy class YouyounSubmission(SubmissionPy): def run(self, s): """ :param s: input in string format :return: solution flag """ # Your code goes here n_days = 256 fish = [0 for _ in range(10)] for e in map(int, s...
/*! * ihavecookies - jQuery plugin for displaying cookie/privacy message * v0.3.2 * * Copyright (c) 2018 Ketan Mistry (https://iamketan.com.au) * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * */ (function($) { /* |------------------------------------------------...
import React, { Component } from "react"; import { Row, Col, ListGroup } from 'react-bootstrap'; import { connect } from "react-redux"; import { CheckEmpty } from './../../lib/uiComponentLib'; var Userthumbnail = require('./../../../public/img/user.png'); export default class CCUser extends Component { construct...
import React from 'react'; import classNames from 'classnames'; const HomePageCardContent = ({ avatar, title, subheader, content }) => ( <> <div> <div className="avatar"> {avatar.split('').map((letter, index) => { const square = !!((Math.floor(Math.random() * 10) + 1) % 2); cons...
/** * @file 同步组件 * @author mengke01(kekee000@gmail.com) */ define( function (require) { var i18n = require('../i18n/i18n'); var Resolver = require('common/promise'); var string = require('common/string'); var project = require('./project'); var program = require('./progr...
import React from 'react' import {ScrollView, View} from 'react-native' import colors from 'styles/colors' import {MaterialIcons} from '@expo/vector-icons' import variables from 'styles/variables' import {Container, TextInput} from 'components' import {useAdvanceStateMortgageCalculator} from '../../../context/advanceMo...
import '../../semantic-ui/components/list.min.css'; import React from 'react' import { render, findDOMNode } from 'react-dom' import request from 'request' import BookList from './BookList.react' import Config from '../Config.react' import PageInfo from '../Obj/PageInfo' const initState = { message: '欢迎访问豆瓣WEB...
define("echarts/chart/funnel",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","../config","../util/ecData","../util/number","zrender/tool/util","zrender/tool/color","zrender/tool/area","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./b...
import React from "react"; import "./TagFilter.scss"; function TagFilter({options, selected, onChange}) { if (options.size === 0) return null; return ( <div className="tag-filter"> {Array.from(options).map(option => <label key={option}> <input type="checkbox" checked={selected.has(opti...
from django.db import models from django.conf import settings from django.utils.translation import gettext_lazy as _ class Recovery_tasks(models.Model): backup_type = models.CharField(_('Backup Type'),max_length=63) completion_time = models.CharField(_('Completion Time'),max_length=25) db_name = models.Cha...
console.log('functions');
# -*- coding: utf-8 -*- # File generated according to PHoleM54.ui # WARNING! All changes made in this file will be lost! ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide2.QtCore import * from P...
import React from "react"; import styled from "styled-components"; import { BaseContainer } from "../../helpers/layout"; import { getDomain } from "../../helpers/getDomain"; import { Button, InvisButton } from "../../views/design/Button"; import { Link, withRouter } from "react-router-dom"; //**************************...
/// <reference types="cypress" /> context('Style', () => { beforeEach(() => { cy.clearLocalStorage('use-dark-mode') cy.visit('http://localhost/') }) // https://on.cypress.io/interacting-with-elements it('Focus link emphasizes it', () => { // https://on.cypress.io/focus ...
/* jshint expr: true */ /* eslint no-unused-expressions: 0 */ /* global describe, it, beforeEach, afterEach */ 'use strict'; const internal = require('internal'); const expect = require('chai').expect; const isServer = typeof arango === 'undefined'; const query = 'FOR x IN 1..5 LET y = SLEEP(@value) RETURN x'; functi...
({"le":"mai mic sau egal cu","prod":"n produs\nsemnul produs","zwj":"zero cu unificator","mdash":"linie em","frasl":"linie fracţie","upsih":"Simbolul grec upsilon cu cârlig","prop":"proporţional cu","middot":"punct de mijloc\nvirgulă georgiană\npunct de mijloc grec","hellip":"elipse orizontale\ntrei puncte precursoare"...
({ init: function (cmp, evt, helper) { var listSize = cmp.get("v.initialSize"); cmp._virtualItems = []; helper.generateListItems(0, listSize, function(item) { cmp._virtualItems.push(item); }); }, onLoadMore: function(cmp, callback, helper) { var currentSize = cmp._virtualItems.length; ...
#MenuTitle: Remove All Images from Font # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__=""" Deletes all placed images from the frontmost font. """ thisFont = Glyphs.font def process( thisGlyph ): deleteCount = 0 thisGlyph.beginUndo() for thisLayer in thisGlyph.la...
import assign from 'lodash/assign'; import noop from 'lodash/noop'; import React from 'react'; import PropTypes from 'prop-types'; import { shallow } from 'enzyme'; import { ManualSync } from 'ui/views/wallet/ManualSync'; import theme from '../../../../__mocks__/theme'; jest.mock('react-native-is-device-rooted', () =>...
const util = require("util"); const mysql = require("mysql"); const connection = mysql.createConnection({ host: "localhost", // Your username user: "root", // Your password password: "m0nkee76!", database: "employees" }); connection.connect(); // Setting up connection.query to use promises instead of cal...
import nearley2 from "/-/nearley@v2.20.1-A4c29ItqLXuWOAs5gtul/dist=es2019,mode=imports/optimized/nearley.js"; import * as ramda from "/-/ramda@v0.28.0-vDL6KbwpPkq7DJAM324O/dist=es2019,mode=imports/optimized/ramda.js"; import * as ramdaAdjunct from "/-/ramda-adjunct@v3.0.0-KQqwUtmF7QX8HMVNgUFS/dist=es2019,mode=imports/o...
import styled from 'styled-components'; export const InvisibleSpan = styled.span` position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); `;
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users'); var segments = require('../../app/controllers/segments'); // Pages Routes app.route('/segments') .get(users.requiresLogin, users.hasAuthorization, segments.list) .post(users.requiresLogin, users.canEdit, segment...
const { Command } = require('../../commands') module.exports = class ServerCommand extends Command { constructor() { super({ name: 'server', aliases: ['serverInfo'], category: 'admin', priority: 5, permLvl: 3 }) } async execute( message) { const {Messag...
new Vue({ el: '#exercise', data: { value: 0 }, computed: { result: function() { return this.value == 10 ? 'done' : 'not there yet'; } }, watch: { value: function(value) { vm = this; setTimeout(function() { vm.value = 0; }, 2000); } } });
/** * @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 */ import { InjectionToken, Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, f...