text
stringlengths
3
1.05M
import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import App from '@/pages/app'; import { clearModal, } from '@/actions'; // const mapStateToProps = state => ({ // }); const mapDispatchToProps = dispatch => ({ closeModal: () => dispatch(clearModal()), }); const mergeProps = (s...
var b = true;
const expect = require('chai').expect, mapFlag = require('./filter-flags-files-by-id'); describe('Filter flag by Id', () => { function test(data, fileList, expected) { expect(mapFlag(data, fileList)).to.deep.equal(expected); } let mockFileList; beforeEach(() => { mockFileList = ['./dir/path/FOO.sv...
import numpy as np from sklearn.base import TransformerMixin from sklearn.base import BaseEstimator from bella.neural_pooling import matrix_max class NeuralPooling(BaseEstimator, TransformerMixin): def __init__(self, pool_func=matrix_max): self.pool_func = pool_func def fit(self, context_word_matrix...
""" The main driver for the project. """ from time import sleep from setup import * from pathfinder import * from display import * from all_paths import * def var_to_coords(var_list: list): """Helper function to convert a var into its coordinates.""" return [(int(str(y)[1]), int(str(y)[2])) for y in var_list...
############################################################################## # # Copyright (c) 2006 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
# Copyright (c) 2017 Baidu, 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 applicable law ...
const router = require("express").Router(); const eventRoutes = require("./events"); // Book routes router.use("/events", eventRoutes); module.exports = router;
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GrLanguage = function GrLanguage (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"fill":"none","stroke":"#000","strokeWidth":"2","d":"M12,23 C18.0751322,23 23,18.0751322 23,12 C23,...
(this.webpackJsonponlinecompiler=this.webpackJsonponlinecompiler||[]).push([[12],{596:function(e,s,o){"use strict";o.r(s),o.d(s,"conf",(function(){return n})),o.d(s,"language",(function(){return t}));var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{ope...
import React, { Component } from 'react'; import { InputGroup, ButtonGroup, OverlayTrigger, Tooltip, Modal, Button, Form } from 'react-bootstrap'; import { connect } from 'react-redux'; import { MIN, MAX, FIXED, CONSTRAINED, FDCL } from '../store/actionTypes'; import { changeSymbolConstraint, setSymbolFlag, resetSymbol...
(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{616:function(t,a,e){"use strict";e.r(a);var s=e(25),v=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"string-字符"}},[e("a",{staticClass:"header...
!function(t){function e(e,n,a){var o=this;return this.on("click.pjax",e,function(e){var i=t.extend({},f(n,a));i.container||(i.container=t(this).attr("data-pjax")||o),r(e,i)})}function r(e,r,n){n=f(r,n);var o=e.currentTarget;if("A"!==o.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(...
import Login from "./components/acounts/login"; import Register from "./components/acounts/register"; import ActivatEemail from "./components/acounts/activateemail"; import Logout from "./components/acounts/logout"; import Dashboard from "./components/dashboard/dashboard"; import DashboardHome from "./components/dashbo...
// Import express package const express = require('express'); // Require the JSON file and assign it to a variable called `termData` const termData = require('./terms.json'); const PORT = 3001; // Initialize our app variable by setting it to the value of express() const app = express(); // Add a static route for ind...
#!/usr/bin/python # Sample Python3 app for reading 3x Optical Sensors # # +-------+--------------+------+ # |Module | Desc GPIO | | # | | Header |Pins | # +-------+--------------+------+ # |SensorL| GPIO17 |P1-11 | # |SensorC| GPIO27 |P1-13 | # |SensorR| GPIO22 |P1-15 | # | |...
import firebase from "firebase/app"; import "firebase/auth"; const app = firebase.initializeApp({ apiKey: process.env.REACT_APP_FIREBASE_API_KEY, authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN, projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID, storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_B...
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; function Event({ event }) { return ( <span> <strong> {event.title} </strong> { event.desc && (': ' + event.desc)} </span> ) } function EventAgenda({ event }) { return <span> ...
// @flow import React, { Fragment, PureComponent } from 'react' import { compose } from 'redux' import { connect } from 'react-redux' import { withRouter } from 'react-router' import { translate } from 'react-i18next' import { push } from 'react-router-redux' import logger from 'logger' import type { T } from 'types/...
# # Copyright 2020 British Broadcasting Corporation # # 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...
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> for i in range(1042000, 702648265): num=i result=0 n=len(str(i)) while(i!=0): digit=i%10 result=result+d...
export default { html: ` <div>before</div> test ` };
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-07-16 21:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Queue'...
import template from './sw-gtc-checkbox.html.twig'; import './sw-gtc-checkbox.scss'; Shopware.Component.register('sw-gtc-checkbox', { template, model: { prop: 'value', event: 'change', }, props: { value: { type: Boolean, required: true, }, }...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['oc']={"editor":"Editor de tèxte enriquit","editorPanel":"Tablèu de bòrd de l'editor de tèxte enriquit","common":{"editorHelp":"Utilisatz l'acorchi Alt-0 per obté...
import React from 'react'; import ReactDOM from 'react-dom' function Counter(){ const [number,setNumber] = React.useState(0) // effect函数会在当前的组件渲染到DOM 后执行 React.useEffect ( ()=>{ // debugger console.log('开启一个新的定时器') const timer = setInterval( ()=>{ console.log('执行了定时器') setNumber(number...
from os import chdir, listdir, getcwd from subprocess import Popen from glob import glob LocalVariables = [] rainmeterPath = getcwd() with open("..\\LocalVariables.txt", "r") as inFile: LocalVariables = inFile.readlines() #Importing user defined path and steam account identifier. chdir(LocalVariables[0][:-1] + "\\...
/* global describe beforeEach it */ /*const {expect} = require('chai') const { db, models: { User } } = require('../index') const jwt = require('jsonwebtoken'); const seed = require('../../../script/seed'); describe('User model', () => { let users; beforeEach(async() => { users = (await seed()).users; }) ...
// @target: es5, es2015, esnext // @noEmit: true // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/38243 function test0({ a =0 , b =a } = {}) { return { a, b }; } function test1({ c: { a =0 , b =a } = {} } = {}) { return { a, b }; }
const lost = require('lost') const pxtorem = require('postcss-pxtorem') module.exports = { siteMetadata: { url: 'https://randomni.surge.sh', title: 'Randomni', subtitle: 'My personal blog. Coding stuff and a bunch of random things.', copyright: '© All rights reserved.', disqusShortname: '', m...
hljs.registerLanguage("go",(()=>{"use strict";return e=>{const n={ keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 ...
/* * angular-ui-bootstrap * http://angular-ui.github.io/bootstrap/ * Version: 1.3.3 - 2016-05-22 * License: MIT */angular.module("ui.bootstrap", ["ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","u...
import React from "react" import AniLink from "gatsby-plugin-transition-link/AniLink" import Title from "../Globals/Title" export default function Info() { return ( <section className="py-5"> <div className="container"> <Title title="our story" /> <div className="row"> <div classNa...
/*! * froala_editor v4.0.5 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2021 Froala Labs */ !function(o,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("froala-editor")):"function"==typeof define&&define.amd?define(["froala-editor"],t...
export const c_nav__link_after_BorderLeftWidth = { "name": "--pf-c-nav__link--after--BorderLeftWidth", "value": "0", "var": "var(--pf-c-nav__link--after--BorderLeftWidth)" }; export default c_nav__link_after_BorderLeftWidth;
module.exports = max; /** * Returns the maximum of two vec3's * * @param {vec3} out the receiving vector * @param {vec3} a the first operand * @param {vec3} b the second operand * @returns {vec3} out */ function max(out, a, b) { out[0] = Math.max(a[0], b[0]) out[1] = Math.max(a[1], b[1]) out[2] = Ma...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
import { expect } from 'chai'; import sinon from 'sinon'; describe('renderer/store', () => { const sandbox = sinon.createSandbox(); afterEach(() => { jest.resetModules(); sandbox.restore(); }); it('should migrate initialState with accounts as an object', () => { const account = { first: 'account'...
var Todo = require('./models/todo'); function getTodos(res) { Todo.find(function (err, todos) { // if there is an error retrieving, send the error. nothing after res.send(err) will execute if (err) { res.send(err); } res.json(todos); // return all todos in JSON format ...
// TODO: review canVG for future use teacss.Canvas = teacss.functions.Canvas = teacss.Canvas || function() { function wrap(name,func) { return function() { if (this.run || !Canvas.wrap) { func.apply(this,arguments); } else { this.queque.push({ ...
export default function (engine) { engine.closures.add("calculateShipSpeed", (fact, context) => { const data = fact.data; const thrusters = CONFIG.SFRPG.thrustersMap[data.details.systems.thrusters] || { speed: 8, mode: 0 }; data.attributes.speed = thrusters.speed; return fact; ...
"use strict"; /* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a c...
import ocnn import numpy as np from plyfile import PlyData class ReadPly: def __init__(self, has_normal: bool = True, has_color: bool = False, has_label: bool = False): self.has_normal = has_normal self.has_color = has_color self.has_label = has_label def __call__(self, filename: str)...
import requests import json from urlparse import urlparse import sys if __name__ == "__main__": if len(sys.argv)>1: print urlparse(sys.argv[1]) r = requests.get(sys.argv[1]) print r.status_code, print json.dumps(r.headers, indent=2)
import { HelloWorld_RajivLab1 } from './src/HelloWorld_RajivLab1.js'; window.customElements.define('hello-world_RajivLab1', HelloWorld_RajivLab1);
export default { 'title.test': '标题测试', };
# Databricks notebook source print("test2")
import * as React from "react"; import {Provider, connect} from "react-redux"; import {ComponentJSON, TitleText} from "./ComponentJSON.js"; import NodeWeekView from "./NodeWeekView.js"; import {getWeekByID, getNodeWeekByID} from "./FindState.js"; import * as Constants from "./Constants.js"; import {columnChangeNo...
"""Day 6: Universal Orbit Map""" import math from collections import defaultdict, deque from copy import deepcopy from typing import DefaultDict, Iterator, List, NamedTuple, Tuple import aoc DAY = 6 OrbitGraph = DefaultDict[str, List[str]] def parse_input(input_text: str) -> OrbitGraph: orbits: OrbitGraph = de...
#!/usr/bin/env python # Copyright (c) 2014-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same director...
import React from "react"; import unilagLogo from "../../assets/images/lag-logo-lg.png"; import facebook from "../../assets/images/facebook.png"; import linkedin from "../../assets/images/linkedin.png"; import twitter from "../../assets/images/twitter.png"; import "./Layout.css"; export default function Layout({ child...
import { __makeTemplateObject } from "tslib"; import InviteTeamIcon from '@atlaskit/icon/glyph/invite-team'; import { colors } from '@atlaskit/theme'; import * as React from 'react'; import styled from 'styled-components'; var AddOptionAvatarWrapper = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateOb...
import os.path import json from datetime import datetime # to validate period string from django.shortcuts import HttpResponse from django.shortcuts import render from django.shortcuts import redirect from django.shortcuts import resolve_url from django.views.generic import ListView from django.views.generic import Te...
# -*- coding: utf-8 -*- ############################################################################### # # TrackByReference # Retrieves shipment information for a specified reference number. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "Lice...
export default "M19 12V13.5C21.21 13.5 23 15.29 23 17.5C23 18.32 22.75 19.08 22.33 19.71L21.24 18.62C21.41 18.28 21.5 17.9 21.5 17.5C21.5 16.12 20.38 15 19 15V16.5L16.75 14.25L16.72 14.22C16.78 14.17 16.85 14.13 19 12M19 23V21.5C16.79 21.5 15 19.71 15 17.5C15 16.68 15.25 15.92 15.67 15.29L16.76 16.38C16.59 16.72 16.5 1...
"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 === "function") r = Refl...
import React from "react"; import { render } from "react-dom"; import Prism from "prismjs"; import Presentation from "./presentation"; import "prismjs/components/prism-rust"; import "prismjs/themes/prism.css"; window.Prism = Prism; render(<Presentation/>, document.getElementById("root"));
/* * /MathJax-v2/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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 ...
import { assign, isNil } from "lodash"; import { Helpers, LabelHelpers, Data, Domain, Scale, Collection } from "victory-core"; export const getBarPosition = (props, datum) => { const getDefaultMin = (axis) => { const defaultZero = Scale.getType(props.scale[axis]) === "log" ? 1 / Number....
"""Differential privacy computing of count, sum, mean, variance.""" import numpy as np import pipeline_dp # TODO: import only modules https://google.github.io/styleguide/pyguide.html#22-imports from pipeline_dp.aggregate_params import NoiseKind from dataclasses import dataclass from pydp.algorithms import numerical_me...
webpackJsonp([0],{"+kAu":function(module,exports,s){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={data:function(){return{multipleSort:!1,tableData:[{name:"赵伟",gender:"男",height:"183",email:"zhao@gmail.com",tel:"156*****1987",hobby:"钢琴、书法、唱歌",address:"上海市黄浦区金陵东路569号17楼"},{name:"李伟"...
import { Nav } from "../components/Nav"; import { Footer } from "../components/Footer"; export const GlobalWrapper = ({ children }) => { return ( <> <div style={{ display: "flex", minHeight: "100vh", flexDirection: "column", }} > <Nav /> <...
import jwt from "jsonwebtoken"; import bcrypt from "bcryptjs"; import { parseErrors, makeUrl } from "../../shared/util"; import { requiresAdmin } from "../utils/permissions"; import SendMail from "../utils/mail"; import { getEmailBody } from "../utils/common"; export default { Query: { author: (root, args, { mod...
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
module.exports = { siteMetadata: { title: 'Inaura Studios | Your Digital Zen', }, plugins: [ 'gatsby-plugin-react-helmet', 'gatsby-plugin-sass', { // keep as first gatsby-source-filesystem plugin for gatsby image support resolve: 'gatsby-source-filesystem', options: { pat...
# -*- coding: utf-8 -*- # /*########################################################################## # Copyright (C) 2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to ...
#!/usr/bin/python # # Copyright (c) 2011 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import time import json import pprint import hashlib import struct import re import base64 import httplib import...
Prism.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{"function":{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namesp...
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests for the net device.""" import time import framework.utils as utils import host_tools.network as net_tools # The iperf version to run this tests with IPERF_BINARY = 'iperf3' def test_high_ingress_...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'list', 'cs', { bulletedlist: 'Odrážky', numberedlist: 'Číslování' } );
const KnormTimestamps = require('./lib/KnormTimestamps'); const knormTimestamps = config => new KnormTimestamps(config); knormTimestamps.KnormTimestamps = KnormTimestamps; module.exports = knormTimestamps;
'use strict'; // Define the `core.park` module angular.module('core.park', ['ngResource']);
# This example shows the usage of intermediate waypoints. It will only work with Ruckig Pro or enabled Online API (e.g. default when installed by pip / PyPI). from copy import copy from pathlib import Path from sys import path # Path to the build directory including a file similar to 'ruckig.cpython-37m-x86_64-linux-...
import unittest, time, sys sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_glm, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init(1) @classmethod def tearDownClass(cls)...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([ "sap/f/library", "sap/f/cards/BaseContent", "sap/viz/ui5/controls/VizFrame", "sap/viz/ui5/controls/common/feeds/FeedItem", "sap/viz/ui5/data/Fl...
(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{11:function(t,e,a){"use strict";var n={name:"ViewsIconButtonGBI",props:["url"],data:function(){return{}}},i=a(0),r=Object(i.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("router-link",{staticClass:"edit_link",attrs:{to:this.url}},[e("spa...
var production = process.env.NODE_ENV === 'production'; module.exports = require('./lib-node6' + (production ? '' : '-dev') + '/');
from typing import Dict from terra_sdk.key.mnemonic import MnemonicKey from .lcd import AsyncLCDClient, AsyncWallet, LCDClient, Wallet __all__ = ["LOCALTERRA_MNEMONICS", "LocalTerra", "AsyncLocalTerra"] LOCALTERRA_MNEMONICS = { "validator": "satisfy adjust timber high purchase tuition stool faith fine install t...
/* Language: Vim Script Author: Jun Yang <yangjvn@126.com> Description: full keyword and built-in from http://vimdoc.sourceforge.net/htmldoc/ Category: scripting */ function (hljs) { return { lexemes: /[!#@\w]+/, keywords: { keyword: // express version except: ! & * < = > !!...
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
"""Helper functions for scoring ML models and displaying performance metrics.""" from typing import Union, List, Dict, Callable from sklearn.base import BaseEstimator from sklearn.model_selection import cross_validate from sklearn.metrics import get_scorer from sklearn.pipeline import Pipeline import numpy as np impo...
const mongoose = require('mongoose') const DB = process.env.DATABASE_KEY; async function connect() { return mongoose.connect(DB, { useNewUrlParser: true, useUnifiedTopology: true }).then(() => { console.log('Mongodb Atlas Connected Successfully !') }).catch((e) => { console....
var _fparam = __expr.match(/^([^ ]+) ?/); var fparam = (isArray(_fparam) && _fparam.length > 0) ? _fparam[1] : ""; var params = processExpr(" "); var ojob_shouldRun = true; var ojob_args = {}; var nocolor = false; if (Object.keys(params).length == 1 && Object.keys(params)[0] == "") ojob_showHelp(); // Check parameter...
import React from 'react'; import { Text, getFieldValue } from '@sitecore-jss/sitecore-jss-react'; import StyleguideSpecimen from '../../Styleguide-Specimen'; /** * Demonstrates usage of a Text content field within JSS. * Text fields are HTML encoded by default. */ const StyleguideFieldUsageText = (props) => ( <S...
function lazyImg() { return { replace: true, template: '<div class="lazy-img"><div class="sm"><img src="{{imgSmall}}" class="lazy-img-small"/></div><img src="{{imgLarge}}" class="lazy-img-larg"/></div>', scope: { imgLarge: '@srcLarge', imgSmall: '@srcSmall' }, link: function...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { functionWrapper } from '../../../test_helpers/function_wrapper'; imp...
const _ = require('lodash'); const GoogleSpreadsheet = require('google-spreadsheet'); const series = require('async/series'); const conforms = _.conforms({ sheetId: _.isString, privateKey: _.isString, clientEmail: _.isString }); const throwError = (next, code) => { let error; if(code === 400) { error = ...
//PROGRESSIVE DIRECTOR OBJECTS {id: "text" , start; "number", stop: "number", mark: } //start and stop refer to % of viewHeight //ABRUPT DIRECTOR OBJECTS {id: "text" , start; number, scrollUp: BOOLEAN, mark:"text" } //THE DIRECTORS!!! const scrollBoxDirector = { scroll1: { id: "first-js-box", start: 75, stop: 25, ma...
'use strict'; require('./globals'); require('./setup-qcloud-sdk'); const http = require('http'); const express = require('express'); const bodyParser = require('body-parser'); const morgan = require('morgan'); const config = require('./config'); var path = require('path'); //var jade = require('jade'); var fs = requi...
#!/usr/bin/python3.5 """ Command line utility to extract basic statistics from a gpx file """ import pdb import sys as mod_sys import logging as mod_logging import math as mod_math import gpxpy as mod_gpxpy #hack for heart rate import xml.etree.ElementTree as ET #heart rate statistics import numpy as np import o...
import { decString } from "./password" const { NODE_ENV } = process.env export function set(req, res, key, val) { const options = { path: "/", domain: NODE_ENV === "development" ? "localhost" : "academy.byidmore.com", secure: false, httpOnly: true } res.setCookie(key, val, options) } export func...
const editorOption = { // Indicate where to init the editor. You can also pass an HTMLElement container: '#editor', height: '950px', fromElement: true, showOffsets: true, avoidInlineStyle: true, storageManager: false, plugins: [ 'gjs-preset-webpage', 'gjs-preset-newslette...
/** * editor_plugin_src.js * * Adds auto-save capability to the TinyMCE text editor to rescue content * inadvertently lost. This plugin was originally developed by Speednet * and that project can be found here: http://code.google.com/p/tinyautosave/ * * TECHNOLOGY DISCUSSION: * * The plugin attempts...
const request = require('request'); const Path = require('path'); const sleep = require('sleep-async')(); const retryDelaySecs = 5; module.exports = { getScreenshot, getScreenshotReturningTemporaryUrl, captureScreenshot, retrieveScreenshot, setDebugOutputMode }; var showDebugOutput = false; function setDeb...
from fitnessCalc import FitnessCalc from population import Population from algorithm import Algorithm from time import time start = time() FitnessCalc.set_solution("1111000000000000000000000000000000000000000000000000000000001111") my_pop = Population(50, True) generation_count = 0 while my_pop.fitness_of_the_fitt...
module.exports = function (canvas) { // makeCanvasAutoFullwindow // Canvas is resized when window size changes, e.g. // when a mobile device is tilted. // // Parameter // canvas // HTML Canvas element // var resizeCanvas = function () { canvas.width = window.innerWidth canvas.height = wi...
// Configuration for your app module.exports = function (ctx) { return { // app plugins (/src/plugins) plugins: [ ], css: [ 'app.styl' ], extras: [ ctx.theme.mat ? 'roboto-font' : null, 'material-icons' // optional, you are not bound to it // 'ionicons', // 'mdi'...
define([ "underscore", "mockup-ui-url/views/base", "mockup-patterns-tooltip", ], function (_, BaseView, Tooltip) { "use strict"; var AnchorView = BaseView.extend({ tagName: "a", className: "alink", eventPrefix: "button", context: "default", idPrefix: "alink-"...
import dlib options = dlib.simple_object_detector_training_options() options.C = 1.0 options.num_threads = 8 options.be_verbose = True dlib.train_simple_object_detector('/home/shammyz/repos/dlib-pupil/annotations.xml', '/home/shammyz/repos/dlib-pupil/detector.svm', options) print("[INFO] training accuracy: {}".format...