text
stringlengths
27
775k
#!/bin/bash dir=$1 sample=$2 poretools fasta --type 2D $dir > $sample.fasta demultiplex.py --barcodes /zibra/zika-pipeline/barcodes/barcodes.fasta $sample.fasta
package com.grenzfrequence.showmycar.di.components import com.grenzfrequence.githubviewerkotlin.di.scopes.FragmentScope import com.grenzfrequence.showmycar.car_types.ui.BuiltDatesFragment import com.grenzfrequence.showmycar.car_types.ui.MainTypesFragment import com.grenzfrequence.showmycar.car_types.ui.ManufacturersF...
#pragma once #include "map.h" #include "multi_map.h" #include "sequential.h" #include "set.h" #include "value_sequential.h"
import 'package:malvhta_holisso/entities/flash_card.dart'; final List<FlashCard> weatherFlashCards = [ FlashCard( wordCategory: 'weather', chahtaWord: 'Malυhta', englishWord: 'Lightning', englishDescription: '', englishGrammarType: 'Noun', resultsHistory: '', lastSeenTimeStamp: DateTime(1...
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Tests for mutating object expressions */ 'use strict'; const sinon = require('sinon'); const babylon = require('@babel/parser')...
# SRR Device Control - config settings.json as you need - run meteor --settings settings.json
package org.etsi.sol005.model; import java.util.List; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; /** * Information about the changed NS instance information, if applicable. */ @Data @JsonInclude(value = JsonInclude.Includ...
using System; using System.Threading; using System.Threading.Tasks; namespace YuKu.Retryable.Strategies { public sealed class DoNotRetry : IRetryStrategy { public Task<Boolean> PrepareToRetry(Exception exception, CancellationToken cancellationToken) { return Task.FromResult(false);...
## JWT Generation in NodeJS We strongly recommend the [JWT library](https://github.com/auth0/node-jsonwebtoken) to avoid the complexity and risk of building tokens on your own. That said, we've provided sample code here to illustrate the lower level details of the process. To run, simply start the app via node, pass...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class DetectorEnemigos : MonoBehaviour { public GameObject Player; public ControladorEscena control; public bool encontrado; public List<Collider> enemigosCercanos; public float...
using System; using System.IO; using System.Linq; using ThunderHawk.Core; using ThunderHawk.Core.Services; using ThunderHawk.StaticClasses.Soulstorm; namespace ThunderHawk.Tweaks { public class GridHotkeys : ITweak { public string TweakTitle => Core.CoreContext.LangService.GetString("HotKey...
%macro STRING 2 %1 db %2, 0 %1_length equ $ - %1 - 1 %endmacro
;;;; bundle functionality ;;;; ;;;; This software is part of CLPM. See README.org for more information. See ;;;; LICENSE for license information. (uiop:define-package #:clpm/bundle (:use #:cl #:alexandria #:clpm/clpmfile #:clpm/config #:clpm/context #:clpm/context-...
/** * GentlyPage.js * @author : lengxu * @version : 0.0.1 * @date : 2015-05-28 * http://www.uis.cc/ * copyright (c) 2014-2015, Autohome.QingUI v0.2.1 */ ; if (typeof Zepto === 'undefined') { throw new Error('GentlyPage.js\'s script requires Zepto') } // GentlyPage组件 // ============================== ! f...
#!/usr/bin/env python3 # encoding: utf-8 from simple_benchmark import benchmark def ilen_enumerate(xs): len = 0 for len, _ in enumerate(xs, 1): pass return len def ilen_increment(xs): len = 0 for _ in xs: len += 1 return len b = benchmark((ilen_enumerate, ilen_increment), {2**x: [0]*2**x for x in range(1,...
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill' // Import all the third party stuff import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { ...
using JoergIsAGeek.Workshop.Enterprise.DomainModels.Authentication; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JoergIsAGeek.Workshop.Enterprise...
(NUM-VARMAP) (VVNV-IND) (HONS-ASSOC-EQUAL-IN-NUM-VARMAP1 (565 344 (:REWRITE DEFAULT-+-2)) (514 514 (:REWRITE CONSP-WHEN-MEMBER-EQUAL-OF-ATOM-LISTP)) (370 344 (:REWRITE DEFAULT-+-1)) (367 239 (:REWRITE DEFAULT-CDR)) (311 141 (:REWRITE DEFAULT-CAR)) (270 30 (:REWRITE ZP-OPEN)) (157 157 (:TYPE-PRESCRIPTION NUMLIST)...
class RepositoriesController < ApplicationController def new @category = Category.find(params[:category_id]) @repository = @category.repositories.new end def create @category = Category.find(params[:category_id]) @repository = @category.repositories.new(repository_params) if @repository.save...
use crate::std::prelude::v1::*; use serde::{Serialize, Deserialize}; use std::collections::{BTreeMap}; use crate::contracts::AccountIdWrapper; pub type TransactionHash = String; #[derive(Serialize, Deserialize, Debug, Clone)] pub enum TransactionStatus { Ok, InsufficientBalance, NoBalance, UnknownError, BadContr...
#include <assert.h> #include <string> #include <SDL.h> #include <SDL_image.h> #ifndef _WIN32 #include <signal.h> #endif #include "Engine.h" #include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" #include "rapidjson/filereadstream.h" #include <iostream> using namespace rapid...
$Language = "android" function Get-AllPackageInfoFromRepo ($serviceDirectory) { $allPackageProps = @() Push-Location $RepoRoot if ($serviceDirectory) { $properties = gradle ":sdk:$serviceDirectory:retrieveProjectProperties" -q } else { $properties = gradle retrieveProjectProperties -q } Pop-...
# crete lambda layer # sample - [chrome](../../lambda/layer/chrome/) - [python](../../lambda/layer/python/)
#!/bin/bash tests:put input <<EOF #!/bin/bash # # @file Title of file script # @brief Small description of the script. EOF tests:put expected <<EOF # Title of file script Small description of the script. EOF assert
import Vue from 'vue' import GlobalEvents from 'vue-global-events' import SvgIcon from '~/components/SvgIcon' import InputField from '~/components/Fields/InputField' import ConfirmModal from '~/components/Modals/ConfirmModal' export default function () { Vue.component('SvgIcon', SvgIcon) Vue.component('GlobalEvent...
package lv.luhmirin.sampleapp.list internal class ListPresenter(private val contract: ListViewContract, private val repository: ListRepository) { fun getData() { repository.getData { items -> contract.showData(items) } } }
const ExperimentTypes = { ExperimentWorkers: Symbol.for('ExperimentWorkers'), }; export { ExperimentTypes };
<?php return array ( 'id' => 12, 'name' => 'Paweł', );
- [bun33s.mp4](https://github.com/EvoStream/sample_content/blob/gh-pages/assets/bun33s.mp4) - [1.ogg](https://www.kenney.nl/assets/voiceover-pack) - [2.ogg](https://www.kenney.nl/assets/voiceover-pack) - [3.ogg](https://www.kenney.nl/assets/voiceover-pack) - [rabbit.png](https://www.kenney.nl/assets/animal-pac) Voice:...
<?php $connect = new mysqli("localhost","root","","db_master_apri"); if($connect){ echo "Connection Berhasil"; }else{ echo "Connection Failed"; exit(); }
/* * Copyright (C) 2017 - present Instructure, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hop...
package dynamodbfriend import "github.com/aws/aws-sdk-go/service/dynamodb/expression" // QueryExprKey is a partially-formed query expression. // // To make a fully-formed query expression, the key part must be followed by a conditional. type QueryExprKey struct { expr *QueryExpr key string } // NewQuery begins a ...
<?php declare(strict_types=1); namespace Andriichuk\KeepEnv\Validation\Rules; /** * @author Serhii Andriichuk <andriichuk29@gmail.com> */ class EqualsRule implements RuleInterface { public function alias(): string { return 'equals'; } public function acceptsFalseOption(): bool { ...
use fs::BaseDir; use std::path::{Path, PathBuf}; use xdg::BaseDirectories; /// Based on the XDG Base Directory Specification. /// `DataDir` is a wrapper for "There is a single base directory relative to which user-specific /// data files should be written. This directory is defined by the environment variable `$XDG_DA...
package com.goposse.fluro.activities import android.content.Intent import android.os.Bundle import android.util.Log import io.flutter.app.FlutterActivity import io.flutter.plugins.GeneratedPluginRegistrant class MainActivity : FlutterActivity() { private val logTag = "A:Main" override fun onCreate(savedInstanceS...
using BurningKnight.entity.component; using Microsoft.Xna.Framework; namespace BurningKnight.entity.creature.mob.prefix { public class RegenerativePrefix : Prefix { private static Vector4 color = new Vector4(237f / 255f, 118 / 255f, 20 / 255f, 1); private float sinceLast; public override void Update(float d...
# SonarQube PowerShell module This script is deploying scripts or whole folders with scripts to MSSQL instances. ## Usage Example script provided below - it's example from my TFS automated build ```powershell .\TFS_PerformDBDeploy.ps1 -SQLServerAddress $DBServer -SQLDatabaseName $DBName -ScriptsContainer $sqlPath; ...
(ns blaze.db.tx-log.local-spec (:require [blaze.db.impl.codec-spec] [blaze.db.indexer-spec] [blaze.db.spec] [blaze.db.tx-log.local :as tx-log] [blaze.db.tx-log.local.references-spec] [clojure.spec.alpha :as s]) (:import [java.time Clock])) (s/fdef tx-log/init-local-tx-log :args (s/ca...
base = File.dirname(__FILE__) $LOAD_PATH.unshift(File.expand_path(base)) $LOAD_PATH.unshift(File.expand_path(File.join(base, "..", "lib"))) require "active_ldap" require "benchmark" include ActiveLdap::GetTextSupport argv = ARGV.dup unless argv.include?("--config") argv.unshift("--config", File.join(base, "config....
// Fibonacci #include <stdio.h> // Iterative implementation of fibonacci series. int fib(int n) { int t0 = 0, t1 = 1, s = 0, i; if (n <= 1) return n; for (i = 2; i <= n; i++) { s = t0 + t1; t0 = t1; t1 = s; } return s; } // Recursive "simpler" implementation of the abo...
import {NgModule, ModuleWithProviders} from '@angular/core'; import {NgfModalModule, NgfModal, NgfModalOptions, NgfModalRef, ModalDismissReasons} from './modal/modal.module'; export { NgfModalModule, NgfModal, NgfModalOptions, NgfActiveModal, NgfModalRef, ModalDismissReasons } from './modal/modal.module';...
#ifndef BEAST_MODULE_CORE_NATIVE_BASICNATIVEHEADERS_H_INCLUDED #define BEAST_MODULE_CORE_NATIVE_BASICNATIVEHEADERS_H_INCLUDED #include <ripple/beast/core/Config.h> #undef T #if BEAST_MAC || BEAST_IOS #if BEAST_IOS #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <Co...
<?php /** * Created by PhpStorm. * User: Mathieu * Date: 11/01/2018 * Time: 14:21 */ namespace AppBundle\Controller; use AppBundle\Entity\Dossier; use AppBundle\Entity\Note; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component...
module VK module Bot module Types class UsersCropPhoto < Base attribute :crop, UsersCropPhotoCrop.optional attribute :photo, PhotosPhoto.optional attribute :rect, UsersCropPhotoRect.optional end end end end
import { Module } from '@nestjs/common'; import { PortfolioController } from './portfolio.controller'; import { PortfolioService } from './portfolio.service'; import { MongooseModule } from '@nestjs/mongoose'; import { PortfolioSchema } from './schemas/portfolio.schema'; import { AuthV2Module } from '../Authv2/authv2.m...
package com.example.demo.controller; import com.example.demo.exception.CarNotFoundException; import com.example.demo.exception.ServerException; import com.example.demo.model.Car; import com.example.demo.service.CarService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bi...
// Hide a task import Task from './task.js' class HideTask extends Task { constructor (task) { super() this.task = task this.hidden = false task.emitter.on('update', () => { if (!this.hidden) { this.update() } }) } getLines () { // Return empty array if hidden r...
# TDD My ongoing leap into TDD JavaScript Unit test with Mocha, Chai. Someone once said to me 'unit testing will change the way you think about code' - and it did. Mocha - a JS test framework. Chai - Chai is a BDD / TDD assertion library. Setup Install Nodejs Install Mocha by running npm install Install Chai by...
import { TagCacheManager } from 'growi-commons'; const LSX_STATE_CACHE_NS = 'lsx-state-cache'; // validate growi-commons version function validateGrowiCommonsVersion() { // TagCacheManager was created on growi-commons@4.0.7 if (TagCacheManager == null) { throw new Error( 'This version of \'growi-plugin...
#! /usr/bin/ruby # -*- encoding: utf-8 -*- # # riak_create.rb # # Sep/22/2015 # require 'json' require 'restclient' # load '/var/www/data_base/common/ruby_common/text_manipulate.rb' # # # --------------------------------------------------------------------- def prepare_data_proc () dict_aa={} dict_aa=dict_append_p...
# frozen_string_literal: true require 'spec_helper' describe Facter::Util::Fact.to_s do before(:each) do Facter.clear end describe 'mysqld_version' do context 'with value' do before :each do allow(Facter::Core::Execution).to receive(:which).with('mysqld').and_return('/usr/sbin/mysqld') ...
// This is a single-file binary. // Each binary under src/bin/ is its own crate. // To use src/* modules, import the default library crate. It has the same name as the package. use modules_and_binaries::{multi_file_module, single_file_module}; fn main() { println!("{} {} {} {}", single_file_module::...
<?php namespace byteit\LaravelExtendedStateMachines\Exceptions; use InvalidArgumentException; class InvalidStateException extends InvalidArgumentException { }
{-# LANGUAGE OverloadedStrings #-} module Comment.Handler ( createHandler , removeListHandler , removeHandler , getListHandler , getHandler ) where import Control.Monad (void) import Control.Monad.Reader (lift) import Web.Scotty.Trans (json, param, res...
<?php namespace app\components\wiki; use yii\base\Widget; class WikiCard extends Widget { public $wiki; public function run() { return $this->render("@app/components/wiki/view/WikiCard",["wiki"=>$this->wiki]); } } ?>
import { Component } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { ThoughtModel } from './thought.model'; import { ThoughtsService } from './thoughts.service'; @Component({ selector: 'app-thought', templateUrl: './thought.component.html', }) export class ThoughtComponent { para...
import axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; import globals from 'application/common/globals'; import { UnauthorizedError } from './errors/unauthorizedError'; import { InvalidRequestError } from './errors/invalidRequestError'; import { ServerError } from './errors/serverError'; type ApiResponse = ...
#!/usr/bin/env bash ## DO NOT run this file outside root folder # init theme git submodule update --init --recursive # init public folder git submodule add -f -b master git@github.com:u2633/u2633.github.io.git public
<?php namespace App\Http\Controllers\certification; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\staff_certification; use App\staff; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class listController extends Controller { //認証チェック public function __construct...
package org.starcoin.sirius.hub import org.starcoin.sirius.core.* import org.starcoin.sirius.core.Eon.Epoch import org.starcoin.sirius.datastore.DataStoreFactory import org.starcoin.sirius.datastore.MapDataStoreFactory import java.util.* class EonState(val eon: Int, val state: AMTree, private val factory: DataStoreFa...
package sanoitus package http2 package exchange package outbound import sanoitus.http2.hpack.HPackProvider import sanoitus.http2.wire.Frame import sanoitus.stream.StreamLanguage object OutboundProcessor { private def sendFrames(writeWire: List[Frame] => Program[Boolean], hpackOutgoing: OutboundHPackProcessor)( ...
using Beaufort; namespace TestComponents { internal class Car : BaseComponent, ICar { public IEngine Engine { get; set; } public IIgnitionSwitch Ignition { get; set; } public double SpeedKph { get; private set; } private bool _isEngineRunning; public override void Update(ushort deltaTim...
We are proud of version 3.1.0 of Prim. The main idea with this update is to make the game less easy to play, and more fun since you might lose any time! Still, a lot to do like improving the graphics or the game feel on top of adding achievements. Still, we hope that you will enjoy the game even more. ## Gate The ga...
drop table q1_table ; create table q1_table(name char(1),address varchar(20),email varchar(30), floor int,resource varchar(30)); insert into q1_table values('A','Banglore','A@gmail.com',1,'CPU'); insert into q1_table values('A','Banglore','A1@gmail.com',1,'CPU'); insert into q1_table values('A','Banglor...
package io.github.victorhsr.graphql.catstronauts.query import io.github.victorhsr.graphql.catstronauts.Track import io.github.victorhsr.graphql.catstronauts.TrackAPI import org.springframework.graphql.data.method.annotation.Argument import org.springframework.graphql.data.method.annotation.QueryMapping import org.spri...
""" 순차 탐색 """ finding_number = 14 seq_list = [i for i in range(1, 15)] def is_exist(target, array): for i in array: if i == target: return True return False res = is_exist(finding_number, seq_list) print(res)
export * from "./DatabaseProvider"; export * from "./Repositories";
import { Controller } from '@nestjs/common'; import { InjectModel } from 'nestjs-typegoose'; import { AccountsCategories } from '../../models/accounts-categories'; import { ReadController } from '../read.controller'; @Controller('accounts-categories') export class AccountsCategoriesController extends ReadController<Ac...
require 'rails_helper' RSpec.describe Order, type: :model do it { should have_many :order_items } end
//////////////////////////////////////////////////////////////////////// // // geom_test.cpp: Tests for geom.cpp. // // Copyright (c) Simon Frankau 2018 // #include <cmath> #include <sstream> #include <cppunit/TestCase.h> #include <cppunit/extensions/HelperMacros.h> #include "geom.h" class GeomTestCase : public Cpp...
using System; using System.Security.Cryptography.X509Certificates; using Newtonsoft.Json; namespace DigitalOcean.API.Models.Requests { public class Project { /// <summary> /// The human-readable name for the project. The maximum length is 175 characters and the name must be unique. /// </s...
package com.zhewen.qianzhan_base.config import com.alibaba.android.arouter.launcher.ARouter import com.orhanobut.logger.AndroidLogAdapter import com.orhanobut.logger.Logger import com.orhanobut.logger.PrettyFormatStrategy import com.tencent.mmkv.MMKV import com.zhewen.eyepetizer_base.loadsir.EmptyCallback import com.z...
// Copyright 2017 The Australian National University // // 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 applicab...
\includepdf{https://github.com/rahulmajethia/rahulmajethia.github.io/raw/master/resources/pdf/updated-aug-18.pdf"}
import { Coding } from "./Coding"; export class CodeableConcept { coding: Array<Coding>; // Code defined by a terminology system text: string; // Plain text representation of the concept }
# Copyright 2015 Planet Labs, Inc. # # 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 wr...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems.Climber; import java.util.function.DoubleSupplier; import edu.wpi.first.wpilibj2.command.C...
--- templateKey: blog-post title: Linux commands date: '2019-11-11 12:06' featuredpost: true featuredimage: /img/chemex.jpg tags: - linux --- ### base64 encoding and decoding **Encoding** ``` base64 data.txt echo 'this is sanfoundry linux tutorial' | base64 base64 data.txt > data.b64 ``` **Decoding** ``` base64 ...
using System; namespace Test { public class Definition { public static string Foo { get; set; } public void MyMethod() { Console.WriteLine(Foo); } } }
using System.Collections.Generic; using System.Linq; using System.Text; public abstract class Race { private int length; private string route; private int prizePool; private Dictionary<int,Car> participants; private List<Car> winners; public Race(int length, string route, int prizePool) ...
import { DrawerNavigator } from 'react-navigation'; import Home from '../../screens/Home'; import Settings from '../../screens/Settings'; const RootDrawerNavigator = DrawerNavigator( { Home: { screen: Home, }, Settings: { screen: Settings, }, } ); export default RootDrawerNavigator; ...
"""Treadmill app configurator daemon, subscribes to eventmgr events. """ import click from .. import appcfgmgr def init(): """Top level command handler.""" @click.command() @click.option('--approot', type=click.Path(exists=True), envvar='TREADMILL_APPROOT', required=True) def top(...
<?php /*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 Mathieu Malaterre All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is distributed WIT...
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Star extends Model { // use Notifiable; protected $table = 'star'; /** * The attributes that are mass assignable. * * @var array ...
config.cache_classes = true config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true config.action_view.cache_template_loading = true
require 'rails_helper' RSpec.describe RepositoryValidator do describe '.check' do it 'validates correctly' do expect(check('acme-inc/api')).to be_truthy expect(check('acme-inc/private_stacks')).to be_truthy expect(check('acme-inc/Thing')).to be_truthy expect(check('acme-inc/acme-inc.githu...
import { Component } from '@angular/core'; import { interval, Subscription } from 'rxjs'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { subscription: Subscription = null; inputStreamData = ['john wick', 'inception', ...
--- title: Our Approach layout: blocks date: 2018-11-28 00:59:16 +0000 page_sections: - template: hero-banner-w-image block: hero-2 headline: Hello content: "<ul><li><p>Project Management</p></li><li><p>Product Planning</p></li><li><p>Technical Experience</p></li></ul>" published: false ---
package objects_test import ( "encoding/json" "io/ioutil" "testing" "github.com/goccy/go-yaml" "github.com/oas3/spec/objects" ) var schemesObj = []objects.SecurityScheme{ { SecuritySchemeFields: objects.SecuritySchemeFields{ Type: "http", Scheme: "basic", }, }, { SecuritySchemeFields: objects.S...
import { observer } from "mobx-react"; import { FC } from "react"; import { Elem } from "../../../utils/bem"; import { AnnotationHistory } from "../../CurrentEntity/AnnotationHistory"; import { PanelBase, PanelProps } from "../PanelBase"; import "./DetailsPanel.styl"; import { RegionDetailsMain, RegionDetailsMeta } fro...
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; use Illuminate\Http\Request; use Illuminate\Support\Facades\Response; use Illuminate\Sup...
package com.base.library.mvp import android.util.Log import androidx.lifecycle.LifecycleOwner import com.base.library.data.http.HttpDataSourceImpl import com.base.library.data.local.LocalDataSourceImpl import com.base.library.mvvm.OnHandleCallback import com.blankj.utilcode.util.LogUtils import io.reactivex.rxjava3.an...
require "pwinty/shipment" module Pwinty class ShippingInfo < Pwinty::Base attribute :price, Types::Integer attribute :shipments, Types::Array.of(Pwinty::Shipment) end end
<?php // Specify queries count threshold for alert level return [ 'enabled' => env('DB_QUERIES_ALERT_ENABLED', false), 'error' => 100, 'warning' => 50, 'info' => 20, ];
/// Every data packet transmitted has data specific to either the Message, /// Entity, Command managers. This value is written to differentiate those parts /// of the payload. #[derive(Copy, Clone, Debug, PartialEq)] #[repr(u8)] pub enum ManagerType { /// A MessageManager Message = 1, /// A EntityManager ...
--- permalink: /security/cs title: OpenSSL C/S Implementation Demo --- {% include title_patch.html %} 利用OpenSSL实现简单的Client-Server通信系统 - Client ```c #include <sys/socket.h> #include <arpa/inet.h> #include <openssl/ssl.h> #include <openssl/err.h> #define HOST_NAME "127.0.0.1" #define HOST_PORT "4433" int verify(int ...
--- name: Question about: Ask a question about stginga that is neither a bug report nor a feature request. labels: 'question' --- <!-- This comments are hidden when you submit the issue, so you do not need to remove them! --> <!-- Please be sure to check out our code of conduct, https://github.com/spacetelescope/stgi...
#!/bin/bash if [ -z $CC ]; then CC=cc fi $CC -Os -march=native -mtune=native cache/cached_tree.c micronfs.c nfsls.c rpc_serializer.c -o nfsls $@
/* * Copyright © 2019 camunda services GmbH (info@camunda.com) * * 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 ...
program inverse use cholesky use cudafor use cublas use nvtx integer, parameter :: n=1024 complex(8):: A_h(n,n),B_h(n,n) complex(8),device :: B(n,n) real*8:: x,y,threshold=1.d-14 integer:: info type(dim3):: threads type(cudaEvent):: startEvent,stopEvent type(cusolverDnHandle):: h real:: time logical:: print=.false. i...