text
stringlengths
3
1.05M
import { StyleSheet } from 'react-native'; export const colors = { theme: '#3a2850', homeCard: '#ff2d34' }; export const general = StyleSheet.create({ theme: { backgroundColor: colors.theme }, safeArea: { flex: 1, justifyContent: 'flex-start' } });
import logging from datetime import date, datetime from drf_yasg.utils import swagger_serializer_method from rest_framework import serializers from .models import Amount, UnitConversionPayload, Dimension, CustomUnit from geocurrency.core.serializers import UserSerializer class UnitAmountSerializer(serializers.Seria...
/*! This file is auto-generated */ this.wp=this.wp||{},this.wp.listReusableBlocks=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumera...
if (1) function a(){} else function b(){}
/** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import ListEditing from '../src/listediting'; import ListCommand from '../src/listcommand'; import IndentCommand from '../src/indentcommand...
# check library version numbers # scipy import scipy print('scipy: %s' % scipy.__version__) # numpy import numpy print('numpy: %s' % numpy.__version__) # matplotlib import matplotlib print('matplotlib: %s' % matplotlib.__version__) # pandas import pandas print('pandas: %s' % pandas.__version__) # statsmodels import sta...
from tkinter import * from tkinter.ttk import * class DomainTree(Treeview): def __init__(self, master = None): super().__init__() def populateTree(): pass class DomainApp(Frame): def __init__(self, master=None): super().__init__() self.pack() self.tree = DomainTree(master = ...
import React from 'react'; import styles from './Header.css' const OrderAddressHeader = ({ history }) => (<div className={styles.header} onClick={() => history.goBack()}> 返回订单 </div>) export default OrderAddressHeader
"""A friendly Python SFTP interface.""" from __future__ import print_function import os from contextlib import contextmanager import posixpath import socket from stat import S_IMODE, S_ISDIR, S_ISREG import tempfile import warnings import paramiko from paramiko import SSHException, AuthenticationException # make av...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
"""Manage creation of schema.""" from __future__ import annotations import sys import logging import operator from pathlib import Path from typing import Union, List, Dict, Any from ruamel.yaml import YAML # type: ignore[import] from ruamel.yaml.comments import CommentedMap, CommentedSeq # type: ignore[import] from s...
#Import Libraries from sklearn.preprocessing import MaxAbsScaler #---------------------------------------------------- #MaxAbsScaler Data scaler = MaxAbsScaler(copy=True) X = scaler.fit_transform(X) #showing data print('X \n' , X[:10]) print('y \n' , y[:10])
import Framebuffer from './framebuffer'; import Texture from './texture'; import Sampler from './sampler'; import { formatValue, log } from '../utils'; import assert from '../utils/assert'; // Local constants, will be "collapsed" during minification // WebGL1 const GL_FLOAT = 0x1406; const GL_FLOAT_VEC2 = 0x8B50; cons...
############################################################################## # # Copyright (c) 2002-2009 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. # THI...
/* @flow */ import type { Auth } from './apiTypes'; import messagesFlags from './messages/messagesFlags'; let unsentMessageIds = []; let lastSentTime = 0; export default (auth: Auth, messageIds: number[]): any => { unsentMessageIds.push(...messageIds); if (Date.now() - lastSentTime > 2000) { messagesFlags(au...
import {SWITZERLAND_RECTANGLE} from './constants.js'; import UrlTemplateImageryProvider from 'cesium/Source/Scene/UrlTemplateImageryProvider'; import ImageryLayer from 'cesium/Source/Scene/ImageryLayer'; import Credit from 'cesium/Source/Core/Credit'; import i18next from 'i18next'; import WebMapServiceImageryProvider ...
import React, { Component } from 'react' import PropTypes from "prop-types" const btnStyle = { background: "yellow", color: "gray", border: "none", padding: "5px 15px", borderRadius: "50%", float: "right", } const btnStyleHover = { ...btnStyle, background: "red" } export class TodoL...
const nMultiPageMenu = document.querySelector('#multi-page-menu'); const nLogArea = nMultiPageMenu.querySelector('#logArea'); const nGithubIssueLink = nMultiPageMenu.querySelector('#githubIssueLink'); nMultiPageMenu.addEventListener('pageChange', (e) => { switch (e.detail.pageId) { case 'debug': ...
import {AmpLayout} from '#builtins/amp-layout/amp-layout'; import {buildDom} from '#builtins/amp-layout/build-dom'; import {createElementWithAttributes} from '#core/dom'; import {Layout_Enum} from '#core/dom/layout'; describes.realWin('amp-layout', {amp: true}, (env) => { async function getAmpLayout(attrs, innerHTM...
module.exports = { docs: [ { type : 'category', label : 'The Shared Backpack', items : [ 'About' ] }, { type: 'category', label : 'Shared Backpack user app', items :[ 'Shared Backpack user app/Getting Started', 'Shared Backpack user app/Con...
import User from 'models/User'; import { DataTypes, QueryTypes } from 'sequelize'; import sequelize from 'utils/sequelize'; const Post = sequelize.define('Post', { user_id: DataTypes.BIGINT, described: DataTypes.STRING, created: DataTypes.DATE, modified: DataTypes.DATE, status: DataTypes.STRING, banned: Da...
'use strict'; const request = require('request'); const jsonPath = require('JSONPath'); const select = require('xpath.js'); const Dom = require('xmldom').DOMParser; const fs = require('fs'); const path = require('path'); const jsonSchemaValidator = require('is-my-json-valid'); const spec = require('swagger-tools').spe...
/** * A Text Field Trigger that contains a {@link Ext.Component Component} or {@link * Ext.Widget Widget}. * @private */ Ext.define('Ext.form.trigger.Component', { extend: 'Ext.form.trigger.Trigger', alias: 'trigger.component', cls: Ext.baseCSSPrefix + 'form-trigger-cmp', /** * @cfg {Objec...
# Generated by Django 2.2.6 on 2019-11-21 18:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sites', '0025_auto_20191112_1805'), ] operations = [ migrations.AlterField( model_name='siteagency', name='from_date...
/** * @license * ========================================================= * bootstrap-datetimepicker.js * http://www.eyecon.ro/bootstrap-datepicker * ========================================================= * Copyright 2012 Stefan Petre * * Contributions: * - Andrew Rowls * - Thiago de Arruda * * Licen...
import axios from 'axios'; const STUDENT_API_BASE_URL = "http://127.0.0.1:8082/api/v1/students/"; class StudentService { getStudents(){ return axios.get(STUDENT_API_BASE_URL); } createStudent(student){ return axios.post(STUDENT_API_BASE_URL, student); } getStudentById(studentI...
import test from 'ava'; import delay from 'delay'; import inRange from 'in-range'; import timeSpan from 'time-span'; import randomInt from 'random-int'; import PQueue from '.'; const fixture = Symbol('fixture'); test('.add()', async t => { const queue = new PQueue(); const p = queue.add(async () => fixture); t.is(...
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Flight, { Rect } from 'react-flight/dom' class App extends Component { render() { return ( <Flight interactive ref={flight => (this.flight = flight)}> <Flight.Frame duration={3000} source interactiv...
# Relevant javadocs # LayoutPolicy, VersionPolicy # http://search.maven.org/remotecontent?filepath=org/sonatype/nexus/plugins/nexus-repository-maven/3.12.1-01/nexus-repository-maven-3.12.1-01-javadoc.jar # WritePolicy # http://search.maven.org/remotecontent?filepath=org/sonatype/nexus/nexus-repository/3.0.2-02/nexus-re...
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; import chalk from 'chalk'; import app from './app'; var PORT = process.env.PORT || 5000; ap...
import os import sys import unittest sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) import base_test class GetFromHttpTest(base_test.WebDriverBaseTest): def testGetUrlWithNoRedirectionOverHttp(self): page = self.webserver.where_is('navigation/res/empty.html') self.driver.get...
import { collection, addDoc, Timestamp, writeBatch, getDocs, query, where, documentId, } from "firebase/firestore/lite"; import React, { useContext, useState } from "react"; import { Link } from "react-router-dom/cjs/react-router-dom.min"; import { CartContext } from "../../Context/CartContext"; import...
//IE dont have console if (typeof window.console == 'undefined') console = { log: function() { }, info: function() { }, warn: function() { } }; $(document).ready(function() { /* * fff * */ NOC.init() // automake numbers of rack $(wi...
/* * #%L * GraphWalker Dashboard * %% * Copyright (C) 2005 - 2014 GraphWalker * %% * 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 th...
/** * Project: [treela-web] * Created on: '8/28/2017' * License: 'MIT' * Author: Akshay Kr Singh <akshay.scythe@gmail.com> */ export const MENU_TYPE_SHOP = 'app/components/AppHeader/MENU_TYPE_SHOP'; export const MENU_TYPE_ADMIN = 'app/components/AppHeader/MENU_TYPE_ADMIN';
Template.listCustomers.onCreated(function() { var template = this; template.autorun(function() { var skipCount = (currentPage() - 1) * Meteor.settings.public.recordsPerPage; template.subscribe( 'customers', skipCount, Router.current().params.sortField, Router.current().params.sort...
// Obj 2 atomicGL exporter // author: Remi COZOT - IRISA/University of Rennes 1 mur2toit=function(){ this.vertices =[ 12.9261,6.5495,-2.2999, // vertice0 13.0788,6.49,-2.2955, // vertice1 12.9263,6.49,-2.2922, // vertice2 14.7348,6.49,-2.3307, // vertice3 14.7347,6.5495,-2.3384, // vertice4 12.9409,6.6395,-1.6059, // ...
const express = require("express"); const database = require("./database"); const utils = require("../utils"); const router = express.Router(); router.post("/register", (request, response) => { if ( !request.body || !request.body.username || !request.body.password || !request.body.name ) { res...
''' Provider for duck dataset from xingyu liu ''' import os import os.path import json import numpy as np import sys import pickle import glob class SceneflowDataset(): def __init__(self, root='../semantic_seg/processed_data', npoints=2048, train=True): self.npoints = npoints self.train = tra...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './Card.css'; import HelperImage from '../../shared/media/images/icons/help.svg'; import Popover from '../Popover/Popover'; import PopoverBody from '../Popover/PopoverBody'; class Card extends Component { // eslint-disa...
export const MainNav = [ /*{ icon: 'pe-7s-config', label: 'Documentation', to: '#/documentation/main', },*/ { icon: 'pe-7s-rocket', label: 'Dashboards', content: [ { label: 'Analytics', to: '#/dashboards/analytics', }, { ...
#! /usr/bin/env python """ Routines to analysis execution time of virtual screening These routines were developed by: Rodrigo Antonio Faccioli - rodrigo.faccioli@usp.br / rodrigo.faccioli@gmail.com Leandro Oliveira Bortot - leandro.bortot@usp.br / leandro.obt@gmail.com """ import os import operato...
import request from '@/utils/request' // 查询调度日志列表 export function listJobLog(query) { return request({ url: '/monitor/jobLog/list', method: 'get', params: query }) } // 删除调度日志 export function delJobLog(jobLogId) { return request({ url: '/monitor/jobLog/' + jobLogId, method: 'delete' }) } ...
// config-overrides.js const { addWebpackAlias, babelInclude, fixBabelImports, override, } = require('customize-cra'); const path = require('path'); module.exports = override( fixBabelImports('module-resolver', { alias: { '^react-native$': 'react-native-web', }, }), addWebpackAlias({ '...
/* The contents of this file are subject to the Netscape Public * License Version 1.1 (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.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" ...
import os import logging import nose import angr l = logging.getLogger("angr_tests") this_file = str(os.path.dirname(os.path.realpath(__file__))) test_location = os.path.join(this_file, '../../binaries/tests') data_location = os.path.join(this_file, "../../binaries/tests_data/test_gdb_plugin") def test_gdb(): p ...
function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&#]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent...
/** * @file global api * @author mars */ // import Mars, {directives} from '${apiLibrary}' /** * 判断变量是否为对象 * * @param {Object} target 判断目标 * @return {Object} object 变量是否为对象 */ function shouleBeObject(target) { return target && typeof target === 'object' ? { res: true } : { res: ...
//Como o valor retornado deste módulo é um função factory será atribuido um objeto independente para cada const/var que acessar este módulo. module.exports = ()=>{ return{ valor: 1, inc(){ this.valor++; } }; };
const { parentPort } = require('worker_threads'); function random(min, max) { return Math.random() * (max - min) + min } const sorter = require("./test2-worker"); const start = Date.now() let bigList = Array(1000000).fill().map((_) => random(1, 10000)) /** //you can receive messages from the main thread this wa...
import React from 'react' import './CTable.css' import PropTypes from 'prop-types'; import CTableHeader from './CTableHeader'; import CTableRow from './CTableRow'; export default function CTable(props) { return ( <table className="cTable"> <caption>{props.caption}</caption> <CTableH...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 23 12:11:15 2020 Modified from the cornstover biorefinery constructed in Cortes-Peña et al., 2020, with modification of fermentation system for 2,3-Butanediol instead of the original ethanol [1] Cortes-Peña et al., BioSTEAM: A Fast and Flexible Pla...
var WidgetWrapper = require('./widget'); var TextBMFontWrapper = cc.Class({ name: 'cc.TextBMFontWrapper', extends: WidgetWrapper, properties: { text: { get: function () { return this.targetN.string; }, set: function (value) { if ...
from celery import shared_task from django.conf import settings from rgd.tasks import helpers @shared_task(time_limit=settings.CELERY_TASK_TIME_LIMIT) def task_load_image(file_pk): from rgd_imagery.models import Image from rgd_imagery.tasks.etl import load_image image_file = Image.objects.get(pk=file_pk)...
import os import cv2 import numpy as np #use um vídeo que mostre somente a pessoa que você deseja extrair o rosto #amostras de diferentes vídeos podem ser salvas na mesma pasta #o nome das novas amostras seguem a ordem crescente das amostras já salvas if __name__ == "__main__": video = "andy.mp4" diretorio =...
import { OPEN_HAMBURGER_MENU, OPEN_SEARCHBAR } from "./actions"; function hamburgerMenuReducer(state = false, action) { switch (action.type) { case OPEN_HAMBURGER_MENU: return action.isHamburgerMenuOpen; default: return state; } } function searchBarReducer(state = false, action) { switch (ac...
module.exports = 'deeper'
from string import ascii_letters, digits import RandomUsers as ru username = ru.Username() password = ru.Password(allow=ascii_letters + digits) user_model = ru.BasicModel(username=username, password=password) users = user_model.ordered_generate(ordered_fields={"username": "num_"}, csv_file="test.csv")
'use strict'; angular.module('myApp.jokes', []) .config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider .state('jokes', { url: '/jokes', data: { permissions: { except: ['anonymous'], redirectTo: 'auth' } }, ...
/*! * DevExtreme (dx.messages.es.js) * Version: 20.1.6 * Build date: Fri Jul 17 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" === typeof define &&...
def test_sigfig__3sigfigs_of_pi_314(): pass
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { StaticSymbol } from '../aot/static_symbol'; import { tokenReference } from '../compile_metadata'; import { I...
import unittest from conans.test.utils.tools import TestClient, TestServer from collections import OrderedDict from conans.util.files import load class RemoteTest(unittest.TestCase): def setUp(self): self.servers = OrderedDict() self.users = {} for i in range(3): test_server =...
[{"Owner":"Dad72","Date":"2016-12-02T00:53:39Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI am looking to create a ramp system. But I do not succeed in making it. Is what anybody has of idea of how?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAt the moment_co_ I raise summit...
(function (root, factory) { if ( typeof define === 'function' && define.amd ) { define([], factory(root)); } else if ( typeof exports === 'object' ) { module.exports = factory(root); } else { root.smoothScroll = factory(root); } })(typeof global !== 'undefined' ? global : this.window || this.global, function ...
import json import pytest from dvc.cli import parse_args from dvc.command.status import CmdDataStatus def test_cloud_status(tmp_dir, dvc, mocker): cli_args = parse_args( [ "status", "--cloud", "target1", "target2", "--jobs", "2", ...
zipdata({"7370912":[34,"呉市","焼山本庄"],"7372392":[34,"江田島市","能美町中町","4859番地9"],"7370065":[34,"呉市","望地町"],"7370812":[34,"呉市","西三津田町"],"7370145":[34,"呉市","仁方西神町"],"7372393":[34,"江田島市","沖美町畑","358番地"],"7372506":[34,"呉市","安浦町原畑"],"7370193":[34,"呉市","広多賀谷","1丁目5-1"],"7370046":[34,"呉市","中通"],"7370042":[34,"呉市","和庄本町"],"7370192"...
import { wallet } from "wallet-preload-shim"; import { DEX_LOGOUT_ATTEMPT, DEX_LOGOUT_SUCCESS, DEX_LOGOUT_FAILED, logoutDex, stopDex } from "./DexActions"; import { rescanCancel, ticketBuyerCancel, showCantCloseModal, stopMonitorLockableAccounts } from "./ControlActions"; import { getWalletServiceAt...
$(function(){ $('.wysiwyg').wysihtml5(); $('#form-news').validate(); $('#delPrjBtn').click(function(){ $('#form-del-project').submit(); }); $('#delNewsBtn').click(function(){ $('#form-del-news').submit(); }); $('#btnSubmitNews').click(function(){ $('#form-news').submit(); }); $('#show-modal-news'...
var searchData= [ ['revbitmatrix_5758',['RevBitMatrix',['../classoperations__research_1_1_rev_bit_set.html#ac9da3e5301f8c4c0ed8a261d0a0b2cbd',1,'operations_research::RevBitSet']]], ['revimmutablemultimap_5759',['RevImmutableMultiMap',['../classoperations__research_1_1_solver.html#a523b4c1786dd34b9d1fa2579b91b4c0d',...
exports.config = { // See http://brunch.io/#documentation for docs. files: { javascripts: { joinTo: { "js/app.js": /^(web\/static\/js)|(node_modules)/, "js/ex_admin_common.js": ["web/static/vendor/ex_admin_common.js"], "js/admin_lte2.js": ["web/static/vendor/admin_lte2.js"], ...
import { combineEpics } from 'redux-observable'; import { GET_USERS } from '../../store/actionTypes'; import { getUsersSuccess } from './ListAction'; export const getUsersEpic = (action$, store, { getUsersService }) => action$.ofType(GET_USERS).switchMap(() => getUsersService() .map(res => getUsersSuccess(res)) ...
// exports only the environment-specific config. module.exports = require('./env/'+process.env.NODE_ENV+'.env.config.js');
#!/usr/bin/env python2 import os, sys PATH = os.path.dirname(os.path.realpath(sys.argv[0])) + "/" configurations = dict( transdec = dict(bg_picture=PATH+"Transdec.jpg",extent=(-5,130.8,0,74.6)), teagle = dict(bg_picture=PATH+"teagle.jpg", extent=(0,27.7,0,16.66)), automatic = None #...
mycallback( {"CONTRIBUTOR OCCUPATION": "Designer", "CONTRIBUTION AMOUNT (F3L Bundled)": "35.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Sew What", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1524 McAllister Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DON...
'use strict'; const assert = require('assert'); const { isScalar } = require('../req'); describe('isScalar', function() { it('should accept scalar values', function() { assert.strictEqual(isScalar(0), true); assert.strictEqual(isScalar(42), true, 'Answer to the Ultimate Question of Life, the Un...
import React, { Component } from 'react' import LandingPage from './LandingPage' import { HashRouter, Route } from "react-router-dom"; // import LoadPage from './LoadPage'; import ReadPage from './ReadPage'; class App extends Component { render() { return ( <HashRouter> <div> <Route p...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
/*! * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2016 * @version 1.3.4 * * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format. * @see http://php.net/manual/en/function.date.php * * For more JQuery plugins visit http://plugin...
import React, { Component } from 'react' import { Link } from 'gatsby' import { Row, Col } from 'antd' const FooterListItem = props => ( <div className="footer-li"> {props.to ? ( <Row> <Link to={props.to}>{props.children}</Link> </Row> ) : ( props.children )} </div> ) class F...
var searchData= [ ['sl_20interface_20porting_20guide',['SL Interface Porting Guide',['../porting_guide.html',1,'SlNetSock_overview']]], ['s_5faddr',['s_addr',['../structSlNetSock__InAddr__t.html#a7dec588a9be0d55cced4a8e1737a3bba',1,'SlNetSock_InAddr_t']]], ['sa_5fdata',['sa_data',['../structSlNetSock__Addr__t.htm...
/* eslint-disable no-undef */ export const loadState = () => { try { const serializedState = localStorage.getItem("state") if (serializedState === null) { return undefined } return JSON.parse(serializedState) } catch (err) { return undefined } } export const saveState = state => { t...
import * as types from '../actions/actionTypes'; import initialState from './initialState'; export default function CategoryReducer(state = initialState.categories, action) { switch (action.type) { case types.CREATE_CATEGORY_SUCCESS: return [...state, Object.assign({}, action.catego...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = null; var argument3 = function callback(){callbackArguments.push(arguments)}; var argument4 = true; var argument5 = r_0; var argument6 = function callback(){callbackArguments.push(arguments)}; var a...
const path = require('path') exports.createPages = ({actions, graphql}) => { const {createPage} = actions const postTemplate = path.resolve('src/templates/blog-post.js'); return graphql(`{ allMarkdownRemark{ edges{ node{ html id ...
let listaUsario = []; const numeroDatos = () => parseInt(document.getElementById("numeroDatos").value); const aggInput = () => { // Eliminar todos los elementos hijos del padre; var elemento = document.getElementById("aggInputs"); while (elemento.firstChild) { elemento.removeChild(elemento.firstC...
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # Licensed under MIT conditions # # ---------------------------...
import _ from "lodash"; function ResultGroup(props) { //props.groupName //props.groupResults //props.onSelected return ( <section className="search-results-group-container"> <h3>{props.groupName}</h3> <ul> {props.groupResults.map((result, index) => { return ( <li ...
import { moduleFor, ApplicationTest } from '../../utils/test-case'; import { strip } from '../../utils/abstract-test-case'; import { compile } from '../../utils/helpers'; import { Controller, RSVP } from 'ember-runtime'; import { Component } from 'ember-glimmer'; import { Engine } from 'ember-application'; import { Rou...
def get_name(): return "world"
import random import torch import numpy as np import pandas as pd from multiprocessing import Pool from collections import UserList, defaultdict from rdkit import rdBase from matplotlib import pyplot as plt from rdkit import Chem # https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader def set_torch_se...
/* global $, _ */ define( [ 'edx-ui-toolkit/js/utils/global-loader' ], function(GlobalLoader) { 'use strict'; describe('GlobalLoader', function() { beforeEach(function() { GlobalLoader.defineAs('TestModule', 'js/test-module')( [], ...
import { Meteor } from 'meteor/meteor'; import { settings } from 'meteor/rocketchat:settings'; import s from 'underscore.string'; export const getURL = (path, { cdn = true, full = false } = {}) => { const cdnPrefix = s.rtrim(s.trim(settings.get('CDN_PREFIX') || ''), '/'); const pathPrefix = s.rtrim(s.trim(__meteor_r...
/*The MIT License (MIT) Copyright (c) 2014 Andrew MacKenzie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const UserSchema = new Schema({ name: { type: String, required: true }, email: { type: String, required: true }, password: { type: String, required: true }, date: { ...
/*! jQuery UI - v1.11.4 - 2015-10-18 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs....
/* eslint-disable prefer-arrow-callback */ /* eslint-disable func-names */ /* eslint-disable no-undef */ const { assert } = require('chai'); const seeder = require('../../seeder/seeder'); const db = require('../../database-mysql'); describe('Database', function () { describe('Update Database', function () { cons...
const { GraphQLString } = require('graphql'); const TokenScalar = require('../scalars/token.scalar.js'); const DateScalar = require('../scalars/date.scalar.js'); const UriScalar = require('../scalars/uri.scalar.js'); /** * @name exports * @static * @summary Arguments for the operationdefinition query */ module.exp...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M.01 0h24v24h-24V0z" /><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0...
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="export_image.py"> # Copyright (c) 2019 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a #...