text
stringlengths
27
775k
#region Using directives using System; #endregion namespace Blazorise.Markdown { /// <summary> /// Supplies the information about the markdown button click event. /// </summary> public class MarkdownButtonEventArgs : EventArgs { /// <summary> /// A default <see cref="MarkdownButton...
package com.malliina.boat.graph import com.malliina.boat.Coord sealed trait GraphError case class UnresolvedFrom(from: Coord) extends GraphError case class UnresolvedTo(to: Coord) extends GraphError case class NoRoute(from: Coord, to: Coord) extends GraphError case object EmptyGraph extends GraphError
import { TOTP } from '@otplib/core'; import { testClassPropertiesEqual } from '@tests/utils'; import { testSuiteTOTP } from '@tests/suite/totp'; import { TOTPAsync } from './totp'; testClassPropertiesEqual<TOTP, TOTPAsync>( TOTP.name, new TOTP(), TOTPAsync.name, new TOTPAsync() ); testSuiteTOTP<TOTPAsync>('to...
package services import java.util.UUID trait HashAppender { def append(str: String): String } class HashAppenderImpl extends HashAppender { override def append(str: String): String = UUID.randomUUID.toString.take(9) + str }
# conversion methods for DataArrays and DataFrames function rcopy{T,S<:VectorSxp}(::Type{DataArray{T}}, s::Ptr{S}) DataArray(rcopy(Array{T},s), isna(s)) end function rcopy{S<:VectorSxp}(::Type{DataArray}, s::Ptr{S}) DataArray(rcopy(Array,s), isna(s)) end function rcopy(::Type{DataArray}, s::Ptr{IntSxp}) i...
namespace DSerfozo.RpcBindings.CefGlue.Common { public static class Messages { public const string RpcResponseMessage = "RpcResponseMessage"; public const string RpcRequestMessage = "RpcRequestMessage"; } }
<?php /** * YYF - A simple, secure, and efficient PHP RESTful Framework. * * @link https://github.com/YunYinORG/YYF/ * * @license Apache2.0 * @copyright 2015-2017 NewFuture@yunyin.org */ namespace tests\library; use \Db as Db; use \Orm as Orm; use \Test\YafCase as TestCase; class DbTest extends TestCase { ...
use serde::Deserialize; use serde_json::value::RawValue; use crate::domain::*; use crate::util::*; /// Setting is a json, include the following properties: /// each you defined dimensions will be output as `Instance.para` #[derive(Serialize, Deserialize)] struct Setting { /// default is "/" #[serde(skip_seria...
#Sumi Bae Git Blog --- 📌Contact - ✉️ <a href="mailto:ssum0222@gmail.com?Subject=\[blog\]Hello">ssum0222@gmail.com</a>
import 'package:ex04_using_generics/assembly.dart'; void operation(car) { print('Operate ${car}'); } void main() { // final passengerCarAssembly = AssemblyLine<Car>(); final passengerCarAssembly = AssemblyLine<PassengerCar>(); passengerCarAssembly.add(PassengerCar()); // passengerCarAssembly.add(Truck()); ...
import React, { Component } from 'react' import api from '../api' import ErrorMessage from '../ui/ErrorMessage' import List from '../ui/List' import Loader from '../ui/Loader' import PollCard from './PollCard' export default class Home extends Component { state = { polls: null, isLoading: false, errors: ...
module Chapter11Huttons where data Expr = Lit Integer | Add Expr Expr eval :: Expr -> Integer eval (Lit i) = i eval (Add expr1 expr2) = eval expr1 + eval expr2 printExpr :: Expr -> String printExpr (Lit i) = show i printExpr (Add expr1 expr2) = printExpr expr1 ++ " + " ++ printExpr expr2
-- Team: Cody Malick and Jacob Broderick module Tree where -- -- * Part 2: Binary trees -- -- | Integer-labeled binary trees. data Tree = Node Int Tree Tree -- ^ Internal nodes | Leaf Int -- ^ Leaf nodes deriving (Eq,Show) -- | An example binary tree, which will be used in tests. t1 :: T...
package com.salmoukas.cerberus.ui import android.app.Application import android.content.Context import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.ViewModelStoreOwner class ViewModelFactory<T>(val creator: () -> T) : ViewModelProvider.Factory { @Suppress("UNC...
--- layout: post title: 195. Tenth Line subtitle: Easy author: Bin Li tags: [Coding, LeetCode, Easy, Bash] image: comments: true published: true --- ## Description Given a text file `file.txt`, print just the 10th line of the file. **Example:** Assume that `file.txt` has the following content: ``` Line 1 Line 2 L...
<?php class Vehiculo { //Atributos protected $owner; /******Constructores***********/ public function __construct($owner) { $this->owner = $owner; echo 'construct <br>'; } //getters y setters public function getOwner(){ return $this->owner; } public function setOwner($Name){ ...
using System; using UnityEngine; namespace ET { public static class GameObjectHelper { public static GameObject Instantiate(GameObject prefab , Transform parent,bool worldPositionStays) { return UnityEngine.Object.Instantiate(prefab, parent, worldPositionStays); } } }
module Scoreboard class Team attr_reader :name, :score attr_writer :name, :score def initialize @score = 0 @name = "NA" end def field_goal @score += 3 end def touchdown @score += 7 end def to_s "Team name: #{@name} - Score: #{@score}" end d...
CREATE TABLE `user` ( `ID` int(10) DEFAULT NULL, `AGE` tinyint(3) DEFAULT NULL, `NAME` varchar(50) DEFAULT NULL, `WEIGHT` float(3,0) DEFAULT NULL, `SEX` bit(1) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
import React from 'react' import takeSamples from './take_samples' import {paramSignatures} from './model' const ResultLine = ({points}) => <polyline style={{fill:'none', stroke:'blue', strokeWidth: '0.5%'}} points={ points.map(({t,v}) => [t,1 - v].join(' ')).join(' ') }/> const Circle = ({point}) => <cir...
<?php /** * This file is part of Helix package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Helix\Container; use Helix\Container\Definition\DefinitionInterface; use Helix\Container\Definitio...
%macro mapFloor 2 mov si, word freeX[0] mov ax, %1 mov bx, %2 mov center[si], ax mov center[si+1], bx inc si mov freeX[0], si %endmacro %macro createEntity 3 mov ax, %1 mov bx, %2 mov cx, %3 mov si, word freeX[1] mov entities[si], si inc si mov entities[si], ax inc si ...
using Newtonsoft.Json; namespace Hateoas.Controllers.DataTransferObjects { public class CommentResponseBody : CommentRequestBody { // <remarks> // Id should not be returned to client, but is needed internally for the HAL link // templates. // </remarks> [JsonIgnore] ...
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql'; import { DeletionResponse, MutationCreateTaxRateArgs, MutationDeleteTaxRateArgs, MutationUpdateTaxRateArgs, Permission, QueryTaxRateArgs, QueryTaxRatesArgs, } from '@vendure/common/lib/generated-types'; import { PaginatedList...
package com.github.naz013.compassapp.view import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Rect import android.view.Gravity import com.github.naz013.compassapp.theming.Palette class AngleLabelPainter(private val paint: Paint) { private var seconda...
ts() { tmux kill-session -t k8s tmux new-session -d -s k8s } tc() { tmux select-window -t $1 tmux send-keys 'source k8s-kc-helper.sh' C-m tmux send-keys 'kc' C-m } export -f tc tw() { tc "k8s:0" tmux send-keys 'wk svc,ep,deploy,po,no' C-m } te() { tmux new-window -t k8s:1 tc "k8s:1" tmux send-key...
-- This is a test file. CREATE TABLE TABLE1 ( NAME VARCHAR(255), `FIRST_NAME` VARCHAR(255), PROFESSION VARCHAR(50) NOT NULL, CONSTRAINT TABLE1_PK PRIMARY KEY (NAME, FIRST_NAME), FOREIGN KEY (PROFESSION) REFERENCES TABLE2 (PROFESSION) ); CREATE TABLE TABLE2 ( PROFESSION VARCHAR(255), RECOGNITION VARCHAR(...
import csv import numpy as np import torch import parameter_calculator as calculator import cardiGAN import hyper_parameters as parameters GEN_PATH = 'saved_models/sample_generator_net.pt' RESULT_PATH = 'data/generated_result.csv' num_samples = 10000 # The number of generated samples. # Load the trained generator m...
package Video::Delay; use strict; use warnings; our $VERSION = 0.08; 1; __END__ =pod =encoding utf8 =head1 NAME Video::Delay - Perl classes for delays between frames generation. =head1 SEE ALSO =over =item L<Video::Delay::Array> Video::Delay class for predefined list of delays. =item L<Video::Delay::Const...
package net.nemerosa.ontrack.extension.general import net.nemerosa.ontrack.extension.api.BuildDisplayNameExtension import net.nemerosa.ontrack.extension.support.AbstractExtension import net.nemerosa.ontrack.model.structure.Build import net.nemerosa.ontrack.model.structure.PropertyService import org.springframework.ste...
export type FormResult = { [key: string]: string | number | string[] | number[] | undefined; }; export enum ValidationError { Required = 'required', Invalid = 'invalid', } export enum FieldTypeError { isMultipleAndRadio = 'isMultipleAndRadio', } export type Entry<T> = [string, T]; export type OnFieldChange =...
module Intermed where import Environment getTypeFromIVar :: IVar -> ChType getTypeFromIVar (VarInfo (_, (_, ty, _))) = ty getTypeFromIVar _ = ChVoid type FpAddr = Int type GpAddr = Int data Address = Fp Int | Gp Int -- | Reg Int deriving (Eq) instance Show Address where sh...
/* LICENSE Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com) 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, ...
# -*- coding: utf-8 -*- """ walle-web :copyright: © 2015-2017 walle-web.io :created time: 2017-03-25 11:15:01 :author: wushuiyong@walle-web.io """ from flask import request from walle.api.api import SecurityResource from walle.model.menu import MenuModel from walle.model.role import RoleModel clas...
import os import sys import time from logging import LogRecord, getLogger, basicConfig, getLevelName, INFO, WARNING, Formatter, makeLogRecord from logging.handlers import BufferingHandler from threading import Thread, Event from six.moves.queue import Queue from ...backend_api.services import events from ...backend_ap...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Traits\CheckTraits; use Illuminate\Support\Facades\File; use App\Jobs\AuditJob; use Illuminate\Support\Facades\Storage; use Exception; class AuditController extends Controller { use CheckTraits; public function fetchAudit() { ...
package com.tooppoo import org.scalatest.funspec.AnyFunSpec import org.scalatest.prop.TableDrivenPropertyChecks /** * [ ] 異なる座標を持つ2つの格子点を含む格子点集合(grid points)を導入します。 * [x] GridPointSet定義 * [x] GridPointSetは2つの格子点を持つ * [x] 2つの格子点が異なる座標を持つ * [x] 2つの格子点が同じ座標を持つ * [x] 格子点集合が、指定した格子点を含む(contains)かを判定してく...
<?php function splitStringToArray($string, $separator) { $array = []; if (str_contains($string, $separator)) { $array = explode(',', $string); } else { $array[] = $string; } return $array; } function isValidTimeStamp($timestamp) { return ((string) (int) $timestamp === $timestam...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package acm import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type ExportCertificateInput struct { _ struct{} `type:"structure"` // An Amazon Resource Name (ARN) of the issued certificate...
import numpy as np import numpy.matlib import os from sklearn.externals import joblib class mSDA(object): ''' Implement mSDA. To read more about the SDA, check the following paper: Chen M , Xu Z , Weinberger K , et al. Marginalized Denoising Autoencoders for Domain Adaptation[J]. C...
<?php namespace App\Radan\Config\Storage; use Illuminate\Database\Eloquent\Model; class Elequent implements StorageInterface { /** * @var Base Elequent Model connection */ protected $connection = ''; /** * @var Base Elequent Model connection */ protected $model = ''; /** ...
using System.Collections.Generic; using UnityEngine; public class BeatAnalyse : MonoBehaviour { float[] spectrum; public static List<int> beatStarts = new List<int>(); [SerializeField] int windowTrigger; [SerializeField] float drawWidth; [SerializeField] float limit, waitSamples; [SerializeFi...
require 'spec_helper' require_relative '../support/bag_of_words' require_relative '../support/request' describe 'the impact of the bag of words' do include_context "bag_of_words" include_context "request" before do empty_bag_of_words end context "when the user is not logged in" do it "should ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WindowsPhone.Recipes.Push.Server.Models; namespace WindowsPhone.Recipes.Push.Server.Services { /// <summary> /// Server info event arguments. /// </summary> internal class ServerInfoEventArgs : EventArgs { ...
--- title: Datadog-Mesos Integration integration_title: Mesos kind: integration doclevel: basic --- Connects Mesos to Datadog in order to: * Visualize your Mesos cluster performance * Correlate the performance of Mesos with the rest of your applications
#!/usr/bin/perl # WARNING: this file is generated, do not edit # generated on Wed May 27 03:01:20 2020 # 01: Apache-Test/lib/Apache/TestConfig.pm:1007 # 02: Apache-Test/lib/Apache/TestConfig.pm:1099 # 03: Apache-Test/lib/Apache/TestMM.pm:142 # 04: ./Makefile.PL:50 # 05: /usr/share/perl/5.22/ExtUtils/MakeMaker.pm:241 # ...
/* * Copyright (c) 2017 Intel Corporation * * 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 o...
# Copyright 2015 gRPC 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 applicable law or agreed to in writing...
CREATE PROCEDURE [api].[ReportDefinitions__Save] @Entities [dbo].[ReportDefinitionList] READONLY, @Parameters [dbo].[ReportDefinitionParameterList] READONLY, @Select [dbo].[ReportDefinitionSelectList] READONLY, @Rows [dbo].[ReportDefinitionDimensionList] READONLY, @RowsAttributes [dbo].[ReportDefinitionDimensionA...
import setuptools import os with open("README.md", "r") as fh: long_description = fh.read() def get_version(): with open(os.path.join('src', 'view', 'constants.py')) as f: for line in f: if line.strip().startswith('VERSION'): return eval(line.split('=')[-1]) ...
import Toast from '../components/Toast'; import socket from '../socket'; export default function fetch<T = any>( event: string, data: any = {}, { toast = true } = {}, ): Promise<[string | null, T | null]> { return new Promise((resolve) => { socket.emit(event, data, (res: any) => { i...
import axios from "axios"; // const BASEURL = "https://api.nytimes.com/svc/search/v2/articlesearch.json?"; // const APIKEY = "apikey=c0b4d2e16a014795bbdce9d7e4df8a95"; // const QUERY = "&q=obama"; // export default { // search: function(query) { // return axios.get(BASEURL + APIKEY + QUERY); // } // }; // co...
using System.Collections.Generic; using System.Collections.ObjectModel; using XivApi.Character.Raw; namespace XivApi.Character { public class CharacterClassJobs { public readonly struct ClassJobLevel { public IClassJob ClassJob { get; } public int? Level { get; } ...
package me.jonathing.minecraft.foragecraft.common.capability; import me.jonathing.minecraft.foragecraft.common.capability.base.IForageChunk; import me.jonathing.minecraft.foragecraft.common.registry.ForageCapabilities; import net.minecraft.nbt.CompoundTag; import net.minecraftforge.common.capabilities.Capability; impo...
@TestOn('vm') import 'package:_tests/compiler.dart'; import 'package:test/test.dart'; void main() { test('should fail on a non-".css" file extension', () async { await compilesExpecting(""" import '$ngImport'; @Component( selector: 'example', template: '', styleUrls: [ ...
require 'csv' require 'faker' require 'json' require 'yaml' module Fake def self.data collection_data = {} ['.csv', '.json', '.yml'].each do |i| name = slug(Faker::RuPaul.unique.queen) data = generate_data(name, i, collection_data) path = '_data/' + name + i case i when '.csv' t...
// // UITextField+StreamKit.h // StreamKit // // Created by 苏南 on 16/12/22. // Copyright © 2016年 李浩. All rights reserved. // #import <UIKit/UIKit.h> /** Overrides the super's methods. */ @interface UITextField (StreamSuper) #pragma mark- UIView - (UITextField* (^)(CGRect frame))sk_frame; - (UITextField* (^)(C...
import { RendererComponent } from './Renderer'; import { ControlProps, ControlState } from '@jsonforms/core'; /** * A controlled component convenience wrapper that additionally manages a focused state. * * @template P control specific properties * @template S the state managed by the control */ export declare clas...
--- layout: post title: Running Multiple Instances of nvALT date: '2014-03-27T10:00:19-04:00' tags: - nvalt - workflow redirect_from: /post/80876964138unning-multiple-instances-of-nvalt/ redirect_to: http://verifyandrepair.com/03-27-2014/running-multiple-instances-of-nvalt/ ---
import { spawn } from 'child_process' export default function execCommand(line: string, cwd = process.cwd()) { const [command, ...args] = line.split(/\s+/) const cp = spawn(command, args, { cwd }) return new Promise<void>((res, rej) => { cp.on('error', err => { rej(err) }).on('exit', code => { ...
using UnityEngine; using System.IO; using System.Collections.Generic; using NUnit.Framework; using MidiLoader.Parser; namespace MidiLoader.Tests { [Category("MidiLoader")] [TestFixture] public class VariableLengthQuantityTests { [ExpectedException( typeof( MidiLoader.Exceptions.MidiEndOfFileException ) )] [...
(ns overtone.sc.machinery.ugen.metadata.extras.vbap (:use [overtone.sc.machinery.ugen common check])) (def specs [ {:name "VBAP" :summary "Vector Based Amplitude Panner" :args [{:name "num-chans" :default 1 :mode :num-outs :doc "The number of output channels....
<?php namespace App; use Illuminate\Database\Eloquent\Model; class User_Info extends Model { protected $table = 'user_info'; public function getUserinfoByUserIds($goodIds){ $result = $this->whereIn('user_id', $goodIds) ->distinct('user_id') ->get(['user_id', 'name', 'address'...
package _andlabsUI import ( "os" "bufio" ) func readFile(fileName string) ([]string, []string, error){ return revertLine(fileName) } func revertLine(fileName string) ([]string, []string, error){ file, err := os.Open(fileName) if checkError(err, true) {return nil, nil, err} defer file.Close() origin := []strin...
package com.nawrot.mateusz.recipey.navigation import android.content.Context import android.util.Log import com.nawrot.mateusz.recipey.di.ActivityScope import javax.inject.Inject @ActivityScope class NavigationRouter @Inject constructor(private val context: Context, private val navigator: Navigator) { init { ...
package com.jade.customervisit.ui.view; import java.util.ArrayList; import java.util.List; import com.jade.customervisit.CVApplication; import com.jade.customervisit.R; import com.jade.customervisit.adapter.AbsListAdapter; import com.jade.customervisit.util.CommonUtils; import android.content.Context; imp...
/* eslint-disable indent */ import Vue from 'vue'; import VueRouter from 'vue-router'; import PasswordPage from '../shared/pages/password'; import CodeGeneratorPage from '../shared/pages/code-generator'; import BlacklistItem from '../shared/components/backlist/blacklist-list-item.component'; const routes = [{ ...
# Copyright (c) 2019, Richard Levitte # All rights reserved. # # Licensed under the BSD 2-Clause License (the "License"). # You can obtain a copy in the file LICENSE in the source distribution. use strict; use warnings; package PLisp::Types::Condition; use parent qw(PLisp::Types::T); use Scalar::Util qw(refaddr); s...
--- title: tRPC --- # [tRPC](https://trpc.io/) > End-to-end typesafe APIs made easy ## Links - [OpenAPI support for tRPC](https://github.com/jlalmes/trpc-openapi) - [tRPC Shield](https://github.com/omar-dulaimi/trpc-shield) - tRPC tool to ease the creation of permission layer. - [tRPC-ified SWR hooks](https://githu...
package com.finyou.fintrack.backend.repo.test import com.finyou.fintrack.backend.common.models.ErrorModel import com.finyou.fintrack.backend.common.models.FinTransactionIdModel import com.finyou.fintrack.backend.common.models.FinTransactionModel import com.finyou.fintrack.backend.repo.common.DbFinTransactionIdRequest ...
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; usin...
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Uhuru.Openshift.Common.Models; using System.IO; using System.Collections.Generic; using YamlDotNet.RepresentationModel.Serialization; using YamlDotNet.Core; using Uhuru.Openshift.Runtime; namespace Uhuru.Openshift.Tests { [TestClass] publ...
/*jshint node:true*/ "use strict"; var jsmm = {}; jsmm.debug = true; jsmm.maxWidth = 60; jsmm.defaultLimits = { history: 30, base: { callStackDepth: 100, executionCounter: 4000, costCounter: 1000 }, event: { callStackDepth: 100, executionCounter: 400, costCounter: 100 } }; require('./jsmm.nodes')(jsm...
/* * Copyright 2018 The Android Open Source Project * * 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...
#!/usr/bin/env bash # This script create empty necessary directories to avoid # `stow` make symlinks to our sub-directories. So that programs # will not put their stuff in this repository. set -eu -o pipefail EMPTY_DIRS_IN_HOME=( .config/autostart .config/autostart-scripts .config/fontconfig .confi...
import { readLines } from "https://deno.land/std@v0.52.0/io/bufio.ts"; console.log('Start typing...'); const encoder = new TextEncoder(); await Deno.writeFile("input.txt", new Uint8Array()); // Listen to stdin input by readLines for await(const line of readLines(Deno.stdin)) { const data = encoder.encode(line+"\n...
numbers = [10, 5, 7, 2, 1] print("List content:", numbers) # Printing original list content. numbers = [10, 5, 7, 2, 1] print("Original list content:", numbers) # Printing original list content. numbers[0] = 111 print("\nPrevious list content:", numbers) # Printing previous list content. numbers[1] = numbers[4] ...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:e_shop_tez/Admin/adminOrderDetails.dart'; import 'package:e_shop_tez/Models/item.dart'; import 'package:e_shop_tez/Widgets/orderCard.dart'; import 'package:flutter/material.dart'; import '../Store/storehome.dart'; int counter = 0; class AdminOrde...
package webapp type MuxHandlerAdapter struct { handler Handler } func NewMuxHandlerAdapter(handler Handler) *MuxHandlerAdapter { return &MuxHandlerAdapter{handler} } func (this *MuxHandlerAdapter) ServeHTTP(c interface{}) { this.handler.ServeHTTP(c.(*Context)) }
package console import ( "fmt" "github.com/MikeAWilliams/turing_machine/machine" "github.com/fatih/color" "github.com/eiannone/keyboard" ) func outputState(state machine.StateReport, row int) { fmt.Printf("%v ", row) for j := 0; j < state.SquareIndex; j++ { fmt.Printf("%v", string(state.Squares[j])) } red...
gitwww ------ Set up infrastructure for push-to-deploy websites. License ------- Apache 2 Contact ------- Andrew Leonard: * @anl on Github * @da0s1a on Twitter Support ------- Please log tickets and issues at on [Github](https://github.com/anl/puppet-gitwww).
import axios from 'axios' import tools from "../services/tools" // var tokenContent = tools.getCookie('token'); // var token = 'Basic ' + tokenContent; var instance = axios.create({ timeout: 10000, headers: { 'Content-Type': 'application/json' }, // transformResponse: [function (res) { // // 在此转码数据 ...
--- title: "[정보처리기사 필기] 4-1. 서버 프로그램 구현" excerpt: 정보처리기사 필기 4과목 1장 categories: - JCKP tags: - - JCKP toc: true toc_sticky: true popular: true date: '2021-08-01T09:00:00' last_modified_at: 2021-08-01T09:00:00 --- 2020 시나공 정보처리기사 필기책 참고 {: .notice--primary} **주의!** 중요도가 낮은 항목(C)은 일부 제외 {: .notice--danger} ## 1. 개발 환경 구...
--- layout: page title: About --- <center> Tens mais razões? Manda-nos essas razões para <a href="mailto:votarandreventura@gmail.com">votarandreventura@gmail.com</a>! </center>
using System; using Newtonsoft.Json; namespace GR.Paypal.Abstractions.ViewModels { public class PaymentExecuteVm { [JsonProperty("paymentID")] public string PaymentId { get; set; } [JsonProperty("payerID")] public string PayerId { get; set; } public Guid? OrderId { get; set; } } }
using Api.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Api.Data.Repositories { public class MessageRepository: IMessageRepository { private readonly FriendContext _mcontext; private read...
BASELINE_DIR=$(pwd) GYM_HOME=/home/wil/workspace/buflightdev/projects/gymfc cd $GYM_HOME COMMIT=$(git describe --always) ENV=AttFC_GyroErr1-Noise0.1_M4_Ep-v0 DIR_NAME=ALG=ppo-ENV=${COMMIT}_${ENV} RESULT_HOME=/home/wil/workspace/buflightdev/projects/results/experiments/${DIR_NAME} export OPENAI_LOGDIR=$RESULT_HOME/logs ...
FactoryGirl.define do factory :local_inline, :class => 'CspReport::CspReport' do document_uri "http://localhost:3000" referrer "" blocked_uri "" violated_directive "script-src 'self'" original_policy "script-src 'self'; report-uri /csp/csp_reports" incoming_ip "127.0.0.1" end factory :loc...
#include <lingx/core/times.h> #include <sys/time.h> // gettimeofday() #include <time.h> // gmtime_r(), localtime_r() #include <cstdio> // sprintf() #include <mutex> namespace lnx { namespace { const uint TIME_SLOTS_ = 64; uint Slot_ = 0; int Cached_gmtoff_ = 0; Time Cached_time_[TIME_SLOTS_]; char Cac...
// Stub header file of cuTENSOR #ifndef INCLUDE_GUARD_STUB_CUPY_CUTENSOR_H #define INCLUDE_GUARD_STUB_CUPY_CUTENSOR_H #include "../cupy_cuda_common.h" extern "C" { typedef enum {} cudaDataType_t; typedef enum { CUTENSOR_STATUS_SUCCESS = 0, } cutensorStatus_t; typedef enum {} cutensorAlgo_t; t...
require 'helper' describe Quaderno::Item do context 'A user with an authenticate token with items' do before(:each) do Quaderno::Base.configure do |config| config.auth_token = TEST_KEY config.url = TEST_URL config.api_version = nil end end it 'should get all items (p...
module Main where import BGPRib.PTE import BGPRib.PT main :: IO () main = do let v0 = (42,4) v1 = (42,6) v2 = (42,1) v3 = (42,3) vw = (42,0) t0 = [] t1 = [v0] t2 = [(42,3)] t3 = [(42,5)] t4 = [(99,3)] t5 = [(99,5)] t6 = [(99,5)...
package matms.domain; public enum Permission { PARTICIPANT, TRAINER, ORGANIZER; }
using System; using System.CodeDom; using System.Reflection; namespace CodeDomExt.Helpers { /// <summary> /// Possible accessibility levels /// </summary> public enum AccessibilityLevel { #pragma warning disable 1591 Public, Protected, Internal, ProtectedInternal, ...
/* ID: baymax01 PROG: text LANG: C++ */ #include <iostream> #include <cmath> #include <iomanip> #include <cstring> #include <algorithm> #include <cstdio> #include <cstdlib> #include <vector> #include <stack> #include <cassert> #include <cctype> #include <queue> using namespace std; int main(){ int n,...
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Text.Encodings.Web; using System.Threading.Tasks; using Tew...
use vizia::*; fn main() { Application::new(WindowDescription::new().with_title("Binding in View"), |cx| { Data { something: 55 }.build(cx); CustomView::new(cx); }) .run(); } #[derive(Lens)] pub struct Data { something: i32, } impl Model for Data {} pub struct CustomView {} impl Cus...
SELECT MARA.MANDT AS Client_MANDT, MARA.MATNR AS MaterialNumber_MATNR, MARA.ERSDA AS CreatedOn_ERSDA, MARA.ERNAM AS NameOfPersonWhoCreatedTheObject_ERNAM, MARA.LAEDA AS DateOfLastChange_LAEDA, MARA.AENAM AS NameOfPersonWhoChangedObject_AENAM, MARA.VPSTA AS MaintenanceStatusOfCompleteMaterial_VPSTA, MARA...
package com.livinglifetechway.quickpermissions_plugin import com.android.build.gradle.AppPlugin import com.android.build.gradle.FeaturePlugin import com.android.build.gradle.InstantAppPlugin import com.android.build.gradle.LibraryPlugin import org.gradle.api.Plugin import org.gradle.api.Project class QuickPermissions...
import {Router, Request, Response, NextFunction} from 'express'; const router = Router() router.use((err: any, req: Request, res: Response, next: NextFunction) => { res.status(err.status || 500); res.json({ status: err.status || 500, message: process.env.NODE_ENV === 'development' ? err.messa...