text
stringlengths
3
1.05M
//! moment.js1 locale configuration ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this,...
/** * * Tests for Config * * @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing * */ import React from 'react'; import { render } from 'react-testing-library'; import { IntlProvider } from 'react-intl'; // import 'jest-dom/extend-expect'; // add some helpful assertions import C...
from django.db import models from django.contrib.auth.models import User # Create your models here. class Customer(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, blank=True, null=True) name = models.CharField(max_length=50, blank=True) photo = models.ImageField(upload_to='photos/%Y/%m/%d/...
""" Example Python 3 code Does libfuturize --from3 handle this, or does it add an evil eval() to the input() call? It should also add 'from __future__ import print_function' """ def greet(name): print("Hello, {0}!".format(name)) print("What's your name?") name = input() greet(name)
'use strict'; class GlobalWs { constructor() { this._receiveMessage = this._receiveMessage.bind(this); } start() { this.ws = new WebSocket("ws://" + window.location.host + "/refresh"); this.ws.onmessage = this._receiveMessage; } sendMessage(message) { this.ws.send...
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMapMarker extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m25.6 14.3q0-2.4-1.6-4.1t-4.1-1.6-4 1.6-1.7 4.1 1.7 4 4 1.7 4.1-1.7 1.6-4z...
/** * Factory function for creating a function to be called by the Windows installer template config * @param {String} config * @returns {Function} */ function getInstallerFiles( config ) { return function( grunt ) { const dir = grunt.config( `template.${config}.options.data.dirinput` ); function getFiles( fi...
/** * @license Angular v11.2.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("@angular/common"),require("@angular/core"),require("@angular/upgrade/static")):"function"==typeof define&&define.amd...
/* global $:true */ /* global WebKitCSSMatrix:true */ (function($) { "use strict"; $.fn.transitionEnd = function(callback) { var events = ['webkitTransitionEnd', 'transitionend', 'oTransitionEnd', 'MSTransitionEnd', 'msTransitionEnd'], i, dom = this; function fireCallBack(e) { /*jshint validt...
module.exports = new Date(1970, 3, 10)
(function (enyo, scope) { /** * {@link enyo.Arranger} is an {@link enyo.Layout} that considers one of the * controls it lays out as active. The other controls are placed relative to * the active control as makes sense for the layout. * * `enyo.Arranger` supports dynamic layouts, meaning it's possible to transiti...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'fi', { toolbar: 'Lainaus' } );
import Vue from 'vue' import { mapGetters } from 'vuex' // import moment from 'moment' Vue.mixin({ methods: { _(value, path) { return (!Array.isArray(path) ? path.replace(/\[/g, '.').replace(/\]/g, '').split('.') : path).reduce((o, k) => (o || {})[k], value) || undefined }, delConfir...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
var xdfeprach__intr_8c = [ [ "XDfePrach_ClearInterruptStatus", "xdfeprach__intr_8c.html#ga955f2cd38339340cb1b4d22174d63719", null ], [ "XDfePrach_GetInterruptMask", "xdfeprach__intr_8c.html#ga1f619bef82e0068440be4ffe951e0443", null ], [ "XDfePrach_GetInterruptStatus", "xdfeprach__intr_8c.html#ga25e144a8e620...
# qubit number=4 # total number=43 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
/* * Copyright 2016 Google 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 applicabl...
module.exports = { name: 'error', description: "Tests the catch exception", execute(message, args) { InvalidException } }
var gulp = require('gulp'), gulpSequence = require('gulp-sequence'); gulp.task('default', gulpSequence('build', 'watch'));
/* This script shows or hides form inputs depending on what is selected for the request type. */ $( document ).ready(function() { $selected = $('#typeselect'); $('#asset_input').hide(); $('#hardware_input').hide(); $('#software_input').hide(); $('#printer_input').hide(); $('#web_input').hide(); $('#...
""" File: draw line Name: Chien-Wei Peng ------------------------- """ from campy.graphics.gobjects import GOval, GLine from campy.graphics.gwindow import GWindow from campy.gui.events.mouse import onmouseclicked SIZE = 10 window = GWindow() point = GOval(SIZE, SIZE) count = 0 def main(): """...
"function"!=typeof Object.create&&(Object.create=function(){var c=function(){};return function(e){if("object"!=typeof e)throw TypeError("prototype must be an object");c.prototype=e;e=new c;c.prototype=null;return e}}());"object"!==typeof window.console&&(window.console={log:function(c){}});(function(){for(var c="articl...
import React from "react"; import styled from "styled-components"; import Plx from "react-plx"; import Name from "./hero/Name"; import Button from "./Button"; import { heroInfo } from "./Context"; import { textData } from "./parallax/TextData"; const LandPage = () => { return ( <> <Container> <Plx...
define([ 'Utils/CheckType', 'Utils/Flow/Promise/Promise', 'Utils/Flow/Promise' ], function ( CheckType, Promise, FlowPromise ) { var module = { promise: Promise, track: FlowPromise }; return module; }); /* new Flow .promise(function(resolve, reject) { ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M9.7 12.31l.25.69h.77l2-2H8.98c.3.39.54.83.72 1.31z" opacity=".3" /><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0...
'use strict'; const path = require('path'); const webpack = require('webpack'); // plugins const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const keys = { env: { dev: 'development', prod: 'production' } }; const NOD...
import os import cv2 import torch import torch.nn as nn import numpy as np from lib.backbones import dla from lib.backbones.dlaup import DLAUp from lib.backbones.hourglass import get_large_hourglass_net from lib.backbones.hourglass import load_pretrian_model class CenterNet3D(nn.Module): def __init__(self, back...
const router = require('express').Router() const {Itemized} = require('../db/models') const {Order} = require('../db/models') const {isTrueUser} = require('../GateKeeper') module.exports = router router.get('/', async (req, res, next) => { try { const items = await Itemized.findAll() res.json(items) } cat...
# 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 ...
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from functools import wraps from indico.core.settings import Set...
""" Test lldb data formatter subsystem. """ import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class AdvDataFormatterTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def setUp(self): # Call super's setUp(). TestBase.setUp(self) ...
/** * Work Collection * @type {exports} */ import {Collection} from 'backbone'; import Model from './model'; export default Collection.extend({ url: '/api/work', model: Model });
import time import base64 import functools import json import jwt import requests from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from datetime import datetime class DCPAuthClient(object): audience = "https://dev.data.humancellatlas.org/" dev_...
var SG_Hooks = { debug : true, getLanguage : function( supportedLanguages ){ return SG.initLangs(supportedLanguages); }, start : function(){ SG_Hooks.debug && console.log('game started'); SG.trigger({type:'start'}); }, levelUp : function( level, score, callback){ SG_Hooks.deb...
# -*- coding: utf-8 -*- import finicityapi.models.error_message import finicityapi.models.report_constraints import finicityapi.models.voa_report_institution import finicityapi.models.asset_summary class VOAReportRecord(object): """Implementation of the 'VOA Report Record' model. VOA Report Recor...
import render from '#/render'; describe('markdown-it-footnote tests', () => { let source, result; it('should be able to support footnotes', async () => { source = ` Here is a footnote reference,[^1] and another.[^longnote] [^1]: Here is the footnote. [^longnote]: Here's one with multiple blocks. Subseq...
let calculator = function () { // empty constructor }; calculator.prototype.add = function (a, b) { return a + b; }; module.exports = calculator;
# There Are Many Ways To Import Libraries! # Match the following print statements with the appropriate library calls. # Print commands: print("sin(pi/2) =", sin(pi/2)) print("sin(pi/2) =", m.sin(m.pi/2)) print("sin(pi/2) =", math.sin(math.pi/2)) # Library calls: from math import sin, pi import math import math as ...
module.exports = (user) => { return { _id: user._id, isComplete: user.isComplete, email: user.email, } }
(function () { 'use strict'; describe('Teachers Controller Tests', function () { // Initialize global variables var TeachersController, $scope, $httpBackend, $state, Authentication, TeachersService, mockTeacher; // The $resource service augments the response object ...
/* eslint-disable class-methods-use-this */ import Notification from '../schemas/Notification'; import User from '../models/User'; class NotificationController { async index(req, res) { // Check if provider_id is a provider const isProvider = await User.findOne({ where: { id: req.userId, provider: true...
import{r as t,g as s}from"./p-8419ec55.js";const e=class{constructor(s){t(this,s),this.context={},this.renderer=()=>null}connectedCallback(){null!=this.subscribe&&(this.unsubscribe=this.subscribe(this.el,"context"))}disconnectedCallback(){null!=this.unsubscribe&&this.unsubscribe()}render(){return this.renderer(Object.a...
import styled from 'styled-components'; import { applyStyleModifiers } from 'styled-components-modifiers'; import { rem } from 'polished'; import { fontColors, fontSizes, fontStyles, fontWeights, } from '../../modifiers'; const modifierConfig = { ...fontColors, ...fontSizes, ...fontStyles, ...fontWeig...
# -*- coding: utf-8 -*- # pylint: skip-file """ Container class for `Trial` entity ================================== Describe a particular training run, parameters and results. """ import hashlib import logging from orion.core.utils.flatten import unflatten log = logging.getLogger(__name__) def validate_status(s...
import resolverBottomLeft from '../resolverBottomLeft'; describe('resolverBottomLeft', () => { it('should return the correct position', () => { const meta = { trigger: { leftBottomAnchor: { x: 0, y: 200, }, }, ...
/*! * Ext JS Library 3.0.0 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.state.Manager * This is the global state manager. By default all components that are "state aware" check this class * for state information if you don't pass them a custom sta...
import os import yaml import pickle import rasterio from rasterio.warp import reproject, Resampling import numpy as np from guided_filter import guidefilter_ite2, guidefilter def preprocess(file, config="./config.yaml"): """ This function applies preprocess of resampling and filtering on each downloaded raw S...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { ConcatSource, OriginalSource } = require("webpack-sources"); const Template = require("./Template"); /** @typedef {import("./Compilation")} Compilation */ /** * @param {string[]} accessor the ac...
#!/usr/bin/env python # test_notify.py - unit test for async notifications # # Copyright (C) 2010-2019 Daniele Varrazzo <daniele.varrazzo@gmail.com> # # psycopg2 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 Fo...
# coding=utf-8 # 这是为Youtube(PC ONLY)镜像配置的示例配置文件 # Youtube手机站的配置文件是 config_youtube_mobile.py # # 请耐心看完注释 # 请耐心看完注释 # 请耐心看完注释 # 请耐心看完注释 # 请耐心看完注释 # # 使用方法: # 1. 复制本文件到 zmirror 根目录(wsgi.py所在目录), 并重命名为 config.py # 2. 复制 custom_func_youtube.py 到zmirror根目录, 并重命名为 custom_func.py # 3.*本步仅限本地部署需要 在本地hosts(如果不知道这是什么, 请自行g...
export default { "hljs": { "display": "block", "overflowX": "auto", "padding": "0.5em", "background": "#fff", "color": "#000" }, "hljs-subst": { "color": "#000" }, "hljs-string": { "color": "#756bb1" }, "hljs-meta": { "color": "#756bb1" }, "hljs-symbol": { "color": ...
var disqus_identifier=document.getElementById("post_id").getAttribute("data");
module.exports=`/* __--__--__--__--__--__--__--__-- Marching.js provides a variety of ways to create procedural textures. In order of increasing complexity, they are: 1. Using texture presets 2. Using HTML <canvas> objects 3. Using Hydra, another live coding system for 2D visual...
import angular from 'angular'; import * as apiValidationService from './api-validation.service'; import * as apiFormValidateDirective from './api-form-validate.directive'; import * as apiValidatateDirective from './api-validate.directive'; export default angular.module('naturalartmedia.api-validation', ['ng']) .fac...
import unittest #in order to separate out the test code in a more tidy manner, please make your test classes in this directory # and be sure to include them in this file for them to be included in the tests import sys import os #current_path = os.path.dirname(__file__) #sys.path.append(os.path.join(current_path,"../ap...
"""crop2cash 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...
export default function changix() { const changelogSidebar = document.getElementsByClassName("changelog-sidebar")[0]; const changelogSidebarCloseBtn = changelogSidebar.getElementsByClassName("close-btn")[0]; const changelogBadgeContainer = document.getElementsByClassName("changelog-badge-container")[0]; const ...
const path=require('path'); const fs=require('fs'); const root=path.resolve(__dirname,'../'); module.exports={ root:root, system:{ version:{ number:'./data/version.number', label:'./data/version.label', } }, join:function (file) { return path.join(root,f...
// // Vivado(TM) // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6 // Copyright 1986-2018 Xilinx, Inc. All Rights Reserved. // var WshShell = new ActiveXObject( "WScript.Shell" ); var ProcEnv = WshShell.Environment( "Process" ); var PathVal = ProcEnv("PATH"); if ( PathVal.length == 0 ) { PathVal = "E:/xil...
sap.ui.define([ "ru/fitrepublic/shared/model/BaseController", "ru/fitrepublic/shared/model/appMgr", "sap/ui/model/json/JSONModel", "sap/ui/model/Filter", "sap/m/GroupHeaderListItem" ], function (Controller, AppMgr, JSONModel, Filter, GroupHeaderListItem) { "use strict"; return Controller.extend("ru.fitrepublic.ui...
i = open('sample.txt','r') o = open('sample_output.txt','w') a = i.read() o.write(a)
var OWS = {}; OWS.ExpressApp = require('./lib/expressapp'); OWS.Storage = require('./lib/storage'); module.exports = OWS;
var searchData= [ ['keyboard_42',['Keyboard',['../class_triton_1_1_i_o_1_1_keyboard.html',1,'Triton::IO::Keyboard'],['../class_triton_1_1_graphics_1_1_context.html#a621b33996ce4c76b9dd47ed8b117f053',1,'Triton::Graphics::Context::keyboard()'],['../class_triton_1_1_graphics_1_1_window.html#ad1c4b55fc72a5819efcb423b0f0a...
//business logic function Player(name) { this.name = name; this.turnTotal = 0; this.score = 0; }; Player.prototype.totalScore = function() { this.score += this.turnTotal; return this.score; }; Player.prototype.resetPlayer = function() { this.turnTotal = 0; this.score = 0; }; function rollDice(numberOfD...
const mysql = require('mysql'); // connection configurations const mc = mysql.createConnection({ host: 'localhost', user: 'admin', password: 'admin', database: 'users_tasks' }); module.exports = mc;
const logger = require('../../../logger')('auth activities route index'); const { getAuthActivities: ga } = require('../../../db'); const { can } = require('../../../middleware'); module.exports = (app, { getAuthActivities = ga } = {}) => { logger.silly('setting up GET /auth/activities route'); app.get('/auth/acti...
""" Python test discovery, setup and run of test functions. """ import fnmatch import py import inspect import sys import pytest from _pytest.mark import MarkDecorator, MarkerError from py._code.code import TerminalRepr import _pytest cutdir = py.path.local(_pytest.__file__).dirpath() NoneType = type(None) NOTSET = o...
'use strict'; const {defaultsDeep} = require('lodash'); const {getStringIfConstant} = require('eslint-utils'); const {callExpressionSelector} = require('./selectors/index.js'); const MESSAGE_ID = 'importStyle'; const messages = { [MESSAGE_ID]: 'Use {{allowedStyles}} import for module `{{moduleName}}`.', }; const get...
const sequelize = require('../../../db/mysqldb/init') const models = require('../../../db/mysqldb/define')(sequelize) const lowdb = require('../../../db/lowdb/index') const CURRENT_VERSION = 0.2 class update0_2 { static update () { return new Promise(async (resolve, reject) => { try { console.log(`正...
import DS from 'ember-data'; import Ember from 'ember'; import WithLoggerMixin from '../mixins/with-logger'; const { get, set } = Ember; const { pluralize, camelize } = Ember.String; const { schedule, bind } = Ember.run; const { $, RSVP, computed } = Ember; const { bool } = computed; /** * Base adapter for SailsJS a...
'use strict'; const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const resolve = require('resolve'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const InlineChunkHtmlPlugin = require(...
import * as fetch from '../../../lib/fetch/index.js'; import * as parse from '../../../lib/parse.js'; import * as transform from '../../../lib/transform.js'; import * as geography from '../../../lib/geography/index.js'; // Set county to this if you only have state data, but this isn't the entire state const UNASSIGNED...
""" Portable file locking utilities. Based partially on an example by Jonathan Feignberg in the Python Cookbook [1] (licensed under the Python Software License) and a ctypes port by Anatoly Techtonik for Roundup [2] (license [3]). [1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 [2] http://sourceforg...
import React from "react"; import PropTypes from "prop-types"; // import Button from "../../base/Button"; import { Link } from "react-router-dom"; import Icon from "../../base/icon"; import { Tooltip } from "@material-ui/core"; const BtnEliminar = ({ Clase = "w3-btn", Texto = "Eliminar", Destino = null, Handle...
import pandas as pd class Table: def __init__(self, id_column_name, table_filename=None, columns=[]): if table_filename is not None: self.table = pd.read_csv(table_filename) self.lowest_free_id = self.table[id_column_name].max() + 1 else: self.table = None ...
/** * Test the difference between a normal useHover vs just css * if you pay attention, it wont re-render with the css version * @module Experiences/Experience8 */ import React, { Profiler } from 'react' import useHover from './useHover' const onRender = (id, phase, actualDuration) => { console.log(id, phase, a...
/** * @typedef {object} Phaser.Types.Core.GameConfig * @since 3.0.0 * * @property {(number|string)} [width=1024] - The width of the game, in game pixels. * @property {(number|string)} [height=768] - The height of the game, in game pixels. * @property {number} [zoom=1] - Simple scale applied to the game canvas. 2 ...
'use strict'; // Test specific configuration // =========================== module.exports = { // MongoDB connection options mongo: { uri: 'mongodb://localhost/powwow-test' }, seedDB: false };
function helloFrance(input) { let itemsList = []; let budget = Number(input.pop()); let splitedInput = input[0].split('|'); let maxClothesPrice = 50; let maxShoesPrice = 35; let maxAccessPrice = 20.50; let ticketPrice = 150; let profit = 0; const clothesBuy = (price) => { ...
var v2 = require('./utils/vec2'); var { BREAKPOINT } = require('./config'); var header = document.querySelector('header') var footer = document.querySelector('footer'); var margin = () => window.innerWidth < BREAKPOINT ? 20 : 40; var gutter = () => margin() / 2; var viewport = () => v2( window.innerWidth, window.inne...
#!/usr/bin/env python3 """script to count number of vowels in a single string""" import sys import os def main(): """main""" vowels = sys.argv if len(vowels) < 2: script = os.path.basename(vowels[0]) print('Usage: {} STRING'.format(script)) sys.exit(1) vowels = sys.argv[1] count = 0 for vowel in v...
define( "gridx/nls/el/Body", ({ loadingInfo: "Φόρτωση...", emptyInfo: "Δεν υπάρχουν στοιχεία για παρουσίαση", loadFailInfo: "Απέτυχε η φόρτωση δεδομένων!" }) );
'use strict'; const path = require('path'); module.exports = appInfo => { return { /** * @member Config#ejs * @property {String} [root=${baseDir}/app/view] - the root directory of art files * @property {Boolean} [cache=true] - compiled functions are cached, only work using `ctx.render` * @pr...
import { fetchResourceBundle, registerMessageBundles, getResourceBundle } from "@ui5/webcomponents-base/src/sap/ui/webcomponents/base/ResourceBundle"; import ar from "./i18n/messagebundle_ar.json"; import bg from "./i18n/messagebundle_bg.json"; import ca from "./i18n/messagebundle_ca.json"; import cs from "./i18n/mess...
/** * @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 { serializeI18nHead, serializeI18nTemplatePart } from '../render3/view/i18n/meta'; import * as o from './outpu...
#!/usr/bin/env python3 """ @author: Trifon Trifonov """ import sys, os #sys.path.insert(0, './lib') sys.path.append('./lib/RV_mod/') #RV_mod directory must be in your path import RV_mod as rv import dill arguments = len(sys.argv) - 1 if arguments==3 and sys.argv[1] == '-ses' and os.path.exists(sys.argv[2]): ...
const crypto = require('crypto') const Sequelize = require('sequelize') const db = require('../db') const User = db.define('user', { email: { type: Sequelize.STRING, unique: true, allowNull: false }, password: { type: Sequelize.STRING, // Making `.password` act like a func hides it when seria...
// This file is part of Indico. // Copyright (C) 2002 - 2020 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. /* eslint-disable import/unambiguous */ document.addEventListener('DOMContentLoaded', () => { fun...
/* eslint-disable no-empty-function */ const { assert } = require('chai'); const sinon = require('sinon'); const { IdentityProvider } = require('../index.js'); const { authorize, reportOAuthError, rejectFunction, resolveFunction, createErrorParams, computeExpires, processPopupRawData, } = require('../lib/...
const matchValue = require('./matchValue') const { isRegExp, getOnlyTargetFields } = require('./utils') const extractObjectEntries = require('./extractObjectEntries') const appendNewItemToResults = require('./appendNewItemToResults') const checkArgs = (object, value) => { if (!object || typeof object !== 'object') {...
/*eslint-disable react-hooks/exhaustive-deps*/ import React, {useEffect, useState} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import MaterialIcon from '@material/react-material-icon'; import {addGroupToProfile, removeGroupToProfile} from '../../actions/profile'; import './Gro...
num = str(input("Insira um valor entre 0 a 1000: ")) if len(str(num)) == 1: if int(num) > 1: print ("%s Unidades" %num) else: print ("%s Unidade" %num) if len(str(num)) == 2: d = num[:1] u = num[1:2] if int(d) > 1 and int(u) > 1: print("São %s dezenas e %s unidades" %(d,u)) elif int(d) > 1 and int(u) == 1...
load(":providers.bzl", "GhcPluginInfo", "HaskellLibraryInfo") def ghc_plugin_impl(ctx): args = ctx.attr.args args = [ctx.expand_location(arg, ctx.attr.tools) for arg in args] args = [ctx.expand_make_variables("args", arg, {}) for arg in args] # XXX Ideally we'd resolve tools downstream. (tool_inpu...
var config = { src: 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/175711/open-peeps-sheet.png', rows: 15, cols: 7 } // UTILS var randomRange = (min, max) => min + Math.random() * (max - min) var randomIndex = (array) => randomRange(0, array.length) | 0 var removeFromArray = (array, i) => array.splice(i, 1)[0]...
define([], function () { return { "PropertyPaneDescription": "This webpart provides easy way to render sharepoint custom list in datatable view with all the necessary features.", "BasicGroupName": "Group Name", "DataTableTitleFieldLabel": "Webpart title", "ConfigureWebpartButtonLabel": "Configure", ...
import getIdFromUrl from 'get-youtube-id' import Youtube from './vue-youtube' function plugin (Vue) { Vue.prototype.$youtube = { getIdFromUrl } Vue.component('youtube', Youtube) } if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(plugin) } export default plugin const version = '__VERSION...
var configService = require("./config-service"); var fs = require("fs"); var glob = require("glob"); var path = require("path"); function createInstance() { var service = { m_errorMessages: null, m_extractionFunctions: [ function (content) { var messageKeys =...
import React from 'react'; import classNames from "classnames"; import { Outlet } from 'react-router-dom'; import { makeStyles } from '@material-ui/core'; import styles from "assets/jss/material-kit-react/views/componentsSections/basicsStyle"; const useStyles = makeStyles(styles); const MainLayout = () => { const ...
import Vue from 'vue'; import { initVueI18n } from '@dcloudio/uni-i18n'; let realAtob; const b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; const b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/; if (typeof atob !== 'function') { realAtob = function (str) {...
import re from collections import Counter, deque from itertools import chain, count # READ THE ENTIRE DESCRIPTION FIRST INPUT_FILE = "../../input/15.txt" # INPUT_FILE = "test.txt" with open(INPUT_FILE) as f: risk_levels = [[int(x) for x in line.strip()] for line in f] def add_one(row): return [1 if x == 9 ...