text
stringlengths
3
1.05M
require("./../lib/index").extendNative(); var test_string = "this is a simple test string to test toolkit"; console.log("'%s'", test_string); console.log("- has %d words", test_string.words().length); var word = test_string.words()[4]; console.log("- the 5th word is '%s'", word); console.log("- which appears %d tim...
"use strict"; const namespace = require("can-namespace"); const mixinLifecycleMethods = require("./mixin-lifecycle-methods"); const mixinProps = require("./mixin-props"); const mixinStacheView = require("./mixin-stache-view"); const mixinViewModelSymbol = require("./mixin-viewmodel-symbol"); const mixinBindings = requ...
# Generated by Django 3.0.7 on 2020-11-08 15:31 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import uuid class Migration(migrations.Migration): initi...
import time start_time = time.time() import numpy as np import pandas as pd from sklearn.ensemble import RandomForestRegressor #from sklearn import pipeline, model_selection from sklearn import pipeline, grid_search #from sklearn.feature_extraction import DictVectorizer from sklearn.base import BaseEstimator, Transfor...
require('dotenv').config(); const config = { dev: process.env.NODE_ENV !== 'production', port: process.env.PORT || 3000, }; module.exports = { config };
exports.main = function({test}) { console.log("test: ", test()) return 0 }
'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') function resolve(dir) { return path.join(__dirname, '..', dir) } module.exports = { context: path.resolve(__dirname, '../'), entry: { app: './sr...
import React from 'react'; import { graphql, Link } from 'gatsby'; import Layout from '../components/layout'; export const query = graphql` query ($slug: String!) { markdownRemark ( fields: { slug: { eq: $slug } }) { frontmatter { title date } html } } ` const Blog...
import Vue from 'vue'; import Exceptions from '../models/Exceptions'; import pkg from '../../package'; /** * @module Utils */ /* Environment */ /** * Determines whether the debug mode is on * * @returns {Boolean} */ function isDebug() { return Vue.prototype.$vgmOptions && Vue.prototype.$vgmOptions.debug; } ...
import React from 'react'; import { mount } from 'enzyme'; import AppSwitcher from './AppSwitcher.component'; describe('AppSwitcher', () => { it('should render the products', () => { const brand = { id: 'brand', label: 'My App', onClick: jest.fn(), items: [ { icon: 'talend-tdp-colored', ke...
"use strict"; var _babelHelpers = require("./utils/babelHelpers.js"); exports.__esModule = true; var _react = _babelHelpers.interopRequireDefault(require("react")); var _Icon = require("./Icon"); var _fragments = require("./fragments"); var TwoToneHowToVote = /*#__PURE__*/ function TwoToneHowToVote(props) { ret...
""" Django settings for translator project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b2725"],{"23c1":function(e,n,o){"use strict";o.r(n),o.d(n,"conf",function(){return t}),o.d(n,"language",function(){return r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_i...
// Busquedas Component class Busquedas extends React.Component { constructor(props) { super(props); this.state = { query: '', palabrasQueryArreglada: [], resultados: [], idBarriosCiudades: [], // Datos de configuracion del componente itemsPerPage: 10, page: 0, ...
# Copyright (c) 2020 PaddlePaddle 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 ap...
import socket import unittest from boring.http import HTTPParser, Request from boring.wsgi import WsgiApp class FakeSocket(socket.socket): def recv(self, size): request = b'''POST /user/login/ HTTP/1.1 Content-length: 12 Host: boring.com User-Agent: chrome Accept-Encoding: gzip this is body'''.replace(b...
"""Sparse rational function fields. """ from __future__ import print_function, division from typing import Any, Dict from operator import add, mul, lt, le, gt, ge from sympy.core.compatibility import is_sequence, reduce from sympy.core.expr import Expr from sympy.core.mod import Mod from sympy.core.numbers import E...
/* eslint-disable */ /*! * Detectizr v2.2.0 * http://barisaydinoglu.github.com/Detectizr/ * * Written by Baris Aydinoglu (http://baris.aydinoglu.info) - Copyright 2012 * Released under the MIT license * * Date: 2015-09-28T21:37Z */ export default (function (window, navigator, document, undefined) { let Detect...
macDetailCallback("24e9b3000000/24",[{"d":"2013-09-29","t":"add","a":"170 West Tasman Drive\nSJCM/2\nSan Jose CA 95134\n","c":"UNITED STATES","o":"Cisco"},{"d":"2015-08-27","t":"change","a":"170 West Tasman Drive\nSan Jose CA 95134\n\n","c":"US","o":"Cisco"},{"d":"2015-09-01","t":"change","a":"170 West Tasman Drive S...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Value from '../Value'; import Message from '../Message'; import Icon from '../Icon'; import { preventDefault, types, typesMap } from '../../utils.js'; import './index.scss'; import Tooltip from '../Tooltip'; class Repeated extends ...
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
var expect = require('expect'); var eventType = require('../../src/interpreter/constants').eventType; var NoteParser = require('../../src/interpreter/parsers/NoteParser'); var RestParser = require('../../src/interpreter/parsers/RestParser'); var macroType = require('../../src/interpreter/constants').macroType; var Stat...
/** * 头部组件 */ var Header = Global.component.Header; /** * 底部组件 */ var Footer = Global.component.Footer; /** * 面包屑组件 */ var Breadcrumb = Global.component.Breadcrumb; /** * 表格组件 */ var Table = Global.component.Table; /** * 左菜单组件 */ var AccountLeft = Global.component.AccountLeft; /** * 标签页组件 */ var Tab = Globa...
const mongoose = require('mongoose'); require('dotenv').config(); mongoose.connect(process.env.MONGODB_URI); const { Schema } = mongoose; const bookSchema = new Schema({ title: String, description: String, status: Boolean, email: String, }); const Book = mongoose.model('Book', bookSchema); module.e...
import React, {useState} from 'react'; import PropTypes from 'prop-types'; import qs from 'qs'; import useRibbonState from '../hooks/useRibbonState'; import useTableState from '../hooks/useTableState'; import {DataRibbon} from '../components/ribbon'; import { PhenotypeAnnotationDetailTable, PhenotypeAnnotationS...
import { shallowMount } from '@vue/test-utils'; import CollapsibleProjectStorageDetail from 'ee/usage_quotas/storage/components/collapsible_project_storage_detail.vue'; import ProjectStorageDetail from 'ee/usage_quotas/storage/components/project_storage_detail.vue'; import { numberToHumanSize } from '~/lib/utils/number...
import { __extends } from "tslib"; import { DeregisterStreamConsumerInput } from "../models/models_0"; import { deserializeAws_json1_1DeregisterStreamConsumerCommand, serializeAws_json1_1DeregisterStreamConsumerCommand, } from "../protocols/Aws_json1_1"; import { getSerdePlugin } from "@aws-sdk/middleware-serde"; impor...
'use strict'; // Game authorization helpers var hasAuthorization = function(req, res, next) { if (!req.user.isAdmin && !req.game.user._id.equals(req.user._id)) { return res.status(401).send('User is not authorized'); } next(); }; var hasPermissions = function(req, res, next) { req.body.permissions = re...
import pytest from unittest import TestCase from pyflamegpu import * class AgentVectorTest(TestCase): def test_constructor(self): POP_SIZE = 10; # Test correctness of AgentVector constructors, size(), array operator model = pyflamegpu.ModelDescription("model"); agent = model.newAg...
"use strict"; const Slack = require('slack-node'); const waigo = global.waigo, _ = waigo._, logger = waigo.load('support/logger').create('SlackNotifier'), Q = waigo.load('support/promise'); module.exports = function*(App, id, config) { let _logger = logger.create(id); let slack = new Slack(); slack.s...
const discord = require('discord.js'); const superagent = require('superagent') exports.run = (client, msg, args) => { if (msg.channel.nsfw === true) { superagent.get('https://nekobot.xyz/api/image') .query({ type: 'anal'}) .end((err, response) => { msg.channel.send({ file: response.body.message })...
""" Leetcode 438. Find All Anagrams in a String The idea is exactly the same as Leetcode 567. Permutation in String as anagram just another name for permutation. Just keep adding the window start indices to the results, when the number of matches equals the length of lookup """ from collections import defaultdict...
/* RequireJs Legacy*/ requirejs.config({ paths : { "bootcards" : webjars.path("bootcards", "js/bootcards"), "bootcards-css" : webjars.path("bootcards", "css/bootcards-desktop"), "bootcards-css-android" : webjars.path("bootcards", "css/bootcards-andriod"), "bootcards-css-ios" : webjars.path("bootcar...
"use strict"; var _utils = _interopRequireWildcard(require("./utils")); var _es = require("./es2015"); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"8M//":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("UvM7"),a=n("NXk7"),o=n("3SGO"),i=n("KyLG"),s=n("GQ3c"),l=n("rd46"),c=n("Obii"),u=n("50r9"),p=n("jL/7"),f=n("HH2e");function d(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return...
"use strict"; import _extends from "@babel/runtime/helpers/esm/extends"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import { ImageOverlay as LeafletImageOverlay, latLngBounds } from 'leaflet'; import { withLeaflet } from './context'; import MapLayer from './MapLayer'; var ImageOverlay = /*...
tinyMCE.init({ // General options selector : "textarea", theme : "modern", plugins : [ "advlist autolink lists link image charmap print preview hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars code fullscreen", "insertdatetime media nonbreaking save table c...
"use strict";!function(){function e(){return $.getJSON("davemail.json",function(){console.log("davemail.json loaded confirmation one")}).done(function(){console.log("davemail.json loaded confirmation two")}).fail(function(e,a,n){var o=a+", "+n;console.log("davemail.json failed to load: "+o),s()})}function a(e){$.getJSO...
var ccg_diabetes_prevalence_map = function ccg_diabetes_prevalence_map(div_map, div_sidebar) { var chart_svg; var map = L.map(div_map).setView([53.0, -1.5], 6); var color = function getColor(d) { return d > 9 ? '#0C2C84' : d > 7 ? '#225EA8' : d > 5 ? '#1D91C0' : ...
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...table import Table class TestWriteTableColumn(unittest.TestCase): """ Test ...
/** * Created by bin.zhang on 14-9-16. */ var busSite = null; var busSiteList = [] function searchBusLine(){ $.mobile.changePage("busLineResult.html"); var busline = new BMap.BusLineSearch(city); busline.setGetBusLineCompleteCallback(function(results){ if(results != null){ for(var...
(function(){ /** * 强制弹窗 * @param {*跳转的目标} url */ function forceWindow(url){ var _hascsp = 0; var poptype = 1; function updatecs() {}; (function() { var browserType = navigator.userAgent; var openPage = {}; openPage.ver = { ie: /MSIE/.test(browserType), ie6: !/MSIE 7\.0/.test(browserTy...
/* * 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 ...
'use strict';"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "functi...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.9.0 */ (function () { "use strict"; /** * @ngdoc module * @name material.components.gridList */ angular.module('material.components.gridList', ['material.core']) .directive('mdGridList', GridListDirective) .dir...
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/quotes/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib 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 a...
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; type Props = { size?: string | 'small' | 'medium' | 'large', color?: string, rtl?: boolean, title?: string }; /* eslint-disable prettier/prettier */ export default function IconExplore(props: Props) { const iconProps = { rtl: fal...
''' show_l2vpn.py IOSXE parsers for the following show commands: * show bridge-domain * show bridge-domain <BD_ID> * show bridge-domain | count <WORD> * show ethernet service instance detail * show ethernet service instance interface <interface> detail * show l2vpn vfi * show l2vpn service...
/* Unobtrusive JavaScript https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts Released under the MIT license */ (function() { var context = this; (function() { (function() { this.Rails = { linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disable...
import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; import i18n from "./i18n"; import { I18nextProvider } from "react-i18next"; ReactDOM.render( <I18nextProvider i18n={i18n}> <App /> </I18nextProvider>, docum...
$(document).ready(function(){ // var list = $(".list"); var p = $("<p></p>"); var timer; $.getJSON(check_addr,{arg:'init'},function(data) { if(data === 'no task') { alert("you haven't create task."); return; } el...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from models.particular_cifar10 import dense_3_layers from models.particular_cifar10 import MODEL_FILE from models.trainer import Params, train from cifar10.batcher import CIFAR10Batcher import tensorflow as tf ...
/* Copyright 2014 Mozilla Foundation * * 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...
import time """ Method to create backup log in .stackby file """ def backup(source, destination, filename): try: fh = open(source+'/.stackby','a+') fh.write(str(time.time())+" "+source+" "+destination+" "+filename+"\n") fh.close() except IOError: print("IO Error : Unable to write to backup file") ...
from __future__ import print_function, division from six import iteritems import h5py import numpy as np import scipy.stats as stats from bipymc.util import var_ball class McmcChain(object): """! @brief A simple mcmc chain with some helper functions. """ def __init__(self, theta_0, varepsilon=1e-6, gl...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Portfolio Schema */ var PortfolioSchema = new Schema({ name: { type: String, default: '', required: 'Please fill work name', trim: true }, created: { type: Date, default:...
import pytest from src.db import get_session from src.config import get_config def test_dummy(): assert 1 != 2 def test_get_session(): session = get_session() assert session != None def test_get_config(): # fetch valid config neo4j_username = get_config('neo4j', 'username') assert neo4j_us...
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 23.1.3.8 description: > Map.prototype.keys.name value and descriptor. info: | Map.prototype.keys () 17 ECMAScript Standard Built-in Objects includes: [propertyHe...
import { useEffect, useState, useRef } from 'react' export const useNearScreen = () => { const element = useRef(null) const [show, setShow] = useState(false) useEffect(() => { const loadPollyFill = async () => { try { await import('intersection-observer') } catch (error) { console....
var index = 0, tests = []; {var a = ++index;} {var a$0 = ++index;var a1 = ({a1: a$0}).a1;(function(expect){ tests.push(function(){ console.log(a$0 === expect && a1 === expect) }) })(index)} {var a$1 = ++index;var a1$0 = ({a1: a$1}).a1; (function(expect){ tests.push(function(){ console.log(a$1 === expect && a1$0 =...
# Copyright (c) 2018-2019 Philipp Wolfer <ph.wolfer@gmail.com> # # 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, m...
var Quanlyorder_ajax = { init: function () { Quanlyorder_ajax.registerEvent(); }, registerEvent: function () { $('#name_search').off('keypress').on('keypress', function (e) { if (e.which == 13) { var name_search = $(this).val(); var status = $('.order_statu...
(function(d){d['he']=Object.assign(d['he']||{},{a:"לא ניתן להעלות את הקובץ הבא:",b:"סרגל תמונה",c:"Table toolbar",d:"בלוק ציטוט",e:"מודגש",f:"קו תחתון",g:"נטוי",h:"Increase indent",i:"Decrease indent",j:"בחר סוג כותרת",k:"כותרת",l:"תמונה",m:"תמונה בפריסה מלאה",n:"תמונת צד",o:"תמונה מיושרת לשמאל",p:"תמונה ממרוכזת",q:"תמ...
const Neighborhoods = { sf: [ { name: "Mission & Bernal", key: "mission_n_bernal", image: null }, { name: "Pacific Heights", key: "pacific_heights", image: null }, { name: "North Beach & Chinatown", key: "north_beach_n_jackson_sq", image: null }, { name: "Hayes Valley & NoPa", ke...
Package.describe({ name: 'rocketchat:emoji-custom', version: '1.0.0', summary: 'Message pre-processor that will translate custom emoji', git: '' }); Package.onUse(function(api) { api.use([ 'ecmascript', 'less', 'rocketchat:emoji', 'rocketchat:file', 'rocketchat:lib', 'templating', 'underscore', 'w...
const vfs = require('vinyl-fs'); const { extname } = require('path'); const babel = require('@babel/core'); const through = require('through2'); const chalk = require('chalk'); const rimraf = require('rimraf'); const { readdirSync, readFileSync, writeFileSync, existsSync, statSync, } = require('fs'); const { ...
/* * Copyright 2018- The Pixie 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 ag...
$(function(){ $(".lazyimg").lazyload({threshold:100,effect:"fadeIn",skip_invisible:!1}); $("#human").click(function(e) { $('.tipshover').show(); e.stopPropagation(); }); $('body').on('click',function(){ $('.tipshover').hide(); }); if($('.tipshover a').hasClass('cur')){ $(".human").addClass('cur')...
#!/usr/bin/python """ IP camera utility with image processing usage: ./camera.py """ from threading import Thread,Event,Lock import time import datetime import urllib.request, urllib.error, urllib.parse import subprocess import select import socket import sys import os # Default camera URL DEFAULT_URL = "h...
function eval_erf(p1) { push(cadr(p1)); evalf(); erf(); }
import os import numpy as np import glob import cv2 import torch from utils.box_utils import decode, decode_landm import time from layers.functions.prior_box import PriorBox from utils.nms.py_cpu_nms import py_cpu_nms, customized_cpu_nms import shutil def write_csv(tag_file, boxes, file_name): def _bbox_to_coco_bbox(...
const { SETTLEMENTS, SETTLEMENT } = require('../constants'); class Settlements { constructor(api) { this.api = api; } async fetchAllSettlements(data) { try { const result = await this.api.post({ path: SETTLEMENTS, data, }); return result; } catch (e) { return...
''' 说明: 如果函数在执行时的进程id跟主进程id不一致,表明是多进程执行 ''' from multiprocessing import Process, Queue, current_process def req1(param, return_queue: Queue): return_queue.put(f'子进程id:{current_process().ident}|参数:{param}') def main1(): return_queue = Queue() ps = [Process(target=req1, args=(1, return_queue)), Process( ...
ace.define("ace/theme/merbivore_soft", ["require", "exports", "module", "ace/lib/dom"], function (require, exports, module) { exports.isDark = true; exports.cssClass = "ace-merbivore-soft"; exports.cssText = ".ace-merbivore-soft .ace_gutter {\ background: #262424;\ color: #E6E1DC\ }\ .ace-merbivore-soft .ace_prin...
class Clock { constructor({ template }) { this.template = template; } render() { let date = new Date(); let hours = date.getHours(); if (hours < 10) hours = '0' + hours; let mins = date.getMinutes(); if (mins < 10) mins = '0' + mins; let secs = dat...
var briteChartApp=window.briteChartApp||{};!function(e,t){"use strict";t.createBarChart=function(e,t){var a=new britecharts.miniTooltip,l=new britecharts.bar,n=d3.select(e),u=!!n.node()&&n.node().getBoundingClientRect().width,d=!!n.node()&&n.node().getBoundingClientRect().height;l.isAnimated(!0).width(u).height(d).marg...
/*! SmartAdmin - v1.4.1 - 2014-06-22 */function SmartUnLoading(){$(".divMessageBox").fadeOut(300,function(){$(this).remove()}),$(".LoadingBoxContainer").fadeOut(300,function(){$(this).remove()})}function getInternetExplorerVersion(){var a=-1;if("Microsoft Internet Explorer"==navigator.appName){var b=navigator.userAgent...
'use strict'; /*jshint asi: true */ var test = require('tap').test , fs = require('fs') , path = require('path') , sidebar = require('../lib/sidebar') function inspect(obj, depth) { console.error(require('util').inspect(obj, false, depth || 5, true)); } function safeUnlink(file) { if (fs.existsSync(file)) ...
/*! * Copyright (C) 2017 AT&T Intellectual Property. 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 re...
/** * @param {number[]} nums * @return {void} Do not return anything, modify nums in-place instead. */ var sortColors = function(nums) { nums.sort(); };
const express = require('express') const app = express() const PORT = 8888 const bodyParser = require('body-parser') const cors = require('cors') const fs = require('fs') app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true })) app.use(cors()) app.use(express.json()) app.get('/apiMail', (req, r...
#!/usr/bin/python import logging import logging.config import sys import importlib from ansible.module_utils.basic import AnsibleModule from StringIO import StringIO import datetime from ibmsecurity.appliance.isamappliance import ISAMAppliance from ibmsecurity.appliance.isamappliance_adminproxy import ISAMApplianceAd...
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Phone_code.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that t...
# Created by wangmeng at 2020/11/2
/*! AdminLTE app.js * ================ * Main JS application file for AdminLTE v2. This file * should be included in all pages. It controls some layout * options and implements exclusive AdminLTE plugins. * * @Author Almsaeed Studio * @Support <http://www.almsaeedstudio.com> * @Email <support@almsaeedstudio....
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest from datetime import datetime, timedelta from numpy import nan import numpy as np import numpy.ma as ma import pandas as pd from pandas.api.types import CategoricalDtype from pandas.core.dtypes.common import ( is_categorical_dtype, is_datetime64...
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React, { Component } from 'react' import { eventStack, childrenUtils, customPropTypes, getElementType, getUnhandledProps, isBrowser, makeDebugger, SUI, useKeyOnly, useKeyOrValueAndKey, } from '../../lib' im...
#! /bin/python """ Script to run the monitoring script and insert the data into the gsheet. Things that occur: - update temperature display every 30 seconds w/ instantaneous values - every 15 minutes update temperature, flow, voc to gsheet """ try: from common import * import board import time import numpy as np ...
console.log("Edit publisher");
(window.webpackJsonp=window.webpackJsonp||[]).push([[281],{730:function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)("cdn5")}}]);
'use strict'; const EngineAddon = require('../../../../lib/engine-addon'); module.exports = EngineAddon.extend({ name: 'ember-blog', isDevelopingAddon() { return true; }, hintingEnabled() { return false; }, lazyLoading: true, });
/** * Handler * @module frender/Handler * @author Kener (@Kener-林峰, kener.linfeng@gmail.com) * errorrik (errorrik@gmail.com) * pissang (shenyi.914@gmail.com) */ define('frender/Handler',['require','./core/util','./mixin/Draggable','./mixin/Eventful'],function (require) { var util = requ...
angular.module('cms.shared').directive('cmsModalDialogContainer', [ 'shared.internalModulePath', '$timeout', function ( modulePath, $timeout) { return { restrict: 'E', templateUrl: modulePath + 'UIComponents/Modals/ModalDialogContainer.html', transclude: true, link:...
import Shape, { getDefaultSVGProps } from './Shape'; export { Shape as default, getDefaultSVGProps };
"use strict"; const fs = require("fs"); const {join} = require("path"); const files = fs.readdirSync(__dirname); describe("Token scopes", () => { before("Activation", async () => { attachToDOM(atom.views.getView(atom.workspace)); await Promise.all([ atom.packages.activatePackage("language-coffee-script")...
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log"...
from django.core.management.base import BaseCommand from django.db.transaction import atomic from wurst.core.utils.schema_import import SchemaImporter class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument("file") @atomic def handle(self, file, **options): schit...
import React from "react" import Filter from "./Filter" import Master from "./Master" const MetalSynth = () => ( <div id="am-synth"> <div className="row"> <div className="col-md-6"> </div> </div> <div className="row"> <div className="col-md-3"> <Filter name={"filter"} displayNam...
import { signOutFromSSO, signOutFromSiteMinder } from "@/utils/authenticationHelpers"; import * as ENV from "@/constants/environment"; describe("`signOutFromSSO` function", () => { jest.spyOn(window, "open"); it("opens a new window with given url", () => { signOutFromSSO(); expect(window.open).toHaveBeenCa...