text
stringlengths
27
775k
use std::ffi::OsStr; use std::iter::FusedIterator; use crate::path::{Component, Path}; /// An iterator over the [`Component`]s of a [`Path`]. /// /// This `struct` is created by the [`components`] method on [`Path`]. /// See its documentation for more. /// /// # Examples /// /// ``` /// use async_std::path::Path; ///...
/* ex: set shiftwidth=4 expandtab: */ /* * Copyright (c) 2007, Novell, Inc. * 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 copy...
# contador Contador simples criado em aula do <a href="https://freecodecamp.org" target="_blank">freecodecamp.org</a>
{- Problem 28 Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13 It can be verified that the sum of the numbers on the diagonals is 101. What is the sum of the numbers on the ...
module VarnishCookbook # Helper methods to be used in multiple Varnish cookbook libraries. module Helpers def varnish_version cmd = 'varnishd -V 2>&1' cmd = Mixlib::ShellOut.new(cmd) cmd.environment['HOME'] = ENV.fetch('HOME', '/root') begin cmd.run_command Chef::Log.deb...
using System; namespace Common { [Obsolete("This code should be refactored")] public class Refactor : Attribute { } }
package qouteall.imm_ptl.core.ducks; import net.minecraft.world.entity.Entity; import net.minecraft.world.level.entity.LevelEntityGetter; import net.minecraft.world.level.storage.WritableLevelData; public interface IEWorld { WritableLevelData myGetProperties(); void portal_setWeather(float rainGradP...
package test.wksp.junit; /** * <p> * The list of excluded package paths is specified in a properties file * "excluded.properties" that is located in the same place as the * TestCaseClassLoader class. */ public class X01 { }
import service from '@/axios' //获取歌单详情 export const getMusicUrlById = data => { return service({ url: '/song/url?timestamp='+new Date().getTime(), method: 'get', params: data }) }
package com.monday8am.tweetmeck.data.models import androidx.room.ColumnInfo import androidx.room.Embedded import androidx.room.Entity import androidx.room.PrimaryKey import com.monday8am.tweetmeck.data.models.entities.MediaEntity import com.monday8am.tweetmeck.data.models.entities.UrlEntity typealias ModelId = Long ...
#!/usr/bin/env bash echo "Post-build git status check..." echo "Ensuring no changes visible to git have been made to '$*' ..." git status $* | egrep -q 'nothing to commit.*working (directory|tree) clean' || { # we should find nothing to commit. If we don't, build has failed. echo "ERROR: Post-build git status...
package com.noteTogether.services import com.noteTogether.entities.NoteLog import com.noteTogether.entities.ViewLog import com.noteTogether.repositories.NoteLogRepository import com.noteTogether.repositories.ViewLogRepository import org.springframework.beans.factory.annotation.Autowired import org.springframework.ster...
/* Package auction is a module for creating generic auctions and allowing users to place bids until a timeout is reached. TODO - investigate when exactly auctions close and verify queue/endblocker logic is ok - add more test cases, add stronger validation to user inputs - add minimum bid increment - decided whethe...
# `etoyear` - show [eto-year](https://www.nippon.com/en/features/jg00110) list ## Install ```bash wget https://raw.githubusercontent.com/eggplants/etoyear/master/etoyear # local chmod +x etoyear # global sudo install etoyear /usr/local/bin ``` ## Usage ```shellsession $ etoyear 2019 🐗 2020 🐁 2021 🐄 2022 🐯 20...
import { Platform, StyleSheet } from 'react-native'; import parentStyles from '../styles'; import styleMerge from '../../utils/styleMerge'; import { colors, fontWeight, fontStack, fontSize } from '../../config/styling'; export default theme => styleMerge( parentStyles(theme), StyleSheet.create({ mnemon...
namespace AppRegAccessTests.Models { /// <summary> /// Defines a document type. /// </summary> public class DocumentType { /// <summary> /// Gets or sets the id of the document type. /// </summary> public string Id { get; set; } /// <summary> /// Get...
import 'package:equatable/equatable.dart'; import 'helpers.dart'; String? _formatPrint(Object? obj) { if (obj is Map) { return '{${obj.entries.map((e) => '${_formatPrint(e.key)}: ${_formatPrint(e.value)}').join(', ')}}'; } else if (obj is Iterable) { return '[${obj.map(_formatPrint).join(', ')}]'; } els...
package controllers import ( "log" "net/http" "strconv" "github.com/gorilla/mux" "github.com/mcmaur/mc-ms-authentication/server/models" "github.com/mcmaur/mc-ms-authentication/server/response" ) // GetUserByIDHandler : select user by id and return detailed infos func (server *Server) GetUserByIDHandler(res htt...
import json import pytest from dataclasses import dataclass import jiant.utils.python.datastructures as py_datastructures def test_take_one(): assert py_datastructures.take_one([9]) == 9 assert py_datastructures.take_one((9,)) == 9 assert py_datastructures.take_one({9}) == 9 assert py_datastructures....
#!/bin/bash if [ ! -f "vendor/ace/build/src/ace.js" ]; then pushd vendor/ace npm install node ./Makefile.dryice.js popd fi
'use strict'; const events = require('./api/events.js'); // const app = require('./api/apiurl.js'); $(() => { events.addHandlers(); });
package org.moskito.control.data.processors; import net.anotheria.util.StringUtils; import java.util.HashMap; import java.util.Map; /** * Basic class for ifcomparisons (if greater, if less or if equal zero). * * @author lrosenberg * @since 07.06.18 18:16 */ public abstract class IfComparisonProcessor extends Ab...
using System.Collections.Generic; using UnityEngine; namespace SengokuWarrior { [System.Serializable] public class Loadable : ScriptableObject { [System.NonSerialized] public static Loadable CurrentlyLoaded; public Loadable NextLoadable; [System.NonSerialized] publ...
/** * Copyright (c) 2021 QIWI * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, dist...
// https://codeforces.com/problemset/problem/230/B // Eratosthenes sieve, binary search use std::io; fn is_square(x: f64) -> bool { let sr: f64 = x.sqrt(); (sr - sr.floor()) == 0.0 } fn primes_lt(bound: usize) -> Vec<usize> { let mut primes: Vec<bool> = (0..bound + 1).map(|num| num == 2 || num & 1 != 0)....
--- pagename: Send a Transcript redirect_from: - consumer-experience-server-chat-send-transcript.html sitesection: Documents categoryname: "Client Side Configuration" documentname: Server Chat API subfoldername: Methods order: 170 permalink: server-chat-api-methods-send-a-transcript.html indicator: chat --- Sends ...
create database milly_hairdressing; use milly_hairdressing; # database schema. create table user_types ( id int unsigned primary key auto_increment, type_name varchar(64) not null unique, type_code varchar(64) not null unique ); create table users ( id int unsigned primary key auto_increment, user_type...
#![cfg_attr(doc, feature(doc_auto_cfg))] //! **TLE-tools** is a small library to work with [`two-line element set`] files. //! //! This module defines the structure [`TLE`] which represents a single TLE. //! Its fields are expressed in the same units that are used by the TLE format. //! //! [`two-line element set`]: h...
// // Created by salmon on 17-2-13. // #ifndef SIMPLA_MESHBLOCK_H #define SIMPLA_MESHBLOCK_H #include <simpla/SIMPLA_config.h> #include <simpla/algebra/nTuple.ext.h> #include <simpla/algebra/nTuple.h> #include <simpla/data/Serializable.h> #include <simpla/utilities/ObjectHead.h> #include <memory> namespace simpla { n...
# Embed pens from Codepen Developer profile [Vikas Verma](https://github.com/vikasverma92)!
FactoryBot.define do factory :item do item_name {Faker::JapaneseMedia::OnePiece.character} price {Faker::Number.number(digits: 8)} status_id {Faker::Number.between(from: 1, to: 2)} size {"S"} delivery_fee_id {Faker::Number.between(fr...
<?php return[ 'label_header'=>'Services', 'label_title'=>'Add Services', 'label_name'=>'Name', 'label_Icon'=>'Icon', 'label_Banner'=>'Banner', 'label_Descriptions'=>'Descriptions', 'label_chebox'=>'Click to select category from existing list', 'label_Category'=>'Category', 'label_cat_name'=>'Name', 'label_...
namespace FasTnT.Domain.Model; public class MasterDataAttribute { public MasterData MasterData { get; set; } public string Id { get; set; } public string Value { get; set; } public List<MasterDataField> Fields { get; set; } = new(); }
import * as fs from 'fs'; import { resolve } from 'path'; import { config, parse } from 'dotenv'; const sampleData: any = parse(fs.readFileSync('.env.example')); const data: any = parse(fs.readFileSync('.env')); const errors = []; for (const config_var in sampleData) { if (Object.prototype.hasOwnProperty.call(sampl...
// Copyright (c) 2012-present The upper.io/db authors. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the righ...
self.__precacheManifest = [ { "revision": "f36f6521b15eee4557c5", "url": "/poliwag/js/7.f36f6521.js" }, { "revision": "b6216d61c03e6ce0c9aea6ca7808f7ca", "url": "/poliwag/robots.txt" }, { "revision": "b4cdff4b6845b19f2ced", "url": "/poliwag/css/8.6088f7b1.css" }, { "revision": ...
# USTC-nCoV-Report 中国科学技术大学健康打卡平台 (<https://weixine.ustc.edu.cn/2020/login>) 每日信息自动上报, 本项目可以同时为多个人实现定时打卡功能, 只需将每个人的信息填入 `report.ini` 文件即可. ## 更新日志 **2022年3月31日** 再次修改 `report.ini` 以适应上报内容变化. **2022年3月19日** 修改 `report.ini` 以适应上报内容变化, 近期可能会增加每日自动提交出校申请报备功能. (2022年4月4日,鉴于学校会严查审批出校申请~~为了避免查水表~~,近期不会增加跨校区自动报备的功能) **...
import { Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; import { Model } from 'mongoose'; import { Headline } from './headline.model'; @Injectable() export class ApiService { private headlines: Headline[] = []; constructor( @InjectModel('Headline') private readonly headline...
// // Created by Mario on 2020/5/27. // #pragma once #include <boost/any.hpp> #include "../../Primitives/Encoding.h" class SerialAny { public: template<class Archive> static void Save(Archive & ar, const boost::any& any, ENCODING_TYPE encoding) { switch (encoding) { case ENCODING_TYPE::STR...
package PPS19.scalagram.dsl import PPS19.scalagram.logic.Scalagram import PPS19.scalagram.models.BotToken import org.junit.runner.RunWith import org.scalatest.funsuite.AnyFunSuite import org.scalatestplus.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class ScalagramDSLSuite extends AnyFunSuite { test("A bot tok...
package zio.morphir.ir.testing import java.math.BigInteger import zio.morphir.ir.LiteralValue import zio.morphir.ir.Name import zio.{Chunk, ZEnvironment} import zio.morphir.ir.ValueModule.{Value, ValueCase} import zio.morphir.ir.NativeFunction import zio.morphir.Dsl import zio.morphir.ir.ValueModule.Value.* object Ca...
import 'package:combine/homepage.dart'; import 'package:combine/seeContactsButton.dart'; import 'package:flutter/material.dart'; import 'package:contacts_service/contacts_service.dart'; class AddContactPage extends StatefulWidget { @override State<StatefulWidget> createState() => _AddContactPageState(); } class ...
package com.raiden.karpukhinomgupsdiplom.screens.content.applications import androidx.arch.core.executor.testing.InstantTaskExecutorRule import com.raiden.domain.interactors.applications.ApplicationsInteractor import com.raiden.domain.models.Application import io.mockk.coEvery import io.mockk.mockk import junit.framew...
package singleton import "sync" type singleton2 struct { count int } var ( instance2 *singleton2 mutex sync.Mutex ) func New() *singleton2 { if instance2 == nil { mutex.Lock() if instance2 == nil { instance2 = new(singleton2) } mutex.Unlock() } return instance2 } func (s *singleton2) Add() int ...
module SwaggerYard class Api attr_accessor :path, :operations, :api_declaration def self.path_from_yard_object(yard_object) if tag = yard_object.tags.detect {|t| t.tag_name == "path"} tag.text elsif fn = SwaggerYard.config.path_discovery_function begin method, path = fn[...
GOCAD TSurf 1 HEADER { name:OCBA-SMCS-SMTO-San_Onofre_fault_upper-CFM5_500m *visible:true *solid*color:0.837390 0.236307 0.735201 1 } GOCAD_ORIGINAL_COORDINATE_SYSTEM NAME Default AXIS_NAME "X" "Y" "Z" AXIS_UNIT "m" "m" "m" ZPOSITIVE Elevation END_ORIGINAL_COORDINATE_SYSTEM TFACE VRTX 1 434279.83594 3693953.21875 -1695...
import 'package:bofluttermobile/src/api/constants/constant_api.dart'; import 'package:bofluttermobile/src/core/model/categoria.dart'; import 'package:bofluttermobile/src/core/repository/categoria_repository.dart'; import 'package:mobx/mobx.dart'; part 'categoria_controller.g.dart'; class CategoriaController = Categor...
<?php $conn = mysqli_connect("sql12.freesqldatabase.com","sql12348806"," jPZ9eeVJkb","sql12348806"); if(isset($_POST['save'])) { $filename = $_FILES['myfile']['name']; $destination= 'uploads/'.$filename; $file = $_FILES['myfile']['tmp_name']; $size = $_FILES['myfile']['size']; $hpvpenqn...
package com.github.florent37.kotlin.pleaseanimate.core.scale import android.view.View import com.github.florent37.kotlin.pleaseanimate.core.AnimExpectation import com.github.florent37.kotlin.pleaseanimate.core.Utils import com.github.florent37.kotlin.pleaseanimate.core.position.PositionAnimExpectation abstract class...
/** Declaration file generated by dts-gen */ export = Apollo; declare class Apollo { constructor(appInfo: { configServerUrl: string; appId: string | number; cluster?: string; namespaces?: string[]; cachedConfigFilePath?: string; listenOnNotification?: boolean; ...
<?php class Venues extends CI_Model { public function addVenue($title, $address, $telephone, $email, $web, $file_name) { $data = array( 'title' => $title, 'address' => $address, 'telephone' => $telephone, 'email' => $email, 'web' => $web, ...
package pl.jitsolutions.agile.repository import pl.jitsolutions.agile.domain.Project import pl.jitsolutions.agile.domain.ProjectWithDaily import pl.jitsolutions.agile.domain.ProjectWithUsers import pl.jitsolutions.agile.domain.Response interface ProjectRepository { suspend fun getProjects(userId: String): Respons...
import { Component, OnInit } from '@angular/core'; import { CategoryService } from '../../services/category.service'; import { Category } from '../../interfaces/category-response.interface'; import { MatDialog } from '@angular/material/dialog'; import { ConfirmDialogComponent } from '../../../../shared/components/confi...
require 'zap/rspec/version' require 'zap/rspec/formatter' module Zap # Zap::RSpec module RSpec # Your code goes here... end end
<?php /** * @package s9e\Reckless * @copyright Copyright (c) 2018-2019 The s9e Authors * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ namespace s9e\reckless; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use phpbb\config\config; use phpbb\db\driver\driver_interf...
/* -------------------------------------------------------------------------- * Name: drag-object.c * Purpose: * ----------------------------------------------------------------------- */ #include <stddef.h> #include "oslib/draganobject.h" #include "oslib/os.h" #include "oslib/osbyte.h" #include "oslib/ossprite...
package com.twobbble.presenter import com.twobbble.biz.api.IUserBiz import com.twobbble.biz.impl.UserBiz import com.twobbble.entity.Token import com.twobbble.entity.User import com.twobbble.tools.NetObserver import com.twobbble.tools.log import com.twobbble.view.api.IMainView import org.jetbrains.annotations.NotNull ...
import enums from './enums'; import { Vec2, Vec3, Vec4, Color, Mat4 } from '../core/value-types'; import Texture2D from '../core/assets/CCTexture2D'; import gfxTexture2D from './gfx/texture-2d'; import gfxTextureCube from './gfx/texture-cube'; const CCObject = cc.Object; export let ctor2default = { [Number]: v =...
import { assert } from 'chai'; import { componentName } from '@/util'; import { ComponentDocumentation, FrameworkDocumentation, } from '../Model'; describe('FrameworkDocumentation', () => { let collection!: FrameworkDocumentation; const names = { componentA: componentName('ComponentA'), componentB: com...
<?php namespace AwesomePatterns\Strategy; /** * EmailClient Class */ class EmailClient { /** * send email using specific Agent * @param EmailAgentInterface $agent agent interface * @return string */ public function send(EmailAgentInterface $agent) { return $agent->sendMail()...
from .foretold import Foretold, ForetoldQuestion from .metaculus import Metaculus, MetaculusQuestion from .predictit import PredictIt, PredictItMarket, PredictItQuestion
import { dates as dateUtils } from './shared'; const { getUtcDateTime } = dateUtils; function isDateInRange({ firstDate, lastDate } = {}, date) { const firstDateUtcTime = getUtcDateTime(firstDate); const lastDateUtcTime = getUtcDateTime(lastDate); const dateUtcTime = getUtcDateTime(date); return ( (!first...
package com.gzwl.demo.shiro; import java.util.LinkedHashMap; import java.util.Map; import org.apache.shiro.authc.credential.HashedCredentialsMatcher; import org.apache.shiro.codec.Base64; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.spring.LifecycleBeanPostProcessor; import org.apache.shiro.sp...
package com.akkastarting.chapter4 import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global import akka.actor.{Props, ActorLogging, Actor} class Ch4PingActor extends Actor with ActorLogging { val child1 = context.system.actorOf(Props[Ch4Ping1Actor], "Ping1Actor") def receive = ...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. //...
# noBackend 前端优先的开发模式 - https://www.csdn.net/article/2013-05-13/2815260-nobackend-dev - https://segmentfault.com/a/1190000000403869 - firebase.google.com - leancloud.cn - apicloud 后端:数据库,架构,业务,数据接口等 前端 组件化,页面功能,交互 - 真正优秀的前端应该具备的能力是 能够高质量交付好的用户体验 - 从后端到终端用户需求的满足,是AI无法判断的,这个需要有经验的前端去完成。 1 这个东西是什么 2 应用场景,使用范围 3 技...
## # $Id$ ## require 'msf/base' module Msf module Simple ### # # Wraps interaction with a generated buffer from the framework. # Its primary use is to transform a raw buffer into another # format. # ### module Buffer # # Serializes a buffer to a provided format. The formats supported are raw, # ruby, perl, bash...
package com.king.mvvm.base.bean /** * @author <a href="mailto:jenly1314@gmail.com">Jenly</a> */ class Result<T> { var stat: String? = null var data: T? = null }
package space.sdrmaker.sdrmobile import org.junit.Test import org.junit.Assert.assertEquals import org.junit.Assert.assertArrayEquals import space.sdrmaker.sdrmobile.dsp.filters.ComplexFIRFilter import space.sdrmaker.sdrmobile.dsp.filters.FIRFilter class FiltersTest { @Test fun test_FIRFilter() { va...
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using NearForums.Configuration; using NearForums.DataAccess; namespace NearForums.Tests { [TestClass] public class ConfigurationSettingsTests { [TestMethod] pu...
class Product{ Product.create(this.name); String name; String id; int amount; }
import * as Redlock from 'redlock' import { cache } from './cache' export const lock = (): Redlock => { return new Redlock([cache], { retryCount: 3, retryDelay: 200 }) }
if platform_family?('debian') default['packages'] = %w(dhcp3-server syslinux) elsif platform_family?('rhel') default['packages'] = %w(dhcp syslinux) end if platform?('ubuntu') && node['platform_version'] >= '14.04' set['apache']['version'] = '2.4' end # TTFP configuration. default['tftpd']['config'] = '/etc/defau...
c--------------------------------------------------------------------- c--------------------------------------------------------------------- subroutine setup_btio c--------------------------------------------------------------------- c--------------------------------------------------------------------- ...
# Deployment Complexity - [ ] It's real simple or no contract changes (deployment-simple) - [ ] It's real big and I don't want to break down the details. (deployment-complex) - [ ] Edgeapp API change (deployment-edgeapp-api) - [ ] Inter-service HTTP API change (deployment-http-api) - [ ] Kafka object change (deployment...
package android.support.v14.preference; import android.os.Parcel; import android.os.Parcelable.Creator; /* renamed from: android.support.v14.preference.a */ /* compiled from: MultiSelectListPreference */ class C0407a implements Creator<SavedState> { C0407a() { } public SavedState createFromParcel(Parcel ...
# SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2020 Intel Corporation #-------- DO NOT EDIT THIS FILE ---------# #!/bin/sh usage() { echo "USAGE:" $0 "<optional: -s parameter=value> <optional: -k <path to kubeconfig file>> [install | uninstall]" echo "NOTES: multiple instances of <-s parameter=value> may be pr...
using System; using Infrastructure.Models; using System.Threading.Tasks; using System.Collections.Generic; namespace Infrastructure.Interfaces { public interface ITeamRepository { Task<bool> AddTeamAsync(TeamEntity team); Task<TeamEntity> FindTeamByIdAsync(Guid teamId); Task<TeamEntity...
#ifndef __clang__ export module acommandline : option_builder_base; export import : option; #endif namespace acommandline { //! \private class OptionBuilderBase { public: explicit OptionBuilderBase(Option &data) noexcept : optionData{data} { } protected: //! \private [[nodiscard]] auto opt...
class LendersSessionController < ApplicationController def new end def create @lender = Lender.find_by(:email => params[:email]) if !@lender @error = "Account not found. Please try again." render :new elsif !@lender.authenticate(params[:password]) @error = "Incorrect ...
# realestate ## All rights reservered. Copyright 2021, designed and developed solely by Anupam Khosla. Static html Landing page -- No links work at the moment. demo: https://anupamkhosla.github.io/realestate/ Inspired from the Wordpress theme https://demoapus2.com/houzing/
package com.pd.algorithms; import org.junit.jupiter.api.Test; public class SievePrimesAlgorithmTest { @Test void primesAlgorithm() { SievePrimesAlgorithm sp = new SievePrimesAlgorithm(); sp.start(); for(int i=0;i<20;i++) System.out.println(i+" being prime is "+sp.isPrime(i)); NumOccurencesOf...
# docker-asuswrt-merlin-build Asuswrt-Merlin New Gen build environment in the docker. # Quick Start - Start a docker container: ```bash docker run -dt --name asuswrt-merlin-build acrisliu/asuswrt-merlin-build docker exec -it asuswrt-merlin-build bash ``` - Set environment variable for build: ```bash # For Broadcom S...
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package org.opensearch.alerting.util import org.opensearch.action.search.SearchResponse import org.opensearch.alerting.model.BucketLevelTrigger import org.opensearch.alerting.model.InputRunResults import org.opensearch.alerting.model.T...
from cisco_sdwan_policy.BaseObject import BaseObject from cisco_sdwan_policy.Helper.Sequence import Sequence class DataPolicy(BaseObject): def __init__(self,name,description,sequences,default_action=None,id=None,references=None,**kwargs): self.id = id self.description= description self.na...
# Write your MySQL query statement below SELECT seat_id FROM cinema as c WHERE free = 1 AND ( SELECT COUNT(*) FROM cinema WHERE free = 1 AND (seat_id = c.seat_id - 1 or seat_id = c.seat_id + 1) ) > 0
// Copyright 2018 The OpenPitrix Authors. All rights reserved. // Use of this source code is governed by a Apache license // that can be found in the LICENSE file. package vmbased import "fmt" func formatVolumeCmd(device, fileSystem string) string { mkfs := fmt.Sprintf("(echo y) | mkfs -t %s %s > /dev/null", fileSy...
using System.Collections.Specialized; using System.Net; namespace SolokLibrary.Discord.Webhooks { public static class DiscordWebhook { public static void Send(string webhookUrl, string message) { var wc = new WebClient(); wc.UploadValues(webhookUrl, new NameValueCollect...
package decompress import ( "io" "github.com/klauspost/compress/zlib" ) type GZip struct{} func (g GZip) Reader(src io.Reader) (io.ReadCloser, error) { return zlib.NewReader(src) } func (g GZip) Resetable() bool { return true } func (g GZip) Reset(old, src io.Reader) error { return old.(zlib.Resetter).Reset(s...
/*! * Copyright 2019 acrazing <joking.young@gmail.com>. All rights reserved. * @since 2019-11-01 23:01:37 */ import * as ts from 'typescript'; import { LoadableComponentsTransformerOptions } from './types'; export declare class State { program: ts.Program | undefined; context: ts.TransformationContext; s...
ALTER TABLE index_event_pump_request ADD COLUMN public_key BYTEA NOT NULL UNIQUE; CREATE INDEX index_event_pump_request_public_key_idx on index_event_pump_request (public_key);
{-# OPTIONS -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Bool -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stabi...
package javax.swing.plaf.synth import java.lang.Object import javax.swing.JComponent import scala.scalanative.annotation.stub /** An immutable transient object containing contextual information about * a Region. A SynthContext should only be * considered valid for the duration * of the method it is passed to. I...
#!/bin/bash # MG=data/gene_prediction/TARA_OSD_GOS_malaspina_hmpI-II.fasta.gz # GTDB=data/GTDB/gtdb_data/gtdb_orfs.fasta.gz # DIR=data/GTDB MG="${1}" GTDB="${2}" DIR="${3}" # RELEASE=$(date +%Y%m%d) cd "${DIR}" mkdir -p mg_gtdb_db_update zcat "${MG}" "${GTDB}" | gzip > mg_gtdb_orfs.fasta.gz mmseqs createdb mg_gtdb...
# bigred-contract Big Red Is an BEP20 Token Which Started On the Binance Smart. Join the mission. - Contract: 0xe1d48F4375a6b23DC6A16e702E477e1800820678 - Website: https://bigredtoken.com
const Mi5OpcuaClient = require('mi5-simple-opcua').OpcuaClient; const clientVariable = require('mi5-simple-opcua').OpcuaClientVariable; // This async thing makes programming easier for you. You do not necessarily have to understand it ;-) asyncOperation().catch(console.error); async function asyncOperation(){ let c...
class AddAccessLogIdToBrowserLog < ActiveRecord::Migration def change add_column :browser_logs, :access_log_id, :long end end
#!/bin/bash # Ensure none of this happens on a real cluster kubectl config unset current-context deploy_dir="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" # Destroy existing test cluster kind delete cluster --name imageswap # Start KinD and deploy local registry $deploy_dir/kind-with-registr...
/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_ALGORITHMS_FLATTEN_HPP #define BOOST_BRIGAND_ALGORITHMS_FLATTEN_HPP #include <brigand/sequences/list.hpp> #include <brigand/sequences/append.hpp> nam...
# Home Automation Project Full Stack Java project by the black team ## Development setup ### Prerequisites: Installation of nodejs https://nodejs.org/en/ Installation of angular-cli utility https://angular.io/cli ```sh npm install -g @angular/cli ``` Clone project source code ```sh git clone https://gi...