text
stringlengths
3
1.05M
"""Support for Xiaomi Mi Air Quality Monitor (PM2.5).""" from dataclasses import dataclass import logging from miio import AirQualityMonitor, DeviceException from miio.gateway import ( GATEWAY_MODEL_AC_V1, GATEWAY_MODEL_AC_V2, GATEWAY_MODEL_AC_V3, GATEWAY_MODEL_EU, GatewayException, ) import volupt...
const { html } = require('../utils') const Layout = require('../components/Layout.js') const Content = require('../components/Content.js') const FederallyRegulated = () => html` <${Layout}> <${Content}> <h1>Do federal holidays apply to me?</h1> <p> Probably not, but it depends on...
var classcn_1_1topsens_1_1_orientation = [ [ "fromInt", "classcn_1_1topsens_1_1_orientation.html#aaf8f8e70a0c7f4316caebcb69afaa78e", null ], [ "toString", "classcn_1_1topsens_1_1_orientation.html#ad146fa8579a5f8a876c4688cc5a68520", null ], [ "Aerial", "classcn_1_1topsens_1_1_orientation.html#a3f55c3b44b0473...
# 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...
var media = document.querySelectorAll('video, audio'); var rate = prompt('Speed? Currently playing back at ' + media[0].playbackRate + 'x.',''); Array.prototype.forEach.call(media, function(player) { if (rate == null) { return; } else if (rate != 0) { player.playbackRate = rate; } else { play...
''' This tests the BoxEd class. ''' from boxed.boxed import BoxEd class TestBoxEd: def test_dummy(self): with BoxEd() as boxed: pass
function rechazarUsuario(id) { $('#codigo_rechazar').val(id); $('#frm_rechazar').submit(); } function aceptarUsuario(id) { $('#codigo_aceptar').val(id); $('#frm_aceptar').submit(); } function eliminarNotificacion(id) { $('#codigo_eliminar').val(id); $('#frm_eliminar').submit(); } function l...
import { Template } from 'meteor/templating'; import { ReactiveVar } from 'meteor/reactive-var'; Router.configure({ layoutTemplate: 'ApplicationLayout' }); Router.route('/', function () { this.render('navbar', { to:"navbar" }); this.render('welcome', { to:"main" }); }); Router.route('/em', function...
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ function BxDolStudioLanguage(oOptions) { this.sActionsUrl = oOptions.sActionUrl; this.sObjName = oOptions.sObjName == undefined ? 'oBxDolStudioLanguage' : o...
/* eslint-disable jsx-a11y/iframe-has-title */ /* eslint-disable css-modules/no-unused-class */ /* eslint-disable jsx-a11y/alt-text */ import React from 'react'; // import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Paper from 'material-ui/Paper'; import Avatar f...
// SPDX-License-Identifier: MIT // Copyright (C) 2018-present iced project and contributors const { Code, CodeSize, ConditionCode, CpuidFeature, Decoder, DecoderOptions, EncodingKind, FlowControl, getIcedFeatures, Instruction, MemoryOperand, MemorySize, Mnemonic, OpKind, Register, RepPrefixKind, RflagsBits, Roundin...
// Generated on 2013-12-19 using generator-angular 0.6.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks ...
from torch import nn class LogisticRegression(nn.Module): def __init__(self, in_dim, hid_dim, out_dim, dropout=0): super().__init__() print(f'Logistic Regression classifier of dim ({in_dim} {hid_dim} {out_dim})') self.nn = nn.Sequential( nn.Dropout(p=dropout), nn.L...
import functools import imp import logging import os import time import types logger = logging.getLogger(__name__) class KnowledgeRepositoryConfig(dict): def __init__(self, repo, *args, **kwargs): self._repo = repo super(KnowledgeRepositoryConfig, self).__init__(*args, **kwargs) self.DEF...
import axios from 'axios' export const userSelectData = (query = {}) => axios(`sels/users`, { params: query })
# 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...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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, merge...
const fs = require("fs"); const { logger } = require("../../logger"); const exampleMutations = { async uploadFile(obj, { image }, { ctx }, info) { const { filename, mimetype, createReadStream } = await image; const stream = createReadStream(); logger.debug("Got upload", { filename, mimetype }); cons...
$(function () { 'use strict'; var $image = $(window.createCropperImage()); $image.cropper({ built: function () { QUnit.test('methods.scaleX', function (assert) { var imageData = $image.cropper('scaleX', -1).cropper('getImageData'); assert.equal(imageData.scaleX, -1); }); ...
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-25 03:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rest', '0003_auto_20170325_0114'), ] operations = [ migrations.CreateModel(...
module.exports = { extends: ["kentcdodds", "kentcdodds/jest"], parserOptions: { project: ["./tsconfig.eslint.json"], }, rules: { /* * @typescript-eslint/eslint-plugin */ "@typescript-eslint/no-dynamic-delete": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-loop-func": "o...
(function () { 'use strict'; angular.module('app.components.peopleGrid', [ 'app.core', 'blocks.logger' ]); })();
#!/usr/bin/env node // @flow import cheerio from 'cheerio'; import debug from 'debug'; import urlapi from 'url'; const getImageListLog = debug('getImageList'); const BASE_URL = 'http://gyrotown.ru'; /** * Get list of images from html data. * @param {string} html Input html data * @returns {Array} Return array of ...
const debug = require('debug')('feathers-seeder'); import faker from 'faker'; export default class Compiler { compile(template) { debug('About to compile template: ', template); let result = {}; Object.keys(template).forEach(key => { let value = template[key]; result[key] = this._populate(ke...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var fs_1 = require("fs"); var moment_1 = __importDefault(require("moment")); var path_1 = require("path"...
/** * SPEC_6 * * @author Cherchour Liece * * Edit: Cheng JIANG */ const cli = require('caporal'); const chalk = require('chalk'); const ora = require('ora'); const fs = require('fs'); const path = require('path'); const FileWalker = require('../lib/FileWalker'); const EmailParser = require('../lib/EmailParser'); ...
from .models import FunnyComment from django import forms class FunnyCommentFrom(forms.ModelForm): class Meta: model = FunnyComment fields = ('name', 'email', 'body')
from pytest import approx import pytest import numpy as np from numpy.testing import assert_allclose from astropy import units as u from astropy import time from astropy.tests.helper import assert_quantity_allclose from poliastro.twobody.rv import rv2coe from poliastro.constants import J2000 from poliastro.bodies im...
'use strict'; // Will generate a arr where each element is separated by + console.log('Part 3'); console.log(' '); const arr = []; //strange+string+now'.split('+')); // The element '+' is used to create each new arr element another arr const x = 'Marcos Leme'.split(' '); console.log(x); //console.log(typeof arr);...
function startTime() { var today = new Date(); var h = today.getHours(); var m = today.getMinutes(); var s = today.getSeconds(); m = checkTime(m); s = checkTime(s); var words = "" if(h < 12){ words = "Good morning!"; } else if(h < 16){ words = "Good af...
(function(e){function t(t){for(var r,a,u=t[0],s=t[1],i=t[2],l=0,f=[];l<u.length;l++)a=u[l],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&f.push(o[a][0]),o[a]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,i||[]),n()}function n(){for(var e,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /*! * Copyright (C) 2019-2020 Silas B. Domingos * This source code is licensed under the MIT License as described in the file LICENSE. */ var types_1 = require("../../types"); Object.defineProperty(exports, "Brand", { enumerable: true, get:...
const bankModel = require('../bank/BankModel'); class Transaction extends Model { static get tableName() { return 'POC04_TRANSACTION'; } static get idColumn() { return 'transactionId' } static get relationMappings() { return { bank: { relation: ...
def problem1_7(): base1 = input('Enter the length of one of the bases: ') base2 = input('Enter the length of the other base: ') height = input('Enter the height: ') print('The area of a trapezoid with bases {} and {} and height {} is {}'.format(float(base1), float(base2), float(height),0.5*(float(base1)...
# dataset settings dataset_type = 'ADE20KDataset' data_root = '/home/bolin/data/ADEChallengeData2016' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) crop_size = (512, 512) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', reduce_z...
import Koa from 'koa'; import { nanoid } from 'nanoid'; import fetch from 'node-fetch'; import Log from './Log.js'; class ForwardAuth { /** @param {Log} log */ constructor(config, log) { /** @type {Object} */ this.config = config; this.log = log; } async handleAuthCheck(ctx, next) { if(ctx.session.user &...
/* jshint -W101 */ /* jshint -W117 */ var SDPUtil = require("./SDPUtil"); // SDP STUFF function SDP(sdp) { /** * Whether or not to remove TCP ice candidates when translating from/to jingle. * @type {boolean} */ this.removeTcpCandidates = false; /** * Whether or not to remove UDP ice ca...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
macDetailCallback("002cc8000000/24",[{"d":"2016-11-24","t":"add","a":"80 West Tasman Drive San Jose CA US 94568","c":"US","o":"Cisco Systems, Inc"}]);
#! /usr/bin/env python from numpy.testing import TestCase, assert_equal, assert_almost_equal from aubio import fvec, digital_filter from utils import array_from_text_file class aubio_filter_test_case(TestCase): def test_members(self): f = digital_filter() assert_equal (f.order, 7) f = dig...
const data = { name: "mg", likelySubtags: { mg: "mg-Latn-MG" }, identity: { language: "mg" }, territory: "MG", numbers: { symbols: { decimal: ".", group: ",", list: ";", percentSign: "%", plusSign: "+", ...
import './exportSelectedStudies.js'; import './exportStudies.js'; import './getSelectedStudies.js'; import './importStudies.js'; import './queryStudies.js'; import './studylist.js'; import './viewSeriesDetails.js'; import './viewStudies.js';
######################################################################## # # Copyright 2014 Johns Hopkins University # # 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...
# -*- coding: utf-8 -*- """ Exception Widgets ================= Provides all definitions required for handling exceptions in *GuiPy*. """ # %% IMPORTS # Built-in imports from traceback import format_exception_only, format_tb # Package imports from qtpy import QtCore as QC, QtWidgets as QW # GuiPy imports from gui...
define(['jquery', 'jquery.tooltipster'], function ($, tooltipster) { var forbiddenFields = []; //['referencedby', 'titlesafe', 'references']; return { latexToHtml: function (latex) { if (!latex) { return ''; } l...
const fs = require("fs"); const path = require("path"); const filePath = path.join(__dirname, "text.txt") let readStream = fs.createReadStream(filePath, "utf-8"); readStream.on('readable', () => { let data = readStream.read(); if (null !== data) { console.log(data); } });
window.peopleAlsoBoughtJSON = [{"cover":"51MJjvHSqtL","asin":"B002UZN6WM","title":"Third Degree","authors":"Greg Iles","narrators":"David Colacci","length":"12 hrs and 44 mins"},{"cover":"61NTy6HQyRL","asin":"B002VA8GSK","title":"24 Hours","authors":"Greg Iles","narrators":"Dick Hill","length":"10 hrs and 42 mins"},{"c...
module.exports = { store (req,res){ const {username} = req.body; return res.json({ok:true}); } };
# Generated by Django 3.1.6 on 2021-02-10 18:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('stock', '0001_initial'), ] operations = [ migrations.AlterField( model_name='mystockhistorical'...
import handler from "./libs/handler-lib"; import dynamoDb from "./libs/dynamodb-lib"; export const main = handler( async (event, context) => { const params = { TableName: process.env.TableName, Key: { userId: event.requestContext.identity.cognitoIdentityId, noteId: event.pathParameters.id } ...
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
VERSION = (0, 2, 0) __version__ = '.'.join([str(v) for v in VERSION]) default_app_config = 'knowledge.apps.KnowledgeConfig'
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _vue = require("vue"); var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); ...
// Scripts for the background html (function () { let quotes = [ { quote: "I'm not lazy, I'm just in energy saving mode.", author: "Furry Potter" }, { quote: "Where is that Human? My bowl is empty!", author: "Felis A. Catus" }, { quote: "You want me to purr? I charge extra for that.", author: "Grumpy C. Kat" }...
"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 (b.hasOwnPrope...
import sys from .constants import Constants from .game_map import GameMap from .game_objects import Player, Unit, City, CityTile INPUT_CONSTANTS = Constants.INPUT_CONSTANTS class Game: def __init__(self, messages): self.id = int(messages[0]) self.turn = -1 map_info = messages[1].split(" ...
/** * The MIT License (MIT) * * Copyright (c) 2018 Mickael Jeanroy * * 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 ...
import memoize from './memoize' export const supportsCSSGrid = memoize(() => { if (isNodeEnv() || isTestEnv()) { return true } const elm = document.createElement('div') return elm.style['grid-template-rows'] !== undefined }) export const isNodeEnv = () => typeof window === 'undefined' export const isTe...
"""Define various geo utility functions.""" from math import asin, cos, radians, sin, sqrt AVG_EARTH_RADIUS_METRIC: int = 6371 AVG_EARTH_RADIUS_IMPERIAL: float = 3958.8 def haversine( lat1: float, lon1: float, lat2: float, lon2: float, *, unit: str = "metric" ) -> float: """Determine the distance between two...
var renderer = new THREE.WebGLRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); document.body.appendChild(renderer.domElement); var camera = new THREE.PerspectiveCamera(45, window.innerWidth/window.innerHeight,1,500); camera.position.set(0,0,100); camera.lookAt(0,0,0); var scene = new THREE.Scene();...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
'use strict'; const [, , /* node */ /* file */ tag] = process.argv; const getStdin = require('get-stdin'); const Octokit = require('@octokit/rest'); const octokit = new Octokit({ auth: `token ${process.env.GITHUB_TOKEN}`, }); const [repoOwner, repoName] = process.env.GITHUB_REPOSITORY.split('/'); getStdin() .th...
import { makeStyles } from '@material-ui/core' import * as R from 'ramda' import React, { memo, useState } from 'react' import { Table as EditableTable } from 'src/components/editableTable' import { Select } from 'src/components/inputs' import { overridesDefaults, getCommissions, getListCommissionsSchema, comm...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
from detectron2.engine.hooks import HookBase from detectron2.evaluation import inference_context from detectron2.utils.logger import log_every_n_seconds from detectron2.data import DatasetMapper, build_detection_test_loader import detectron2.utils.comm as comm import numpy as np import torch import time import datetime...
import React from 'react' import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers from './reducers' import AppNavigator from './components/navigation/AppNavigator' const store = createStore(reducers) export default function App() { return ( <Provider store={store}> <AppN...
import { ethers } from 'ethers' import { DEFAULT_TOKEN_PRECISION, SECONDS_PER_BLOCK } from '../constants' import { normalizeTo18Decimals } from 'lib/utils/normalizeTo18Decimals' import { displayAmountInEther } from 'lib/utils/displayAmountInEther' const bn = ethers.BigNumber.from // totalSupply = ticketSupply + ...
#!/usr/bin/python3 class Explorer: def search(self): print('Searching...') class DeepExplorer(Explorer): def search(self): print('Go deep') super().search() dexp = DeepExplorer() dexp.search()
import json import os import tempfile import unittest import shutil import sys from unittest.mock import patch from ray import tune from ray.tune.cloud import TrialCheckpoint class TrialCheckpointApiTest(unittest.TestCase): def setUp(self) -> None: self.local_dir = tempfile.mkdtemp() self.cloud_...
from sdg.open_sdg import open_sdg_build from inputs import get_inputs from inputs import alter_meta open_sdg_build(config='config_data.yml', inputs=get_inputs(), alter_meta=alter_meta)
// @flow import { registerPlugin } from 'react-plugin'; import { createFixtureAction } from '../FixtureHeader/createFixtureAction'; import { ResponsivePreview } from './ResponsivePreview'; import { ToggleButton } from './ToggleButton'; import { DEFAULT_DEVICES } from './shared'; import type { CoreConfig } from '../Co...
'use strict'; let build = require('@microsoft/web-library-build'); let gulp = require('gulp'); // Short aliases for subtasks. build.task('webpack', build.webpack); build.task('sass', build.sass); build.task('karma', build.karma); build.task('ts', build.typescript); build.task('tslist', build.tslint); // initialize t...
'use strict'; class EcsyModifierTransform { transform(ast) { const b = this.syntax.builders; // in order to debug in https://astexplorer.net/#/gist/85496faa66b4eea93ac890558477b954/c982a29ac733abe24d174815f3d41f925e93866e // **** copy from here **** function getValidAttr(k, v) { let value; ...
/*! * StackStudio 2.0.0-rc.1 <http://stackstudio.transcendcomputing.com> * (c) 2012 Transcend Computing <http://www.transcendcomputing.com/> * Available under ASL2 license <http://www.apache.org/licenses/LICENSE-2.0.html> */ /*jshint smarttabs:true */ /*global define:true console:true */ define([ 'j...
// Copyright 2014 CloudFounders NV // // 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...
module.exports = { name: 'br', // aliases: [], category: 'pbptool', description: 'cbr-description', guildOnly: false, args: false, usage: '', async run(args, ctx) { await ctx.send('``` ```'); try { await ctx.delete(); } catch (err) { console.error(err); } }, };
# 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...
/*! * Ext JS Library 3.1.1 * Copyright(c) 2006-2010 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.Element */ Ext.apply(Ext.Element.prototype, function() { var GETDOM = Ext.getDom, GET = Ext.get, DH = Ext.DomHelper; return { /** * Inserts (or creates) the pa...
module.exports = (function() { var __MODS__ = {}; var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; }; var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) ...
/** * Copyright 2018 Google Inc. 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 applic...
import { createStyles, makeStyles } from '@material-ui/core'; export const useStyles = makeStyles(() => createStyles({ inputBox: { margin: '0px 5px', }, paperStyles: { display: 'flex', height: '45vh', flexDirection: 'column', alignItems: 'center', width: '45vw', ...
# Copyright 2019 The Feast 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
/* eslint-disable no-unused-vars */ import _has from 'lodash/has'; import _isNil from 'lodash/isNil'; import GameController from '../game/GameController'; import RadarTargetCollection from './RadarTargetCollection'; import EventBus from '../lib/EventBus'; import { EVENT } from '../constants/eventNames'; import { GAME_O...
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal"...
/* 录音 https://github.com/xiangyuecn/Recorder src: engine/mp3.js,engine/mp3-engine.js */ !function(){"use strict";var i;Recorder.prototype.enc_mp3={stable:!0,testmsg:"采样率范围48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000"},Recorder.prototype.mp3=function(a,s,e){var t=this,n=t.set,r=a.length,i=t.mp3_start(n);...
window.peopleAlsoBoughtJSON = [{"asin":"B00354ZSS2","authors":"Neil Gaiman","cover":"41yNdwUu5PL","length":"13 hrs and 48 mins","narrators":"Neil Gaiman","title":"Neverwhere"},{"asin":"B002V8N6IC","authors":"Neil Gaiman","cover":"51TN0lCXIuL","length":"10 hrs and 47 mins","narrators":"Neil Gaiman","title":"Fragile Thin...
/* Copyright (c) 2017 Jean-Marc VIGLINO, released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ /** * Search on DFCI grid. * * @constructor * @extends {ol.control.Search} * @fires select * @param {Object=} Control options. * @param {string} o...
$(document).ready(function() { // 1. Back to top if ($('#toTop').length) { $('#toTop').on('click', function(e) { event.preventDefault(); $('html, body').animate({ scrollTop: 0 }, 1000, function () { // Callback after animation ...
const {sequelize} = require('../../core/db') const {Sequelize,Model,Op} = require('sequelize') const {Favor} = require('./favor') class Hotbook extends Model{ static async getHotBooklist(list){ // 获取所有的art_id let ids = [] list.forEach((book)=>{ ids.push(book.id) }) const favors= await Favo...
const fetch = require('node-fetch') const DB = require('./models/index') ; (async() => { // let res = await fetch(`https://www.qollie.com/graphql`, { // headers: { // 'Content-Type': 'application/json' // }, // body: JSON.stringify({ // query: "\n\nfragment commonFields on Comment {\n _id\n status\n c...
/// <reference types="jest"/> const { scaffold } = require("../../generator/generate") const escapeStringRegexp = require("escape-string-regexp") const toRegex = (snippet) => new RegExp(`\\s+${escapeStringRegexp(snippet)}\\s+`) const findFile = (output, name) => output.find((o) => o.length && o.length > 1 && o[0]...
'use strict'; const child_process = require('child_process'); const fs = require('fs-extra'); const path = require('path'); const module_path = path.resolve(__dirname, '..'); function _compile_ts() { console.log('Compiling typescript...'); let result; // Compile ts result = child_process.spawnSync('...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
# -*- coding: utf-8 -*- """ Created on Tue Nov 23 2017 @author: fernando.teixeira """ import pandas as pd import requests from pyguana import leitor ''' A classe `Iguana` é responsável por autorizar (ou não) o acesso do usuário à API de notícias Iguana. Para acessar qualquer função pertencente a esta class...
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (comunidaddo/config/settings/base.py - 3 = comunidaddo/) APPS_DIR = ROOT_DIR.path('comunidaddo') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_E...
'use strict'; const animation = require('./animation-13cbbb20.js'); const index = require('./index-222357e4.js'); require('./helpers-d381ec4d.js'); require('./index-a0a08b2a.js'); const DURATION = 540; const getClonedElement = (tagName) => { return document.querySelector(`${tagName}.ion-cloned-element`); }; const s...
/** * Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed. */ var RefCountDisposable = Rx.RefCountDisposable = (function () { function InnerDisposable(disposable) { this.disposable = dispos...
# Copyright 2017--2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fi...
const TOOLBAR_ID_PREFIX = { SIDE: 'side_toolbar_', STATIC_TEXT: 'static_text_toolbar_', INLINE_TEXT: 'inline_text_toolbar_', FOOTER: 'footer_toolbar_', MOBILE: 'mobile_toolbar_', }; export const getStaticTextToolbarId = refId => TOOLBAR_ID_PREFIX.STATIC_TEXT + refId;
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...