text
stringlengths
27
775k
namespace JKorTech.Extensive_Engineer_Report.TagModules { public class TagAutopilot : PartModule { } }
using GameServer.Server; namespace GameServer.Network.PacketList { public sealed class CpQuitGame : IRecvPacket { public void Process(byte[] buffer, IConnection connection) { Authentication.Quit(connection.Index); } } }
package object lc { /** Lambda Term ADT, either * - an Atom, * - an Application, * - or an Abstraction. */ sealed trait Term extends Comparable with Sizable with Occurrence with Applicable with Show /** Atoms, either * - a Variable, * - or an Atomic Constant. */ sealed trait At...
package com.flxrs.dankchat.chat import android.annotation.SuppressLint import androidx.fragment.app.Fragment import androidx.recyclerview.widget.RecyclerView import androidx.viewpager2.adapter.FragmentStateAdapter class ChatTabAdapter(parentFragment: Fragment) : FragmentStateAdapter(parentFragment) { private val...
package com.stemaker.arbeitsbericht.data import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class BillData() : ViewModel() { val name = MutableLiveData<String>().apply { value = ""} val street = MutableLiveData<String>().apply { value = ""} val zip = MutableLiveData<String>().ap...
import isPrimitive from './isPrimitive' import isType from './isType' export interface CloneInterface extends Date, RegExp, Function { [propName: string]: any constructor: ObjectConstructor } /** * 深度克隆一个对象, 即使是包含了日期、正则、函数. 对于函数即使 clone 过, 也能拿到正确的 `this`. * * @param {*} obj 待克隆的对象 * @return {*} 深度克隆对象 *...
import {Router, Request, Response} from "express"; const router = Router(); router.get('/', (request: Request, response: Response) => { response.send('Welcome to Stocks Yield API.'); }); export const mainRoutes = router;
// import 'core-js/fn/promise'; import 'core-js/fn/array/includes'; import 'core-js/fn/string/includes'; import 'core-js/fn/string/from-code-point';
/*------------------------------------------------------------------- -- 3 - Covering Indexes -- -- Summary: -- -- Written By: Andy Yun -------------------------------------------------------------------*/ USE AutoDealershipDemo GO SET STATISTICS IO ON GO DBCC FREEPROCCACHE GO ----- -- Setup IF EXI...
// HexaDecimal to Octal using User-defined Function #include<iostream> #include<math.h> #include<string.h> using namespace std; int HexDecToOct(char []); int main() { char hexDecNum[10], octNum; cout<<"Enter the Hexadecimal Number: "; cin>>hexDecNum; octNum = HexDecToOct(hexDecNum); if(octNum==0) ...
package app_test import ( "github.com/weaveworks/scope/report" "github.com/weaveworks/scope/test/fixture" ) // StaticReport is used as a fixture in tests. It emulates an xfer.Collector. type StaticReport struct{} func (s StaticReport) Report() report.Report { return fixture.Report } func (s StaticReport) Add(repor...
using System; using System.Threading.Tasks; using JetBrains.Annotations; namespace AsyncRedux { /// <summary> /// Represents a type of <see cref="IStore{TState}" /> that can notify clients when actions are dispatched to it. /// </summary> /// <typeparam name="TState">The type of the state maintained b...
package redigotest import ( "log" "github.com/garyburd/redigo/redis" ) // SetInt tests the return value of "SET" command with integer or string. func SetInt(c redis.Conn, k string, v interface{}) { c.Do("DEL", k) log.Printf("SET k: %v, v: %v(%T)\n", k, v, v) c.Do("SET", k, v) ret, _ := redis.String(c.Do("DEBUG...
package five import junit.framework.TestCase import org.junit.Assert import org.junit.Test class JumpCycleChallengeTest : TestCase() { val challenge = JumpCycleChallenge() @Test fun testJumpsToExit() { val input = arrayOf(0, 3, 0, 1, -3) val result = challenge.jumpsToExit(inpu...
package com.ccsu.proxy; /** * Created by IntelliJ IDEA. * * @author: Xiaolei Zhu * @Date: 2019/1/2 * @Time: 23:01 * Description: */ public class SmallMarket implements SupperMarket{ @Override public void sellApple() { System.out.println("我开了个小超市卖苹果!"); } }
if File.exists?("#{::Rails.root.to_s}/config/mailer.yml") || ::Rails.env == "test" || ::Rails.env == "cucumber" require "action_mailer" if ::Rails.env == "test" || ::Rails.env == "cucumber" puts "Overriding ActionMailer config and setting test mode" ActionMailer::Base.delivery_method = :test else c = ...
from peewee import * from datetime import date db = SqliteDatabase('alumnos.db') class Person(Model): name = CharField(); birthday = DateField(); class Meta: database = db class Pet(Model): owner = ForeignKeyField(Person, backref='pets') name = CharField() animal_type = CharField() ...
import {NgModule} from "@angular/core"; import {RouterModule} from "@angular/router"; import {Store, StoreModule} from "@ngrx/store"; import {FormsModule} from "@angular/forms"; import {CommonModule} from "@angular/common"; import {NgrxStoreService, SharedModule} from "@smartsoft001/angular"; import {IEntity} from "@s...
package snownee.kiwi.inventory; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraftforge.items.IItemHandlerModifiable; /** * @since 2.7.0 */ public class InvHandlerWrapper implements IInventory { protected final IIte...
import urlutil if __name__ == "__main__": url = "http://gis.kinatomic.com/POIware/api" postData = "" body, header = urlutil.Post(url, postData) assert urlutil.HeaderResponseCode(header) == "HTTP/1.1 400 Bad Request" postData = "action=query" body, header = urlutil.Post(url, postData) assert urlutil.HeaderRes...
import Asteroid from "../Asteroid"; import { Message } from "discord.js"; export interface CommandInfo { name: string, alias: string[], desc: string, props: number, isAdminOnly: boolean } interface CommandExecutor { execute(client: Asteroid, msg: Message, args: string[]): void info: CommandInfo; } expo...
<?php namespace App\Http\Controllers; use App\Services\IIntentionService; use App\Services\TripMatcher; use App\Trip; use Carbon\Carbon; use Illuminate\Http\Request; class TripsController extends Controller { /** * @var IIntentionService */ private $service; private $matcher; public funct...
<?php class Customer extends CI_Model{ public function insertCustomer($addcustomer){ $this->db->insert('customers', $addcustomer); return true; } public function getCustomer(){ return $this->db->select('*') ->from('customers') ->where(['is_deleted'=>'no']) ->get() ->result_array(); } public funct...
@props([ 'status', 'color' => 'green' ]) @if ($status) <div {{ $attributes->merge(['class' => "bg-$color-500 rounded-md p-3 border-l-4 border-r-4 border-$color-800 font-medium text-sm text-gray-100"]) }}> {{ $status }} </div> @endif
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_RV_PLIC_H_ #define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_RV_PLIC_H_ /** * @file * @brief <a href="/hw/ip/rv_plic/doc/">PLIC</a> Devi...
import React from "react"; import styles from "./styles.scss"; import PropTypes from "prop-types"; import { STATES } from "./index"; const backdrop = (props) => { const { overlayState, clickDismiss = true, closeOverlay } = props; const inTransition = overlayState === STATES.OPENING || overlayState === STATES....
package vultura.factor import org.specs2.Specification class StructureOnlyTest extends Specification { override def is = StructureOnly(Array(2, 2), Array(Array(0, 1))) === StructureOnly(Array(2, 2), Array(Array(0, 1))) }
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as Ca...
package leetcode // https://leetcode-cn.com/problems/longest-substring-with-at-least-k-repeating-characters func longestSubstring(s string, k int) int { }
#!/usr/bin/env bash echo "Starting MariaDB database for development" STRATOS_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd)" echo $STRATOS_PATH docker stop stratos-db docker rm stratos-db ID=$(docker run --name stratos-db -d -e MYSQL_ROOT_PASSWORD=dbroot -p 3306:3306 splatform/stratos-mariadb) echo...
import React, { useEffect, useState } from 'react'; import { Breadcrumb, BreadcrumbItem, Dropdown, DropdownItem, DropdownToggle, DropdownPosition, Flex, FlexItem, Bullseye, } from '@patternfly/react-core'; import { PageHeader, PageHeaderTitle, } from '@redhat-cloud-services/frontend-components/Pag...
require 'luz/coupon' require 'luz/product' module Luz class Order attr_accessor :id attr_accessor :coupon attr_accessor :products def initialize(id, coupon = nil) @id = id.to_i; @coupon = coupon @products = Array.new end ...
using System; namespace wecker.logik { public static class Wecker { public static bool Wecker_gestartet() { return true; } public static bool Wecker_gestoppt() { return false; } public static DateTime Weckzeit_berechnen(TimeSpan restzeit, DateT...
# Cards kanban <doc-example title="Cards kanban" file="cards-kanban" />
namespace BlazorFluentUI { public class ElementMeasurements { public double Left { get; set; } public double Top { get; set; } public double Right { get; set; } public double Bottom { get; set; } public double X { get; set; } public double Y { get; set; } ...
unit Cocktails.Frames.HomePage; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, Cocktails.Frames.BasePage, FMX.Controls.Presentation, FMX.Objects, System.Actions, FMX.ActnList; type ...
/* * linux/drivers/s390/cio/cmf.c * * Linux on zSeries Channel Measurement Facility support * * Copyright 2000,2006 IBM Corporation * * Authors: Arnd Bergmann <arndb@de.ibm.com> * Cornelia Huck <cornelia.huck@de.ibm.com> * * original idea from Natarajan Krishnaswami <nkrishna@us.ibm.com> * * This progra...
package nilFS import ( "time" . "github.com/warpfork/go-errcat" "go.polydawn.net/rio/fs" ) func New() fs.FS { return &nilFS{fs.MustAbsolutePath("/-")} } type nilFS struct { basePath fs.AbsolutePath } func (afs *nilFS) BasePath() fs.AbsolutePath { return afs.basePath } func (afs *nilFS) OpenFile(path fs.Rel...
<?php class Movies { public $moviename1 = 'The maze runner1'; public $moviename2 = 'UP la casa flotante'; public $moviename3 = 'Buscando a Doris'; public $moviename4 = 'En busca de la felicidad'; public $moviename5 = 'Los 3 chiflados'; public $moviename6 = 'Soy leyenda'; public $moviename7 ...
class SearchMoviesQuery < BaseQuery def initialize(scope = Movie.all) @scope = scope end def call(ctx:) ctx.keys.reduce(@scope) { |acc, key| ctx[key].present? ? send("filter_by_#{key}", acc, ctx[key]) : acc } end private def filter_by_title(scope, title) scope.where('lower(title) ilike ?', "%...
#!/bin/bash alias restartWebApp="sudo systemctl restart email-web-app.service" $restartWebApp
var $numberOne = 0; var $numberTwo = 0; var $result = 0; var $operating = false; var $operator; var $preventMultiTap = false; var $summed = false; var $isDecimal = false; var $display = document.getElementById('inpDisplay'); var $spanOp = document.getElementById('spanOp'); var $numButtons = document.getElementsByCl...
# Archie - Hugo theme Archie is a minimal and clean theme for hugo with a markdown-ish UI. Forked from [Ezhil Theme](https://github.com/vividvilla/ezhil) ## Demo [Check the Demo](https://athul.github.io/archie/) hosted on GitHub Pages :smile: ![](/images/theme.png) ![](/images/archie-dark.png) ## Feature - Google A...
package net.henryhc.mocksniffer.trainingdata import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.parameters.options.default import com.github.ajalt.clikt.parameters.options.flag import com.github.ajalt.clikt.parameters.options.option import com.github.ajalt.clikt.parameters.options.required i...
// references: // 1. http://aperiodic.net/phil/scala/s-99/p17.scala package problems.p17 import org.scalatest.Assertions._ import scala.annotation.tailrec object P17 { def main(args: Array[String]): Unit = { // case 01 assert(split(0, List()) == List().splitAt(0)) // case 02 assert(split(1, List(...
{-# LANGUAGE GeneralizedNewtypeDeriving #-} module Network.QUIC.Types ( QUICResult , ErrorCode(..) , QUICError(..) , Context(..) , Packet(..) , LongHeaderType(..) , HeaderType(..) , Header(..) , LongPacketPayload(..) , FrameType(..) , Frame(..) , PacketNumber , StreamId , ConnectionId ...
--- title: setnextinchpevent weight: 1 hidden: true menuTitle: setnextinchpevent --- ## setnextinchpevent ```perl $quest->setnextinchpevent(int at_mob_percentage) ```
import 'package:flutter/material.dart'; import 'package:vehicle_registration/screens/User.dart'; import 'package:vehicle_registration/screens/Vehicle_profile.dart'; import 'package:vehicle_registration/screens/appbar.dart'; import 'package:vehicle_registration/screens/database.dart'; class Transmission extends Statefu...
#include <iostream> #include <fstream> int main() { std::ofstream myfile; myfile.open ("batchconv.bat"); myfile << "cd C:\\outputVideo\n"; for(int i = 0; i <= 922; i++) myfile << "texconv -f DXT1 -o \"C:\\\\outputVideo\\\\dds2\" -nologo video" << i << ".png\n"; myfile.close(); }
import { parseDictionary } from './SimpleDictionaryParser'; import { Trie } from './trie'; import { findWord } from './find'; import { WalkNext, WalkItem, compoundWalker, compoundWords } from './compoundWalker'; // cspell:ignore errorerror describe('Verify compound walker', () => { test('compoundWords', () => { ...
--- layout: slide title: "Welcome to out second slide!" --- "If I had a meme, I'd use a meme, but alas, I'm memeless." Use the left arrow to go back!
<?php // 本类由系统自动生成,仅供测试用途 class IndexAction extends Action { public function index() { $this->display('index'); } public function jiangu(){ $this->assign('tag', 'jiangu'); $this->display('jiangu'); } }
using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Markup; [assembly: AssemblyTitle("GitHub.Exports.Reactive")] [assembly: AssemblyDescription("GitHub interfaces for mef exports with reactive dependencies")] [assembly: Guid("e4ed0537-d1d9-44b6-9212-3096d7c3f7a1")] [assembly: XmlnsDef...
# qLibs Batches and shells to compile libraries: - nasm - zlib - python - boost - cmake - gdcm - itk - vtk
#dennyhalim.com param ( [Parameter(Mandatory=$true)] [string] $NamaService ) Get-Service $NamaService | Where {$_.status –eq 'Stopped'} | Start-Service
package reporter import ( "strings" "github.com/luispcosta/go-tt/core" ) const jsonFormat = "json" const csvFormat = "csv" const cliFormat = "cli" // AllowedFormats creates a map with the allowed report formats and their implementations func AllowedFormats() map[string]core.Reporter { allowedFormats := make(map[...
import type { WScrollbarRef } from '/@/components/Extra/Scrollbar' export interface AppTabUtilListItem { icon: string event: Fn } export interface AppTabContext { scrollRef: Ref<Nullable<WScrollbarRef>> x: Ref<number> y: Ref<number> ctxMenuShow: Ref<boolean> onTabClick: (name: string) => void onTabR...
import { Component, OnInit } from '@angular/core'; import { ProductsService } from './products.service'; @Component({ templateUrl: 'products.component.html' }) export class ProductsComponent implements OnInit{ constructor(private productService: ProductsService){ } products: any[]=[]; t...
<?php /** * This function returns * the Total no. of vowels * present in the given * string using a simple * method of looping * through all the * characters present in * the string. * * @param string $string * @return int $noOfVowels */ function countVowelsSimple(string $string) { if (empty($string))...
module DataMapper class Property class Raw < String length 2000 ## # The kind of primitive for this class # # @example # primitvie? # # @return [Boolean] # # @author lamb # @api semipublic def primitive?(value) value.kind_...
// Copyright 2019-2022 ChainSafe Systems // SPDX-License-Identifier: Apache-2.0, MIT use crate::{make_empty_map, make_map_with_root_and_bitwidth, FIRST_NON_SINGLETON_ADDR}; use address::{Address, Protocol}; use cid::Cid; use encoding::tuple::*; use encoding::Cbor; use fil_types::{ActorID, HAMT_BIT_WIDTH}; use ipld_blo...
# JavaProblems Repository for Java Practice Problems solved. ## Sources - HackerRank - LeetCode
module Ubi # Suppose to be html reader class Datum attr_accessor :data, :words, :links def initialize(data, words, links) # binding.pry @data = data @words = data.xpath(words).text @links = data.xpath(links).map { |a| a.values.join(' ') } end def xpath(path) data.xpat...
# Capacitacion-desarrollo Repositorio donde se alojaran todas las practicas mencionadas en Trello Para mantener un orden se agregaran todas las practicas de capacitacion y evolucion [Trello](https://trello.com/b/1E6JRT2o/sector-7g-proyectos-2018)
void foo() { long x0; long long x; unsigned long a; unsigned long long b; x = 4711ll; x0=4712l; a = 1l; b=2ll; }
namespace Byndyusoft.ModelResult.Converters { using System.Text.Json; public static class ConverterHelper { public static JsonEncodedText GetPropertyName(string name, JsonSerializerOptions options) { if (options.PropertyNamingPolicy != null) name = options.Prope...
import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; class ChannelModal extends StatefulWidget { final bool listen; final String name; final String type; final String event; final Function onTypeChanged; final Function onNameChanged; final Function onEventChanged; final Func...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. export enum Spell { Fire = 0, Water = 1, Thunder = 2, Aero = 3, Stone = 4 }
# frozen_string_literal: true module AnyCable module ExceptionsHandling # :nodoc: class << self def add_handler(block) handlers << procify(block) end alias_method :<<, :add_handler def notify(exp, method_name, message) handlers.each do |handler| handler.call(ex...
package hapi import ( "github.com/gin-gonic/gin" "reflect" ) type Controller interface { RouterRegister(group *gin.RouterGroup) RouterGroupName() (name string) Middlewares() (middlewares []gin.HandlerFunc) Version() string } type HandleFunc func() (httpMethod, routeUri, version string, handlerFunc gin.HandlerF...
<?php /** * 前台控制器基类 * @copyright(c) 2015 * @author AndyLau <i@windyland.com> * @package * @version V1.0.1 * @date 2015-6-8 */ class FrontAppBase extends AppBase{ var $_name = 'frontBase'; var $ctypes = array(); function __construct(){ parent::__construct(); /* 内容模型 */ $ctype_mod =& $this->load->m('con...
using Shuttle.Core.Contract; namespace Shuttle.OAuth { public static class OAuthConfigurationExtensions { public static void ApplyInvariants(this IOAuthConfiguration configuration) { Guard.AgainstNull(configuration, nameof(configuration)); Guard.AgainstNull...
[CmdletBinding()] param ( [Parameter(Mandatory = $true)] [String] $Server, [Parameter(Mandatory = $true)] [String] $Database, [Parameter(Mandatory = $true)] [String] $Identity ) begin {} process { $accessToken = (Get-AzAccessToken -ResourceUrl "https://database.windows.net")....
(function() { var noopfn = function() { }; var w = window; w.ga = w.ga || noopfn; var dl = w.dataLayer; if ( dl instanceof Object === false ) { return; } if ( dl.hide instanceof Object && typeof dl.hide.end === 'function' ) { dl.hide.end(); } if ( typeof dl.push === 'function' ) { dl.push = function(o) { ...
require 'puppetlabs_spec_helper/module_spec_helper' require 'puppet_x/xdt_namespace' require 'puppet_x/xdt_attribute' require 'nokogiri' describe XdtNamespace do xdt_namespace = XdtNamespace.new describe '#has_xdt_namespace?' do context 'given xml without namespace' do it 'returns false' d...
import { SapphireClient } from '@sapphire/framework'; import { container } from 'tsyringe'; import type { ClientOptions } from 'discord.js'; // Plugins import '@sapphire/plugin-i18next/register'; import '@sapphire/plugin-logger/register'; export class DasbyClient extends SapphireClient { public constructor(options?:...
# frozen_string_literal: true require 'rails_helper' RSpec.describe FiggyGraphql do let(:schema) { instance_double(GraphQL::Schema) } let(:client) { instance_double(GraphQL::Client) } let(:query) { instance_double(GraphQL::Client::OperationDefinition) } let(:data) do instance_double(GraphQL::Client::Respo...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // package aws import ( "github.com/aws/aws-sdk-go/service/sts" ) // GetAccountID gets the current AWS Account ID func (a *Client) GetAccountID() (string, error) { callerIdentityOutput, err := a.Service(...
--- layout: post title: "Test-Driven Development (TDD)" --- ## Contents {: .no_toc} * Table of Contents {:toc} ## Test-Driven Development (TDD) ## Development (ATDD / BDD)
import React from "react"; import { TouchableOpacity, } from "react-native"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs" import { Home, Portfolio, Market, Profile } from "../screens" import { COLORS } from "../constants" const Tab = createBottomTabNavigator() const Tabs = () => { ...
######################## Mesh Generation function with GMSH #################### function MeshGenerator(L,h1,h2,h3,hd,dpml,l0,ld,lpml) gmsh.initialize() gmsh.option.setNumber("General.Terminal", 1) gmsh.option.setNumber("Mesh.Algorithm", 6) gmsh.clear() gmsh.model.add("geometry") # name it whatever ...
import ipaddress import shutil import socket import subprocess from typing import Any, List, Optional, Set import os from pyroute2 import netns from wepwawet.ipr import IPR IPNetwork = ipaddress.IPv4Network | ipaddress.IPv6Network IPAddress = ipaddress.IPv4Address | ipaddress.IPv6Address PRIVATE_SUBNET_PREFIX = [ ...
Basic angular site. It will consume a restfull api and display it to the browser. To set up - clone and run npm install. Requires find-rep-api running on port 3000.
package org.jenkinsci.plugins.postbuildscript.service; import hudson.Util; import hudson.remoting.VirtualChannel; import jenkins.MasterToSlaveFileCallable; import java.io.File; import java.io.IOException; import java.nio.charset.Charset; public class LoadScriptContentCallable extends MasterToSlaveFileCallable<String...
import React from 'react'; export const resourceType = 'Functions'; export const namespaced = true; export const List = React.lazy(() => import('./FunctionList')); export const Details = React.lazy(() => import('./FunctionDetails')); export const resourceGraphConfig = (t, context) => ({ networkFlowKind: true, ne...
import { CdkHeaderRow } from '@angular/cdk/table'; export declare class NovoDataTableHeaderRow extends CdkHeaderRow { rowClass: string; role: string; }
using System; namespace Forms9Patch { /// <summary> /// Keyboard service. /// </summary> public interface IKeyboardService { /// <summary> /// Forces the device's on screen keyboard to be hidden. /// </summary> void Hide(); /// <summary> /// Gets a v...
extern crate modor; use modor::*; struct Action1; impl Action for Action1 { type Constraint = DependsOn<Action2>; //~^ error: overflow evaluating the requirement `modor::DependsOn<Action1>: Sized } struct Action2; impl Action for Action2 { type Constraint = DependsOn<Action1>; } fn main() {}
#ifndef Refal05RTS_H_ #define Refal05RTS_H_ #include <stddef.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L # define R05_NORETURN _Noreturn # define R05_NORETURN_DEFINED #elif defined(__cplusplus) && __cplusplus >= 201103L # define R05_N...
#!/usr/bin/env bash THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" ROOT_DIR="$THIS_DIR/../../.." SCRIPTS_DIR="$ROOT_DIR/scripts" . $SCRIPTS_DIR/lib/common.sh . $SCRIPTS_DIR/lib/aws.sh # sns_topic_exists() returns 0 if an SNS topic with the supplied ARN # exists, 1 otherwise. # # Usage: ...
/* * Realign.cpp * * Created on: Aug 24, 2015 * Author: fsedlaze */ #include "Realign.h" void Realigner::init() { //run through ref sequence and store a file * at the begining of each chr; myfile.open(Parameter::Instance()->ref_seq.c_str(), ifstream::in); if (!myfile.good()) { cout << "Fastq Parser: c...
package storage import ( "fmt" "os" "reflect" "unsafe" "github.com/edsrzf/mmap-go" ) type PersistentStorage struct { file *os.File mmaped mmap.MMap } func NewPersistentStorage() *PersistentStorage { return &PersistentStorage{} } func (ps *PersistentStorage) Open(filename string, length int) ([]uint64, er...
// SPDX-FileCopyrightText: 2019 thestr4ng3r <info@florianmaerkl.de> // SPDX-License-Identifier: LGPL-3.0-only #include "rz_util/rz_str_constpool.h" static void kv_fini(HtPPKv *kv) { free(kv->key); } RZ_API bool rz_str_constpool_init(RzStrConstPool *pool) { pool->ht = ht_pp_new(NULL, kv_fini, NULL); return pool->h...
require 'rails_helper' require 'spec_helper' RSpec.describe Event, type: :model do it 'hasn t a title,description,location,date' do event1 = Event.new(title: '', description: '', location: '', date: '', user_id: '', creator_id: '') expect(event1.valid?).to be(false) end describe 'ActiveRecord association...
<?php /** * @link https://github.com/ixocreate * @copyright IXOLIT GmbH * @license MIT License */ declare(strict_types=1); namespace Ixocreate\Test\Validation; use Ixocreate\Validation\Result\Result; use Ixocreate\Validation\ValidatableInterface; use Ixocreate\Validation\Validator; use PHPUnit\Framework\TestCase...
#pragma once #include "HelperMacros.h" #include "DynamicMatrix.h" #include "DynamicMatrixOperators.h" #include "StaticMatrix.h" #include "StaticMatrixOperators.h" #include "DynamicVector.h" #include "DynamicVectorOperators.h" #include "StaticVector.h" #include "StaticVectorOperators.h" #include "L...
using System.Collections.ObjectModel; using System.Threading.Tasks; using WtsXPlat.Core.Helpers; using WtsXPlat.Core.Models; using WtsXPlat.Core.Services; namespace WtsXPlat.Mobile.ViewModels { public class ListViewViewModel : Observable { private ObservableCollection<SampleOrder> _sampleData; ...
package WxMOO::Window::InputPane; use strict; use warnings; use v5.14; use Wx qw( wxTheClipboard :misc :textctrl :font :keycode ); use Wx::DND; use Wx::RichText qw( EVT_RICHTEXT_SELECTION_CHANGED ); use Wx::Event qw( EVT_TEXT EVT_TEXT_ENTER EVT_KEY_DOWN EVT_CHAR EVT_MIDDLE_UP ); use WxMOO::Prefs; use WxMOO::Utility; ...
using System; using System.IO; using System.Text; using System.Xml; using NUnit.Framework; using SIL.IO; using SIL.Xml; namespace SIL.Tests.Xml { [TestFixture] public class CanonicalXmlSettingsTests { [Test] public void CanonicalXmlReaderSettings_ForDocument_HaveCorrectSettings() { CheckReaderSettings(Can...
# Query Plan Visualize the performance of your MySQL or PostgreSQL queries with a sophisticated plan viewer. Supporting explain and analyze plans, improving the performance of your queries just got easier.