text
stringlengths
27
775k
addSbtPlugin("com.mojolly.scalate" % "xsbt-scalate-generator" % "0.5.0")
using System; using System.IO; using System.Text; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; using System.ComponentModel.DataAnnotations; namespace CloselinkAPI.Model { /// <summary> /// Schedule Entry for a vessel /// </summary> [DataContract] publ...
package consolecanvas.editor.commands import consolecanvas.canvas.Canvas2D import consolecanvas.canvas.CanvasData /** * The command clears a canvas. */ data class ClearCommand(val canvas: Canvas2D) : UndoableCommand { private lateinit var savedCanvas: CanvasData override fun execute() { savedCanvas...
<?php namespace App\Models\Permission; /** * 后台接口分组模型 * @package app\Models\Permission */ class ApiGroup extends BasePermission { protected $table = 'api_group'; protected $primaryKey = 'api_group_id'; /** * 关联API * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public f...
import { REDIRECT_SERVER_HOST, YOUTUBE_SEARCH_PATH } from '../../src/constants/youtubeApi'; Cypress.Commands.add('interceptAPIRequest', () => { return cy .intercept(`${REDIRECT_SERVER_HOST}/${YOUTUBE_SEARCH_PATH}*`, { fixture: 'videoItems' }) .as(YOUTUBE_SEARCH_PATH); }); Cypress.Commands.add('scrollNextPag...
composer-packages-list: names of packages available from [PHP](https://secure.php.net) `composer.phar` php-class-names: PHP class names from <https://poggit.pmmp.io/fqn.txt> php-developer-advice: "How to be a better PHP Developer" <http://webcheatsheet.com/php/better_php_developer.php>
// Copyright 2019-2020 Axetroy. All rights reserved. MIT license. package connect import ( "github.com/axetroy/go-server/internal/app/customer_service/controller/history" "github.com/axetroy/go-server/internal/app/customer_service/ws" "github.com/axetroy/go-server/internal/library/exception" "time" ) func userTyp...
INSERT INTO quay.user (username, email, verified) VALUES ('test-user-1', 'test-user-1@test.com', 1);
using System; using System.IO; using System.Windows.Forms; namespace FAWS_WMS.Telas { public partial class FrmManualAjuda : Form { private static string TreeNodeName = ""; private static string Path = ""; private static Control.ControlCollection ControlesManual; public static ...
const MakeEmSweat = require('../02.1-NTNR/MakeEmSweat'); class MakeEmSweat2 extends MakeEmSweat {} MakeEmSweat2.code = '24212'; module.exports = MakeEmSweat2;
-------------------------------------------------------------------- -- | -- Copyright : (c) Edward Kmett and Dan Doel 2012 -- License : BSD3 -- Maintainer: Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability: non-portable -- -- This module provides the parser for types --------------------...
import React from 'react' import "./HostGame.css"; const HostGame = () => { return ( <div className="host_game"> <div className="host_game_detail"> <p>WAITING FOR PLAYERS...</p> <p>INVITE CODE:<span> h78a2</span></p> <a className="cancel">CANCEL</...
package sth.app.exception; import pt.tecnico.po.ui.DialogException; /** * */ public class SurveyFinishedException extends ProjectException { /** Serial number for serialization. */ private static final long serialVersionUID = 201810051538L; /** * @param discipline * @param project */ public S...
control 'verify the settings of all Azure Power BI Dataflows' do impact 1.0 title 'Testing the singular resource of azure_power_bi_dataflow.' desc 'Testing the singular resource of azure_power_bi_dataflow.' describe azure_power_bi_dataflow(group_id: 'f089354e-8366-4e18-aea3-4cb4a3a50b48') do it { should e...
package kvalidator.rules import kotlinx.serialization.json.Json import kotlinx.serialization.json.jsonObject import kvalidator.Validator import kvalidator.rules import org.junit.Test import kotlin.test.assertFalse import kotlin.test.assertTrue class InTest { private val data = """ { "zone": "...
/* rule = Http4sUseLiteralsSyntax */ package fix import org.http4s.Uri object LiteralsSyntaxTests { val s = "foo.com" Uri.unsafeFromString("foo.com") Uri.unsafeFromString("""foo.com""") Uri.unsafeFromString("foo" + ".com") Uri.unsafeFromString(s) Uri.unsafeFromString(s"http://$s") Uri.Path.unsafeFrom...
package com.sawyer.kotlinrecyclerviewdemo.activity.loadmore import android.graphics.Color import android.os.Bundle import android.view.Menu import android.view.MenuItem import androidx.recyclerview.widget.GridLayoutManager import androidx.recyclerview.widget.LinearLayoutManager import com.sawyer.kotlinrecycler...
#!/usr/bin/env bash mkdir -p deploy/samza mvn clean package && \ echo '-------- generate exactly-once dist tar --------' ./generate_modified_tar.sh && \ echo '-------- put dist into deploy directory --------' tar -xzf target/samza-exactly-once-1.0-dist.tar.gz -C deploy/samza && \ echo 'SUCCESS'
#!/usr/bin/env bash set -euo pipefail bumpversion(){ declare versionPath="$1" versionType="$2" if [[ -n "$versionPath" ]]; then version="$(cat $versionPath)" echo "Current Version is: '$version'" local major="$(cut -d'.' -f1 <<< $version)" local minor="$(cut -d'.' -f2 <<< $version)" local patch="$(cut -...
package Vitruvius::Skel::Moo; use Vitruvius::Skel; use Import::Into; require Moo; require Moo::Role; require MooX::StrictConstructor; require MooX::TypeTiny; require namespace::autoclean; sub import { my $class = shift; $class->import_into(1); } # Moo roles to apply my @moo_roles = qw< Vitruvius::Role::...
var express = require('express'); var getMicrodata = require('node-microdata-scraper'); // extract microdata from a website var app = express(); // create an instance of express var offline = require('./index.js'); // load express-offline middleware module // add...
import endpoints from . import config as config_lib from . import oauth import webapp2 from google.appengine.api import users __all__ = [ 'WSGIApplication', ] def middleware(app): def respond(environ, start_response): # Handle internal URLs for sign in and sign out. airlock_path = app.config['airlock_p...
#!/bin/bash function terminator::user::is_root() { (( EUID == 0 )) }
""" https://leetcode.com/problems/minimum-falling-path-sum/ https://leetcode.com/submissions/detail/186516905/ """ class Solution: def minFallingPathSum(self, A): """ :type A: List[List[int]] :rtype: int """ colCount = len(A[0]) ans = [0] * colCount for row...
/* * Copyright© 2018 the original author or 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 applica...
import { api } from '../services' const getDashboardData = async () => { return api.axiosAll({ usuariosLogados: api.getData('/api/dashboard/usuarios_logados'), usuariosAtivos: api.getData('/api/dashboard/usuarios_ativos'), aplicacoesAtivas: api.getData('/api/dashboard/aplicacoes_ativas'), loginsPorDi...
$(document).ready(function() { var counter=-1; var userChoice= []; var userArr=[]; var scores=100; function initializeGame() { $("#title").text("Coding Quiz"); counter=-1; userChoice=[]; scores=100; $("#main").show(); $("#back", "#clear").hide(); ...
package parameter; import org.junit.Assert; import org.junit.Test; public class NameParameterWrapperTest { @Test public final void validateAndGet_withNullValue_shouldReturnNull() { try { String result = new NameParameterWrapper(null).validateAndGetParameter(); Assert.assertNu...
#!/usr/bin/env bash set -e workspace_dir="workspace" layers_dir="layers" # TODO set to the Yocto release you want to use, e.g. thud or warrior yocto_release="thud" mkdir -p "${workspace_dir}/${layers_dir}" && cd "${workspace_dir}" # clone default layers: poky, OE etc. git clone -b ${yocto_release} git://git.yoctop...
UPDATE SP_APP SET APP_NAME = 'My Account', IS_SAAS_APP = 1, DESCRIPTION = 'This is the my account application.' WHERE ID = (SELECT APP_ID FROM SP_INBOUND_AUTH WHERE INBOUND_AUTH_KEY = 'USER_PORTAL' AND TENANT_ID = -1234); DECLARE @COMMAND NVARCHAR(200);SELECT TOP 1 @COMMAND= 'ALTER TABLE IDN_OIDC_PROPERTY D...
import React, { Component } from 'react'; import { Button, Tooltip } from 'reactstrap'; export default class ToolTipItem extends Component { state = { tooltipOpen: false }; toggle () { this.setState({ tooltipOpen: !this.state.tooltipOpen }); } render () { const { id, icon, handler, ...
begin: // If exponent is 0, A=1, jump to end load expnt @X load 1 @A jmpz end load 1 @D load base @X mult: // A = X * D zero A add A,X @A dec D jmpnz mult pow: dec expnt jmpz end load base @D copy A @X jmp mult end: halt // expected: A = 189 (0xbd) base: 3 expnt: 5
require 'pay_with_amazon' # [Order Reference Status メモ] # https://payments.amazon.com/documentation/apireference/201752920 # # Draft: confirmを呼ぶ前の状態。 # Open: confirmされた状態。この状態でないとauthorizeできない。 # Suspended: authorizeで問題が発生した状態。 # Canceled: キャンセルされた状態。 # Closed: CancelOrderReferenceが呼ばれた後の状態。authorizeはできない。 # [Authori...
/* library package */ import { FC } from 'react' import Link from 'next/link' export type PageHeadingPropsType = { title: string links: Array<string> withImage?: string lng: any } const Breadcrumb: FC<any> = ({ title, links, withImage, lng }) => { return ( <div> {withImage ? <div clas...
import { Env } from '@Common/enums/env.enum'; import { GenericErrors } from '@Common/enums/generic-errors.enum'; import { ImageTypes } from '@Common/enums/image-types.enum'; import { BadRequestException } from '@nestjs/common'; import { IUserDoc } from '@Users/interfaces/user-document.interface'; import { Request } fro...
/** * 在球场 * zaiqiuchang.com */ import React, {Component} from 'react' import {StyleSheet, View, Alert} from 'react-native' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import {COLOR, SCREEN_WIDTH} from '../../config' import {navToAlbum, navToPlayer} from '../../navigation' import * ...
package com.ten.cim.server.config; import com.ten.cim.server.endpoint.CustomEndpoint; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * 监控端点配置 */ @Configuration public class EndPointConfig...
(ns nebula-widgets.widgets.title.core (:require [nebula-widgets.utils.bem :as bem-utils] [reagent.core :as r])) (def ^:private default-bem "nw-title") (defn- build-bem [bem] (or bem default-bem)) (def ^:private size-prop-set #{:large :normal :small}) (defn- build-class [{:keys [bem cid cns size]}] ...
var http = Npm.require('http'), inherits = Npm.require('util').inherits, socksClient = Npm.require('socks5-client'); Agent = function ( options ) { http.Agent.call(this, options); this.socksHost = options.socksHost || 'localhost'; this.socksPort = options.socksPort || 9050; this.createCon...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema.Types.ObjectId; var AddressBookEmail = new Schema({ abook_id: { type: ObjectId, ref: 'addressbook' }, contact_name: String, contact_email: { type: String, required: true } }); mo...
package com.whayer.stream.service.rtp.h264; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.concurrent.ExecutorService; import com.whayer.stream.service.rtp.AbstractPacketizer; import co...
#!/usr/bin/env bash set -euo pipefail CHROME_CONTAINER="artefacts.tax.service.gov.uk/chrome-with-rinetd:latest" FIREFOX_CONTAINER="artefacts.tax.service.gov.uk/firefox-with-rinetd:latest" function kill_containers() { if docker ps | grep remote-chrome; then echo "Killing remote-chrome container..." docker k...
use super::{Backend, *}; #[derive(Debug)] pub struct CommandPoolMock; impl CommandPool<Backend> for CommandPoolMock { unsafe fn allocate_one(&mut self, level: Level) -> CommandBufferMock { assert_eq!( level, Level::Primary, "Only primary command buffers are supported" ...
DECLARE @name VARCHAR(100) -- database name declare @i int --counter for while loop declare @maxIdid int --for while loop create table #tempAccountID (idid int not null identity(1,1) , Account_ID varchar(100)) insert into #tempAccountID (Account_ID) SELECT a.Account_ID FROM Accounts a where a.Account...
#pragma once #include "OscWidgetMapper.h" #include <Osc/OscContainer.h> #include <QDialog> namespace Ui { class CompressorController; } class CompressorController : public QDialog, public OscContainer { public: explicit CompressorController(QWidget* parent, OscContainer* oscParent, const std::string& name); ~Compr...
------------------------------------------------------------------------ -- | -- Module : Data.Parameterized.All -- Copyright : (c) Galois, Inc 2019 -- Maintainer : Langston Barrett <langston@galois.com> -- Description : Universal quantification, in a datatype -- -- This module provides 'All...
# get the absolute path to this directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" set -e help_message() { echo "usage: $0 [--python]" echo "this script builds smt-switch and the C++ examples" echo "it also builds and installs the python bindings if run with --python" ex...
package gogomux // // Go Go Mux - Go Fast Mux / Router for HTTP requests // // (C) Philip Schlump, 2013-2014. // Version: 0.4.3 // BuildNo: 804 // // /Users/corwin/Projects/go-lib/gogomux // // ------------------------------------------------------------------------------------------------- /* USED */ // Test: parseR...
use crate::{ commit, config::Config, destination::Destination, error::{ErrorKind, GsyncError}, Opt, }; use indicatif::ProgressBar; use log::error; use std::{ collections::HashSet, env, ffi::OsStr, fs, io, io::{Read, Write}, os::unix::{ffi::OsStrExt, fs::PermissionsExt}, p...
import React from 'react' import PropTypes from 'prop-types' import IntervalGrid from '../common/IntervalGrid' import { useWeekView } from './WeekModeContext' /** * Presents the events in a week based on useMonthViewMode. */ export const WeekView = ({ gridResolution }) => { const { interval } = useWeekView() re...
![](https://img.shields.io/badge/Microverse-blueviolet) # Advanced Building Blocks - Enumerable Methods > A Microverse project about enumerables. Additional description about the project and its features. ### Screenshot ![Screenshot](Screenshot.png) ## Built With - RUBY ## Authors 👤 **Ryel Ban...
import { AfterViewInit, Component, OnDestroy } from '@angular/core'; import { NbThemeService } from '@nebular/theme'; import {ChartService} from './services/echarts.service'; import {Chart} from './models/chart'; import {Subject} from '../../tables/contents/models/subject'; import {Book} from '../../tables/contents/mod...
import React from 'react'; import expect from 'expect'; import { shallow } from 'enzyme'; import PureCell from '../src/PureCell'; describe('<PureCell />', () => { it('renders given data in a <span> element if data is string or number', () => { const wrapper = shallow(<PureCell data="Data" />); expect(wrappe...
// Copyright (c) 2019-2021 Robert Rypuła - https://github.com/robertrypula import { FrameConfig, FrameInterface, FrameStubHooks } from '@data-link-layer/model'; export const frameStubHooks: FrameStubHooks = { isValid: null }; export class FrameStub implements FrameInterface { protected rawBytes: number[] = []; ...
#Prepare data: #Create raw lmdb of imagenet following https://github.com/intel/caffe/wiki/How-to-create-ImageNet-LMDB, please set "RESIZE=false" in create_imagenet.sh to create raw lmdb #ln -s ilsvrc12_val_lmdb "examples/imagenet/ilsvrc12_val_lmdb" #expected result: # loss3/top-1 = 0.75522 # loss3/top-5 = 0.926621 p...
/** * * @module component/partials * @author Greg Babula [greg.babula@mlb.com] * @desc handlebars partials reference * */ import gameMedia from '../../../../src/template/partials/game-media.html'; /** * * @name partials * @desc handlebars partials to be registered * @note paths must be hardcoded because Bro...
// Copyright © 2016 Zlatko Čalušić // // Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. package winsysinfo import "github.com/StackExchange/wmi" // Product information. type Product struct { Name string `json:"name,omitempty"` Vendor string `json:"vendor,omit...
var mongoose = require('mongoose'); var configSchema = new mongoose.Schema({ _id: String, allowCoachless: {type: Boolean, default: false}, enableFreeForAll: {type: Boolean, default: false}, reportLimit: {type: Number, default: 3} }); var Config = mongoose.model('Config', configSchema); module.exports = Confi...
package telegraf import ( "encoding/json" "github.com/influxdata/influxdb/v2" "github.com/influxdata/influxdb/v2/kv" ) var ( // ByOrganizationIndexMapping is the mapping definition for fetching // telegrafs by organization ID. ByOrganizationIndexMapping = kv.NewIndexMapping( []byte("telegrafv1"), []byte("t...
module MCollective module Data class Process_data < Base # Activate if the sys-proctable gem has been installed activate_when do begin require "sys/proctable" true rescue LoadError Log.warn("Cannot load Process_data plugin. Process_data plugin requires thi...
import sys def react(polymer): result = '' for c in polymer: if len(result) == 0 or result[-1].swapcase() != c: result += c else: result = result[:-1] return len(result) def solve(polymer): units = set(polymer.lower()) best_result = 999999 for unit ...
The little red fellow kind of creeps you out but you ask him to accompany you to the tower because these wishes might just come in handy ... [Wish that you and him teleport to the tower](./teleport/teleport.md)
<h1 align="center">👻 SnapChat Clone</h1> <div align="center"> <img src="./public/readme/tech-logos/react.svg" width="55" alt="React" /> <img src="./public/readme/tech-logos/redux.svg" width="55" alt="Redux" /> <img src="./public/readme/tech-logos/typescript.svg" width="55" alt="TypeScript" /> <i...
# frozen_string_literal: true require_relative './lib/tree' # The Odin Project simple driver script. my_tree = Tree.new(Array.new(15) { rand(1..100) }) puts "The first tree is balanced: #{my_tree.balanced?}" puts my_tree puts "Level Order: #{my_tree.level_order}" puts "Preorder: #{my_tree.preorder}" puts "Inorde...
# confidence interval for indpendent sample n1= 10 n2= 9 y1bar = 8.27 y2bar=6.78 s1=2.956 s2=2.565 # common standard deviation sp=sqrt(((n1-1)*s1*s1+(n2-1)*s2*s2)/(n1+n2-2)) # the t-percentile based on df for 95% confidence interval tstar=qt( .975, df=18) margin=tstar*sp*sqrt((1/n1)+(1/n2)) left_i=(y1...
# ShaderGraphExample <a href = "http://r-ngtm.hatenablog.com/archive/category/ShaderGraph">シェーダーグラフメモの記事</a>で紹介しているシェーダーグラフの配布 <br> # Unityバージョン Unity2018.3.0f1
<?php declare(strict_types=1); namespace Whsv26\Functional\Collection; /** * ```php * class Foo implements HashContract * { * public function __construct(public int $a, public bool $b = true, public bool $c = true) * { * } * * public function equals(mixed $that): bool * { * retu...
package cats package syntax trait ApplicativeSyntax { implicit def catsSyntaxApplicativeId[A](a: A): ApplicativeIdOps[A] = new ApplicativeIdOps[A](a) } final class ApplicativeIdOps[A](val a: A) extends AnyVal { def pure[F[_]](implicit F: Applicative[F]): F[A] = F.pure(a) }
from setuptools import setup from distutils.extension import Extension import numpy ext_modules = [ Extension("emzed_optimizations.sample", ["emzed_optimizations/sample.c"], ) ] version = "0.6.0" setup(name="emzed_optimizations", version=version, author="Uwe Schmitt", ...
// Decompiled with JetBrains decompiler // Type: SynapseGaming.LightingSystem.Effects.EffectBatchHelper // Assembly: SynapseGaming-SunBurn-Pro, Version=1.3.2.8, Culture=neutral, PublicKeyToken=c23c60523565dbfd // MVID: A5F03349-72AC-4BAA-AEEE-9AB9B77E0A39 // Assembly location: C:\Projects\BlackBox\StarDrive\Synaps...
#!/bin/bash cd $(git rev-parse --show-toplevel) wget https://static.usafacts.org/public/data/covid-19/covid_confirmed_usafacts.csv -O data/us/covid/confirmed_cases.csv wget https://static.usafacts.org/public/data/covid-19/covid_deaths_usafacts.csv -O data/us/covid/deaths.csv wget http://covidtracking.com/api/states/dai...
#/bin/bash rostopic pub /stageGUIRequest std_msgs/String "data: 'screenshot'" --once rosparam set /simulation_abort true rosparam get /simulation_abort
import 'package:meta/meta.dart'; /// Carries information about the browser or user agent for web-related errors. /// /// This can either be the browser this event ocurred in, or the user /// agent of a web request that triggered the event. @immutable class Browser { static const type = 'browser'; /// Creates an i...
package generic; public class ExecutionCompleteEvent extends Event { // Required variables to be passed to MA stage once execution completes Instruction inst; int aluResult, excess, op; boolean isBranchTaken; int branchPC; public ExecutionCompleteEvent(long eventTime, Element requestingElement, Element proc...
DROP SCHEMA PUBLIC CASCADE /*http://hsqldb.org/doc/guide/compatibility-chapt.html#coc_compatibility_mysql*/ CREATE TABLE clients ( client_id INTEGER IDENTITY PRIMARY KEY, first_name varchar(50) NULL, middle_name varchar(50) NULL, last_name varchar(50) NULL, name_data_quality INTEGER NULL, ssn I...
# MOE的API说明 ## 简介 **MOE**是一个用于8/16/32位MCU的事件驱动型调度系统,已实现如下功能: - 基本调度功能; - 多任务; - 事件驱动; - 软件定时器; - 消息机制; - 通用队列操作; - 其它... 本文档包含MOE的所有API详细描述,以帮助用户编写应用程序。 ## API描述 MOE的API按如下模块进行分类 Module | Description -------------------- | ----------------------------- MOE Core | 任务调度及事件处理模块 MOE mess...
package com.cleveroad.colorpicker interface OnSelectedColorListener { fun onSelectedColor(color: Int) }
<?php namespace App\Http\Controllers; use Auth; use App\User; use Illuminate\Http\Request; use App\Notifications\NewUserFollowNotification; class FollowController extends Controller { // public function followUser($id){ $userToFollow = User::find($id); $follow = Auth::user()->followThisUser($...
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package software.aws.toolkits.gradle.intellij import org.gradle.api.Project import org.gradle.api.provider.Provider import org.gradle.api.provider.ProviderFactory enum class IdeFlavor { IC, IU, RD } obj...
require 'action_logic/action_context' require 'action_logic/action_coordinator' require 'action_logic/action_core' require 'action_logic/action_task' require 'action_logic/action_use_case' require 'action_logic/action_validation' require 'action_logic/action_benchmark' require 'action_logic/action_benchmark/default_for...
{-# LANGUAGE CPP #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ...
using Base.Test using SapphireORM # Testing constructor global conn = Sapphire(dsn=dsnTest,username=root,password="")
require "mysql_dump_slow/version" require "mysql_dump_slow/counter" require "mysql_dump_slow/sql" require "mysql_dump_slow/slow_log" require "mysql_dump_slow/summary" module MysqlDumpSlow def self.summarize(slow_logs) Summary.new(slow_logs) end end
#!/bin/bash for file in *.dot; do file_png=${file%.dot}.png dot ${file} -Tpng > ${file_png} done
Facter.add('cloned_interfaces') do confine kernel: [:openbsd, :freebsd] setcode do Facter::Util::Resolution.exec('ifconfig -C').split end end
package di import ( "os" "github.com/pkg/errors" ) type Writer struct { WorkDir string Overwrite bool Heading []byte } func NewWriter(workDir string) *Writer { return &Writer{WorkDir: workDir} } func (w *Writer) WriteFile(file *File) error { dir := w.WorkDir + "/" + packageDirs[file.Package] filename :...
package org.apache.kerberos.kerb.crypto; import java.util.Arrays; /** * Based on MIT krb5 weak_key.c */ public class Des { /* * The following are the weak DES keys: */ static byte[][] WEAK_KEYS = { /* weak keys */ {(byte) 0x01,(byte) 0x01,(byte) 0x01,(byte) 0x01,(byte) 0x01,(byte)...
{-# LANGUAGE TemplateHaskell, OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module HsDev.Tools.AutoFix ( corrections, CorrectorMatch, correctors, match, findCorrector, module Data.Text.Region, module HsDev.Tools.Refact, module HsDev.Tools.Types ) where import Control.Applicative import Control...
#!/bin/sh # Remove existing libraries rm -rf $HOME/Arduino/libraries/ros_lib/django_interface rm -rf ../libraries/django_interface # rm -rf ../libraries/ros_lib # Recreate rosrun rosserial_arduino make_libraries.py ../libraries cp -R ../libraries/ros_lib/django_interface $HOME/Arduino/libraries/ros_lib cp -R ../librar...
Article 222-51 ---- La fermeture temporaire prévue par l'article 222-50 emporte suspension de la licence de débit de boissons ou de restaurant pour la même durée. Le délai de péremption de celle-ci est suspendu pendant la durée de la fermeture. La fermeture définitive prévue par l'article 222-50 emporte retrait défini...
use nom::*; const REQUEST_STRUCTURE_SIZE: u16 = 4; #[rustfmt::skip] #[allow(clippy::cyclomatic_complexity)] pub fn parse_request(data: &[u8]) -> IResult<&[u8], ()> { do_parse!(data, verify!(le_u16, |x| x == REQUEST_STRUCTURE_SIZE) >> take!(2) >> (()) ) }
import React from 'react'; import SEO from '../../components/SEO'; import Layout from '../../layouts/index'; import Call from '../../components/Call'; const Contact = props => ( <Layout bodyClass="page-contact"> <SEO title="Contact" /> <div className="intro intro-small"> <div className="container"> ...
import 'package:json_annotation/json_annotation.dart'; part 'assetProof.g.dart'; @JsonSerializable(includeIfNull: false) class AssetProof { final String symbol; final String address; final String signature; const AssetProof({this.symbol, this.address, this.signature}); factory AssetProof.fromJson(Map<Str...
using System; using System.Collections.Generic; using System.Text; namespace dm.DYT.Response { public class EpInfo { public string Address { get; set; } public EpInfoETH ETH { get; set; } public int CountTxs { get; set; } public List<EpInfoToken> Tokens { get; set; } } ...
using System.Runtime.Serialization; namespace WiseOldManConnector.Models.WiseOldMan.Enums; public enum MetricType { [EnumMember(Value = "overall")] Overall = 1, [EnumMember(Value = "attack")] Attack, [EnumMember(Value = "defence")] Defence, [EnumMember(Value = "strength")] Strength...
using System; using UnityEngine; namespace Pathfinding { [Serializable] public abstract class MonoModifier : MonoBehaviour, IPathModifier { [NonSerialized] public Seeker seeker; public abstract int Order { get; } public void OnEnable() { } public void OnDisable() { } public void Awake...
# @!group /unauthorized # @method get_mgmt_url # @overload get '/v0/system/bootstrap/mgmt_url' # get the system mgmt url # # @return [String] get '/v0/unauthenticated/bootstrap/mgmt/url' do begin 'https://' + engines_api.system_hostname.to_s + '.' + engines_api.default_domain.to_s + ':8484' rescue StandardError...
test::func_boolval() { local variable variable=12345 EXPECT_TRUE func::boolval variable EXPECT_EQ 1 "${variable}" variable=0 EXPECT_TRUE func::boolval variable EXPECT_EQ 0 "${variable}" variable=true EXPECT_TRUE func::boolval variable EXPECT_EQ 1 "${variable}" variable=false EXPECT_TRUE func...
/* * * CollectionView reducer * */ import produce from 'immer'; import { LOAD_COLLECTION_ACTION, UPDATE_COLLECTION_ACTION } from './constants'; export const initialState = { title :"", collection_id : "", description : "", owner_username : "", tables : [], collectionsList : [], visibility : "public",...
### 1.useState 函数接收一个初始化参数 initialState,其返回值用数组解构出两个参数:state 和 setState。 ### 2.在初始化渲染期间,返回的状态 (state) 与传入的第一个参数 (initialState) 值相同。 ### 3.setState 函数用于更新 state。它接收一个新的 state 值并将组件的一次重新渲染加入队列。 ### 4.在后续的重新渲染中,useState 返回的第一个值将始终是更新后最新的 state。 ​### 5.注意: React 会确保 setState 函数的标识是稳定的,并且不会在组件重新渲染时发生变化。这就是为什么可以安全地从 useE...