text
stringlengths
3
1.05M
'use strict'; window.ThreeBSP = (function() { var ThreeBSP, EPSILON = 1e-5, COPLANAR = 0, FRONT = 1, BACK = 2, SPANNING = 3; ThreeBSP = function( geometry ) { // Convert THREE.Geometry to ThreeBSP var i, _length_i, face, vertex, faceVertexUvs, polygon, polygons = [], tree; if ( geom...
from bs4 import BeautifulSoup import requests import MySQLdb conn = MySQLdb.connect("localhost","root","gupta@123","results" ) cursor = conn.cursor() arr = [17,13,9,5] def push_students(rollno,name,cgpi): try: cursor.execute('''UPDATE students SET cgpi=%s where roll_no=%s''',(cgpi, rollno)) # cursor.execute('...
//>>built define("dojox/atom/widget/nls/ko/PeopleEditor",({add:"추가",addAuthor:"작성자 추가",addContributor:"제공자 추가"}));
__author__ = "Yuri E. Corilo" __date__ = "Dec 14, 2010" import csv import json from pathlib import Path from numpy import NaN, concatenate from openpyxl import load_workbook from pandas import DataFrame, ExcelWriter, read_excel from corems.mass_spectrum.output.export import HighResMassSpecExport from corems.molecul...
/* * Backpack - Skyscanner's Design System * * Copyright 2016-2021 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 * ...
const settings = ((_) => { function localStorageWriteRead(item, value) { if (item != "" && value != "" && value != "undefined" && item != "undefined") { localStorage.setItem(item, value); } return localStorage.getItem(item); } let save_settings = function() { ...
var data = { "body": "<path d=\"M76.172 0l76.172 44.425v88.885l-76.172 44.425L0 133.31V44.425L76.172 0zm0 9.987L8.464 49.482v78.77l67.708 39.492l67.709-39.491v-78.77L76.172 9.986zM470.765 68.61l9.903 35.327l10.427-35.327H512l-25.539 73.142l-1.1 2.666c-3.631 8.104-10.038 12.158-19.225 12.158a30.473 30.473 0 0 1-8.053-1...
/** * @license MIT * @version 1.1.0 * @author M.A.R.S. Labs * @description User routes. */ // --------------- Module Imports const auth = require("../utils/auth.service"); const MarsRouter = require("../base/router"); const swaggerUtils = require("../utils/swagger.utils"); const execute = require("../u...
const loginForm = document.querySelector("#login-form"); const loginInput = document.querySelector("#login-form input"); const greeting = document.querySelector("#greeting"); const CLASS_HIDDEN = "hidden" function onLogin(event){ event.preventDefault(); loginForm.classList.add(CLASS_HIDDEN); cons...
/* * Programming Hyperledger Fabric * Siddharth Jain * (c) All rights reserved. */ var fs = require("fs"); const yaml = require('js-yaml'); // global config var config; var Client = require("./client.js"); const { createLogger, format, transports } = require('winston'); const { combine, timestamp, label, printf } ...
import requests from bs4 import BeautifulSoup from time import sleep from random import randint def linkedin_individual_job_scraper(link: str) -> str: """Does detailed scrape of each job listing to return the full text of the listing""" link = "/".join(link.split("/")[:6]) headers = { "User-Agent...
function plusMinus(arr) { // print out ratio of positives; // print out ratio of negatives; // print out ratio of 0s; let countPositive = 0 let countNegative = 0 let countZero = 0 let arrLength = arr.length // iterate through the element of the array; for (i = 0; i < arrLength; i++) { // taking ...
import React from "react" import { graphql } from "gatsby" import SEO from "../components/seo" import Card from "../components/card" import Layout from "../components/layout" import Nav from "../components/nav" export default function Template({ data, }) { const { markdownRemark } = data // data.markdownRemark holds...
/* */ "format global"; "deps ../modernizr"; // Vibration API // http://www.w3.org/TR/vibration/ // https://developer.mozilla.org/en/DOM/window.navigator.mozVibrate Modernizr.addTest('vibrate', !!Modernizr.prefixed('vibrate', navigator));
import FilesSelector from './FilesSelector'; export default FilesSelector;
import unittest import os import torch from dotenv import load_dotenv import nlpaug.augmenter.word as naw import nlpaug.model.lang_models as nml class TestBackTranslationAug(unittest.TestCase): @classmethod def setUpClass(cls): env_config_path = os.path.abspath(os.path.join( os.path.dirna...
const path = require('path'); module.exports = { description: 'allows a plugin to skip its own resolveId hook when using this.resolve', options: { plugins: [ { resolveId(id) { if (id === 'resolutions') { return id; } if (id.startsWith('test')) { return 'own-resolution'; } ...
/** * Basic Vector Class Object * WIP - pjkarlik@gmail.com **/ export default class Vector { constructor(config) { this.x = config.x; this.y = config.y; this.z = config.z; } add = (v) => { return { x: v.x ? this.x + v.x : this.x, y: v.y ? this.y + v.y : this.y, z: v.z ? this.z ...
/** * Swiper 5.2.1 Most modern mobile touch slider and framework with hardware * accelerated transitions http://swiperjs.com * * Copyright 2014-2019 Vladimir Kharlampidi * * Released under the MIT License * * Released on: November 16, 2019 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof mod...
require('dotenv').config() const express = require('express'); const mongoose = require('mongoose'); const methodOverride = require('method-override'); const ejsMate = require('ejs-mate'); const path = require('path'); const session = require('express-session'); const flash = require('connect-flash'); const passport =...
module.exports = { OWNER: 'q', ADMIN: 'a', OPERATOR: 'o', HALF_OPERATOR: 'h', VOICED: 'v' };
export default class contextualService { static get UID(){ return "contextual"; } showMenu(template, entity, onSuccess, onError, params){ this.contextualDrawer.close(); this.contextualMenu.show(template, entity, onSuccess, onError, params); } showDrawer(id){ this.contextualMenu.close(); ...
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='product-description']/div[@class='pd-name']/h1", 'price' : "//div[@class='product-description']/div[@class='pctemp']/div...
import { format, parseISO } from 'date-fns'; import pt from 'date-fns/locale/pt'; import Mail from '../../lib/Mail'; class CancellationMail { get key() { return 'CancellationMail'; } async handle({ data }) { const { appointment } = data; console.log('A fila esta executando'); await Mail.sendMa...
description("This test checks the use of SVGAnimatedEnumeration within SVGPatternElement"); var patternElement = document.createElementNS("http://www.w3.org/2000/svg", "pattern"); patternElement.setAttribute("patternUnits", "userSpaceOnUse"); patternElement.setAttribute("patternContentUnits", "userSpaceOnUse"); // pa...
import sys,os,lldb def check_has_dir_in_path(dirname): return sys.path.__contains__(dirname); def ensure_has_dir_in_path(dirname): dirname = os.path.abspath(dirname) if not (check_has_dir_in_path(dirname)): sys.path.append(dirname); def do_import(debugger,modname): if (len(modname) > 4 and modname[-4:] == '.py...
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', // allows imports sourceType: 'module', }, plugins: ['@typescript-eslint'], extends: [ 'plugin:@typescript-eslint/recommended', // turn on eslint-plugin-prettier and eslint-config-prettier ...
"use strict"; const Base = require("./Base"); const Permission = require("./Permission"); const {Permissions} = require("../Constants"); const User = require("./User"); const VoiceState = require("./VoiceState"); /** * Represents a server member * @prop {String} id The ID of the member * @prop {String} mention A stri...
import cgi import logging import os import sys import tempfile import threading from http import HTTPStatus from http.server import __version__ as http_version, HTTPServer, SimpleHTTPRequestHandler # noqa # Use from..import for importlib as it needs to bootstrap some stuff before "util" etc works, which import doesn'...
import{pluckNumber,pluck,toRaphaelColor,getFirstValue}from'../lib/lib';import LineDataset from'./line';import{addDep}from'../dependency-manager';import msStepLineAnimation from'../animation-rules/msStepLine-animation';let UNDEF,LINE='line',H='H',V='V',M='M';addDep({name:'stepLineAnimation',type:'animationRule',extensio...
module.exports = { '/extend/': [ { title: 'Ana Kavramlar', collapsable: false, children: [ '', 'start', 'frontend', 'routes', 'models', 'api', 'distribution' ] }, { title: 'Referans Kılavuzları', collapsable: false...
import React from 'react'; import iconSvg from '../icons/normalized/map-outline.svg'; function IconRender(props) { const paths = /^\<svg [^>]+\>(.*)<\/svg>/ig.exec(iconSvg)[1] return ( <svg {...props} xmlns="http://www.w3.org/2000/svg" baseProfile="full" viewBox="0 0 24 24" classN...
import React, { Component } from 'react'; import Modal from 'react-modal'; //import {RadioGroup, Radio} from 'react-radio-group' class AddResourceModal extends Component { constructor(props) { super(props); this.save = this.save.bind(this); this.state = { errorVisible: "none", errorText: nul...
import {getDictionaryList,getDataDictionary,dataChangeInfo,addDataDic,delData} from '../../../services/dataDictionary'; import {message} from 'antd'; export default { namespace:'DataDictionary', state:{ data:[], pagination:{}, DiationaryDetail:{} }, effects:{ *fetch({payload},{call,put}){ ...
define("ace/theme/Material",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace--material",t.cssText=".ace--material .ace_gutter {background: rgba(38,50,56,1);color: rgb(63,93,96)}.ace--material .ace_print-margin {width: 1px;background: #e8e8e8}.ace--material {background-color: rgba...
'use strict' const { test } = require('tap') const { sink, once } = require('./helper') const pino = require('../') test('redact option – throws if not array', async ({ throws }) => { throws(() => { pino({ redact: 'req.headers.cookie' }) }) }) test('redact option – throws if array does not only contain strin...
import { FETCH_PROTECTED_DATA_SUCCESS, FETCH_PROTECTED_DATA_ERROR } from "../actions/protected-data"; const initialState = { data: "", error: null }; export default function reducer(state = initialState, action) { if (action.type === FETCH_PROTECTED_DATA_SUCCESS) { return Object.assign({}, state, { ...
# Copyright 2010 OpenStack Foundation # 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 requ...
import test from 'tape-promise/tape'; import {LZ4DeflateTransform, LZ4InflateTransform, LZ4Worker} from '@loaders.gl/compression'; import {processOnWorker, isBrowser} from '@loaders.gl/worker-utils'; import {getData, generateRandomArrayBuffer, compareArrayBuffers} from './utils/test-utils'; const SIZE = 100 * 1000; t...
import datetime from dateutil.relativedelta import relativedelta import pytz from pysparkling.sql.casts import get_time_formatter, get_unix_timestamp_parser from pysparkling.sql.expressions.expressions import Expression, UnaryExpression from pysparkling.sql.expressions.operators import Cast from pysparkling.sql.types...
// Generated by CoffeeScript 1.10.0 (function() { var FORM_HTML, include_constraint_tests, include_dependency_tests, include_general_behavior_tests, include_validator_tests, log; include_validator_tests = function() { return describe("validators", function() { var validators; log("validators"); ...
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format. """ import sys from optparse import OptionParser import logging import rdflib from rdflib import plugin from rdflib.store import Store from rdflib.graph imp...
import Vue from 'vue' import axios from 'axios' import 'normalize.css/normalize.css'// A modern alternative to CSS resets import Element, { Message } from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' import '@/styles/index.scss' // global css import App from './App' import router from './...
function fna09d30ca(){var trend={"date":[1579651200,1579737600,1579824000,1579910400,1579996800,1580083200,1580169600,1580256000,1580342400,1580428800,1580515200,1580601600,1580688000,1580774400,1580860800,1580947200,1581033600,1581120000,1581206400,1581292800,1581379200,1581465600,1581552000,1581638400,1581724800,1581...
/* Copyright 2019 Adobe. All rights reserved. This file is licensed to you 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 agre...
""" This module contains the Manager API. """ import weakref class Manager(object): """ A manager manages a specific aspect of a CodeEdit instance: - backend management (start/stop server, request work,...) - modes management - panels management and drawing - file manager ...
/*! DataTables Bootstrap 3 integration Š2011-2015 SpryMedia Ltd - datatables.net/license */ (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)...
"use strict"; var series = require('async').series; var clone = require('clone'); var compile = require('es6-templates').compile; var extend = require('extend'); var fs = require('fs'); var isarray = require('isarray'); var basename = require('path').basename; var join = require('path').join; var dirname = require('pa...
module.exports = function(PropertyType) { };
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); } i...
/* Copyright IBM Corporation 2017 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, software...
# 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...
'use strict'; module.exports = { compareArrays: function(first, second) { if (first.length != second.length) { return false; } for (var i = 0; i < first.length; i++) { let firstElement = first[i]; let secondElement = second[i]; if (firstElem...
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ // paths serve as alias paths: { 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within th...
# Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`. # DO NOT MODIFY DIRECTLY. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: { editor_defaultfunctionality: __dirname + '/app/editor/defaultfunctionality/app.js', editor_localization: __dirname + '/app/editor/localization/app.js', editor_tools...
'use strict'; const util = require('util'); /** * `InternalOAuthError` error. * * InternalOAuthError wraps errors generated by node-oauth. By wrapping these * objects, error messages can be formatted in a manner that aids in debugging * OAuth issues. * * @api public */ function InternalOAuthError(message, er...
class Scan: """Hyperparamater scanning and optimization USE: ta.Scan(x=x, y=y, params=params_dict, model=model) Takes in a Keras model, and a dictionary with the parameter boundaries for the experiment. p = { 'epochs' : [50, 100, 200], 'activation' : ['relu']...
var JSBigInt = (function () { "use strict"; /* Class: BigInteger An arbitrarily-large integer. <BigInteger> objects should be considered immutable. None of the "built-in" methods modify *this* or their arguments. All properties should be considered private. All the methods of <Bi...
import "./examinationOptionsTemplates.html";
// TODO: 用vite build取代rollup const path = require('path'); const fs = require('fs-extra'); const typescript = require('rollup-plugin-typescript2'); const { nodeResolve } = require('@rollup/plugin-node-resolve'); const commonjs = require('@rollup/plugin-commonjs'); const replace = require('@rollup/plugin-replace'); // ...
///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////------Location.js-------////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////// // // Version: 2.2 // Author: Joseph Rogan (joseph.rogan...
const { Octokit } = require("@octokit/core"); const defaults = { personal_key: null, storage_namespace : "DEFAULT-NAMESPACE" }; class GistStorage { constructor(options) { const config = Object.assign({}, defaults, options); const octokit = new Octokit({ auth: config.personal_key }); this.oct...
"use strict"; require('dotenv').config(); const PORT = process.env.PORT || 8080; const ENV = process.env.ENV || "development"; const express = require("express"); const bodyParser = require("body-parser"); const app = express(); const morgan = require('mo...
import os from collections import namedtuple import collections from pathlib import Path from posix import environ from framework.utils import Utils def convert_to_namedtuple(dictionary: dict): for key, value in dictionary.items(): if isinstance(value, dict): dictionary[key] = convert_to_named...
// DURAMENU V1.0 MAIN JS duraFunc = function() { // Strict Mode "use strict"; // Scroll To Fixed Header $(window).scroll(function(){ if ($(window).scrollTop() >= 30) { $( ".absolute" ).css( "top","-100px" ); $( ".nav-container" ).addClass( "nav-container-fixed" ); $( ".clearance" ).addClas...
/* * * TableSorter 2.0 - Client-side table sorting with ease! * Version 2.0.5b * @requires jQuery v1.2.3 * * Copyright (c) 2007 Christian Bach * Examples and docs at: http://tablesorter.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu....
import React from "react"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import "./App.css"; import home from "./pages/home"; import Academics from "./pages/academics"; import Signup from "./pages/signup"; import Login from "./pages/login"; import ResetPassword from "./pages/resetPassword"...
// // Various compiling-to-JS parameters. These are simply variables present when the // JS compiler runs. To set them, do something like // // emcc -s OPTION1=VALUE1 -s OPTION2=VALUE2 [..other stuff..] // // See https://github.com/kripken/emscripten/wiki/Code-Generation-Modes/ // // Note that the values here are th...
/** * sessionAuth * * @module :: Policy * @description :: Simple policy to allow any authenticated user * Assumes that your login action in one of your controllers sets `req.session.authenticated = true;` * @docs :: http://sailsjs.org/#!/documentation/concepts/Policies * */ ...
const assert = require('assert') const { dbConnection } = require('./config') assert(dbConnection, 'dbConnection must be provided') module.exports = { client: 'pg', connection: dbConnection, migrations: { directory: './migrations', tableName: 'migrations', }, }
class Node: def __init__(self, val): self.val = val self.left = None self.right = None class BinaryTree: def __init__(self, val): self.root = Node(val) def insert(self, val): def _insert(val, node): if val == node.val: return if val < node.v...
const fixedSupplyToken = artifacts.require("./FixedSupplyToken.sol"); const exchange = artifacts.require("./Exchange.sol"); contract('Exchange - Buy, Sell, and Cancel Limit Orders', (accounts) => { before(() => { // Setup Exchange with 3 Ether and 2000 "FIXED" Tokens so we may Buy/Sell Tokens let...
const mongoose = require('mongoose'); const usersProductsSchema = new mongoose.Schema({ Sku: { type: String, required: false }, Brand: { type: String, required: false }, Category: { type: String, required: false }, Color: { type: Strin...
(function(t){const a=t["tk"]=t["tk"]||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"1%-iň 0%-i","Align center":"Merkeze deňleşdir","Align left":"Çepe deňleşdiriň","Align right":"Saga deňleşdiriň","Almost equal to":"",Angle:"","Approximately equal to":"",Aquamarine:"Akuamarin","Asterisk operator":"","Austr...
import React, { Component } from 'react' import { connect } from 'react-redux' import { CREATE_MAP, createMap } from '../actions'; import TopMenu from './TopMenu' import RightMenu from './RightMenu' import TileDetailsContainer from '../containers/TileDetailsContainer' import RightMenuContainer from '../containers/R...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createIcon = require('./util/createIcon'); var _createIcon2 = _interopRequireDefault(_createIcon); function _interopRequireDefault(obj) { return obj && o...
const config = { baseUrl: 'http://www.wanjie8.com' } module.exports = { config }
/** * @license Angular v11.2.8 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ import { Injectable, Inject, ɵstringify, NgModule, Directive, Component, Pipe, createPlatformFactory, COMPILER_OPTIONS, Injector, CompilerFactory } from '@angular/core'; import { TestComponentRenderer, ɵMetadataOverrid...
const { ethGetBlock } = require('./web3') // Returns the time of the last mined block in seconds async function latest () { const block = await ethGetBlock('latest') return block.timestamp } // Increases ganache time by the passed duration in seconds function increase (duration) { const id = Date.now() retur...
import lruCache from 'lru-cache'; /* * Action types */ export const FETCHR = 'EFFECT_FETCHR'; let cacheInstance = null; /* * Factory Method for cache instance (singleton) */ function createCache(cacheConfig = {}) { if (cacheInstance !== null) { return cacheInstance; } cacheInstance = lruCache(cacheCon...
# -*- coding: utf-8 -*- """ Beginner Script 1 - Hello World! This script is your first program. You can run it in Spyder using the play button on the menu above! """ 1.) The triple double-quote allows you to use multi-line comments. A pound (#) sign is used for single line comments. These lines will be ignored! C...
from socket import * import argparse import numpy as np if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--host', type=str, help='host',dest='host',default='localhost') parser.add_argument('--port', type=int, help='port', dest='port',default=23333) parser.add_argument(...
define(['template'], function (template) { function anonymous($data,$filename /**/) { 'use strict'; $data=$data||{}; var $utils=template.utils,$helpers=$utils.$helpers,$each=$utils.$each,dimList=$data.dimList,$item=$data.$item,$index=$data.$index,$escape=$utils.$escape,$out='';$out+=...
import logging import os from almanac.models import ElectionEvent from almanac.serializers import ElectionEventSerializer from almanac.utils.aws import defaults, get_bucket from celery import shared_task from geography.models import Division, DivisionLevel from rest_framework.renderers import JSONRenderer logger = lo...
'use strict'; // Declare app level module which depends on views, and components var app=angular.module('myApp', [ 'ngRoute', 'myApp.version', 'duScroll', 'chart.js', 'angular-scroll-animate', 'slickCarousel', 'video-background', 'angular-page-loader' ]). config(['$locationProvider', '$routeProvider',...
const todo = (state = {}, action) => { switch (action.type) { case 'ADD_TODO': return { id: action.id, text: action.text, completed: false } case 'TOGGLE_TODO': return Object.assign({}, state, { completed: !state.completed }) default: r...
import * as Cesium from 'cesium' import Transform from '../transform/Transform' import Position from '../position/Position' export default function heading (startPosition, endPosition) { let heading = 0 if (startPosition instanceof Position) { startPosition = Transform.transformWGS84ToCartesian(startPos...
// import produce from 'immer'; import addUserReducer from '../reducer'; // import { someAction } from '../actions'; /* eslint-disable default-case, no-param-reassign */ describe('addUserReducer', () => { let state; beforeEach(() => { state = { // default state params here }; }); it('returns the...
import React from 'react'; import { StyleSheet, Text, View ,FlatList,ScrollView} from 'react-native'; import {SearchBar,Header} from 'react-native-elements'; import db from '../config' export default class ReadStoryScreen extends React.Component { constructor(){ super(); this.state ={ allStories:[], ...
# -*- coding: utf-8 -*- """ mslib.msui.mscolab_project ~~~~~~~~~~~~~~~~~~~~~ Mscolab project window, to display chat, file change This file is part of mss. :copyright: 2019 Shivashis Padhi :license: APACHE-2.0, see LICENSE for details. Licensed under the Apache License, Version 2.0 (the...
import { join } from 'path'; import { builtinModules } from 'module'; const PACKAGE_ROOT = __dirname; const config = { mode: 'production', root: PACKAGE_ROOT, envDir: process.cwd(), resolve: { alias: { '/@/': `${join(PACKAGE_ROOT, 'src')}/`, }, }, build: { target: `node8`, outDir: 'd...
#!/usr/bin/python2.7 import libiopc_rest as rst def func_init_mlnet(hostname, options): payload = '{' payload += '"ops":"init_mldonkey"' payload += '}' return rst.http_post_ops_by_pyaload(hostname, payload) def func_start_mlnet(hostname, options): payload = '{' payload += '"ops":"start_mldonk...
import "./MainSpace.css"; import ThreeRender from "../ThreeRender/view.js"; import GhostButtonsUp from "../GhostButtonsUp/GhostButtonsUp.js"; import GhostButtonsDown from "../GhostButtonsDown/GhostButtonsDown.js"; import React, { useState } from "react"; function MainSpace() { const [is2D, setIs2D] = useState(false...
const FormulaError = require('./error'); const Collection = require('../grammar/type/collection'); const Types = { NUMBER: 0, ARRAY: 1, BOOLEAN: 2, STRING: 3, RANGE_REF: 4, // can be 'A:C' or '1:4', not only 'A1:C3' CELL_REF: 5, COLLECTIONS: 6, // Unions of references ARRAY_OR_STRING: 7...
description = 'Vacuum readout devices using Leybold Center 3' group = 'lowlevel' devices = dict( vacuum_CB = device('nicos.devices.generic.ManualMove', description = 'Pressure in Chopper chamber', default = 3.5e-6, abslimits = (0, 1000), unit = 'mbar', fmtstr = '%.1g', ...
const chai = require('chai') const fs = require('fs') const db = require('../src/models') const { getLastBlock, setLastBlock, checkEventsFreshness } = require('../src/listener/utils') const expect = chai.expect const continueFile = 'continueTest' describe('get/setLastBlock with continue file', () => { afterE...
import React from 'react'; import { View, Button, Icon, } from '@shoutem/ui'; const createBackButton = navBarProps => sceneProps => { if (sceneProps.scene.index === 0 || !sceneProps.onNavigateBack) { return null; } return ( <View virtual styleName="container"> <Button onPress={sceneProps.onN...
import Vue from '../../utils/vue'; import looseEqual from '../../utils/loose-equal'; import looseIndexOf from '../../utils/loose-index-of'; import { isArray } from '../../utils/inspect'; import formMixin from '../../mixins/form'; import formRadioCheckMixin from '../../mixins/form-radio-check'; import formSizeMixin from...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,,,,,,,,function(module,exports,__webpack_require__){__webpack_require__(336),__webpack_require__(336),__webpack_require__(822);var marko_template=module.exports=__webpack_require__(1).t(),marko_componentType=(0,__webpack_require__(0).r)("/@ebay/ebayui-core$5.2....