text
stringlengths
27
775k
use strict; use warnings; use Errno; use IO::Socket; use BSD::Socket::Splice qw(setsplice getsplice geterror); use Test::More tests => 15; my $sl = IO::Socket::INET->new( Proto => "tcp", Listen => 1, LocalAddr => "127.0.0.1", ) or die "server listen failed: $!"; my $rc = IO::Socket::INET->new( Proto ...
using System; using System.Collections.Generic; using Estudo01; namespace Estudo01 { // Classes e métodos selados. public /*sealed*/ class Professor : Pessoa { public double Salario { get; set; } public /*sealed*/ override void Apresentar() { Console.WriteLine($"Olá, So...
package httpmethod import ( "testing" "github.com/mtojek/go-url-fuzzer/configuration" "github.com/mtojek/go-url-fuzzer/flow/messages" "github.com/stretchr/testify/assert" ) func TestNewEntryProducer(t *testing.T) { assert := assert.New(t) // given methods := []string{"method_a", "method_b"} builder := confi...
# How to Contribute Welcome, and thanks for considering contributing! In order to make our review/development process easier, we have some guidelines to help you figure out how to contribute to Affiliates. ## Reporting Issues We use [Bugzilla][] to track issues and bugs for Firefox Affiliates. Any issues with the w...
# Copyright (C) 2021 Clinton Garwood # MIT Open Source Initiative Approved License # hw_assignment_5_clinton.py # CIS-135 Python # Homework Assignment #5 - Integer Evaluation # Code Summary: # This application takes three numbers (integers) from a # user, and evaluates the numbers to determine the highest # a...
package org.thingsboard.server.actors.application; import lombok.Getter; import org.thingsboard.server.common.data.id.ComputationId; public class ComputationDeleteMessage { @Getter private final ComputationId computationId; public ComputationDeleteMessage(ComputationId computationId) { this.compu...
class MembershipCount @queue = :metrics extend MetricsHelper extend CapsuleHelper # Count current members, split by level def self.perform # Get all members organisations = CapsuleCRM::Organisation.find_all(:tag => 'Membership') # Group by level grouped = organisations.group_by{|org...
import Product from '../models/Products.model' export const createProduct = async (req, res) => { const {name, category, price, imgURL} = req.body const newProduct = new Product({ name, category, price, imgURL }) const product = await newProduct.save() res.status(20...
using Application.Boundaries.CreateCustomer.Validators; using Infrastructure.CommandHandlerBase.Contracts; using Infrastructure.CommandHandlerBase.Implementations; using Infrastructure.CommandHandlerBase.Messages; using System; using System.Collections.Generic; using System.Linq; namespace Application.Boundaries.Crea...
FactoryGirl.define do sequence(:registered_name) { |n| "Financial Advice #{n} Ltd." } factory :firm, aliases: [:publishable_firm, :onboarded_firm] do fca_number registered_name website_address { Faker::Internet.url } in_person_advice_methods { create_list(:in_person_advice_method, rand(1..3)) } ...
# frozen_string_literal: true require 'spec_helper' require 'puppet-debugger' require 'puppet-debugger/plugin_test_helper' describe :types do include_examples 'plugin_tests' let(:args) { [] } it 'runs' do expect(plugin.run(args)).to match(/service/) end describe 'types' do let(:input) do 'ty...
# https://leetcode.com/problems/department-top-three-salaries/ WITH CTE as (SELECT *, dense_rank() OVER (Partition by DepartmentId ORDER BY Salary desc) as salRank FROM Employee ) SELECT d.Name as Department, e.Name as Employee, e.Salary as Salary FROM Department d JOIN CTE e ON d.Id = e.DepartmentI...
-- LegalEntityCountryCode must contain a valid three character GENC country code. U.S. Territories and Freely -- Associated States must be submitted with country code = USA and their state/territory code; they cannot be submitted -- with their GENC country code. SELECT dafa.row_number, dafa.legal_entity_country...
import { IWorktopListState } from './worktop-list.state'; import { IDecorboardListState } from './decorboard-list.state'; import { IFoilListState } from './foil-list.state'; import { IAccessoryListState } from './accessory-list.state'; import { IApplianceListState } from './appliance-list.state'; export interfac...
DESCRIPTION Build images used for system tests. USAGE ./build.sh <library_name> [--images <image_names>] [--weblog-variant <variant_name>] <library_name> can be one of cpp, dotnet, golang, java, nodejs, php, python or ruby. More info on https://github.com/DataDog/system-tests/blob/master/docs/CLI/build.md...
new function () { var a = 1; b(this.constructor.arguments.c); };
default['wpblog']['mysql']['instance_name'] = 'wpdb' default['wpblog']['mysql']['port'] = '3306' default['wpblog']['mysql']['version'] = '5.7' default['wpblog']['mysql']['prefix'] = 'wp_' default['wpblog']['mysql']['charset'] = 'utf8' default['wpblog']['mysql']['collate'] = '' default['wpblog']['mysql']['wpuser'] = 'wp...
(ns my-money.app.controller.navigation-test (:require [cljs.test :refer-macros [is are deftest testing use-fixtures]] [my-money.app.state :as state] [my-money.app.controller.navigation :as nc] [tuck.core :as tuck])) (deftest test-set-in-progress (testing "Setting in progress to ...
//------------------------------------------------------------------------------ // <自動產生的> // 這段程式碼是由工具產生的。 // // 變更這個檔案可能會導致不正確的行為,而且如果已重新產生 // 程式碼,則會遺失變更。 // </自動產生的> //------------------------------------------------------------------------------ namespace RunningAccount_7324.backendweb { public...
<?php namespace CWM\BroadWorksConnector\Ocip\Models; /** * CollaborateRoomScheduleScheduleOneTime * * @Groups [{"id":"c0d21ef9ba207c335d8347e5172fce1d:1150","type":"sequence"}] */ class CollaborateRoomScheduleScheduleOneTime { /** * @ElementName startTime * @Type string * @Group c0d21ef9ba207c...
<?php /** * This file is automatically generated by the wp_install.sh * * @file Config.php */ namespace Base; class Config { public function __construct() { // For our purposes, the theme name is the folder name that holds the WP theme. $this->theme_name = ( basename( dirname( dirname( __FILE__ ) ) ) ); ...
a. TypeError: fizzbuzz() missing 1 required positional argument b. No google, just knowledge c. When a function with positional parameters is called, all parameters must be provided to it
package com.spitchenko.pokeapp.component.databinding.adapters import android.widget.TextView import androidx.databinding.BindingAdapter import com.spitchenko.pokeapp.component.messaging.Message import com.spitchenko.pokeapp.component.messaging.toCharSequence @BindingAdapter("android:text") fun TextView.setMessage(mes...
package com.sike.handler; import com.sike.entity.user.RoleEntity; import com.sike.entity.user.RolePermissionEntity; import com.sike.entity.user.UserEntity; import com.sike.exception.BusinessException; import com.sike.exception.ExceptionCodeEnum; import com.sike.permission.PermissionAuthService; import com.sike.permiss...
// Copyright (c) 2016, Alexander Johr. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'dart:async'; import 'package:js/js.dart'; import 'package:redmine_spent_time_visualizer/spent_time_visualizer.dart'; SpiderChart...
//B template <int mod> struct ModInt{ int n; ModInt():n(0){} ModInt(int n_):n(n_ >= 0 ? n_%mod : mod - ((-n_)%mod) ){} ModInt &operator+=(const ModInt &p){ if((n+=p.n) >= mod)n-=mod; return *this; } ModInt &operator-=(const ModInt &p){ n+=mod-p.n; if(n >= mod)n-=mod; return *this; } ...
# Summary * [Workshop](README.md) * [Create account and get cluster](GETSTARTED.md) * [Setup CLI Access for the cluster](exercise-0/README.md) * [Exercise 1: Using OpenShift](exercise-1/README.md) * [Exercise 2: Logging and Monitoring](exercise-2/README.md) * [Exercise 3: Metrics and Dashboards](ex...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Traits\AppModel; class PropertyBookingPayment extends Model { use AppModel; use SoftDeletes; protected $table = 'property_booking_payments'; public $timestamps = true; prot...
--- layout: post title: Two Treatment Temperature Trial date: '2016-12-22' categories: ChOAS tag: oyster tag: temperature tag: acidification --- I went out to Manchester yesterday and checked on the TripleT (Two Treatment Trial) project. Oysters are split between two tanks. One (on the left) getting cold water and t...
#!/bin/bash SERVER=$1 for i in `cat $SERVER` do echo $i ssh $i -C " yum clean all && yum install ipmitool OpenIPMI* -y " ssh $i -C " service ipmi start and chkconfig impi on " done
using System.Windows.Markup; namespace wpf_material_dialogs.Interfaces { /// <summary> /// Interface IButtons /// Implements the <see cref="IAddChild" /> /// </summary> /// <seealso cref="IAddChild" /> /// <remarks>This is used to identify UserControl objects that can be used as buttons.</rema...
/* rules = [ "class:scalafix.test.NoDummy", ] */ // An anchor disable rules until the end of a file // scalafix:off NoDummy package test.escapeHatch object AnchorEOF { object Dummy }
package tests.rescala.fullmv.mirrors import org.scalatest.funsuite.AnyFunSuite import rescala.fullmv.DistributedFullMVApi.{ FullMVEngine, FullMVTurnLocalClone, SerializationGraphTracking, FullMVTurnImpl, SubsumableLock } import rescala.fullmv.sgt.synchronization.{Blocked, Locked, SubsumableLock, Successful} import ...
<?php /** * Dida Framework -- PHP轻量级快速开发框架 * 版权所有 (c) 上海宙品信息科技有限公司 * * 官网: <https://github.com/zeupin/dida> * Gitee: <https://gitee.com/zeupin/dida> */ use \Dida\Log\Log; use \Dida\Log\Logger; $test_start = microtime(); require __DIR__ . "/_bootstrap.php"; DidaTest::section("Log"); $loggerSetting = [ "cl...
fun String.invoke() = this val some = "" fun sss() { val some = 10 <!INAPPLICABLE_CANDIDATE!>some<!>() // Should be inapplicable }
package com.shafeeq.ucrbook.ucridebook.app.model; public enum VehicleType { SEDAN, HATCHBACK, LUXURY }
--- title: C6527 ms.date: 11/04/2016 ms.topic: reference f1_keywords: - C6527 helpviewer_keywords: - C6527 ms.assetid: 5ebb6279-0f75-4566-a5f3-a47834de9625 author: mikeblome ms.author: mblome manager: wpickett ms.workload: - multiple ms.openlocfilehash: 735d51b418f94ada4aef90347cadc885cfd8b58c ms.sourcegitcommit: 94b3a...
using FASTER.core; namespace Zeus.Storage.Faster.Tests.Utils { internal static class Comparers { internal class IntComparer : IFasterEqualityComparer<int> { public static IntComparer Instance { get; } = new IntComparer(); public long GetHashCode64(ref int k) ...
namespace Elephant.Common { /// <summary> /// Interface with an <see cref="Id"/> property. /// </summary> public interface IId { /// <summary> /// Unique identifier. /// </summary> int Id { get; set; } } }
# # Cookbook Name:: hana-studio # Resource:: sap_media # # Copyright 2016, SAP # # 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 # ...
// SPDX-FileCopyrightText: 2020 Ethel Morgan // // SPDX-License-Identifier: MIT package controlpoint import ( "errors" "math/rand" "sync" "github.com/ethulhu/helix/upnpav" ) type ( Queue interface { Skip() Current() (upnpav.Item, bool) Next() (upnpav.Item, bool) } TrackList struct { items map[int]u...
from __future__ import annotations import logging from functools import wraps import maya from CaseInsensitiveDict import CaseInsensitiveDict from async_property import async_property from roblox.abc import Group as _Group from roblox.abc import GroupMember as _GroupMember from roblox.abc import Role as _Role from r...
package logger import ( "io" "log" "os" "sync" ) func NewFileLogger(filepath string, prefix string) *log.Logger { f, err := os.OpenFile("log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { panic(err) } logger := log.New(f, prefix+" ", log.Ldate|log.Ltime|log.Lshortfile|log.LUTC) return logge...
using System; using Take.Elephant.Sql; namespace Take.Elephant.Tests.Sql { public interface ISqlFixture : IDisposable { IDatabaseDriver DatabaseDriver { get; } string ConnectionString { get; } void DropTable(string schemaName, string tableName); } }
# GenServer test A quick test making a GenServer that keeps track of how many messages it has received. ``` $ iex -S mix Erlang/OTP 21 [erts-10.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace] Compiling 1 file (.ex) Generated gen_server_demo app Interactive Elixir (1.6.6) - press Ctrl+C...
/* * Duy Nguyen - duy@cs.brown.edu * May 18, 2011 */ #include <pthread.h> #include <utils/SHA256.h> static pthread_mutex_t _sha256Mutex = PTHREAD_MUTEX_INITIALIZER; MySHA256* MySHA256::_instance = NULL; MySHA256::MySHA256(){ } MySHA256* MySHA256::getInstance(){ if(_instance == NULL){ pthread_mutex_...
require "rails_helper" describe LoanAlerts::PriorityGrouping do describe "for Not Drawn alert" do let(:start_date) { alert.start_date } let!(:lender) { FactoryGirl.create(:lender) } let!(:overdue_priority_loan) do FactoryGirl.create( :loan, :offered, lender: lender, ...
import { SphereTracingScene } from './../../SphereTracingScene'; import * as PULSAR from './../../Window'; import reflectionFragmentShader from './shader/reflection.fs'; import reflectionVertexShader from './shader/reflection.vs'; export class Application { public main(): void { const window: PULSAR.Wind...
from .core import _Value class Float(_Value): __slots__ = () def incr(self, value=1): self._memoryview[0] = value __iadd__ = incr def _get_size(self): return 8 def _get_type(self): return ('d', 'level 8 float') def set(self, value): self._memoryview[0] = va...
//! //! The semantic analyzer scope type item index. //! use std::collections::HashMap; use std::sync::RwLock; use lazy_static::lazy_static; use crate::semantic::scope::intrinsic::IntrinsicTypeId; /// /// The type item index where the unique IDs for all declared types are recorded. /// /// It is initialized with so...
#proc1 = lambda { |arg| p arg } #proc1.call( '다현', '채영') # => wrong number of arguments (given 2, expected 1) (ArgumentError) #proc2 = lambda { |arg,arg2| p "#{arg} #{arg2}" } #proc2.call( '다현', '채영') proc3 = lambda { |arg| p arg } proc3.call() # => wrong number of arguments (given 0, expected 1) (ArgumentError)
# server-based syntax # ====================== # Defines a single server with a list of roles and multiple properties. # You can define all roles on a single server, or split them: server "thecloud12.mycpnv.ch", user: "maw11_12", ssh_options: { user: 'maw11_12', keys: %w(~/.ssh/swisscenter), forward_agent: false...
package com.capitalone.dashboard.misc; public class HygieiaException extends Exception { private static final long serialVersionUID = 4596406816345733781L; public static final int NOTHING_TO_UPDATE = 0; public static final int JSON_FORMAT_ERROR = -1; public static final int COLLECTOR_CREATE_ERROR = -10; ...
/* * Copyright (C) 2013-2016 Rinde van Lon, iMinds-DistriNet, KU Leuven * * 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 * * Unl...
package GraspPatterns; public class SalesLineItem { private int quantity; private ProductDesc productDesc; private double discount; private double tax; SalesLineItem(ProductDesc productDesc, int quantity, double discount) { this.productDesc = productDesc; this.quantity ...
import { AccessoryConfig, AccessoryPlugin, API, Logging, Service } from 'homebridge'; import { Humidifier2 } from './humidifier2'; export class HumidifierAccessory implements AccessoryPlugin { client: Humidifier2; readonly infoService: Service; readonly displayService: Service; readonly humidifierService: Ser...
import BlogProviderFc2 from './fc2'; import BlogProviderLivedoor from './livedoor'; import BlogProviderSeesaa from './seesaa'; import BlogProviderAmeba from './ameba'; import BlogProviderNinjya from './ninjya'; import BlogProviderRakuten from './rakuten'; import BlogProviderCocolog from './cocolog'; import BlogProvider...
package utilities; import java.awt.Color; import java.awt.Font; public class RichText { private String text; private Font font; private float fontSize; private Color textColor; public RichText(String text, Font font, float size, Color c) { this.text = text; this.font = font; fontSize = size; textColo...
import core.Bot import core.NetworkingClient import core.api.InitialData import core.api.MatchState import core.api.Response import core.api.UnitType /** Example Kotlin bot implementation for Planetization game. */ class MyBot : Bot { lateinit var data: InitialData; // Called only once before the match start...
require 'sinatra/base' require 'airbrake' Airbrake.configure do |c| c.project_id = 142535 c.project_key = 'c25391b87ebc657115438d5f134c59f1' # Display debug output. c.logger.level = Logger::DEBUG end class MyApp < Sinatra::Base use Airbrake::Rack::Middleware get('/') { # Indirectly raise a ZeroDivis...
from django.forms import Form, CharField, PasswordInput from django.contrib.auth.models import User class RegistrationForm(Form): username = CharField(label='Username: ', max_length=50) password = CharField(widget=PasswordInput) def is_valid(self): valid = super (Form, self).is_valid() if ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataTools.Graphs.EdgeWeightedDirectedGraph { using Collections; /// <summary> /// The EdgeWeightedDigraph class represents an edge-weighted digraph of vertices named 0 through V-1...
SELECT non2.nonprofits_id, non2.name as charity, weight as similarity FROM giving.nonprofit_twitter_edges as edges, giving.nonprofits as non, giving.nonprofits as non2 WHERE non.ein = 'XX-XXXXXXX' and non.twitter_name = edges.source and non2.twitter_name = edges.target UNION SELECT non2.nonprofits_id, non2.name as ch...
# Scaffold Market [![](https://img.shields.io/travis/ant-design/scaffold-market.svg?style=flat-square)](https://travis-ci.org/ant-design/scaffold-market) - All Scaffolds: http://scaffold.ant.design/ - Submit new scaffold: http://scaffold.ant.design/#/contribute - Ant Design: https://ant.design/ - Ant Design Pro: http...
package weco.storage_service import java.time.Instant import org.scalatest.funspec.AnyFunSpec import org.scalatest.matchers.should.Matchers import weco.storage_service.generators.{ ExternalIdentifierGenerators, StorageSpaceGenerators } import weco.storage_service.ingests.models._ import weco.storage.fixtures.S3Fi...
#!/usr/bin/python # -*- coding: utf-8 -*- """Start our application.""" from flask import g from flask_babel import Babel from api.src.config.create_app import create_app app = create_app() babel = Babel(app) app.run(**app.config.get_namespace('RUN_')) @babel.timezoneselector def get_timezone(): """Set the user...
# frozen_string_literal: true module Armadillo class Configuration attr_accessor :rails_config, :envs, :position, :environments def setup! @environments = [] @envs.to_a.each { |env| @environments << Environment.new(env) } mount! end def mount! return unless current&.show ...
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
package org.dave.bats.util.serialization; public @interface SerializationHandler { Class readClass() default void.class; Class writeClass() default void.class; }
package game import ai.MiniMax import game.Implicit.convertToPlayer import game.boards.implementations.Board2dArray import game.types.Position import org.scalacheck.Gen import org.scalatest.prop.GeneratorDrivenPropertyChecks import org.scalatest.{FlatSpec, Matchers} import scala.collection.immutable.NumericRange cla...
# document and view classes for MFC. import win32ui import win32con from . import object from . import window class View(window.Wnd): def __init__(self, initobj): window.Wnd.__init__(self, initobj) def OnInitialUpdate(self): pass # Simple control based views. class CtrlView(View): def _...
--- title: In-cluster Deployment weight: 10 --- A common use-case for any Kubernetes web UI is to deploy it in-cluster and set up an ingress server for having it available to users. We maintain a simple/vanilla [file](https://github.com/kinvolk/headlamp/blob/main/kubernetes-headlamp.yaml) for setting up a Headlamp de...
import prevIcon from "./assets/icon-prev.svg"; import nextIcon from "./assets/icon-next.svg"; import {Box} from "@material-ui/core"; import React from "react"; import styles from './style/HarPaging.module.sass' import numeral from 'numeral'; interface HarPagingProps { showPageNumber?: boolean; } export const HarP...
//import javax.inject.Inject //import play.api.http.{DefaultHttpFilters, HttpFilters} //import play.filters.cors.CORSFilter // //class Filters @Inject() (corsFilter: CORSFilter) extends DefaultHttpFilters { // override def val filters = Seq(corsFilter.Filters.super) //}
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; namespace vsteam_lib.Test.Provider { [TestClass] [ExcludeFromCodeCoverage] public class FeedTests { [TestMethod] public void Feed_Constructor() { // Arrange var obj = BaseTests.Lo...
/* 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 writing, software distributed under the License i...
package edu.cornell.cs.apl.viaduct.errors import edu.cornell.cs.apl.prettyprinting.Document import edu.cornell.cs.apl.viaduct.syntax.HasSourceLocation /** * Thrown when a `break`, `continue`, or a similar statement occurs outside the scope of a loop. */ class JumpOutsideLoopScopeError(val node: HasSourceLocation) :...
import matplotlib.pyplot as plt import matplotlib.colors as colors import matplotlib.patches as patch from matplotlib import ticker import numpy as np from astropy.io import fits from copy import copy from argparse import ArgumentParser parser = ArgumentParser(prog='Plot continuum', description='Free free emission fro...
using FluentAssertions; using Xunit; using AutoPipe.Modifications; namespace AutoPipe.Tests.Units { public class ProcessorMatcherByTypeTests { [Fact] public void Instance_ReturnsTrue_WhenTheSameTypeIsPassed() { var processor = new TestProcessor(() => { }); new P...
Changelog ========= 2016-02-11 Load Balancer added The script will install haproxy and create a new instance listening on http/80. Requests are forwarded to web1:7777 and web2:7777. Run as root: lib/templates/root/setup-proxy.sh 2016-02-11 PS3: provisioning of clu...
using System.Management.Automation; using Microsoft.TeamFoundation.Core.WebApi; using Microsoft.TeamFoundation.SourceControl.WebApi; using Microsoft.TeamFoundation.Wiki.WebApi; using TfsCmdlets.Extensions; namespace TfsCmdlets.Cmdlets.Wiki { /// <summary> /// Creates a new Wiki repository in a team project. ...
SELECT * FROM " + table + " WHERE SELECT * FROM " + table + " ORDER BY RANDOM() LIMIT 1 SELECT * FROM " + table; SELECT * FROM " + table + " WHERE " + QuoteFields.TEXT + " IS NOT NULL ORDER BY RANDOM() LIMIT 1
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
/*Copyright 2019 Steve Meckl 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 writing, software distrib...
require File.expand_path('../../support_helper', __FILE__) def register_seed_engines clear_engine_instances file = nil register_engine(file: file, path: 'test/framework/core', platform_path: 'test/framework') register_engine(file: file, path: 'test/framework/seed_one', platform_path: 'test/framework') ...
package com.learn.tablayout; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import butterknife.BindView; import butterknife.ButterKnife; public class MainActivity extends AppCompatActivity { ...
require 'test/unit' require 'rbconfig' class TestRbConfig < Test::Unit::TestCase def test_sitedirs RbConfig::MAKEFILE_CONFIG.each do |key, val| next unless /\Asite(?!arch)/ =~ key assert_match(/(?:\$\(|\/)site/, val, key) end end def test_vendordirs RbConfig::MAKEFILE_CONFIG.each do |key...
"""File operations for this integration.""" import shutil import os from .const import ( LOVELACE_CARD_DIR, LOVELACE_CUSTOM_CARDS, LOVELACE_DASHBOARD_URL_PATH, LOVELACE_DIR, ) from .share import get_hass async def setup_files() -> None: """Setup files for this integration.""" await update_fi...
<?php namespace HotspotMap\Model\ORM; class PlaceModel { public $latitude = 0; public $longitude = 0; public $address = ""; public $country = ""; public $town = ""; public $name = ""; public $distance = 0; public $description = ""; public $validated = 0; public $copy_of = 0; ...
/** * Copyright 2014 CMBI (contact: <Coos.Baakman@radboudumc.nl>) * * 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 b...
// A sample project to use ALL THE SYNTAX FEATURES fn main() { println!("Hello, world!"); let number: i32 = 42; let (x,y,z) = (1,2,3); let small_int:i8 = number as i8; // Unsafe? let small_int:i32 = small_int as i32 + 212; // Shadowing! let mut thing = 42; thing += 106; print_int(thing)...
### 下载 MM 演示 直接从应用程序下载最后一场比赛(官方竞技)的 Demo 。每次 CSGO 关闭时应用程序都会发送一条通知,邀请您下载最新的 Demo 。 ### 分享链接 使用分享链接下载 Demo,将分享链接发送至第三方应用程序以分享您的 Demo 。
unless ENV['COVERAGE'].nil? require "simplecov" require "simplecov-gem-profile" SimpleCov.start "gem" end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rspec' require 'clickmeetings' require 'pry-byebug' require 'webmock/rspec' Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {...
package example import org.komapper.annotation.KomapperAutoIncrement import org.komapper.annotation.KomapperColumn import org.komapper.annotation.KomapperCreatedAt import org.komapper.annotation.KomapperEntityDef import org.komapper.annotation.KomapperId import org.komapper.annotation.KomapperUpdatedAt import org.koma...
import { SfdxProject } from "@salesforce/core"; import { isNullOrUndefined } from "util"; import { UX } from "@salesforce/command"; const Logger = require("pino"); const NodeCache = require("node-cache"); export enum LoggerLevel { TRACE = 10, DEBUG = 20, INFO = 30, WARN = 40, ERROR = 50, FATAL = 60, } expo...
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using Bogus; namespace App; [MemoryDiagnoser] [GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)] [CategoriesColumn] public class BookSerializeBenchmark { private List<Book> _books = new(); private readonly Newtonsoft.Json.JsonSerializerS...
# Release Checklist ## Documentation - [ ] Quickstart verified working and up-to-date - [ ] Tutorial verified working and up-to-date - [ ] Fidesdemo verified working and up-to-date - [ ] New/updated API endpoints described in the Guides - [ ] New/updated API endpoints included in the Postman collections - [ ] New ta...
rm ./out.tar rm -rf ./perf/payloadFolder mkdir ./perf/payloadFolder rm -rf ./perf/output mkdir ./perf/output rm -rf ./perf/xmlSource mkdir ./perf/xmlSource rm -rf ./perf/jsonSource mkdir ./perf/jsonSource rm -rf ./perf/xmlGenerated mkdir ./perf/xmlGenerated rm -rf ./perf/jsonGenerated mkdir ./perf/jsonGener...
%%%------------------------------------------------------------------- %%% @author thomasguenzel %%% @copyright (C) 2016, <COMPANY> %%% @doc %%% %%% @end %%% Created : 17. Jul 2016 22:14 %%%------------------------------------------------------------------- -module(ms_ctx_infer). -author("thomasguenzel"). %% API -expo...
A* Package for Go ================= [![Build Status](https://travis-ci.org/samuel/go-astar.png)](https://travis-ci.org/samuel/go-astar) This package is just a code example of implementing A* in Go. It's probably not suitable for any real use.