text
stringlengths
3
1.05M
const Modal = { openClose(id) { let el = document.getElementById(`${id}`) el.classList.toggle('active') } } const Storage = { set() { localStorage.setItem('transactions', JSON.stringify(Transaction.all)) }, get() { return JSON.parse(localStorage.getItem('tr...
print("Hello! Give me a number") num = input() if num == "42": print("Right answer to everything!") elif not num.isdigit(): print("Sorry, invalid input, expecting number.") elif num != "42": print("Wrong answer!")
import gql from 'graphql-tag'; const GET_SHORT_DESCRIPTION_QUERY = gql` query shortDescriptionOfProduct($productSku: String!) { productDetail: products(filter: { sku: { eq: $productSku } }) { items { short_description { html } } ...
# Generated by Django 3.0.8 on 2020-08-11 07:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MlModel', fields=[ ('id', models.AutoField(...
import React from "react"; // import Wrapper from "./wrapper3"; import './Project3.css'; function Project() { const projects = [ { title: "Tech Blog", src: require("../../assets/Projects/git-it-done.png").default, githubRepo: "https://github.com/kingopara/tech-blog", ...
import React, { Component } from "react"; import { Slider, Textfield, Switch, IconButton, Menu, MenuItem } from "react-mdl"; import $ from 'jquery'; class ParameterSliderRow extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.b...
const _ = require('underscore'); const StrongholdCard = require('../../strongholdcard.js'); const AbilityContext = require('../../AbilityContext.js'); class KyudenIsawa extends StrongholdCard { setupCardAbilities(ability) { this.action({ title: 'Play a spell event from discard', co...
# # growler/indexer/middleware.py # from os import (path, listdir) HTML_TMPL_STR = """ <!DOCTYPE html> <html> <head>{head}</head> <body>{body}</body> </html> """ HEAD_TMPL_STR = """ <meta charset=utf8> <title>{title}</title> """ BODY_TMPL_STR = """ <h1>Index of {path}</h1> <ul>{file_list}</ul> """ PATH_NOT_FOU...
PaperWord = function(game, x, y, color){ this.color = color; this.textStyle = { fill: '#000000', font: '13px Courier' } Phaser.Sprite.call(this, game, x, y, 'paper'); }; PaperWord.prototype = Object.create(Phaser.Sprite.prototype); PaperWord.prototype.constructor = PaperWord; PaperWord.prototype.cr...
/** * Renders a search interface to given element. * Arguments via: * options{ * element : the element to render to. * url: the location of the search servlet endpoint. * query: predefined query, loads facets in advance. * } */ var renderSearchInterface = function(options){ return new SearchInterface(options); }; ...
# 015-Pass-Ellipsis-como-placeholders # deixar trechos de codigos em aberto para implementação posterior active = False if active: pass # aqui falo para passar direto, pois não tenho codigo implementado elif active: ... # Ellipsis faz a mesma coisa do pass else: print('Ola')
import os from os.path import join, relpath from glob import glob import inspect, importlib def ospath(path): return path.replace('/', os.sep) # Show all file names under the directory def browseFileNames(path='.', ext='', recursive=True, name_only=True): search_path = join(path, '**') if recursive else p...
import { __extends as t, __spreadArray as e, __awaiter as n, __generator as r } from "tslib"; import { SDK_VERSION as i, _registerComponent as o, registerVersion as s, _getProvider, getApp as a, _removeServiceInstance as u } from "@firebase/app"; import { Component as c } from "@firebase/component"; import { Logger ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const Sanitizing = require('../modules/sanitizing'); const PathRepresentable = require('../modules/path-representable'); const Access = require('../modules/access'); const { mapMongoError, } = require('../modules/error'); const { SchedulableSchema ...
# Copyright 2021 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, ...
const _ = require('struct-fu') function getPluginVersion(buffer) { let pluginVersion = -1 try { const entries = _.struct([ _.padTo(8), _.uint32le('oldVersion'), _.padTo(40), _.uint32le("version"), ]) const data = entries.unpack(buffer) pluginVersion = data.version ||...
import styled from "styled-components" export const GridWrapper = styled.div` height: 100%; display: grid; /* grid-template-columns: 1fr repeat(12, minmax(auto, 4.2rem)) 1fr; */ grid-template-rows: ${props => props.theme.nav.height} auto auto; gap: 0 2rem; background-color: ${props => props.theme.palette....
const express = require('express') const cors = require('cors') const morgan = require('morgan') const router = express.Router() const port = process.env.PORT || 3000 const app = express() const public = express.static('public') app.use(cors()) app.use(morgan('dev')) app.use('/', router) app.use(public) app.listen(p...
/** * Metro configuration for React Native * https://github.com/facebook/react-native * * @format */ const blacklist = require("metro-config/src/defaults/blacklist"); module.exports = { resolver: { blacklistRE: blacklist([ /node_modules\/.*\/node_modules\/react-native\/.*/, // Workaround for `...
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including witho...
import React from 'react' import AnchorLink from 'react-anchor-link-smooth-scroll' //import { Parallax } from 'react-scroll-parallax' import Fade from 'react-reveal/Fade' import { OutboundLink } from 'gatsby-plugin-google-analytics' import { ContainerBS } from './bootstrap_layout' //import MainIdolImage from '../imag...
module.exports = { type: "object", properties: { id: { type: "string", }, packId: { type: "string", }, }, required: ["id"] }
import Relay from 'react-relay'; class AddUserMutation extends Relay.Mutation { getMutation() { return Relay.QL` mutation { addUser } `; } getVariables() { return { name: this.props.name, address: this.props.address, email: this.props.email, age: this.props.age }; ...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /* cSpell:disable */ // Disable spell check for this file as there are a lot of config keys...
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("React"),require("ReactDOM"),require("h5PanelSdk"));else if("function"==typeof define&&define.amd)define(["React","ReactDOM","h5PanelSdk"],n);else{var e="object"==typeof exports?n(require("React"),require("ReactDOM"),require("h...
/* This module kicks in if no Botkit Studio token has been provided */ module.exports = function (controller) { const logUtil = require("../util/logUtil"); const errorUtil = require("../util/errorUtil"); //********************************* // On Bot Start / Resume //******************************...
'use strict'; const assert = require('assert'); const Count = require('../../../../src/sqlFunctions/aggregation/COUNT'); const DataType = require('../../../../src/DataType'); describe('SQL function COUNT()', () => { it('.updateSync(field) with undefined and null', () => { const count = new Count; count.init(); ...
// The MIT License // Copyright (C) 2016-Present Shota Matsuda const stateNames = { 1: 'Alabama', 2: 'Alaska', 4: 'Arizona', 5: 'Arkansas', 6: 'California', 8: 'Colorado', 9: 'Connecticut', 10: 'Delaware', 11: 'District of Columbia', 12: 'Florida', 13: 'Georgia', 15: 'Hawaii', 16: 'Idaho', ...
#!/usr/bin/python # logger.py # # Accelerometer server helper code import socketserver import socket import time from threading import Thread, Lock import sys from IPython.display import display import socket import ipywidgets as widgets import matplotlib.pyplot as plt # Configuration options HOST = None PORT = 9999...
""" SPAR Engine API Allow clients to fetch SPAR Engine Analytics through APIs. # noqa: E501 The version of the OpenAPI document: 2 Contact: analytics.api.support@factset.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.SPAREngin...
const { app, BrowserWindow ,session} = require('electron') const url = require("url"); const path = require("path"); let win function createWindow() { // Create the browser window. win = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true // devTools: false ...
import { generate } from './palette'; describe('palette', () => { describe('generate', () => { const size = 3; const actual = generate(size); test('returns a list of the proper length', () => expect(actual).toHaveLength(size)); describe('each item is a hex color', () => { actual.forEach...
var json = require('../'); var gulp = require('gulp'); it('should modify property of JSON object (by function editor)', function(done) { var stream = gulp.src('test/test.json').pipe(json(function(obj) { obj.version = '2.0.0'; return obj; })); stream.on('data', function(file) { var expected = ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { __awaiter, __extends, __generator } from "tslib"; import * as utils from "../util/utils"; import { BaseRequestPolicy } from "./requestPolicy"; import { DEFAULT_CLIENT_MAX_RETRY_INTERVAL, DEFAULT_CLIENT_RETRY_COUNT, DEFAULT_CLIENT_RETRY_...
const settings = require('./settings.js'); module.exports = { configureBabelLoader(browserList) { return { test: /\.js$/, exclude: settings.babelLoaderConfig.exclude, use: { loader: 'babel-loader', options: { cacheDirec...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsxs(React.Fragment, { children: [/*#__PURE__*/_jsx("path", { d: "M12 6c-.52 0-1 .12-1....
import { iphoneLogin,userLogout } from '../assets/js/interface'; export default{ state:{ islogin:JSON.parse(sessionStorage.getItem("islogin")) || false, userInfo:JSON.parse(sessionStorage.getItem("userInfo")) || {}, token:sessionStorage.getItem("token") }, getters:{ getIsLogi...
var searchData= [ ['delta',['delta',['../namespaceinprod__analytic.html#ac500ef2ae885d78a4f4558392a92fd0c',1,'inprod_analytic']]] ];
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.LOG_LEVEL_ALL = exports.LOG_LEVEL_DEBUG = exports.LOG_LEVEL_INFO = exports.LOG_LEVEL_WARN = exports.LOG_LEVEL_ERROR = exports.LOG_LEVEL_NONE = undefined; var _common = require('./common'); Object.defineProperty(exports, 'LOG_LEVEL...
const path = require('path'); require('dotenv').config({ path: '../../.env' }); module.exports = { development: { client: 'mysql2', connection: { host: process.env.DB_HOST, port: process.env.DB_PORT, user: process.env.DB_USER, password: process.env.DB_PASSWORD, database: process...
/* Copyright (C) 2021 Cloudnode - All Rights Reserved * Any use, distribution or modification of this code * is subject to the terms of the provided license. * * The license is available at the root (/) of the * repository. If not, please write to: * support@cloudnode.pro */ main.page.pop = function (url) { win...
/** * products store for Williams-Sonoma Coding Challenge * @param url * @return {{readProducts: (function(): Promise<boolean>), getVueProduct: (function(*): {heroHref: *, name: *, id: *}), getProduct: (function(*): *), productIds: (function(): string[])}} * @constructor */ function WSIProdStore (url) { let pro...
import React from 'react'; class ImageCard extends React.Component{ constructor(props) { super(props); this.state = { spans: 0 }; this.imageRef = React.createRef(); } componentDidMount() { this.imageRef.current.addEventListener('load', this.setSpans); } setSpans ...
import SessionForm from "./SessionForm"; import { withRouter } from "react-router-dom"; import { connect } from "react-redux"; import { login, signup, clearErrors } from "../../actions/session_actions"; const mapStateToProps = state => ({ user: state.session.currentUser, errors: state.session.errors, }); const ma...
export const range = (start, end) => { const result = []; for (let i = start; i < end; i++) { result.push(i); } return result; }; export const flatten = lists => lists.reduce((x, y) => x.concat(y), []); export const from = list => { if (!list.length) { return []; } const result = []; for (...
var assert = require ('assert'); var path = require ('path'); function ImportFilesWithImporter (importer, files, callbacks) { let settings = new OV.ImportSettings (); importer.ImportFiles (files, OV.FileSource.File, settings, { onFilesLoaded : function () { }, onImportSuccess : functio...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("...
# Generated by Django 3.0.7 on 2020-06-13 13:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('microimprocessing', '0018_remove_serverdatafilename_thumbnail'), ] operations = [ migrations.AddField( model_name='serverdatafil...
/** * Copyright IBM Corp. 2016, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ var _32 = { "elem": "svg", "attrs": { "xmlns": "http://www.w3.org/200...
import {exchange} from './exchange' const jsonContentType = 'application/json' const textPlainContentType = 'text/plain' const expectedBody = 'expected body' const execute = (method, params) => exchange({...params, method}) describe('exchange', () => { beforeEach(() => { jest.useRealTimers() }) it('shoul...
[{"Owner":"royibernthal","Date":"2016-08-30T21:41:25Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI tried to create a text centering solution.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n_lt_p_gt_\n\tI create a Group2D container for a Text2D - textFieldContainer.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tIn...
/** * 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...
import React from "react"; import Svg, { Path } from "react-native-svg"; const AngleDown = ({ color, ...props }) => ( <Svg viewBox="0 0 62 35" {...props}> <Path d="M60.7 1.6c-1.2-1.2-3.1-1.2-4.2 0L31 27 5.5 1.6C4.3.4 2.4.4 1.3 1.6.1 2.8.1 4.7 1.3 5.8l27.6 27.6c1.2 1.2 3.1 1.2 4.2 0L60.7 5.8c1.2-1.1 1.2-3 0...
import React, { Component } from 'react' import { connect } from 'react-redux' import Chart from '../components/chart' import GoogleMap from '../components/google_map' class WeatherList extends Component { renderWeather = (cityData) => { const name = cityData.city.name const temps = cityData.list.map(weather...
module.exports = function (project) { var path = require('path') var repoRoot = path.join(__dirname, '..') return function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrom...
''' Template untuk solusi Lab 07 kelas C. ''' def main(): ''' Main program. ''' # matkul = {} # Buat sebuah dictionary while True: masukan = input(">>> ") ###### # Buat agar program berhenti saat masukan adalah "selesai" ###### masukan_split = masukan.sp...
# MIT License # Copyright (c) 2020 Kevin J. Walters # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merg...
export { default } from 'ember-cli-g-maps/utils/load-google-maps';
const { environment } = require('@rails/webpacker') module.exports = environment const webpack = require('webpack') environment.plugins.append( 'Provide', new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', Popper: ['popper.js', 'default'] }) )
import React, { PropTypes } from 'react' import { Table, Button, Select, InputNumber, Card } from 'antd' import { Schedule } from '../../../components' import IconRemove from '../../../components/Icon/IconRemove' import IconRestore from '../../../components/Icon/IconRestore' import styles from './index.less' const Opt...
self.addEventListener('push', (event) => { const payload = event.data ? event.data.text() : null; if (payload) { event.waitUntil( self.registration.showNotification('Code Central Leaderboard', { // TODO: show notification }) ); } });
/*! * ${copyright} */ sap.ui.define([ "jquery.sap.global", "sap/ui/support/supportRules/ui/controllers/BaseController", "sap/ui/model/json/JSONModel", "sap/m/Panel", "sap/m/List", "sap/m/ListItemBase", "sap/m/StandardListItem", "sap/m/InputListItem", "sap/m/Button", "sap/m/Toolbar", "sap/m/ToolbarSpacer",...
import { useEffect } from 'react' import { useRouter } from 'next/router' import * as gtag from '@/lib/gtag' const Gtag = () => { const router = useRouter() useEffect(() => { const gtagRouteChange = url => { gtag.pageview(url) } router.events.on('routeChangeComplete', gtagRouteChange) return ...
var PrimeChecker = function () { this.isPrime = function (yourNumber) { var toReturn = true; for(i=0;i<yourNumber;i++) { if(yourNumber%i === 0 && i !== yourNumber && i !== 1 ) { toReturn = false; } } return(toReturn); }; }; var myPrime = new PrimeChecker(); myPrime....
from django.apps import AppConfig class OvertimeConfig(AppConfig): name = 'overtime'
const Board = () => { const grid = new Array(9).fill(null); const winCombs = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 4, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [2, 4, 6], ]; const mark = (pos, symbol) => { grid[pos] = symbol; }; const positionsBySymbol = symbol => { con...
'use strict'; const path = require('path'); const execa = require('execa'); const { sync: spawnSync } = execa; const { run, isWebpack5 } = require('../../../utils/test-utils'); describe('env object', () => { it('is able to set env for an object', () => { const { exitCode, stderr, stdout } = run(__dirname...
import React, { Component } from 'react'; const ImageComponent = ({ theme }) => class Image extends Component { renderProgress = progress => progress >= 0 // eslint-disable-line no-confusing-arrow ? <div className={theme.imageLoader} style={{ width: `${100 - progress}%` }} /> : null; render() { const ...
from setuptools import setup, find_packages setup( name='kopytka', version = '1.0', description = 'A simple CMS for Django', author = 'Curtis Maloney', author_email = 'curtis@tinbrain.net', url = 'http://github.com/funkybob/kopytka/', keywords = ['django', 'cms',], packages = find_packages(...
""" Hydro solver and grid variables Sam Geen, January 2018 """ import numpy as np from . import vhone, units class _Field(object): """ Object that allows the user to access the arrays in the underlying hydro code. This allows the user to treat fields like a normal array without messing...
import sys args = sys.argv if len(sys.argv) != 3: print() print('px2rem.py') print('Converts a file with px values (ex: 1px) to rem values (ex: 1rem) based on a specified root font size.') print('Requires two arguments, [file path] and [root font size] to convert.') print() print('Example: $pyt...
const debug = require('debug')('services:scraper') const usersScraper = require('./users') const reposScraper = require('./repos') module.exports = { /** * Scrape data from GitHub API. */ async scrape() { try { await usersScraper.scrape() await reposScraper.scrape() } catch (error) { ...
/** *------ * BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel * Colin <ecolin@boardgamearena.com> * euchrenisterius implementation: © W Michael Shirk <wmichaelshirk@gmail.com> & * George Witty <jimblefredberry@gmail.com> * * This code has been produce...
from __future__ import print_function class ListInstance: """ Mix-in class that provides a formatted print() or str() of instances via inheritance of __str__ coded here; displays instance attrs only; self is instance of lowest class; __X names avoid clashing with client's attrs """ def __attr...
""" Script for performing a fit to a histogramm of recorded time differences for the use with QNet """ import scipy.optimize as optimize import numpy import pylab import sys #import optimalbins def main(bincontent=None,binning = (0,10,21), fitrange = None): def decay(p,x): return p[0]*numpy.exp(-x/p[1]...
import string from django.core.validators import RegexValidator from django.db import models, transaction from django.utils.crypto import get_random_string from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from django_scopes import scope, scopes_disabled from i1...
// Copyright 2009 the Sputnik authors. All rights reserved. /** * If ToBoolean(x) is true, return x * * @path ch11/11.11/11.11.2/S11.11.2_A4_T1.js * @description Type(x) and Type(y) vary between primitive boolean and Boolean object */ //CHECK#1 if (((true || true)) !== true) { $ERROR('#1: (true || true) === tr...
/* * 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 * * Un...
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Asignatura: Programación de Aplicaciones Interactivas * Curso: 3º * * @author Miguel Ordoñez * @author Basilio Gómez * @since 23 de Marzo del 2020 * @desc Test de la función isSafeQueen, la cual ve...
class CodeParserComposite { constructor() { this.parsers = []; } addParser(parser) { this.parsers.push(parser); } async process() { for (const parser of this.parsers) { parser.process(); } } getBlankLineCount() { return this.parsers.map(p...
//FireBot V2 //Database Management /* global __dirname */ const Promise = require("bluebird"); //Useing the Bluebird Promise Library const Sequelize = require('sequelize'); //Cross Platform Path Stuff var path = require("path"); var jp = path.join; var cwd = __dirname; var fs = require("fs"); const conf...
"""Sensor for data from Austrian Zentralanstalt für Meteorologie.""" import logging import voluptuous as vol from homeassistant.components.weather import ( ATTR_WEATHER_HUMIDITY, ATTR_WEATHER_PRESSURE, ATTR_WEATHER_TEMPERATURE, ATTR_WEATHER_WIND_BEARING, ATTR_WEATHER_WIND_SPEED, PLATFORM_SCHEM...
import React, { Component } from "react" import { Button } from "antd" import ReadmeEditor from "app/Datastores/Readme/ReadmeEditor" import Readme from "app/Datastores/Readme/Readme" class ReadmeMirrorEditor extends Component { constructor(props) { super(props) this.handleMarkdownChange = this.handleMarkdow...
import agents as ag import envgui as gui import random # ______________________________________________________________________________ loc_A, loc_B = (1, 1), (2, 1) # The two locations for the Vacuum world def RandomVacuumAgent(): "Randomly choose one of the actions from the vacuum environment." p = ag....
"use strict"; const xrun = require("@xarc/run"); const xsh = require("xsh"); const shell = xsh.$; const exec = xsh.exec; const fs = require("fs"); const Path = require("path"); const _ = require("lodash"); const { spawn } = require("child_process"); const packagesDir = Path.join(__dirname, "packages"); const remove...
$(document).ready(function(){ var $window = $(window); /*-----------------------------------------------------------------------------------*/ /* Parallax Effect /*-----------------------------------------------------------------------------------*/ $('section[data-type="background"]').each(function(){ ...
// import Phaser from "phaser"; import GameScene from "./public/js/GameScene"; import StartScene from "./public/js/StartScene"; const config = { type: Phaser.AUTO, parent: "phaser-example", width: window.innerWidth - 10, height: window.innerHeight - 20, scene: [StartScene, GameScene], physics: { defaul...
import { extend } from '../../core/utils/extend'; import BaseStrategy from './base'; import MouseStrategy from './mouse'; import TouchStrategy from './touch'; import { isMouseEvent } from '../utils/index'; const eventMap = { 'dxpointerdown': 'touchstart mousedown', 'dxpointermove': 'touchmove mousemove', '...
# checks httpretrieves filelikeobj read returns a empty string when called after all # content is received # prints failed error msg if httpretrieve fails the test and excutes without printing # if the test pass's dy_import_module_symbols('httpretrieve.r2py') dy_import_module_symbols('registerhttpcallback.r2py') ...
from .elastictranscoder import Pipeline # Backward compatibility class ElasticTranscoderPipeline(Pipeline): _deprecated = 1535105258 _deprecated_message = 'Use custom_resources.elastictranscoder.Pipeline() instead'
// General export const SHOW_ALERT = "SHOW_ALERT"; export const HIDE_ALERT = "HIDE_ALERT"; export const SHOW_CANVAS = "SHOW_CANVAS"; export const HIDE_CANVAS = "HIDE_CANVAS"; export const SHOW_MENU = "SHOW_MENU"; export const HIDE_MENU = "HIDE_MENU"; export const SET_BLOCK_ALERT_DATA = "SET_BLOCK_ALERT_DATA"; // User...
// Cache selectors var lastId, sidenav = $(".sidenav"), // All list items menuItems = sidenav.find("a"); menuItems.on('click', function(event) { // Make sure this.hash has a value before overriding default behavior if (this.hash !== "") { // Prevent default anchor click behavior event...
# Copyright 2021 The Brax Authors. # # 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 wri...
"use strict"; const postgres = require( "postgres" ); module.exports = { name: "sql", version: "1.0.0", register: async server => { // create the sql client const sql = postgres(); // add to the request toolkit e.g. h.sql server.decorate( "toolkit", "sql", sql ); } };
const flattenColorPalette = require('../../lib/util/flattenColorPalette').default const withAlphaVariable = require('../../lib/util/withAlphaVariable').default const { asColor, nameClass } = require('../pluginUtils') module.exports = function ({ matchUtilities, theme }) { let colorPalette = flattenColorPalette(theme...
export default function trimEmptyImports ( modules ) { let i = modules.length; while ( i-- ) { const module = modules[i]; if ( Object.keys( module.declarations ).length > 0 ) { return modules.slice( 0, i + 1 ); } } return []; }
var featureSet = [{min: 4.6, max: 15.9, step: 0.0001, name: 'alchohol' , friendlyName: 'fixed acidity', unit: 'ml', initialValue: 7.4 }, {min: 0.12, max: 1.58, step: 0.0001, name: 'alchohol' , ...
from matplotlib import pyplot as plt from matplotlib.patches import Circle import matplotlib.lines as lines from math import sin from math import cos from math import radians #--- FUNCTIONS ----------------------------------------------------------------+ def plot_organism(x1, y1, theta, ax): circle = Circle([x...
/** * Component - Migration Component * * @file Migration.js * @author mudio(job.mudio@gmail.com) */ import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {ClientFactory} from '../../../api/client'; import Copy from './Copy'; import Rename from './Rename'; import { MENU_COPY_COMM...
const Gio = imports.gi.Gio; const UDisksDriveProxy = Gio.DBusProxy.makeProxyWrapper( '<node> \ <interface name="org.freedesktop.UDisks2.Drive"> \ <property type="s" name="Model" access="read"/> \ </interface> \ </node>'); const UDisksDriveAtaProxy = Gio.DBusProxy.makeProxyWrapper( '<node> \ <inter...