text
stringlengths
27
775k
import express from 'express'; import cors from 'cors'; import morgan from 'morgan'; import helmet from 'helmet'; import compress from 'compression'; import httpStatus from 'http-status'; import routes from './routes'; import expressWinstonLogger from './utils/winston.utils'; import { convertToAPIError, httpError, log ...
'use strict'; const Utils = require('./utilities.js'); //General Utilities to use const hstatus = require('hapi-status'); //HTTP Status codes const Promise = require('bluebird'); //Promises for nodejs var sqlite3 = require('sqlite3').verbose(); //RDBMS for nodejs var db; function APEEYEUsers(request,reply) { cons...
describe Issue::Webhook do describe "Initialization" do it "should set settings values" do config = { secret_token: "123ABC", origin: "testing/tests", discard_sender: "mybot", accept_events: ["issue_comment", "issues"] } webhook = Issue::Webhook.new...
import { Body, Controller, Delete, Get, Param, Patch, Post, Put, Query, Request, UseGuards, UseInterceptors } from "@nestjs/common"; import { CommandBus } from "@nestjs/cqrs"; import { JwtAuthGuard } from "../auth/jwt-auth.guard"; import { SetUserIdInterceptor } from "../common/interceptors/set-us...
use pastebin; create table log ( id int auto_increment primary key, log json null ); create table paste ( id int auto_increment primary key, pwd varchar(300) null, times int null, deadline datetime null, paste json null );
package typingsSlinky.activexLibreoffice.com_.sun.star.drawing import typingsSlinky.activexLibreoffice.activexLibreofficeNumbers.`0` import typingsSlinky.activexLibreoffice.activexLibreofficeNumbers.`1` import typingsSlinky.activexLibreoffice.activexLibreofficeNumbers.`2` import typingsSlinky.activexLibreoffice.active...
# pyrainflow Functions for performing rainflow counting on time-history data for fatigue cycle counting using the four-point method. Based on this article: https://community.sw.siemens.com/s/article/rainflow-counting ## Install After downloading, in your virtualenv, issue: pip install . ## Example usage Samp...
addSbtPlugin("io.growing" % "graphql-codegen-sbt-plugin" % "gio-3.1.4-SNAPSHOT")
import {Env, setValue} from "@tsed/core"; import {Constant, Inject, Injectable, InjectorService} from "@tsed/di"; import Provider from "oidc-provider"; import RawOIDCProvider, {Configuration, interactionPolicy} from "oidc-provider"; import {INTERACTIONS} from "../constants"; import {OidcAccountsMethods, OidcSettings} f...
<section class="stage"> <h3>Order Cancelled</h3> <p>Your order has been cancelled. Relax - no money was taken from your account.</p> </section>
package org.osiam.client.query.metamodel; /* * for licensing see the file license.txt. */ /** * a comparision between a Attribute and a value */ public class Comparison { private String filter; Comparison(String filter){ this.filter = filter; } public String toString(){ return fi...
# frozen_string_literal: true # rubocop:todo Rails/UniqueValidationWithoutIndex, Rails/InverseOf class Channel < ApplicationRecord # -- associations belongs_to :server has_one :channel_statistic, -> { where(meta_data_id: nil) }, dependent: :destroy has_many :channel_statistics, dependent: :destroy has_many :...
# frozen_string_literal: true module Api module V1 module DeviseCustom class RegistrationsController < Devise::RegistrationsController respond_to :json rescue_from Authentication::PasswordNotValid, with: :render_password_not_valid rescue_from Authentication::UsernameNotUnique, with...
bindkey -d zle -N newtab bindkey "^K" kill-whole-line # ctrl-k bindkey "^R" history-incremental-search-backward # ctrl-r bindkey "^A" beginning-of-line # ctrl-a bindkey "^E" end-of-line # ctrl-e bindkey "[B" history-search-forwa...
[English](https://naeemo.github.io/web-model/) | [中文](https://naeemo.github.io/web-model/zh-CN.html) 在前后端分离的单页应用中,对服务端的数据请求无处不在,Web-model把这些请求整理为统一管理的数据层。 基于统一的数据层,它实现了许多常用的功能:请求/返回 拦截器,请求缓存(基于web storage),单实例请求。 Web-model 使用 superagent 作为 ajax 工具。 > 一次请求的生命周期: ``` request -> Model.beforeEach -> instance.b...
import static org.junit.Assert.*; import org.junit.Test; public class TestBridgeWord { @Test public void test1() { String sourceText=ReadFromFile.readFileByChars("C:\\Users\\Tom\\" + "Desktop\\Code\\Lab6_Lab1w\\src\\Lab6_w_test.txt"); Main tmp = new Main(); Graph tmpGraph = tmp.createDirectedG...
'use strict'; var fetchUrl = require('./fetchUrl'); /** * @param fetch * @param {Collection} collection * @param {{ * cacheLifeTime?: number * onError?: Function * fetchOptions?: Object * }} options * @returns {Function} */ function mongoCachedUrlProviderFactory(fetch, collection) { var optio...
function save(pie) { const button = document.getElementById("fav-btn"); const favorite = document.getElementById("favorite"); let pieTmp = pie.toString().replace(/-/g, " ") let string = pieTmp.charAt(0).toUpperCase() + pieTmp.slice(1); if (localStorage.getItem(pie) === null) { localStorage....
package cn.ancono.math.geometry.projective import cn.ancono.math.AbstractMathObject import cn.ancono.math.IMathObject import cn.ancono.math.algebra.abs.calculator.EqualPredicate import cn.ancono.math.algebra.abs.calculator.FieldCalculator import cn.ancono.math.algebra.abs.calculator.eval import cn.ancono.math.function...
struct TimeFunctionContainer times::Vector{Function} dtimes::Vector{Function} ddtimes::Vector{Function} function TimeFunctionContainer(network, f) times = Vector{Function}() dtimes = Vector{Function}() ddtimes = Vector{Function}() for l in links(network) a, ...
SECTION .text GLOBAL test test: shld rax, rax, 0x5 shld rax, rbx, 0x5 shld rax, rcx, 0x5 shld rax, rdx, 0x5 shld rax, rdi, 0x5 shld rax, r8, 0x5 shld rax, r9, 0x5 shld rax, r10, 0x5 shld rax, r11, 0x5 shld rax, r12, 0x5 shld rax, r13, 0x5 shld rax, r14, 0x5 shld rax, r15, 0x5 shld rax, rsp, 0x5 shld rax, rsi, 0x5 shld ...
#include "stdafx.h" #include "XmlSecPlatform.h" #include "XercesString.h" #include <xsec/framework/XSECProvider.hpp> #include <xsec/framework/XSECException.hpp> using namespace Util::XML; XmlSecPlatform::XmlSecPlatform() : XmlPlatform {} , _provider { std::make_shared<ProviderImpl>() } { try { ...
Make a New folder and rename it to the app. <br> Then put the project in the app folder under public_html of the server.<br> Move .htaccess to the in the public_html. <br> Make ensure your database information in the .env file and follow below.<br> Please Open the terminal of Cpanel. <br> cd public_html/app <br> com...
import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { IngredientSchema } from './schemas/ingredient.schema'; import { IngredientsService } from './ingredients.service'; import { IngredientsResolver } from './ingredients.resolver'; import { DateScalar } from '../common/scal...
package game.entity; /** * Class that represents card name */ public enum CardName { KLIMENKOV { @Override public double gerMultiplier() { return 1.25; } }, KOROBKOV { @Override public double gerMultiplier() { return 0.90; } }, ...
<?php $timezone = Config::get('app.timezone', 'UTC'); echo $timezone; ?>
using UnityEngine; namespace AxGrid.Model { public class AsyncExecutor : MonoBehaviour { public void Update() { Settings.Model?.EventManager.ExecuteAsync(deltaTime:Time.deltaTime); } } }
<? $MESS["F_BUTTON_MOVE"] = "Move"; $MESS["F_TITLE"] = "Move Posts"; $MESS["F_TITLE_ON_FORUM"] = "in forum"; $MESS["F_HEAD_TO_EXIST_TOPIC"] = "existing topic"; $MESS["F_HEAD_TO_NEW_TOPIC"] = "a new topic"; $MESS["F_TOPIC_NAME"] = "Topic subject"; $MESS["F_TOPIC_DESCR"] = "Topic description"; $MESS["F_TOPIC_TAGS"] = "Ta...
#include "IController.h" IController::IController() { this->tunnel=0; this->runFlag=false; } IController::~IController() { } bool IController::initController() { runFlag=true; return true; } void IController::setDataTunnel(IDataTunnel *tunnel) { this->tunnel=tunnel; } void IController::startControllerLoop() { cha...
/* eslint-disable camelcase */ import { Router } from 'express'; import AuthenticateProviderService from '../services/AuthenticateProviderService'; import AuthenticateAdminService from '../services/AuthenticateAdminService'; interface ProviderWithoutPassword { email: string; password?: string; } interface AdminWi...
import { memo } from 'react'; import Profile from './Profile'; import Account from './Account'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import makeStyles from '@material-ui/core/styles/makeStyles'; const useStyles = makeStyles( ({ spacing }) => ({ container:...
<?php /** * This file is part of bops * * @copyright Copyright (C) 2020 Jayson Wang * @license MIT License * @link https://github.com/wjiec/php-bops */ namespace Bops\Logger; use Bops\Exception\Framework\Logger\UnknownLogLevelException; use Bops\Logger\Formatter\FormatterInterface; use Psr\Log\AbstractLog...
import 'package:flutter/material.dart'; import 'package:get/route_manager.dart'; import 'package:get/get.dart'; import 'package:ting_mobile/core/page_router.dart'; class MainApp extends StatelessWidget { @override Widget build(BuildContext context) { return GetMaterialApp( enableLog: true, debugSho...
-- Copyright (c) 2014 Eric McCorkle. All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: -- -- 1. Redistributions of source code must retain the above copyright -- notice, this list of conditi...
#![cfg(all(rustc_nightly, feature = "runtime-tokio"))] use std::thread; use crate::new_acceptor_dyn_from_der_keys; use crate::new_acceptor_from_der_keys; use crate::new_connector_dyn_with_root_ca; use crate::new_connector_with_root_ca; use crate::TcpListener; use crate::TcpStream; use crate::BIND_HOST; use test::Benc...
/* * Copyright (c) 2018 ThanksMister 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 agree...
use eyre::{bail, Result}; use std::io; pub fn bail_literal() -> Result<()> { bail!("oh no!"); } pub fn bail_fmt() -> Result<()> { bail!("{} {}!", "oh", "no"); } pub fn bail_error() -> Result<()> { bail!(io::Error::new(io::ErrorKind::Other, "oh no!")); }
package com.lucaszeta.adventofcode2020.day21 import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test class Day21KtTest { @Test fun `Should find ingredients that appear in allergen list`() { val input = listOf( "mxmxvkd kfcds sqjhc nhms (contains dairy, fish)...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using Cake.Core; using Cake.Core.IO; using Cake.Core.Tooling; namespace Cake.Common.Tools.DotCover {...
require 'jiggle/group' module Jiggle class Speck < Group def initialize(position, attr={}) super() attr[:mass] ||= 5 particle = Particle.new position, :mass => attr[:mass] @particles << particle end def position @particles.first.position end end end
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.query_reports["Feedback Ratings"] = { "filters": [ { "fieldname": "document_type", "label": __("Document Type"), "fieldtype": "Link", "options": "DocType", "reqd": 1, "de...
//! The ubin project is very similar to the bincode library. The intent is to create an ultra //! simple and lightweight serialization library for microcontrollers serialization library for //! microcontrollers and other memory constrained devices. //! //! Similar to bincode, it has the following caveots //! - isize/...
lalrpop_mod!( #[allow(clippy::all)] equalizer_apo, "/parsing/equalizer_apo.rs" ); pub use self::equalizer_apo::MainParser as EqualizerApoParser; // TODO: test parsing filters with real examples
package main import ( "encoding/json" "fmt" "github.com/hyperledger/fabric/core/chaincode/shim" sc "github.com/hyperledger/fabric/protos/peer" ) type SmartContract struct { } type MedicalRecord struct { Name string `json:"name"` Image string `json:"image"` Record string `json:"record"` } func (s *SmartCo...
--- title: Availability weight: 85 layout: single team: - VMware Tanzu Labs --- You will demonstrate how `pal-tracker` application works with *Tanzu Application Service* availability characteristics. ## Learning outcomes After completing the lab, you will be able to: - Demonstrate how *Tanzu Application Service* ...
#!/bin/bash SCRIPTPATH="$(cd "$(dirname "$0")"; pwd -P)" if [[ $OSTYPE =~ "darwin" ]]; then DYLD_FALLBACK_LIBRARY_PATH=${SCRIPTPATH}/../bundle/AstraSDK-darwin-x64/lib node $1 else dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" LD_LIBRARY_PATH=${SCRIPTPATH}/../bundle/OpenNI-linux-${dpkgArch}/Re...
package ude import "k8s.io/api/core/v1" // UDE ... type UDE struct { Name string PodList *v1.PodList ConfigMapList *v1.ConfigMapList SecretList *v1.SecretList } // New returns a new instance of type UDE. func New(name string) *UDE { return &UDE{ Name: name, } }
# -*- coding: utf-8 -*- # ZX Spectrum Emulator. # https://github.com/kosarev/zx # # Copyright (C) 2017-2019 Ivan Kosarev. # ivan@kosarev.info # # Published under the MIT license. import cairo import enum import gi from ._device import Device from ._device import GetEmulationPauseState from ._device import G...
import { join } from 'path'; import { existsSync, readdirSync, statSync, readFileSync, writeFileSync, unlinkSync, mkdirSync } from 'fs'; import _ from 'lodash'; import chalk from 'chalk'; export default function(api, options = { exclude: [] }) { const { paths } = api; const { exclude } = options; const pagesLo...
// Copyright 2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 pub use scylla_rs::prelude::Keyspace; use std::borrow::Cow; /// The Chronicle keyspace #[derive(Default, Clone, Debug)] pub struct ChronicleKeyspace { name: Cow<'static, str>, } impl ChronicleKeyspace { /// Create a new instance of the ke...
export CsvChunkIterator using CSV using DataFrames: DataFrame, names import Base: iterate, length, IteratorSize using Base.Iterators """ CsvChunkIterator("path/to/file.csv") Define a Chunking iterator on CSV file """ mutable struct CsvChunkIterator file::IOStream step::Int column_headers::Union{Vecto...
class View < ActiveRecord::Base acts_as_paranoid before_create :set_viewed_at_to_now validates_uniqueness_of :submission_id, scope: :user_id private def set_viewed_at_to_now self.viewed_at = Time.now end end
package zielu.gittoolbox.blame; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.messages.MessageBusConnection; import git4idea.repo.GitRepository; import org.jetbrains.annotations.NotNull; import zielu.gittoolbox.cache.PerRepoInfoCache; import zielu.gi...
# Data Data provides the storage mechanism for shapes components which can be rendered with WebGL.
using UnityEngine; namespace GW_Lib.Utility { public class ExtTransperablesGroup : MonoBehaviour { ExtTransperable[] transperables { get { if(m_transperables.Length == 0) { m_transperables = GetComponentsInChildr...
#!/bin/sh waitforservice() { host="$1" port="$2" status=1 echo -n "Waiting for service ${host}:${port}" while [ "$status" -ne "0" ]; do echo -n '.' echo | telnet "$host" "$port" status="$?" sleep 1 done echo "done" } OPENCART_FILE="2.3.0.2-compiled.zip" OPENCART_TW_URL="http://www.ntcart...
import { action } from '@storybook/addon-actions' import { storiesOf } from '@storybook/react' import * as React from 'react' import styled from 'styled-components' import { Button, ButtonAnchor, ButtonDiv } from './Button' storiesOf('Button', module).add('all', () => ( <List> <li> <Button onClick={action...
import { responseFromJson } from "@chiselstrike/api" export default async function chisel(req) { if (req.method == 'PUT') { try { await Person.build(await req.json()).save(); return responseFromJson("ok"); } catch (e) { return responseFromJson(e, 500); } ...
## find ::: warning 废弃警告 使用 `find` 搜索组件的方式已经被废弃并会被移除。请换用 [`findComponent`](./findComponent.md)。 ::: 返回匹配选择器的第一个 DOM 节点或 Vue 组件的 `Wrapper`。 可以使用任何有效的 DOM 选择器 (使用 `querySelector` 语法)。 - **参数:** - `{string} selector` - **返回值:**`{Wrapper}` - **示例:** ```js import { mount } from '@vue/test-utils' import Foo from '....
package datastructure.sort.quicksort3; /** * Created by Administrator on 2017/9/7. */ public class ArrayIns { private long[] theArray; // ref to array theArray private int nElems; // number of data items public ArrayIns(int max) { // constructor theArray = new long[max]; ...
--- title: md alb gen layout: default --- ### / [shell-scripts](../) / [md-img-gen](.) ----------------------------------------------------------------------------------- # Include all images from all directories below in the format of Markdown ## Example #### 1/2/3/apply canvas ![1/2/3/apply canvas](1/2/3/apply-c...
<?php namespace Entities; /** * @Entity(repositoryClass="Repositories\Business_obj_repository") * @Table(name="instance_value") */ class Instance_value { /** * @Id * @Column(type="integer") * @GeneratedValue(strategy="AUTO") */ public $id; /** * @Column(type="string", name="value", length=2048) */ ...
: '@(#)dicom_store.sh 22.1 03/24/08 2003-2006 ' # # # Copyright (C) 2015 University of Oregon # # You may distribute under the terms of either the GNU General Public # License or the Apache License, as specified in the LICENSE file. # # For more information, see the LICENSE file. # # : /bin/sh #*****************...
#!/bin/bash if [ $# -lt 3 ]; then echo 1>&2 "Usage: . $0 hostname realm clientid [username [password [client_password]]]" echo 1>&2 " options:" echo 1>&2 " hostname: localhost:8081" echo 1>&2 " realm: quarkus" echo 1>&2 " clientid: backend-service" echo 1>&2 " username: jdoe/alice" echo 1...
var SignalSource = require("./source") module.exports = map // map :: Signal<A> -> (A -> B) -> Signal<B> function map(signal, lambda) { return SignalSource(function generator(broadcast) { signal(function listener(value) { broadcast(lambda(value)) }) }, lambda(signal())) }
import React from 'react'; import { useTheme } from '@bma98/fractal-ui'; import { NavigationRouteContent } from './components/NavigationRouteContent'; import { NavigationRouteProps } from './types/NavigationRouteProps'; export function NavigationRoute(props: NavigationRouteProps): JSX.Element | null { const theme ...
using System; using System.Linq; using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Drawing; using ShapeCrawler.Audio; using ShapeCrawler.Shapes; using ShapeCrawler.Video; using A = DocumentFormat.OpenXml.Drawing; using P = DocumentFormat.OpenXml.Presentation; namespace ShapeCrawler.Factories { /// <summa...
import { ILegPaymentStreamPricingBusinessCenterGrp } from './leg_payment_stream_pricing_business_center_grp'; import { ILegPaymentStreamPricingDayGrp } from './leg_payment_stream_pricing_day_grp'; import { ILegPaymentStreamPricingDateGrp } from './leg_payment_stream_pricing_date_grp'; import { ILegPaymentStreamFormula ...
<?php /* * This file is part of Laravel TestBench Core. * * (c) Graham Campbell <graham@alt-three.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace GrahamCampbell\TestBenchCore; use Exception; /** * This is the la...
#!/bin/sh : # shellcheck disable=SC2039 update-config-help() { echo "pot update-config [-h] [-p pot|-a]" echo ' -h print this help' echo ' -v verbose' echo ' -p pot : the working pot' echo ' -a : all the pots' } # $1 pname _get_conf_static_ports() { # shellcheck disable=SC2039 local _pname _cdir _value _p...
// TODO this should eventually replace stress.py. need to figure out a way // to rewrite dataset UUIDs on the fly first. package com.pacbio.simulator.scenarios import java.util.UUID import scala.collection._ import akka.actor.ActorSystem import com.pacbio.common.models.CommonModelImplicits import com.typesafe.confi...
-- Authorities INSERT INTO iam_authority(ID, AUTH) VALUES (1, 'ROLE_ADMIN'), (2, 'ROLE_USER'); -- Administrator account INSERT INTO iam_user_info(ID,GIVENNAME,FAMILYNAME, EMAIL, EMAILVERIFIED, BIRTHDATE, PICTURE, GENDER) VALUES (1, 'Admin', 'User', 'admin@iam.test', true, '1950-01-01', null, 'M'); INSERT INTO iam_ac...
# This migration comes from droom (originally 20120910075016) class CreateDroomData < ActiveRecord::Migration def change create_table :droom_events do |t| t.datetime :start t.datetime :finish t.string :name t.string :slug t.text :description t.string :url t.integer :venue...
<?php return [ /* |-------------------------------------------------------------------------- | Report Language Lines |-------------------------------------------------------------------------- | | The following language lines are used in reports | */ 'reports' => 'Reports', '...
import { Form } from 'antd' import TextArea from 'antd/lib/input/TextArea' import { FormItemExt } from './formItemExt' export default function ProjectPayDisclosure({ name, hideLabel, formItemProps, }: FormItemExt) { return ( <Form.Item name={name} label={hideLabel ? undefined : 'A note to your...
const version = "v1:", // be sure to update // Stuff to load on install offline_page = "/offline/", preinstall = [ // images "/static/img/favicon-16x16.png", "/static/img/favicon-32x32.png", "/static/img/favicon-96x96.png", // CSS // JavaScript ...
package config import de.p7s1.qa.sevenfacette.config.ConfigReader import de.p7s1.qa.sevenfacette.config.types.FacetteConfig import org.junit.After import org.junit.Before import org.junit.Test class ConfigTestMultiFiles { @Before fun setConfig() { System.setProperty("FACETTE_CONFIG", "facetteConfigMu...
<?php namespace App\Models\Course; use App\Models\Course\Output\CourseOutput; use App\Repositories\CourseMemberAttendanceRepository; use App\Repositories\CourseRepository; use App\Repositories\Entities\CourseEntity; use App\Repositories\Entities\CourseMemberAttendanceEntity; use Michalsn\Uuid\Uuid; class CourseMod...
"""Configuration Settings""" import configparser from doc_utils.doc_utils import DocUtils class Config(DocUtils): """ Set and change configuration settings - Retries - Set the behaviour of retries for failed responses from the API - number_of_retries - Number of retries to attempt - seco...
; =============================================================== ; Aug 2003, Apr 2014 ; =============================================================== ; ; void in_mouse_kempston(uint8_t *buttons, uint16_t *x, uint16_t *y) ; ; Returns mouse coordinate and button state. ; ; ===========================================...
class AddStateFailedAtAndCompletedAtToProductImports < ActiveRecord::Migration[4.2] def change add_column :spree_product_imports, :state, :string add_column :spree_product_imports, :failed_at, :datetime add_column :spree_product_imports, :completed_at, :datetime end end
namespace eShopOnBlazorWasm.Features.CatalogItems { using eShopOnBlazorWasm.Features.Bases; internal partial class CatalogItemState { public class FetchCatalogItemsAction : BaseAction { } } }
<?php namespace App\Providers; use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ ...
use crate::commands::prelude::*; use crate::storages::RawEventList; use crate::Result; use crate::traits::ChannelExt; use colorful::Colorful; use lazy_static::lazy_static; use log::info; use mp3_duration; use rand::prelude::*; use regex::Regex; use serenity::model::event::Event; use serenity::model::id::{ChannelId, Emo...
from datetime import datetime from prefect import Client client = Client() client.create_flow_run( flow_id="dc691fe0-61da-4394-ac1e-4f2cce561935", parameters={ 'dt': datetime(2020, 11, 25, 12).isoformat(), # 'environment': 'prod', 'environment': 'staging' } )
import { createDrawerNavigator } from 'react-navigation'; import QuestionsBottomTabNavigator from './Questions/QuestionsBottomTabNavigator' import AnswersBottomTabNavigator from './Answers/AnswersBottomTabNavigator' import ImageBrowser from './ImageBrowser' import ImagePicker from './ImagePicker' // import ListOfItems ...
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using MAVN.Service.SmartVouchers.Domain.Enums; namespace MAVN.Service.SmartVouchers.MsSqlRepositories.Entities { [Table("voucher")] public class VoucherEntity { [Key] [Column("id"...
import 'package:flutter/material.dart'; class SelectField extends StatelessWidget { final String label; final String selected; final Function onTap; const SelectField({Key key, @required this.label, this.selected, this.onTap}) : super(key: key); @override Widget build(BuildContext context) { fi...
# Changelog All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) <a name="unreleased"></a> ## [Unreleased] <a name="0.2.0"></a> ## [0.2.0] - 2018-07-12 ### Feature - Adds support for multiple sources include files <...
<?php declare(strict_types=1); namespace BankID\SDK\Responses\DTO\Asynchronous; /** * Class SignResponse * @package BankID\SDK\Responses\DTO\Asynchronous */ class SignResponse extends AuthenticationResponse { }
-- Name: GetSpreadsheetOperationByName -- Schema: posda_files -- Columns: ['operation_name', 'command_line', 'operation_type', 'input_line_format', 'tags', 'can_chain'] -- Args: ['operation_name'] -- Tags: ['spreadsheet_operations'] -- Description: Get spreadsheet operation by name select operation_name, command_lin...
package ziggy import ( "fmt" "bldy.build/bldy/src/build" "bldy.build/bldy/src/url" ) type PackageLoader func(ctx build.Context, u *url.URL) (Package, error) var loaders = make(map[string]PackageLoader) func Register(scheme string, loader PackageLoader) { loaders[scheme] = loader } func loadPackage(ctx build.C...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Requests\SpeakerStoreRequest; use App\Http\Requests\SpeakerUpdateRequest; use App\Models\Speaker; use App\Services\SpeakerService; use Illuminate\Http\Request; class SpeakerController extends Controller { public functio...
import { updateCategories } from "modules/categories/actions/update-categories"; // makeUICategory returns a new category literal, ie. an // object matching the type of middleware UICategory<string>. function makeUICategory( categoryName: string, tagName1: string, tagName2: string ) { function makeTagAggregati...
using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XMSBS.Common.NetCore.RepositoryBase { public abstract class RepositoryBase<TEntity, IDT, CT> : IRepository<TEntity, IDT> where TEntity : EFTBas...
require "support/workflow_context" module SessionSpec class StartAction < TelegramWorkflow::Action def initial on_message do verifier.start_action__initial_step(session) session[:key1] = "value1" redirect_to :first_step end end def first_step on_redirect do ...
//---------------------------------- // File : js/pages/editors/editor_ckeditor.js // Type : JS file // Version : 1.0.0 // Last Updated : April 4, 2017 //---------------------------------- $(function() { 'use strict'; var editor = CKEDITOR.replace('editor-readonly', { hei...
module DeviceFormat extend ActiveSupport::Concern included do before_action :set_variant_for_device end private def set_variant_for_device request.variant = :native if turbo_native_app? end end
CREATE DATABASE caso_libros; CREATE USER usr_caso_libros WITH ENCRYPTED PASSWORD 'usr'; GRANT ALL PRIVILEGES ON DATABASE caso_libros TO usr_caso_libros;
Swagger 经过这些年的发展以先对成熟,微服务我们有了描述文件 纵观国内外,缺少运行时监控