text
stringlengths
27
775k
list_file="/Users/jedigame/github/shellScriptsUtils/loglist.txt" folder_path="/Users/jedigame/github/dockerBasicPlatform" #使用函数调用 function echolines() { line=$1 target_file=$2 target_file1=$3 echo $line >>$target_file echo "\n" >>$target_file tail $line >>$target_file } #判断变量是否赋值 if [ -n "$list_file...
import { test } from "ava"; var validators = require("../distrib/format-validator.min.js"); test("isInteger-valids", t => { var inputs = [ { i: "123" }, { i: "-123" }, { i: "+123" }, { i: "45678901234567890123456" }, { i: "0", opt: { min: -5, max: 10 } }, { i: "5789" }, { i: "0005789", op...
'use strict'; /** * Rectangle constructor * @param {Number} x the x position of this Rectangle * @param {Number} y the y position of this Rectangle * @param {Number} w the width of this Rectangle * @param {Number} h the height of this Rectangle */ var Rectangle = function(x, y, w, h) { this.x = x || 0; this.y ...
module MyFaker class Name < Base flexible :name class << self def name parse('name.name') end def first_name fetch('name.first_name') end def last_name fetch('name.last_name') end end end end
+++ date = "2016-07-12T16:10:22+02:00" description = "" external_link = "" image = "" project_id = "" short_description = "" title = "Deep Learning" [[participants]] name = "Member 1" is_member = true id = "member1" +++ # Et sensus uncos Troiaeque mori candidaque ostentis ## Litusque praemia *Lorem markd...
#!/bin/sh echo "Build server.go" GOOS=linux CGO_ENABLED=0 go build -a -ldflags="-s -w" ../mg.ru/hello/server/server.go echo "Build server container using buildah from dockerfile" buildah bud
package com.tsbonev.cqrs.core.snapshot import com.tsbonev.cqrs.core.AggregateRoot interface SnapshotMapper<T : AggregateRoot> { /** * Serializes the current entity to a string snapshot */ fun toSnapshot(data: T, messageFormat: MessageFormat): Snapshot /** * Create an aggregate from given snapshot */ fu...
define({ "_widgetLabel": "Controlador da Barra Lateral", "more": "mais", "otherPanels": "Outros painéis" });
package com.saharw.mymusicplayer.entities.data.base /** * Created by saharw on 09/05/2018. */ data class DataQuery( val projection: Array<String>?, val selection : String?, val selectionArgs: Array<String>?, val sortOrder : String?)
# Traverse All Demos This console will traverse and open every demo projects in 'demo' folder so that I can quickly make sure that every demo is still OK after some modification of CSharpGL code. Of course it won't open itself.
import 'package:cloud_firestore/cloud_firestore.dart'; class User { final String name; final String uid; final String image; User({this.uid, this.name, this.image}); } class UserData { final String uid; final String name; final String email; final String gender; final String year; final bool isTha...
import 'dart:async'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; import 'package:flutter_styled_toast/flutter_styled_toast.dart'; import 'package:invoiceninja_flutter/constants.dart'; import 'package:invoiceninja_flutter/redux/app/...
package org.cckj.serializable; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Date; public class JavaSerializable { public static void main(String[] args) throws IOException,...
require 'spec_helper' describe 'murano::cfapi' do let(:params) do { :tenant => 'admin', } end shared_examples_for 'murano-cfapi' do it { is_expected.to contain_class('murano::cfapi') } end shared_examples_for 'with default parameters' do it { is_expected.to contain_class('murano::deps') } ...
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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 app...
; ModuleID = "gencode-013.bc" target triple = "x86_64-unknown-linux-gnu" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" declare void @"escrevaInteiro"(i32 %".1") declare void @"escrevaFlutuante"(float %".1") declare i32 @"leiaInteiro"() declare float @"leiaFlutuante"...
import sys import pytest from unittest.mock import Mock, call, sentinel from nextline.trace import Trace from nextline.utils import Registry from nextline.pdb.proxy import PdbProxy ##__________________________________________________________________|| @pytest.fixture() def MockPdbProxy(monkeypatch): mock_instanc...
No rules for now. All pull requests will be reviewed by the team and approved within a two week period.
package testrail; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok...
-- @testpoint:opengauss关键字exclusive(非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists exclusive; create sequence exclusive start 100 cache 50; drop sequence exclusive; --关键字带双引号-成功 drop sequence if exists "exclusive"; create sequence "exclusive" start 100 cache 50; drop sequence "exclusive"; --关键字带单引号-合理报错 drop sequ...
module LicenseFinder class BundlerGroup < Sequel::Model def self.named(name) find_or_create(name: name) end end end
import 'package:flutter/material.dart'; import 'package:flutter_browser/material_transparent_page_route.dart'; class CustomPopupDialogPageRoute<T> extends MaterialTransparentPageRoute<T> { final Color overlayColor; final Duration? customTransitionDuration; bool isPopped = false; CustomPopupDialogPageRoute({ ...
/******************************************************************************* * @license * Copyright (c) 2010, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License v1.0 * (http://www.eclipse.org/l...
package edu.kit.outwait.waitingQueue.timeSlotModel /** * Enumeration of types that a TimeSlot can have. * Types can be equivalent to implemented subclasses * to differentiate between them e.g. in switch-cases * */ enum class Type { PAUSE, FIXED_SLOT, SPONTANEOUS_SLOT, HEADER }
package main import ( "strings" pluginapi "github.com/mattermost/mattermost-plugin-api" "github.com/pkg/errors" ) const ( keysPerPage = 1000 ) func (p *Plugin) SendDailyTelemetry() { config := p.getConfiguration() connectedUserCount, err := p.getConnectedUserCount() if err != nil { p.API.LogWarn("Failed t...
require 'spec_helper' describe Bearfacts::MyRegBlocks do let! (:oski_blocks_proxy) { Bearfacts::Regblocks.new({:user_id => "61889", :fake => true}) } context "should return some regblocks for oski" do before { Bearfacts::Regblocks.stub(:new).and_return(oski_blocks_proxy) } subject { Bearfacts::MyRegBlock...
package cs220 case class MessageThread(name: String, t: Int) extends Thread { val xs = List( "Mares eat oats", "Does eat oats", "Little lambs eat ivy", "A kid will eat ivy too" ) override def run = { for (x <- xs) { Thread.sleep(t) println(s"$name: $x") } println(s"$name:...
--- layout: post title: "ROS Expire Signatures" image: ../../img/ros.png author: [Matias Borghi] date: 2021-11-17 excerpt: Just a memo for revalidating expiring signatures in ROS. tags: ['ROS'] --- # ROS expired signatures Solving the issue of ROS expiring signatures in Ubuntu is as easy as typing this command in the...
;;;-*- Mode: Lisp; Package: CCL -*- ;;; ;;; Copyright 1994-2009 Clozure Associates ;;; ;;; 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...
import React from 'react'; import styled from 'styled-components'; import { H1 } from './Typography'; const Root = styled(H1)` margin-top: 0; margin-bottom: 1.5rem; `; const SectionHeading: React.FC = ({ children }) => <Root>{children}</Root>; export default SectionHeading;
# Nemo: an acceleration framework for Maya Rigging 💡 请务必设置环境变量NEMO_ROOT > 对于Linux系统,需要在打开Maya前设置`LD_LIBRARY_PATH`到`<NEMO_ROOT>/lib/<os>-<MayaVersion>/`,注意在Maya.env中设置无效会被覆盖 - <NEMO_ROOT>/extern: 外部依赖 - <NEMO_ROOT>/modules: 解析Maya文件所需的配置文件 - <NEMO_ROOT>/nemo: 主体代码 - <NEMO_ROOT>/lib: 依赖的Nemo库 ## Table of Contents 1...
package cli import ( "fmt" "testing" "github.com/aws/amazon-genomics-cli/internal/pkg/cli/context" "github.com/aws/amazon-genomics-cli/internal/pkg/cli/spec" "github.com/aws/amazon-genomics-cli/internal/pkg/cli/types" contextmocks "github.com/aws/amazon-genomics-cli/internal/pkg/mocks/context" "github.com/gola...
(foo++)?.(); async () => { (await foo)?.(); } (+foo)?.(); +(+foo); class Foo extends (+Bar) {} class Foo extends (Bar ?? Baz) {} const foo = class extends (Bar ?? Baz) {} ;(1) ;(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); (b + c)``; const foo = { ...(a || b...
/*************************************************************** * @date: 2007-12-04 * @author: BrucePeng * @brief: Define function that delete all files in a folder */ #include "DirectoryDelete.h" #include <tchar.h> #include <stdio.h> BOOL BrucePengDeleteDirectory( IN TCHAR* pszDirName, IN TCH...
<?php namespace Capusta\SDK\Model\Request; use Capusta\SDK\Model\Response\Item\AmountResponseItem; use Capusta\SDK\Model\Traits\RecursiveRestoreTrait; class NotificationRequest extends AbstractRequest { use RecursiveRestoreTrait; /** * @var string */ private $transactionId; /** * @...
import { buildAndHostSimpleApp } from "../lib/build/flutter"; buildAndHostSimpleApp({ dart: "main(){}", id: "test-example" }).then((d) => { console.log(d) })
<?php class OmiseSchedule extends OmiseApiResource { const ENDPOINT = 'schedules'; /** * Retrieves a schedule. * * @param string $id * @param string $publickey * @param string $secretkey * * @return OmiseSchedule */ public static function retrieve($id = '', $publ...
# webdriverio-typescript-example ## Topic - webdriverio - typescript - jasmine - selenium-standalone - multi config ## Run test npm i npm run test:chrome npm run test:firefox npm run test:ie
declare module 'chirashi-slider' { declare module.exports: () => TSlider }
* [flaticon.com](http://www.flaticon.com/) - Free vector icons * [iconfinder.com](https://www.iconfinder.com) ([/free_icons](https://www.iconfinder.com/free_icons)) * [www.freepik.com](http://www.freepik.com/)
// Copyright 2019 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 ...
/* inputs and outputs: n where 0 <= n <= 1 pair: [[input 1, input 2, input 3...], output] pairs: [pair 1, pair 2, pair 3...] data map vector: [pairs 1, pairs 2, pairs 3...] dual data map vector: [value data map vector, size data map vector] */ var maxChar = Math.pow(2, 32); function stringToVector(string) { ...
struct point{ int x; int y; }; struct rect{ struct point pt1; struct point pt2; } line1, line2; void main() { struct point p1, p2; p1.x = 1; p1.y = 2; line1.pt1 = line2.pt2 = p1; assert(line1.pt1.x == 1, "line1.pt1.x must be 1"); assert(line1.pt1.y == 2, "line1.pt1.y must be 2");...
# Cheat/吹牛 This is a example card game for Social Multiplayer Games (CSCI-GA.3033-004) ## Overview This game is a Social Multiplayer Gaming project by using AngularJS. <br/> The description and rules of this game can be found at [wikipedia] (http://en.wikipedia.org/wiki/Cheat_%28game%29). ![ScreenShot](/imgs/cheat-l...
import { shuffleCharacterLists } from './shuffleCharacterLists'; describe('shuffleCharacterLists', () => { const seed = 123; it('should shuffle the character lists', () => { const characterLists = [ ['A', 'B'], ['C', 'D'], ]; const shuffledCharacterList = shuffleCharacterLists(characterLis...
-- SQL file to remote catalog attributes from table foo SET allow_system_table_mods='dml'; DELETE FROM pg_attribute where attrelid='foo'::regclass::oid;
""" 1. created by : Jae yong Park 2. created date : 10/12/2016 ======= ======= ======= player com result ======= ======= ======= rock scissor player_win rock paper com_win scissor paper player_win scissor rock com_win paper rock player_win paper scissor com_win ======= ======= ======= """ ...
package MusicBrainz::Server::Entity::Artwork::ReleaseGroup; use Moose; use DBDefs; use MusicBrainz::Server::Entity::CoverArtType; extends 'MusicBrainz::Server::Entity::Artwork'; has release_group_id => ( is => 'rw', isa => 'Int', ); has release_group => ( is => 'rw', isa => 'ReleaseGroup', ); sub _...
package fpinscala.state import fpinscala.state.RNG._ object StateTests { import State._ def printHeader(exercise: String): Unit = { println(s"########## Exercise: $exercise ##########") } def main(args: Array[String]): Unit = { printHeader("6.4") val rng = Simple(1000L) println(s"ints(10)(rng...
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE ViewPatterns #-} module Database.Redis.Cluster ( Connection(..) , NodeRole(..) , NodeConnection(..) , Node(..) , ShardMap(..) , HashSlot , Shard(..) , connect ...
import React from 'react' import { ProgressCircle } from 'react-desktop/macOs'; import { ProgressCircle as WinProgressCircle} from 'react-desktop/windows'; export default function Loading({win}) { return ( <> {win ? <ProgressCircle color='black' size={100} /> : <WinProgressCircle color='black' ...
import request from '@/utils/request' const URL_PREFIX = '/asset' export function getAllSites() { return request({ url: URL_PREFIX + '/sites', method: 'get' }) } export function uploadFile(form) { return request({ url: URL_PREFIX+'/media', method:'post', form }) }
/** * udpClient.h * * this is a udp server * * @author zhyjc6 * @date 2020-03-11 */ #include <iostream> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <netinet/in.h> #include <arpa/inet.h> #include <functional> #include <system_error> #ifnde...
import 'package:json_annotation/json_annotation.dart'; part 'id.g.dart'; @JsonSerializable() class Id { String name; String value; Id({ required this.name, required this.value, }); factory Id.fromJson(Map<String, dynamic> json) => _$IdFromJson(json); Map<String, dynamic> toJson() => _$IdToJson(t...
/* Copyright Fujitsu Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package fabricservice import ( "github.com/stretchr/testify/require" "testing" ) func TestFabClient_All(t *testing.T) { fabClient := NewFabClient("Org1", "Admin", "User1", "mychannel") err := fabClient.Initialize() require.N...
import glob import os import numpy as np from PIL import Image def make_inputs_from_imgs(size, in_folder='./', out_folder='./data/', extension='png', bw_only=True): IN_FOLDER_IMGS = os.path.join(in_folder, 'Images/') IN_FOLDER_MASKS = os.path.join(in_folder, 'Annotations/') OUT_FOLDER_PICS = os.path....
require('dotenv').config(); const config = { blockchainNodeUrl: process.env.BLOCKCHAIN_NODE_URL || "http://localhost:8545", reyContractAddress: process.env.REY_CONTRACT_ADDRESS || "0x76C19376b275A5d77858c6F6d5322311eEb92cf5", registryContractAddress: process.env.REGISTRY_CONTRACT_ADDRESS || "0x556ED3bEaF6b3dDCb1...
#!/bin/sh # Change for your UDC controller phy_module="phy_cpcap_usb" udc_glue_module="omap2430" udc_module=musb_hdrc # musb-hdrc.1.auto mass_storage_backend=$2 #/dev/mmcblk0p3 modprobe libcomposite > /dev/null 2>&1 udc_load_modules() { modprobe $udc_module modprobe $phy_module modprobe $udc_glue_module } udc_co...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; import { catchError, map, tap } from 'rxjs/operators'; import { Status } from './models'; import { Guild } from './models/g...
#include "cuozblas_common.h" int32_t cucheckTrans (const char tran) { if (tran == 'N' || tran == 'n') return 0; else return 1; } cublasOperation_t ToCublasOp (const char tran) { if (tran == 'N' || tran == 'n') return CUBLAS_OP_N; if (tran == 'T' || tran == 't') return CUBLAS_OP_T; if (tran == 'C' || tran ==...
extern crate proc_macro; use proc_macro::TokenStream; use proc_macro2::Span; use proc_macro2::TokenStream as TS; use quote::{quote, ToTokens}; use syn::{ parse_macro_input, spanned::Spanned, visit_mut::{visit_expr_match_mut, visit_item_fn_mut, VisitMut}, Error, ExprMatch, Ident, Item, ItemFn, Pat, Pat...
# CollectionSubset Constraint `CollectionSubsetConstraint` tests that one `IEnumerable` is a subset of another. If the actual value passed does not implement `IEnumerable`, an exception is thrown. ## Constructor ```csharp CollectionSubsetConstraint(IEnumerable) ``` ## Syntax ```csharp Is.SubsetOf(IEnumerable) ``` ...
# frozen_string_literal: true require 'update_repo/version' require 'update_repo/helpers' require 'open3' module UpdateRepo # Class : GitControl. # This class will update one git repo, and send the output to the logger. # It will also return status of the operation in #status. class GitControl include Hel...
#!/usr/bin/env node "use strict"; // Required packages const osmosis = require("osmosis"); const fs = require("fs"); // Define URL const url = "http://entertainment.ie/tv"; // Empty channels object const channels = {}; // Fetch Entertainment.ie channel listings osmosis .get(url) .find("#channels > .slider > ul ...
import Data.List (sort) r = scanl (+) 1 s s = 2:4:tail (compliment (tail r)) where compliment = concat.interval interval x = zipWith (\x y -> [x+1..y-1]) x (tail x) main = do putStr "R: "; print (take 10 r) putStr "S: "; print (take 10 s) putStr "test 1000: "; print ([1..1000] == sort ((take 40 r) ++ (take 960 ...
<?php namespace App\Chain; /** * Description of VendedorProcessoHandler * * @author evandro */ class VendedorProcessoHandler extends \App\Chain\ProcessoChain{ public function __construct( ) { $this->roleToEvaluate = \App\RoleInterface::VENDEDOR; } public function p...
import validate from '../lib/validate' test('allows true schema', () => { let result = validate(true, true) expect(result).toHaveProperty('pass', true) }) test('allows false schema', () => { let result = validate(false, true) expect(result).toHaveProperty('pass', true) }) test('allows empty object schema', (...
package reasoner import core.GroundPinnedAtAtom import core.lars.TimePoint import core._ /** * Created by fm on 05/06/2017. */ case class ReasonerWithFilter(reasoner: Reasoner, resultFilter: ResultFilter) extends Reasoner { override def append(time: TimePoint)(atoms: Atom*): Unit = reasoner.append(time)(atom...
package com.quant.TechAnalysis /** * Created by Frank Cash on 5/6/17. */ object Average { /** * Reference on Resistance <http://www.investopedia.com/articles/technical/061801.asp> * @param data List of List Double. Takes return from split(xs, n). * @return Returns the avg resistance */ def av...
# roulette Simulates different strategies of the classical Roulette casino game The game is designed to be easily extended.
require_relative './word/entry' require_relative './word/form' class Parser class Word def initialize(doc) @entries = doc.xpath('./entry').map { |i| Entry.new(i) } @forms = doc.xpath('./form').map { |i| Form.new(i) } end def bamboo_xml @bamboo_xml ||= entries.map(&:bamboo_xml).join("\n...
using System; using System.Threading.Tasks; namespace MasUnity.Decision { /// <summary> /// Life cycle /// </summary> public abstract partial class Agent { public async Task Invoke() { if (State.Value == AgentStates.Initiated) { await BeforeIn...
package com.gl.habitalarm.ui.home import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import androidx.recyclerview.widget.RecyclerView import com....
package ben; /** * Calculator. */ public class Calculator { /** * Multiplies two integers. * @param a the first integer * @param b the second integer * @return the resultant product */ public int multiply(int a, int b) { return a * b; } }
1 149 467 549 2 150 616 625 3 4 5 48 457 6 277 357 430 625 7 308 8 171 556 596 9 639 10 47 371 11 496 12 598 604 13 29 137 14 15 17 16 6 17 73 197 451 18 222 646 19 20 123 249 21 9 22 252 23 196 237 461 580 24 430 25 192 603 626 26 546 27 3 161 519 28 210 255 305 458 498 552 29 148 303 30 1 31 149 184 271 32 92 33 478 ...
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Nicolaslopezj\Searchable\SearchableTrait; class User extends Authenticatable { use Notifiable; use SearchableTrait; protected $searchable = [ /** * Columns and their priority in s...
<?php namespace IikoPhp\SDK\Cloud\General\Dictionaries; use IikoPhp\SDK\Cloud\Concerns\MappedObject; /** * Class OrderType * @package IikoPhp\SDK\Cloud * @property string id * @property string name * @property string orderServiceType * @property bool isDeleted * @property null|int externalRevision */ class O...
<p align="center"><img alt="PICTURE logo" src="https://raw.githubusercontent.com/ExploiTR/DeAutherDroid/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" width="200"></p> <h1 align="center"> DeAutherDroid </h1> <p align="center"> <b>Additional android app for <a href="https://github.com/spacehuhn/esp8266_deauther...
// SKIP_TXT /* * KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE) * * SPEC VERSION: 0.1-100 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 4 * DESCRIPTION: 'When' with bound value and enumaration of type test conditions (with invert type checking operator). * HELPERS: sealedClasses */ // ...
<?cs include:"dates.cs" ?> <?cs include:"msg_render.cs" ?> <?cs include:"header.cs" ?> <?cs each:msg = CGI.Messages ?> <?cs call:render_message(msg) ?> <HR> <?cs /each ?> </BODY> </HTML>
package com.campudus.tableaux.database.model import com.campudus.tableaux.database._ import com.campudus.tableaux.database.domain._ import com.campudus.tableaux.database.model.ServiceModel.ServiceId import com.campudus.tableaux.database.model.TableauxModel.Ordering import com.campudus.tableaux.helper.JsonUtils import ...
require 'spec_helper' describe VagrantWindows::Communication::WinRMFinder, :unit => true do before(:each) do @machine = stub() @winrmfinder = VagrantWindows::Communication::WinRMFinder.new(@machine) end describe 'winrm_host_address' do it 'should raise WinRMNotReady exception when ssh_info is nil' ...
require 'name' describe 'Creating a name' do it 'allows a name to be created' do expect{ Name.new }.to_not raise_error end it 'stores a created name' do name = Name.new "BORIS" expect(name.name).to eq "BORIS" end it "raises an error if a name isn't given" do expect{ Name.new }....
package tuktu.processors.bucket.concurrent.aggregate import tuktu.processors.bucket.concurrent.BaseConcurrentProcessor import akka.actor.ActorRef import play.api.libs.json.JsObject /** * Concurrently aggregates by key. Only works for commutative and associative functions (ie. (a+b)+c = a+(b+c) and a+b=b+a) */ clas...
## Add using static directive Property | Value --- | --- Id | RR0014 Title | Add using static directive Syntax | member access expression \(public or internal static class\) Scope | selected class name Enabled by Default | yes ### Usage ![Add using static directive](../../images/refactorings/AddUsingStaticDirective...
require "rubocops/extend/formula_cop" module RuboCop module Cop module FormulaAudit class Caveats < FormulaCop def audit_formula(_node, _class_node, _parent_class_node, _body_node) caveats_strings.each do |n| next unless regex_match_group(n, /\bsetuid\b/i) problem ...
require "singleton" class InstanciaUnica include Singleton def test1 "teste 1" end def test2 "teste 2" end end
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import numpy as np import unittest2 as unittest import os from pymatgen.analysis.structure_analyzer import VoronoiCoordFinder, \ solid_angle, contains_peroxide, Rel...
--- title: "API" description: "" nav_order: 8 lang: "zh" --- ## 接口(API) * 系统级接口 * 系统配置信息操作 * [获取系统配置](#获取系统配置) * [获取项目列表](#获取项目列表) * 获取任务模块列表 * 获取驱动模块列表 * 获取存储模块列表 * 项目级 * 创建项目 * 项目配置文件操作 * [获取项目配置](#获取项目配置) * 修改配置 * 项目启动 * 项目重启 * 项目停止 * 删除项目 * 获取项目运行日志 * 从备份文件导入项目 * 导出项目备份文件 * 其他 * 关闭API服务 ​ ##...
#! /bin/sh # 导入skipd数据 export KSROOT=/koolshare source $KSROOT/scripts/base.sh eval `dbus export softether` alias echo_date='echo 【$(date +%Y年%m月%d日\ %X)】:' LOCK_FILE=/var/lock/softether.lock [ -f "$KSROOT/softether/vpn_server.config" ] && openvpn_port=`cat $KSROOT/softether/vpn_server.config | grep OpenVPN_UdpPortList...
package com.lansalo.family.resemblance.fp.behavior trait Talk[A] { def talk(a: A): Unit }
# myBootWebsite 概要:创建了一个SpringBoot应用Demo,并在Linux CentOS 7(Aliyun)上部署。
/// <reference types="cypress" /> const { user } = require("../../fixtures/constants"); const { fillLoginForm, getLoginInputs } = require("../../fixtures/functions"); before(() => { Cypress.Cookies.debug(true); }); describe("when the user visits the app", () => { beforeEach(() => { cy.visit("/"); getLoginIn...
#!/usr/bin/env python # -*- encoding: utf-8 -*- import os import subprocess import sys from importlib import machinery from pathlib import Path from subprocess import CalledProcessError import click from git import Repo from humanfriendly import format_size GEMFURY_AS = 'emoji-gen' GEMFURY_API_TOKEN = os.getenv('GEM...
/* Subroutines for code generation on Motorola 68HC11 and 68HC12. Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Stephane Carrez (stcarrez@nerim.fr) This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Trata extends Model { protected $fillable = [ 'cid', 'nm_fonte', 'nm_equip', 'tempo', 'sessoes', 'freq', 'enabled' ]; }
################################################################################ # # NfOrd/NfOrd.jl : Orders in absolute number fields # # This file is part of Hecke. # # Copyright (c) 2015, 2016: Claus Fieker, Tommy Hofmann # All rights reserved. # # Redistribution and use in source and binary forms, with or withou...
module Main where import CPrelude import qualified Data.Map as Map import qualified Data.Vector as V import TCA2.Types import TCA2.Automaton import TCA2.GameOfLife import TCA2.Arbitrary2S import TCA2.Arbitrary3S main :: IO () main = do let golBoard1 = initializeBoard @GoLRule @TwoStateCell (50, 50) Map.empty ...
package step import ( "bufio" "context" "encoding/json" "fmt" "io" "log" "os" "os/signal" "strings" "syscall" "clash-cli/api" "clash-cli/model" ) type Log struct { *api.Client LastStep Step } func (l Log) Run() error { if err := handleReaderWithInterrupt(l.GetLogs, func(b []byte) error { v := &mode...
<?php declare(strict_types=1); namespace Whsv26\Functional\Collection\Tests\Runtime\Set; use PHPUnit\Framework\TestCase; use Whsv26\Functional\Collection\HashSet; final class SetTest extends TestCase { public function testCasts(): void { $this->assertEquals( [1, 2, 3], HashSe...