text
stringlengths
3
1.05M
let handler = async (m, { conn, text }) => { let who if (m.isGroup) who = m.mentionedJid[0] ? m.mentionedJid[0] : m.quoted ? m.quoted.sender : text else who = m.chat if (!who) throw `tag orangnya!` if (global.prems.includes(who.split`@`[0])) throw 'dia udah premium!' global.prems.push(`${who.spl...
addEventListener('fetch', event => { event.respondWith(handleRequest(event.request)) }) let tracker = null; let restart = true; const baseUrl = "https://cfw-takehome.developers.workers.dev/api/variants"; class ElementHandler { element(element) { const attribute = element.getAttribute('id'); // variant 1 ...
const path = require('path'); module.exports = { entry: './client/index.js', output: { path: path.resolve(`${__dirname}/build`), filename: 'bundle.js', publicPath: '/' }, mode: process.env.NODE_ENV, devServer: { hot: true, publicPath: "/build/", proxy...
const { expect } = require('chai'); const path = require('path'); const fs = require('fs'); const tmp = require('tmp'); const { find } = require('lodash'); const CliArgumentParser = require('../../lib/cli/argument-parser'); const nanoid = require('nan...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pastefromword', 'ms', { confirmCleanup: 'The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?'...
const webpack = require('webpack'); const loaders = require("./helpers/webpack.loaders.config"); const preloaders = require("./helpers/webpack.preloaders.config"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: ['./src...
'use strict'; angular.module('wanderlustApp') .directive('starRating', function(){ return { restrict: 'E', template: '<span class="glyphicon glyphicon-star"></span>' }; }) .directive('tagPrice', function(){ return { restrict: 'E', template: '<span class="glyphicon glyphicon...
""" RenderPipeline Copyright (c) 2014-2016 tobspr <tobias.springer1@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...
import React from 'react'; import PropTypes from 'prop-types'; import TreeView from '@material-ui/lab/TreeView'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import ChevronRightIcon from '@material-ui/icons/ChevronRight'; import TreeItem from '@material-ui/lab/TreeItem'; import Column from './Column'; im...
//----------------------------------------------------------------------------- // Phina.Asset.Sound exports._play = function(sound) { return sound.stop().play(); }; exports._stop = function(sound) { return sound.stop(); }; exports._pause = function(sound) { sound.source != null && sound.pause(); return soun...
# coding=utf-8 # Copyright 2021 Google LLC. # # 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 ...
/* * DragZoomControl Class * Copyright (c) 2005-2007, Andre Lewis, andre@earthcode.com * * 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 ...
"use strict"; var basic_calendar = { init: function() { $('#cal-basic').fullCalendar({ defaultDate: '2016-06-12', editable: true, selectable: true, selectHelper: true, droppable: true, eventLimit: true, select: function(star...
webpackJsonp([4,5],{"+3eL":function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=n("WhVc");e.tryCatch=o},"+Qf+":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r;!function(t){t[t.PREV=0]="PREV",t[...
# -*- coding: utf-8 -*- import unittest from add_to_numbers import add_lists, ListNode class TestAddTwoNumbers(unittest.TestCase): def test_solution(self): a = ListNode(val=2, next=ListNode(val=4, next=ListNode(val=3, next=None))) b = ListNode(val=7, ...
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFormatSize(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M17 9v6h10v24h6V15h10V9H17zM5 25h6v14h6V25h6v-6H5v6z" /> </IconBase> ); } export default MdFormatSize;
/* Copyright 2020 The caver-js Authors This file is part of the caver-js library. The caver-js library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, o...
/** * 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...
import React from 'react'; import Logo from 'images/logo.png'; import Logoo from 'images/logoo.png'; export const Nav00DataSource = { wrapper: { className: 'header0 home-page-wrapper' }, page: { className: 'home-page' }, logo: { className: 'header0-logo', children: Logo, }, Menu: { className: 'hea...
import sys def fibonacci_recursivo(n): if n == 0 or n == 1: return 1 return fibonacci_recursivo(n - 1) + fibonacci_recursivo(n - 2) def fibonacci_dinamico(n, memo = {}): if n == 0 or n == 1: return 1 try: return memo[n] except KeyError: resultado = fibonacci_dina...
const mongoose = require('mongoose'); module.exports = () => { mongoose.connect('mongodb+srv://movie_user:BYe7kVDSDr1Dq4Nc@cluster0.qz3r5.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'); mongoose.connection.on('open', () => { console.log('MongoDB connected successful.'); }); mongoose....
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","et",{title:"Accessibility Instructions",contents:"Abi sisu. Selle dialoogi sulgemiseks vajuta ESC klahvi.",legend:[{name:"Üldine",items:...
module.exports = { globals: { 'currentURL': true, 'pauseTest': true, 'percySnapshot': true, 'selectChoose': true, 'selectSearch': true, } };
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import './_helpers/i18n'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // ...
function createSnippetChooser(id, contentType) { var chooserElement = $('#' + id + '-chooser'); var docTitle = chooserElement.find('.title'); var input = $('#' + id); $('.action-choose', chooserElement).click(function() { ModalWorkflow({ 'url': window.chooserUrls.snippetChooser + co...
frappe.provide("ifitwala_ed.setup"); frappe.pages['setup-wizard'].on_page_load = function(wrapper) { if(frappe.sys_defaults.organization) { frappe.set_route("desk"); return; } }; frappe.setup.on("before_load", function () { ifitwala_ed.setup.slides_settings.map(frappe.setup.add_slide); }); ifitwala_ed.setup....
"""configapp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
const formLogin = document.getElementById('login'); const formRegister = document.getElementById('register'); let regexPass = new RegExp(/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/gm); let regexName = new RegExp(/^(?=.{8,20}$)(?![_.])(?!.*[_.]{2})[a-zA-Z0-9._]+(?<![_.])$/gm); let regexEmail = new ...
import React, { Component } from 'react'; import Button from 'material-ui/Button'; import { render } from 'react-dom'; import { Link } from 'react-router-dom'; import TextField from 'material-ui/TextField'; const style = { margin: 12, backgroundColor: 'teal', color: 'black' }; class UserAnswers exten...
import argparse import cdm import resources from bq_utils import create_dataset, list_all_table_ids, query, wait_on_jobs, BigQueryJobWaitError, \ create_standard_table from utils import bq BIGQUERY_DATA_TYPES = { 'integer': 'INT64', 'float': 'FLOAT64', 'string': 'STRING', 'date': 'DATE', 'time...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0273":function(t,n,r){var e=r("c1b2"),o=r("4180"),i=r("2c6c");t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},"0363":function(t,n,r){var e=r("3ac6"),o=r("d659"),i=r("3e80"),c=r("1e63"),u=e.Symbol,a=o("wks...
//这里是三个中间件为例子 composeReturn = function(...args){ return (function(...args){ return (function(next){ return /* function(action){ * console.log('中间件1') * return setTimeout(function(){ * next(action) * },2000) * ...
# -*- coding: utf-8 -*- """ Created on Mon Aug 16 16:13:48 2021 @author: 20210595 """ from gama.genetic_programming.components.individual import Individual from gama.genetic_programming.compilers.scikitlearn import compile_individual from gama.genetic_programming.components.primitive_node import PrimitiveNode from ga...
""" WSGI config for studentstudyportal project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
import { expect, fixture, html, assert, elementUpdated, fixtureCleanup, } from "@open-wc/testing"; import { setViewport } from "@web/test-runner-commands"; import "../lrnsys-button.js"; /* * Instantiation test * create element and see if an attribute binds to the element */ describe("Instantiation Test"...
/* * Copyright (c) 2006-2012 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * i...
(this["webpackJsonphotkeys-js"]=this["webpackJsonphotkeys-js"]||[]).push([[69],{106:function(e,n,t){(function(n){var t=function(e){var n=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instan...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _xeUtils = _interopRequireDefault(require("xe-utils")); var _conf = _interopRequireDefault(require("../../conf")); var _cell = _interopRequireDefault(require("../../cell")); var _vXETable = require("../../v...
const getenv = require('getenv') const packages = require('../../package.json') require("dotenv").config() const getVersion = () => { const packageVersion = packages.version const lastDotIndex = packageVersion.lastIndexOf('.') const version = packageVersion.slice(0, lastDotIndex) return `${version}.${getenv('...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-14 16:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('osf', '0058_merge_20170913_2232'), ('osf', '0055_update_metaschema_active'), ] oper...
// Generated by CoffeeScript 2.5.1 // # `nikita.lxd.network.delete` // Delete an existing lxd network. // ## Options // * `network` (required, string) // The network name. // ## Callback parameters // * `err` // Error object if any. // * `status` // True if the network was deleted. // ## Example /...
import argparse import sys import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import unsupervised_learning.tensorflow.models as models def get_mnist(): mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=False) Xtrain, Ytrain = mnist.train.images, mni...
import tensorflow as tf class grade_dec_drone_net: def __init__(self, state_size, action_size, learning_rate, name='dNet'): self.state_size = state_size self.action_size = int(action_size) self.learning_rate = float(learning_rate) with tf.variable_scope(name): with tf...
"""tests the pyNastran solver""" from __future__ import print_function, unicode_literals import os import unittest import pyNastran from pyNastran.bdf.test.test_bdf import run_and_compare_fems from pyNastran.dev.bdf_vectorized.bdf import read_bdf as read_bdfv from pyNastran.bdf.bdf import read_bdf #from pyNastran.util...
############################################################### # NATS-Bench (https://arxiv.org/pdf/2009.00437.pdf) # # The code to draw Figure 6 in our paper. # ############################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020.06 # ...
from chalicelib.utils import helper from chalicelib.ee.utils import ch_client from chalicelib.utils.TimeUTC import TimeUTC def get_by_session_id(session_id): with ch_client.ClickHouseClient() as ch: ch_query = """\ SELECT datetime,url,type,duration,ttfb,header_size,e...
module.exports = function(RED) { var ui = require('../ui')(RED); function validateSwitchValue(node,property,type,payload) { if (payloadType === 'flow' || payloadType === 'global') { try { var parts = RED.util.normalisePropertyExpression(payload); if (parts.le...
const User = require('../models/user.js'); const jwt = require('jsonwebtoken'); const config = require('../config'); const bcrypt = require('bcrypt'); const api = require('../util').api; const Summoner = require('../models/summoner'); const uuid = require('uuid'); const secret = config.secret; // Validates that a pas...
'use strict'; /* global Connector */ var nowPlayingSelector = '#now-playing .playlister'; Connector.playerSelector = '.programme-details-wrapper'; Connector.artistSelector = nowPlayingSelector + ' .track .artist'; Connector.trackSelector = nowPlayingSelector + ' .track .title'; Connector.getUniqueID = function() {...
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.com/docs/use-static-query/ */ import * as React from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql } from "gatsby" import Header from "./header" import "./layout.css" ...
""" Создать программно файл в текстовом формате, записать в него построчно данные, вводимые пользователем. Об окончании ввода данных свидетельствует пустая строка. """ def main(): run_program = True with open("task1_data.txt", "w") as f: while run_program: user_str = input("введите строк...
import { StyleSheet } from 'react-native' import { colors } from '../../../theme' export default StyleSheet.create({ scrollViewContent: { alignItems: 'flex-start', flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'flex-start', paddingVertical: 5, width: '100%', }, emp...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Test the conversion to/from astropy.table """ import io import os import pathlib import pytest import numpy as np from astropy.config import set_temp_config, reload_config from astropy.utils.data import get_pkg_data_filename, get_pkg_data_fileobj fro...
//// [compoundArithmeticAssignmentWithInvalidOperands.ts] enum E { a, b } var a: any; var b: void; var x1: boolean; x1 *= a; x1 *= b; x1 *= true; x1 *= 0; x1 *= '' x1 *= E.a; x1 *= {}; x1 *= null; x1 *= undefined; var x2: string; x2 *= a; x2 *= b; x2 *= true; x2 *= 0; x2 *= '' x2 *= E.a; x2 *= {}; x2 *= null; x2 *=...
import HomeComponent from './components/HomeComponent'; import loginComponent from './components/loginComponent'; import dashboardComponent from './components/dashboardComponent'; export const routes =[ {path:"/",name:"index",component:HomeComponent}, {path:"/home",name:"home",component:HomeComponent}, {path:"/login"...
// // Magic Wand Control for Openlayers 2.13 // // The MIT License (MIT) // // Copyright (c) 2014, Ryasnoy Paul (ryasnoypaul@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 w...
# -*- coding: utf-8 -*- # Copyright (c) 2020, UMIS and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestManagementSuratPKWTT(unittest.TestCase): pass
var fs = require('fs'); module.exports = { fileDemo: function(wss){ fs.readFile('file.txt','utf8', function(error, text){ wss.broadcast(text); }); wss.broadcast("After First Read\n"); fs.readFile('file2.txt','utf8', function(error, text){ wss.broadcast(text); }); wss.broadcast("After Second Read\n"); } }
import request from '@/utils/request' export function getRoutes() { return request({ url: '/vue-element-admin/routes', method: 'get' }) }
# Import packages import codecademylib import numpy as np import pandas as pd # Import matplotlib pyplot from matplotlib import pyplot as plt # Read in transactions data mu, sigma = 800, 100 # mean and standard deviation burrito_calories = np.random.normal(mu, sigma, 320) # Save transaction times to a separate numpy...
from tkinter import * def donothing(): filewin = Toplevel(root) button = Button(filewin, text="Do nothing button") button.pack() root = Tk() menubar = Menu(root) filemenu = Menu(menubar, tearoff=0) filemenu.add_command(label="New", command=donothing) filemenu.add_command(label="Open", command=donothing)...
// ==UserScript== // @name Press "g" to Google (DuckDuckGo) // @namespace https://wiki.gslin.org/wiki/Google // @version 0.20210908.0 // @description Press "g" to Google in DuckDuckGo // @author Gea-Suan Lin // @match https://duckduckgo.com/* // @grant GM_addStyle // @grant G...
// Moving noise into the global scope so its not attached to P5 let noise = () => {} const canvasW = 685 const canvasH = 500 const dimensions = 10 let masks = {} let SLIDER = { zoom: 0, // voronoiLerp: .9, backgroundColor: .5, color: .5, saturation: .5, thickness: .5, eyebrows: .5 } let controls = { startMas...
/** * Xenon Main * * Theme by: www.laborator.co **/ var public_vars = public_vars || {}; ;(function($, window, undefined){ "use strict"; $(document).ready(function() { // Main Vars public_vars.$body = $("body"); public_vars.$pageContainer = public_vars.$body.find(".page-contai...
"""test_1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requi...
# coding: utf-8 import warnings from .base import Model, ModelManager class SenderSignature(Model): def get(self): new_instance = self._manager.get(self.ID) self._data = new_instance._data return self def edit(self, **kwargs): response = self._manager.edit(self.ID, **kwargs)...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("uicolor","km",{title:"ប្រដាប់​រើស​ពណ៌",preview:"មើល​ជាមុន​ផ្ទាល់",config:"បិទ​ភ្ជាប់​ខ្សែ​អក្សរ​នេះ​ទៅ​ក្នុង​ឯកសារ config.js របស់​អ្នក",predefin...
'use strict' const mongoose = require('mongoose') const schema = mongoose.Schema({ _id: String, courseCode: { type: String, required: [true, 'Enter Course Code'], }, semesterList: [ { semester: String, idList: [Number], }, ], }) const CourseUsedRoundsHandler = mongoose.model('Co...
import datetime import os from itertools import chain, starmap def dict_compare(old_dict, new_dict, nested=None): """ Compare two dictionaries Only 1 level, ignoring attributes starting with '_' """ key_prefix = nested + '|' if nested else '' intersect_keys = old_dict.keys() & new_dict.keys() ...
export const MONTHS = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ]; export const HEADER_DAY_NAMES = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'] export const FINAL_MONTH_INDEX = 11; export const INITIAL_MONTH_INDEX = ...
const {createFilePath} = require("gatsby-source-filesystem"); exports.onCreateNode = ({ node , getNode, actions }) => { const {createNodeField} = actions; if (node.internal.type === "MarkdownRemark"){ const slug = createFilePath({node, getNode, basePath: "posts"}) createNodeField({ node,...
// |!| Consider older versions var dummyAdd = function(paramA, paramB){ return paramA + paramB; } var dummyMulitply = function(paramA, paramB){ return paramA + paramB; } // |!| This is the last line
var express = require('express'), app = express(), bodyParser = require('body-parser'), mongoose = require('mongoose'), meetupsController = require('./server/controllers/meetups-controller'); mongoose.connect('mongodb://localhost:27017/mean-demo'); app.use(bodyParser()); app.get('/', function (req, ...
(function () { "use strict"; Date.Parsing = { Exception: function (s) { this.message = "Parse error at '" + s.substring(0, 10) + " ...'"; } }; var $P = Date.Parsing; var dayOffsets = { standard: [0,31,59,90,120,151,181,212,243,273,304,334], leap: [0,31,60,91,121,152,182,213,244,274,305,335] }; $P.isL...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
/** * @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...
# Autoreloading launcher. # Borrowed from Peter Hunt and the CherryPy project (http://www.cherrypy.org). # Some taken from Ian Bicking's Paste (http://pythonpaste.org/). # # Portions copyright (c) 2004, CherryPy Team (team@cherrypy.org) # All rights reserved. # # Redistribution and use in source and binary forms...
# Copyright The PyTorch Lightning team. # # 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 i...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (Prism) { Prism.languages.applescript = { 'comment': [ // Allow one level of nesting /\(\*(?:\(\*[\s\S]*?\*\)|[\s\S])*?\*\)/, /--.+/, /#.+/], 'string': /"(?:\\.|[^"\\\r\n])*"/, 'number': /(?:\b\d+\.?\d*...
/* * Copyright (C) 2019-2020 HERE Europe B.V. * * 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...
import React from 'react'; const buttonStyle = { width: '80px', height: '30px', }; const LogoutBtn = ({ logOut }) => { return ( <button onClick={logOut} style={buttonStyle}> 로그아웃 </button> ); }; export default LogoutBtn;
try: from setuptools import setup except ImportError: from distutils.core import setup setup( author='Simon Davy', author_email='simon.davy@canonical.com', classifiers=[ 'License :: OSI Approved :: Apache Software License', 'Development Status :: 4 - Beta', 'Intended Audien...
export function requestAnimationFrame() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(cb) { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var react_redux_1 = require("react-redux"); var styles_1 = require("@material-ui/core/styles"); var core_1 = require("@material-ui/core"); var useStyles = styles_1.makeStyles(function (theme) { return ({ root:...
import React from 'react'; import Presentation from '../components/Presentation'; import Profile from '../components/Profile'; import withOnboardService from '../components/withOnboardService'; function Authorship(props) { return ( <React.Fragment> <Profile {...props} /> <Presentation title="...
var windows = []; /** * Resets the windows and removes * any interval that is running */ function reset() { windows.forEach( function (w) { w.contentWindow.close(); } ); windows.length = 0; } /** * Initialise and launch the windows * @see http://developer.chrome.com/trunk/apps/app.window.html */ fun...
import { isBigNumber, isCollection, isNumber } from '../../utils/is' import { factory } from '../../utils/factory' import { errorTransform } from './utils/errorTransform' import { createSum } from '../../function/statistics/sum' /** * Attach a transform function to math.sum * Adds a property transform containing the...
var dispatcher = require("../dispatcher"); var schoolService = require("../services/schoolService"); function SchoolStore() { var listeners = []; function onChange(listener) { getSchools(listener); listeners.push(listener); } function getSchools(cb){ schoolService.getSchoo...
const checkAuth = (req, res, next) => { console.log(req.isAuthenticated()); if(req.isAuthenticated()){ console.log('Autenticado'); next(); } else{ console.log('Sin autenticar') } } const isAdmin = (req, res, next) => { console.log('ROLE', req.user.role); req.user.r...
/* eslint react/no-string-refs:0 */ import React, { Component } from 'react'; import IceContainer from '@icedesign/container'; import { Input, Button, Select, DatePicker, Radio, Message } from '@alifd/next'; import { FormBinderWrapper as IceFormBinderWrapper, FormBinder as IceFormBinder, FormError as IceFormError...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `useStaticQuery`, which allows us to lo...
define(['module', 'require', 'external'], function (module, require, external) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } function _interopNamespace(e) { if (e && e.__esModule) { return e; } else { var n = Object.create(nul...
let porcionesNecesitadasFresas let porcionesNecesitadasTres let porcionesNecesitadasTorta let disponiblePastelFresas = 5 let disponiblePastelTres = 8 let disponiblePastelTorta = 2 let precioPastelFresas = 16 let precioPastelTres = 12 let precioPastelTorta = 18 let eleccion let seguirComprando while (eleccion != "s...
var express = require('express'); var router = express.Router(); var models = require('../models'); var expressValidator = require('express-validator'); const Op = models.sequelize.Op; router.use(expressValidator()); /* POST search page '/' is NOT Home page */ router.post('/', function(req, res, next) { if (...
export default "M13 13H11V7H13M13 17H11V15H13M18 4V20H6V8.8L10.8 4H18M18 2H10L4 8V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V4C20 2.9 19.1 2 18 2Z"
import { InterpolateDiscrete } from '../../constants'; import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype'; import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor'; /** * * A Track of Boolean keyframe values. * * * @author Ben Houston / http://clara.io/ * @author David Sarno / http:...
import GTM from '../../../common/gtm'; import { translate, translateLangToLang } from '../../../common/i18n'; import { getLanguage } from '../../../common/lang'; import { save } from './utils'; /* eslint-disable */ Blockly.WorkspaceAudio.prototype.preload = function() {}; Blockly.FieldDropdown.prototype.render_ = func...
import os from pathlib import Path from jina import Flow from jina.parsers.helloworld import set_hw_parser if __name__ == '__main__': from helper import ( print_result, write_html, download_data, index_generator, query_generator, ) from my_executors import MyEncoder...
from functools import wraps from inspect import iscoroutinefunction from typing import Any from typing import Callable from typing import List from starlette.requests import Request from sso_auth.config import SSOAuthConfig from sso_auth.exceptions import SSOPermissionDenied from sso_auth.exceptions import SSOUnathor...