text
stringlengths
3
1.05M
from django import template import locale register = template.Library() @register.filter(name='clean') def limpiarSlug(value): return value.replace('_', ' ') @register.filter(name='percentage') def calculaperct(value1, value2): try: resultado = (float(value1) / float(value2) * 100) return res...
import _createClass from "@babel/runtime/helpers/createClass"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import Ext_Component from '../../Ext/Component.js'; var Ext_panel_Tool = /*#__PURE__*/ function (_Ext_Component) { _inheritsLoose(Ext_panel_Tool, _Ext_Component); Ext_panel_Tool.PROPER...
import gspread #ServiceAccountCredentials:Googleの各サービスへアクセスできるservice変数を生成。 from oauth2client.service_account import ServiceAccountCredentials from discord.ext import commands import os from typing import Any from datetime import datetime, timedelta, timezone class CardCount(commands.Cog): def __init__(se...
exports.createPages = ({ actions }) => { const { createRedirect } = actions; createRedirect({ fromPath: `/*`, toPath: `/`, redirectInBrowser: true, isPermanent: true, }); };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('material-ui/SvgIcon'); var _SvgIcon2 = _interopReq...
const validator = require("validator"); export default class Register { constructor(formClass) { this.form = document.querySelector(formClass); } init() { this.events(); } events() { if (!this.form) return; this.form.addEventListener('submit', (e) => { e.preventDefault(); this.v...
import wrapAnsi from 'wrap-ansi' import chalk from 'chalk' import boxen from 'boxen' import { maxCharsPerLine } from './constants' export function indent(count, chr = ' ') { return chr.repeat(count) } export function indentLines(string, spaces, firstLineSpaces) { const lines = Array.isArray(string) ? string : str...
from max30100 import * import time import json mx30 = MAX30100() mx30.enable_spo2() def create_values(t): read_values = {} t1 = time.time() count = 0 while (time.time()-t1) < t: mx30.read_sensor() ir = mx30.ir red = mx30.red read_values[count] = {"ir": ir, "red": red} ...
/** * @license Angular v8.2.11 * (c) 2010-2019 Google LLC. https://angular.io/ * License: MIT */ import { __decorate } from 'tslib'; import { HttpHeaders, HttpResponse, HttpErrorResponse, HttpEventType, HttpClientModule, HttpBackend } from '@angular/common/http'; import { Injectable, NgModule } from '@angular/core...
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ {...
import Slider from './src/main'; /* istanbul ignore next */ Slider.install = function(Vue) { Vue.component(Slider.name, Slider); }; export default Slider;
const { readFileSync } = require('fs') const path = require('path') const { oneLineTrim } = require('common-tags') const webpackMiddleware = require('@ianwalter/webpack-middleware') const { createBundleRenderer } = require('vue-server-renderer') const { pick } = require('accept-language-parser') const { NODE_ENV } = ...
const Koa = require("koa") const Router = require("koa-router") const Next = require("next") const Session = require("koa-session") const Redis = require("ioredis") const Config = require("./config") const KoaBody = require("koa-body") const atob = require("atob") const routerModules = require("./server/routes/user") c...
import { BaseApi } from './base'; import smoochMethod from '../utils/smoochMethod'; /** * @constructor * @name AppKeysApi * @extends BaseApi */ export class AppKeysApi extends BaseApi { constructor() { super(...arguments); this.allowedAuth = ['jwt']; } } Object.assign(AppKeysApi.prototype,...
import { errors } from 'appium-base-driver'; import _ from 'lodash'; import B from 'bluebird'; import { unwrapEl } from '../utils'; import logger from '../logger'; import { util } from 'appium-support'; let commands = {}, helpers = {}, extensions = {}; const FLICK_MS = 3000; commands.nativeTap = async function (el) {...
global.messageSuccess = async (message, body) => { const client = message.client; const sentMessage = await client.functions.get('FUNC_richEmbedMessage') .run(client.user, message.channel, body, '', 4296754, false); return sentMessage; }; module.exports.help = { name: 'GLBLFUNC_messageSuccess', };
import React from 'react'; import createSvg from './utils/createSvg'; export default createSvg(<path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z" />, 'ShuffleLined', '0 0 24 24');
// CHMOD - Set the DIST folder read-only to prevent file's modification (should be done in SRC, not in DIST) var gulp = require('gulp'); var shell = require('gulp-shell'); var config = require('../config').DIST_chmod; var pkg = require('../config').pkg(); gulp.task('chmod', function () { if (pkg.gulp.tasks...
import { __decorate } from "tslib"; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RatingComponent } from './rating.component'; var RatingModule = /** @class */ (function () { function RatingModule() { } RatingModule = __decorate([ NgModule({ ...
export const moveUpAll32 = "M20.999 27H17v-1h4a3.003 3.003 0 0 0 3-3V6.708l-3.646 3.646-.707-.707L24.5 4.793l4.854 4.854-.707.707-3.648-3.648V23a4.005 4.005 0 0 1-4 4zm-9-4V6.706l3.647 3.648.707-.707L11.5 4.793 6.646 9.646l.707.707L11 6.708V23a3.003 3.003 0 0 1-3 3H4v1h3.999a4.005 4.005 0 0 0 4-4z";
# !/usr/bin/env python # _*_ coding: utf-8 _*_ # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: EmACLFilterMerge.py ''' Individual scenario for ACLFilter generation ''' import json from lxml import etree import ipaddress from EmMergeScenario import EmMergeScenario import GlobalModul...
import tw, { theme } from './macro' // https://tailwindcss.com/docs/background-size theme`backgroundSize` tw`bg-auto` tw`bg-cover` tw`bg-contain`
/** * @file me.js * * @version $Id:$ * * @brief * * @author Kenji MINOURA / kenji@kandj.org * * Copyright (c) 2016 K&J Software Design, Corp. All rights reserved. * * @see <related_items> ***********************************************************************/ var express = require('express'); var router = ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './index.scss'; import App from './containers/App/App'; import configureStore from './redux/configureStore'; import * as serviceWorker from './serviceWorker'; const store = configureStore(); const target = docum...
## patch the interface of Neutron::Events boost python binding from mcni.mcnibp import vector_Event, Position_double, Velocity_double, NeutronState, NeutronSpin original__str__ = vector_Event.__str__ def __str__(self): if len(self)>10: return original__str__(self) return ', '.join( [ '%s' % n for n in self ...
!function(e){function n(n){for(var a,o,l=n[0],s=n[1],u=n[2],d=0,f=[];d<l.length;d++)o=l[d],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&f.push(r[o][0]),r[o]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);for(c&&c(n);f.length;)f.shift()();return i.push.apply(i,u||[]),t()}function t(){for(var e,n...
'use strict'; (function() { var app = angular.module('std.app'); app.controller('PageBController', ['$scope', 'userService', PageBController]); function PageBController($scope, userService) { $scope.refresh = function() { userService.findUserAll().then(function(result) { result.dat...
function process_uml_block(obj) { var attrs = obj["attrs"]; var parent = obj["parent"]; var reader = obj["reader"]; var __self = obj["__self"]; var nil = obj["nil"]; var name = obj["name"]; var title = (attrs['$[]']("title")), alt = (attrs['$[]']("alt")), caption = (attrs['...
import EmberObject from '@ember/object'; import $ from 'jquery'; let ExchangeRatesTable = EmberObject.extend({ isLoading: false, isError: false }); ExchangeRatesTable.reopenClass({ QUERY: "SELECT * FROM nbp.tables WHERE id IN (SELECT id FROM nbp.dir WHERE typ = 'A' AND data_publikacji < '%@' | SORT(field='d...
'use strict'; const Node = require('../../linked-lists/lib/node'); class LinkedList { constructor() { this.head = null; } ll_kth_from_end(k) { let current = this.head; let counter = 0; let next = current.next; let previous = null; while(counter !== k) { if(!current.next) throw ...
/** * Test case for svgAttr. * Runs with mocha. */ 'use strict' const svgAttr = require('../lib/element/svg_attr.js') const assert = require('assert') describe('svg-attr', () => { before(async () => { }) after(async () => { }) it('Svg attr', async () => { }) }) /* global describe, before, after,...
import Icon from 'vue-awesome/components/Icon' Icon.register({ highlight_off_sharp: { paths: [ { d: 'M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-...
const cheerio = require('cheerio') const loadPages = require('../../lib/pages') const loadSiteData = require('../../lib/site-data') const getApplicableVersions = require('../../lib/get-applicable-versions') const renderContent = require('../../lib/render-content') const checkImages = require('../../lib/check-images') c...
# coding=utf-8 # encoding: utf-8 from __future__ import absolute_import from octoprint.util.version import get_octoprint_version_string from tempfile import mkstemp from datetime import timedelta from slackclient import SlackClient from slacker import Slacker, IncomingWebhook from imgurpython import ImgurClient from im...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-cewebritymanage"],{"0119":function(t,a,i){"use strict";var e,n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.height+44+"px",paddingTop:t.height+"px"}},[t.xueyuan?i("span...
const webpack = require('webpack') const { mergeWithRules } = require('webpack-merge') const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') const { VueLoaderPlugin } = require('vue-loader') const path = require('path') const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin') const ...
if(!bluewave) var bluewave={}; if(!bluewave.chart) bluewave.chart={}; bluewave.chart.utils = { //************************************************************************** //** initChart //************************************************************************** initChart: function(parent, callback...
# Copyright 2018 The Cirq Developers # # 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 ...
export default () => ({ isLoading: true, isAttached: false })
"""ThreatConnect TI Group""" # standard library from urllib.parse import quote_plus from ..mappings import Mappings class Group(Mappings): """Unique API calls for Group API Endpoints""" def __init__(self, tcex, **kwargs): """Initialize Class properties.""" super().__init__( tcex,...
/* Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ Office._appMode = { Read: 1, Compose: 2, ReadCompose: 3 } Office._cast_item = function () { this.toAppointmentCompose = function (item) { return new Office._$MailboxA...
import Components from '.'; import AddressForm from './address/Address.form'; import ButtonForm from './button/Button.form'; import CheckboxForm from './checkbox/Checkbox.form'; import ColumnsForm from './columns/Columns.form'; import ContainerForm from './container/Container.form'; import ContentForm from './content/...
import React from "react"; import PropTypes from "prop-types"; import { connect } from 'react-redux'; import { Card, CardHeader, Button, ListGroup, ListGroupItem, Progress } from "shards-react"; const UserDetails = ({ userDetails, name }) => ( <Card small className="mb-4 pt-3"> <CardHeader className=...
/* * 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 n...
/* A função average recebe um array (tamanho variável) e retorna a média dos valores recebidos. Caso a função receba algum valor não númerico ou um array vazio, o valor undefined deve ser retornado. Todos os resultados devem ser arredondados para valores inteiros. Ex: 4,6 vira 5; 1,3 vira 1. Parâmetros: ...
class base_filter: def filter_calendar_source(self, p_calendar): pass def save_to_database(self, p_cal_source_id): pass def load_from_database(self, p_filter_id): pass def load_base_filter(self, p_filter_id): db_filter = Filters.objects.filter(filter_id=int(p_filter_id...
define(["exports", "../../../lit/index.js"], function (_exports, _index) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.CodePenButton = void 0; var _templateObject_60845250942811ecb1937969798b231a, _templateObject2_60845250942811ecb1937969798b231a; function _...
import sys from prompt_toolkit.key_binding.vi_state import InputMode, ViState def get_input_mode(self): return self._input_mode def set_input_mode(self, mode): shape = {InputMode.NAVIGATION: 1, InputMode.REPLACE: 3}.get(mode, 5) raw = u'\x1b[{} q'.format(shape) if hasattr(sys.stdout, '_cli'): ...
/******************************************************* * TPS - Task Processing Service * home connector (server) * May 2015 * Mike Amundsen (@mamund) * Soundtrack : Complete Collection : B.B. King (2008) *******************************************************/ // handles HTTP resource operations var wstl = re...
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); } f...
""" MIT License Copyright (c) 2020 Airbyte 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, merge, publish, distr...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
# $language = "python" # $interface = "1.0" ################################ MODULE INFO ################################ # Author: Jamie Caesar # Twitter: @j_cae # # !!!! NOTE: THIS IS NOT A SCRIPT THAT CAN BE RUN IN SECURECRT. !!!! # # This is a Python module that contains many common functions that would be ...
const assert = require("assert"); const colors = require("colors/safe"); const fs = require("fs"); const YAML = require("yaml"); const { apgLib } = require("apg-js"); const { parser: Parser, ast: AST, ids, utils, trace: Trace } = apgLib; const Grammar = require("./grammar"); const parser = new Parser(); const grammar ...
import datetime import logging import os import sys import pygame import pygame.midi import requests import numpy as np import cv2 as cv import config import serial import time import EV3BT face_cascade = cv.CascadeClassifier(config.face_cascade) logger = logging.getLogger() def say_hello(serial, face_count): #...
require('./ui-socket-module.js'); require('../public/css/ui.scss');
/** * @version 0.30 */ import React from 'react' import { SafeAreaView, View, RefreshControl, StyleSheet, FlatList, SectionList, Text } from 'react-native' import { connect } from 'react-redux' import { useScrollToTop } from '@react-navigation/native' import _isEqual from 'lodash/isE...
import os app = input("App name or general ") app_command = '' if app != '': app_command = app os.system("python manage.py makemigrations " + app_command) os.system("python manage.py makemigrations " + app_command)
/************* Definiciaon de Variables *********************/ var http = require('http'); var mysql = require('mysql'); var parser = require('qs'); var request = require('request'); var md5 = require('md5'); var connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'escom123', ...
const app = require('./app'); app.listen(3333);
import * as THREE from 'https://cdnjs.cloudflare.com/ajax/libs/three.js/r123/three.module.min.js'; import { EffectComposer } from './node_modules/three/examples/jsm/postprocessing/EffectComposer.js'; import { RenderPass } from './node_modules/three/examples/jsm/postprocessing/RenderPass.js'; import { UnrealBloomPass }...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./library','sap/ui/core/Control','sap/ui/core/library','sap/m/Text','./ObjectAttributeRenderer'],f...
import { KEY_USER_SEARCH_PREFERENCE } from 'src/app/service/search-ranking.service'; /** * @description Exposes an user search preferences * @constructor * @param {Object} Object.userConfigRepository */ export default function SearchPreferencesService({ userConfigRepository: _userConfigRepository }) { return { ...
/** * Copyright 2018 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 applicable law ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
function Carro(velocidadeMaxima = 200, delta = 5) { // atributo provado let velocidadeAtual = 0 // metodo publico this.acelerar = function () { if (velocidadeAtual + delta <= velocidadeMaxima) { velocidadeAtual += delta } else { velocidadeAtual = velocidadeMaxima...
import React, { Component } from "react"; import Globals from "./Components/Globals"; import Blocks from "./data"; import BlocksGrid from "./Components/BlocksGrid"; import Result from "./Components/Result"; import Modal from "./Components/Modal/Modal"; import "./App.css"; class App extends Component { state = { ...
const showFilter = document.querySelector('.divfilter2 .top_up2 ul li:nth-child(2)'); const filterdiv = document.querySelector('.divfilter2 .top_up2 .filter_div'); const overlay = document.querySelector('.proj_filter .myoverlay'); const milediv = document.querySelector('.proj_filter .divfilter2 .project1 .expand .bo...
var gulp = require('gulp'); var babel = require('gulp-babel'); var webpack = require('webpack-stream'); var sass = require('gulp-sass'); var nodemon = require('gulp-nodemon'); var runSequence = require('run-sequence'); gulp.task('babel:server', function() { gulp.src('src/config/**/*.js') .pipe(babel({ presets: [...
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE 'use strict'; var Curry = require("bs-platform/lib/js/curry.js"); var Root$AgdaMode = require("./View/Root.bs.js"); var Async$AgdaMode = require("./Util/Async.bs.js"); var Event$AgdaMode = require("./Util/Event.bs.js"); var Editors$AgdaMode = require("....
import passport from 'passport'; import { UserSchema, isAuthenticated } from '../../models/user'; import { withFilter } from 'graphql-yoga'; import { PUBSUB_CHANGE_BALANCE } from '../../constants'; export default { User: {}, Query: { getUsers: async (_, { search }, { request }) => { try { isAuth...
import React from 'react' import { Model, Path, Group, Frame, Circle } from 'hyperobjects-language' var model = new Model("path-contains-point-test") model.addEditableGeometry( 'point', new Group([{x: 500, y: 500}]) ) model.setSize({ width: 2000, height: 1000 }) model.addEditabl...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
const path = require('path'), http = require('http'), url = require('url'), Route = require('./Route'), staticPre = require('./static'); const BODY_PROCESSORS = { 'application/json': body => JSON.parse(body) }; class Server { constructor(port = 18535) { this.port = port; this.chain...
//Observable Functions //Presented in order of call import dayjs from "dayjs"; import { getWepTables } from "./wep-tables"; /////////////////// // Calculate PIA // /////////////////// // PIA Main async function getPIA(aime, dob, yearsSubstantialEarnings=null, isWEP=true) { if (findBendPoints(dob) === undefined) {...
/** * Extend the built in HTML `details` element by making it look more visually * like an inline tool tip. This improves the ease-of-use for developers using * and users interacting with `details` elements. It does not harm this elements * accessibility, all accessibility software will work with this element still...
#!/usr/bin/python # Main library file containing all the composite deserializer logic. def generate_main_code(serialization_composite_h_file): """ Main code generator. Renders the header file for serialization composites. The location of output file is provided as argument. """ generate_code('seriali...
# Generated by Django 3.2.12 on 2022-02-24 20:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0139_report_status"), ] operations = [ migrations.RemoveField( model_name="report", name="statuses", ),...
import * as glMatrix from "./matrixgl/index" import monitor from "./monitor" import spritesheet from "./assets/spritesheet.png" import dataJson from "./assets/data.json" import VERT_SRC from "./assets/shaders/vertex_shader.vsh" import FRAG_SRC from "./assets/shaders/fragment_shader.fsh" import bg1 from "./assets/bg...
# Copyright 2020 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 to in writing, s...
(function(){window.WallTime||(window.WallTime={}),window.WallTime.data={rules:{},zones:{"Pacific/Funafuti":[{name:"Pacific/Funafuti",_offset:"11:56:52",_rule:"-",format:"LMT",_until:"1901"},{name:"Pacific/Funafuti",_offset:"12:00",_rule:"-",format:"TVT",_until:""}]}},window.WallTime.autoinit=!0}).call(this)
import angular from 'angular' import Vue from 'vue' function watch (expressions, reactiveData, scope, element, type, quirk) { return watchFunc => { // for `v-props` / `v-data` if (angular.isString(expressions)) { watchFunc(expressions, Vue.set.bind(Vue, reactiveData._v, type)) return } le...
''' This module provides the loading of data from the xls file provided to the database directly, for the MIS @Copyright :: Don't share this software without the permission of the author e-mail : jimutbahanpal@yahoo.com ''' ''' This module directly imports data from the spreadsheet or xls file to the database so ...
#!/usr/bin/env python ''' parse a MAVLink protocol XML file and generate a python implementation Copyright Andrew Tridgell 2011 Released under GNU GPL version 3 or later ''' from __future__ import print_function from builtins import range import os import textwrap from . import mavtemplate t = mavtemplate.MAVTempla...
# hln_train.py import numpy as np from hln import * from dataset import * def main(): batch_size = 8 ds = Dataset() #ds.load(CIFAR10, '../cifar-10-batches-py/') ds.load(CIFAR100, '../cifar-100-python/') ds.set_batch_size(batch_size) net = HybridLearningNet( x_dim=[32,32,3], y_...
import pytest # noqa 401 from log_processing_demo import database def test_connect_to_db(): db = database.Database("tests/test_database.db") assert isinstance(db, database.Database) def test_update_and_read_data_for_a_day(tmp_db_path, fake_log_list_sorted): db = database.Database(tmp_db_path) db.u...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'link', function( editor ) { var plugin = CKEDITOR.plugins.link; // Handles the event when the "Target" selection box is changed. v...
import rollupCalf from './rollupCalf'; const { core } = require('./getVersion'); const { port } = require('./config.json'); const outPath = `dist/resources/watch/${core}`; export default rollupCalf( outPath, '[name].js', { _CSSPATH: `https://localhost:${port}/${outPath}` }, [], );
const Blog = require("../modal/blog"); const User = require("../modal/user"); exports.getHomepage = (req, res, next) => { Blog.findAll() .then(result => { res.render("homepage", { posts: result }); }) .catch(err => console.log(err)); }; exports.getBlog = (req, res, next) => { Blog.findAll({ wher...
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...drawing import Drawing class TestWriteXdrrowOff(unittest.TestCase): """ Tes...
import tensorflow as tf, sys import argparse import os import glob def callFirst(): image_path2 = sys.argv[2] image_path3 = sys.argv[3] destination = sys.argv[4] path = sys.argv[1] for filename in glob.glob(os.path.join(path, '*.jpg')): main(filename,image_path2,image_path3,destination...
// Copyright (c) 2021, White Hat Global and contributors // For license information, please see license.txt frappe.ui.form.on('Manufacturing Process', { // refresh: function(frm) { // } });
from surround import Estimator, State, Stage class AssemblyState(State): input_data = None output_data = "" lines = [] class InputValidator(Stage): def operate(self, state, config): if not state.input_data: raise ValueError("'input_data' is None") class HelloWorld(Estimator): ...
/* eslint-disable camelcase */ import { ethers } from 'ethers' import { fil2atto, formatDate } from '@/utils' import { getT1SignedMsg } from '@/utils/message' import { Message } from 'element-ui' import { BalanceNonceByAddress, MessagePush, MessageDetails, BaseFeeAndGas, getPricePoints } from '@/fil-api' impo...
import "jest-dom/extend-expect" // this is basically: afterEach(cleanup) // import "react-testing-library/cleanup-after-each"
import furnace from '../core'; furnace .define('number', () => ({ construct (event) { }, validate ({ value }) { return (typeof value === 'number'); } }));
import React from 'react' import {Link} from 'react-router-dom' const Category = (props) => { let category = props.category return( <div className="category-menu"> <div className="category-box"> <Link to={`/categories/${category.id}/budgets`}style={{ textDecoration: 'none' }...
const {HelloRequest, HelloReply} = require('./helloworld_pb.js'); const {GreeterClient} = require('./helloworld_grpc_web_pb.js'); var client = new GreeterClient('http://localhost:8080'); var request = new HelloRequest(); request.setName('World'); client.sayHello(request, {}, (err, response) => { console.log(respon...
var mod = angular.module('funcoesAngular', []); function preloader(){ $('body').append( `<div class="preloader"> <img class="preloader_img" src="${URL_BASE}public/images/statics/loaders/s.png"> <div>Carregando...</div><div class="preloader-button"></div> </div>`); } function isValidCPF(cpf) { ...
/* * Backpack - Skyscanner's Design System * * Copyright 2018 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 * * Un...