text
stringlengths
27
775k
#!/usr/bin/env bash echo "Running inference on" ${1} echo "Saving Results :" ${2} python3 eval.py \ --dataset cityscapes \ --arch network.sfnet_resnet.DeepR18_SF_deeply \ --inference_mode whole \ --scales 1 \ --split test \ --cv_split 0 \ --dump_images \ --ckpt_path ${2} \ --snapshot...
### CPU benchmark ```bash # Mini, one thread, all threads, 4 times overload apt-get install -y sysbench sysbench --test=cpu --cpu-max-prime=100000 run --num-threads=1 --max-requests=100 sysbench --test=cpu --cpu-max-prime=100000 run --num-threads=1 sysbench --test=cpu --cpu-max-prime=100000 run --num-threads=$(grep -c...
#!/bin/sh openstack user create --domain default --password $1 ceilometer openstack role add --project service --user ceilometer admin openstack service create --name ceilometer --description "Telemetry" metering openstack endpoint create --region RegionOne metering public http://$2:8777 openstack endpoint create --reg...
interface T { var <caret>foo: Int } class A(val t: T) : T { override var foo: Int get() = t.foo set(value) { t.foo = value } }
package com.expedia.graphql.test.integration import com.expedia.graphql.TopLevelObject import com.expedia.graphql.testSchemaConfig import com.expedia.graphql.toSchema import org.junit.jupiter.api.Test import kotlin.test.assertEquals class RecursiveInterfaceTest { @Test fun recursiveInterface() { val ...
<?php namespace AviationCode\Elasticsearch\Tests\Unit\Model\Aggregations\Metric; use AviationCode\Elasticsearch\Model\Aggregations\Metric\WeightedAvg; use AviationCode\Elasticsearch\Tests\Unit\TestCase; class WeightedAvgTest extends TestCase { /** @test */ public function it_translates_weighted_avg_aggregati...
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Sales\Block\Order; use Magento\Customer\Model\Session; use Magento\Framework\ObjectManagerInterface; use Magento\Framework\View\LayoutInterface; use Magento\Sales\Api\Data...
module DiscourseChat::Provider::MattermostProvider class MattermostCommandController < DiscourseChat::Provider::HookController requires_provider ::DiscourseChat::Provider::MattermostProvider::PROVIDER_NAME before_action :mattermost_token_valid?, only: :command skip_before_action :check_xhr, ...
package com.kongzi.view import android.arch.lifecycle.Observer import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.widget.RecyclerView import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.support.v7.widget...
import passport from 'passport'; import { Strategy as JwtStrategy, ExtractJwt, StrategyOptions } from 'passport-jwt'; import { Strategy as LocalStrategy } from 'passport-local'; import { secret } from './jwt.config'; import users from './users.config'; const options: StrategyOptions = { jwtFromRequest: ExtractJwt.f...
package org.zstack.zql.ast.visitors; import org.zstack.header.zql.ASTNode; import org.zstack.header.zql.ASTVisitor; public class LimitVisitor implements ASTVisitor<Integer, ASTNode.Limit> { @Override public Integer visit(ASTNode.Limit node) { return node.getLimit(); } }
# frozen_string_literal: true unless ENV['CI'] require 'simplecov' require 'dotenv' Dotenv.load('.env') end require 'capybara' require 'capybara/dsl' require 'capybara/cucumber' require 'selenium-webdriver' $LOAD_PATH << './lib' require 'site_prism' # To prevent natural cucumber load order require_relative '...
require 'test_helper' class StoreTest < ActiveSupport::TestCase test "save empty store entry" do s = Store.new assert_not s.save, "Saved an empty store entry" end test "save duplicate name" do s1 = Store.create(name: 'store1') assert s1.save, "Saving valid store" s2 = Store.create(name: 'sto...
const {expect} = require('chai'); const passwordValidate = require('./index'); describe('password-validate', () => { describe('configuration', () => { before(() => { passwordValidate.minimumLength = 3; passwordValidate.hasLowerCase = false; passwordValidate.hasUpperCase = false; passwordV...
namespace TDDMoney { public class CurrencyPair { public CurrencyPair(string from, string to) { this.from = from; this.to = to; } public override bool Equals(object obj) { CurrencyPair pair = (CurrencyPair)obj; return from ...
enum RoleType{ Admin = "Admin", // Can see /edit everything Contributor = "Contributor", // Can see most in detailed of the info from ascendent/descendant/siblings Limited = "Limited", //Can see public info and update his direct family Guest = "Guest", //Can only view and suggest mo...
// Copyright (c) 2020 Google LLC All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package com.google.idea.gn import com.intellij.testFramework.ParsingTestCase class ParseTest : ParsingTestCase("", "gn", true, GnParserDefinition()) { overr...
import { get } from 'lodash'; import { createSelector } from 'reselect'; import { IStoreState } from './types'; export const appSelector = (state: IStoreState) => state.app; export const appStatusSelector = (state: IStoreState) => state.app.appState; export const isAuthorizedSelector = createSelector(appSelector, (s...
#!/bin/bash source "$SCRIPTPATH/inc/app-stop.sh" echo echo -e "$YELLOW--->Autostart configuring...$ENDCOLOR" if IsSystemdSupported; then echo 'Using systemd' source "$SCRIPTPATH/inc/app-init-remove.sh" source "$SCRIPTPATH/inc/app-systemd-add.sh" source "$SCRIPTPATH/$APPNAME/$APPNAME-systemd-update.sh"...
declare module "complex.js" { declare class Complex { /** * A complex zero value (south pole on the Riemann Sphere). */ static ZERO: Complex; /** * A complex one instance. */ static ONE: Complex; /** * A complex infinity value (north pole on the Riemann Sphere). */ ...
interface MessageHandler<T extends any[] = any[]> { (sender: chrome.runtime.MessageSender, ...args: T): any; } interface MessageHandlersRecord { [type: string]: MessageHandler; } interface MessageObject<K extends string, U extends MessageHandler> { type: K; payload: PayloadType<U>; } type MessageObjectUnion<...
package components import chisel3._ import chisel3.util._ object UIntHolding { def apply(maximal: Int): UInt = { if(maximal > 1) { UInt(log2Ceil(maximal).W) } else if(maximal == 1) { UInt(1.W) } else { throw new RuntimeException("The maximal number UInt holds must be positive") } ...
use crate::constants::EPSILON; use crate::objects::*; use crate::{Material, Texture}; use rtbvh::{Bounds, Ray, RayPacket4, AABB}; #[cfg(feature = "object_caching")] use serde::{Deserialize, Serialize}; #[cfg_attr(feature = "object_caching", derive(Serialize, Deserialize))] #[derive(Debug, Clone)] pub struct Plane { ...
class SlackAuthApi def initialize(client_id, client_secret) @client_id = client_id @client_secret = client_secret end # https://api.slack.com/docs/oauth # https://api.slack.com/methods/oauth.access def get_token(code, redirect_uri) uri = URI.parse('https://slack.com/api/oauth.access') http = ...
import Swal from 'sweetalert2' import { submitUserFeedback} from './Places'; export function showFeedbackAlert(props){ Swal.fire({ title: 'How is this place?', icon: 'question', showCloseButton: true, allowEnterKey: false, // Button 1 showConfirmButton: true, confirmButtonText: 'Empty...
export * from './Footer'; export * from './GradeDistribution'; export * from './NotesBranding';
<?php namespace br\com\microservicePjDemo\router\controller; use stdClass; use fp\result\{ResSuccess, ResFailure, Result}; use fp\collections\{map\Map, seq\Seq}; use fp\db\{FDB, SQL, Row}; class Controller { private static $_instance = null; private function __construct(){} ...
package com.beyond7thsky.drivingschool.dashboard import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.findNavController import androidx.navigation.fragm...
from sklearn.metrics import accuracy_score from utils.metrics.Metrics import Metrics class ACC(Metrics): def __init__(self, if_use=True, gpu=False): super().__init__() self.name = 'acc' self.if_use = if_use self.model = None self.data_loader = None self.gpu = gpu ...
package resource import ( "reflect" "github.com/jt0/gomer/auth" "github.com/jt0/gomer/gomerr" ) type Resource interface { Metadata() Metadata Subject() auth.Subject DoAction(Action) (Resource, gomerr.Gomerr) setSelf(Resource) metadata() *metadata setMetadata(*metadata) setSubject(auth.Subject) } type Act...
#include <user_interface.h> #include <mem.h> #include <string.h> #include <stdlib.h> #include "webact.h" #include "web.h" #include "relays.h" #include "dhtsensors.h" //#define NDEBUG 1 #undef NDEBUG #include "debug.h" /** Logic */ enum {RelayNum=3}; static uint32_t relPeriods[RelayNum]= {16,160,1600}; static uint3...
package com.example.iparking.utils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import com.example.iparking.POIListActivity; import android.app.Activity; import android.app....
<!-- #include "./common/header.md" --> # Get-VSTeamQueue ## SYNOPSIS <!-- #include "./synopsis/Get-VSTeamQueue.md" --> ## SYNTAX ## DESCRIPTION <!-- #include "./synopsis/Get-VSTeamQueue.md" --> ## EXAMPLES ## PARAMETERS ### QueueName Name of the queue to return. ```yaml Type: String Parameter Sets: List ``` ...
#!/bin/env python # -*- coding: utf-8 -*- import numpy as np import pandas as pd import sys from .literature_values import * from .config import datadir from astropy.table import Table from scipy import integrate from scipy import interpolate from pystellibs import Kurucz from synphot import SpectralElement from tq...
import WBApplicationAdapter from 'wb-ui-core/adapters/application'; export default WBApplicationAdapter.extend({});
/*===========================================================================*\ * * * OpenMesh * * Copyright (C) 2001-2012 by Computer Graphics Group, RWTH Aachen * * ...
using System; using System.Text.RegularExpressions; using net.r_eg.Conari; using net.r_eg.Conari.Types; namespace snet { internal class Algorithms { protected Regex filter; public bool regXwildEssLambda(WCharPtr data, WCharPtr filter, IConari l) { return l.bind<Func<WCharP...
package com.github.tenebras.dbrepository.fixture import org.postgresql.util.PGInterval import java.math.BigDecimal import java.sql.DriverManager import java.sql.Time import java.time.ZonedDateTime import java.util.* enum class Status { YES, NO; } data class TestItem( val id: Int, val value: String, v...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace Tamarin { public class StatusComboBox : TamarinComboBox { public StatusComboBox(List<string> options, string selectedOption) : base("StatusComboBox", options, selectedOption) { } } }
alter table tenant add column twitterurl varchar(100); alter table tenant add column facebookurl varchar(100); alter table tenant add column emailid varchar(100); alter table tenant add column address varchar(300); alter table tenant add column contactnumber varchar(16); alter table tenant add column helplinenumber var...
Moon Invaders assets ==================== Add the following asset files to this folder. Only the ROM files are required. * `invaders.e` (ROM) * `invaders.f` (ROM) * `invaders.g` (ROM) * `invaders.h` (ROM) * `overlay.png` (colored gel overlay; default is supplied) * `background.png` (backdrop image, normally of the mo...
import { Component, OnInit } from '@angular/core'; import { User } from '../user'; import { Repository } from '../repository'; import { ProfileService } from '../profile.service'; @Component({ selector: 'app-profile', templateUrl: './profile.component.html', providers: [ ProfileService ], styleUrls: ['./profil...
#! /bin/sh rm -f sh1.txt #Step 2 : cab signsout resp=$(curl -s "http://localhost:8080/signOut?cabId=101") echo $resp >> sh1.txt if [ "$resp" = "true" ]; then echo "Sh1: Cab 101 signed out" else echo "Sh1: Cab 101 could not sign out" fi
package Hilligans.Network; import io.netty.channel.*; import io.netty.channel.group.ChannelGroup; import io.netty.channel.group.DefaultChannelGroup; import io.netty.handler.ssl.SslHandler; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GenericFutureListener; import io.netty.util.concurrent.Glo...
--- title: "goldfish" date: 2021-12-23 --- My grandma was taking my pet goldfish for a walk, sadly he escaped.<br/> he almost got driven over by my cat who was riding his bike!<br/> the goldfish died from an asthma attack 1 hour later...<br/>
package seedu.booking.logic.commands; import static java.util.Objects.requireNonNull; import java.util.Set; import seedu.booking.logic.commands.exceptions.CommandException; import seedu.booking.model.Model; import seedu.booking.model.ModelManager; import seedu.booking.model.Tag; import seedu.booking.model.venue.Venu...
/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University */ /* Copyright (c) 2011, 2012 Open Networking Foundation */ /* Copyright (c) 2012, 2013 Big Switch Networks, Inc. */ /* See the file LICENSE.loci which should have been included in the source distribution */ /************************...
(ns usecase.get-user (:require [domain.user])) (defn execute [{:keys [user-id]} repo] (let [user (domain.user/fetch-user (:user-query-repository repo) user-id)] (if user [user nil] [nil {:code 404 :message (str "user is not found: " user-id)}])))
using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Schema; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace AdaptiveCardsHelpBot.Helpers { public static class AdaptiveCardHelper { public static asyn...
#if defined(OS_LINUX) #include <Common/TimerDescriptor.h> #include <Common/Exception.h> #include <sys/timerfd.h> #include <fcntl.h> #include <unistd.h> namespace DB { namespace ErrorCodes { extern const int CANNOT_CREATE_TIMER; extern const int CANNOT_SET_TIMER_PERIOD; extern const int CANNOT_FCNTL; ...
--- layout: lug title: North-East Worcestershire website: http://www.new.lug.org.uk established_date: 2011/01 status: Starting last_update: 12/2011 categories: West-Midlands url: http://lug.org.uk/node/177 contact_address: mailto:neworcslug@gmail.com contact: Doug Mills mailing_list: https://mailman.lug.org.uk/mailman/...
import * as mongoose from "mongoose"; export const companyRegistrationSchema = new mongoose.Schema({ companyName: String, email: String, numTel: String, sujet: String, service: { type: String, enum: ["Consulting", "Coach", "Developpeur"] }, });
#Latest version can be found at: https://www.Speedtest.net/nl/apps/cli $DownloadURL = "https://install.speedtest.net/app/cli/ookla-speedtest-1.1.1-win64.zip" $DownloadLocation = "$($pwd.path)\SpeedtestCLI" try { if (-not (Test-Path $DownloadLocation)) { New-Item $DownloadLocation -ItemType Directory -Force ...
mod bg_attributes; pub mod cgb_color; pub mod color; pub mod lcd_control_flag; mod sprite_attributes; use self::bg_attributes::BgAttributes; use self::cgb_color::CGBColor; use self::color::Color; use self::lcd_control_flag::LcdControlFlag; use self::sprite_attributes::SpriteAttributes; use crate::bit_utils; use crate:...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
// Copyright (c) Microsoft Corporation. Licensed under the MIT License. namespace Microsoft.CST.OpenSource.FindSquats.Mutators { using System.Collections.Generic; using System.Linq; /// <summary> /// Generates mutations for if a prefix was added to the string. /// By default, we check for these pr...
module Mailfox module ApplicationHelper def error_messages_for(object, options = {}) messages = options[:length] ? [object.errors.full_messages[options[:length] - 1]] : object.errors.full_messages content_tag :ul, class: 'error-messages' do messages.each do |msg| concat conten...
package nick.ui import android.os.Build import android.text.Html import android.text.Spanned import dagger.Reusable import javax.inject.Inject @Reusable class HtmlWrapper @Inject constructor() { fun fromHtml(text: String): Spanned = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { Html.fromHtml(text...
/* * Copyright 2019 LinkedIn Corporation * All Rights Reserved. * * Licensed under the BSD 2-Clause License (the "License"). See License in the project root for * license information. */ package com.linkedin.android.litr.demo; import android.view.LayoutInflater; import android.view.ViewGroup; import androidx.an...
#!/usr/bin/perl -w use strict; use warnings; use Term::ANSIColor; use Getopt::Long; use Pod::Usage; my $app_version = 0.1; # my $opt_config = "$ENV{'HOME'}/.checkstylerc"; # my $opt_config = "checkvalastylerc"; my ($opt_quiet, $opt_silent, $opt_summary, $opt_lang, $opt_help, $opt_man, $opt_version); Getopt::Long::C...
@{ Layout = "_Layout"; } <center> @Html.ActionLink("Home |", "Index", "Home") @Html.ActionLink("Stylists | ", "Index", "Stylists") @Html.ActionLink("Clients", "Index", "Clients") <h1>Saint Hairon </h1> </center> <div class="grid"> <img src="~/img/knot.png" class="image"> <img src="~/img/pink.jpeg" class="bo...
// pages/mine/items/index.js var qcloud = require('../../../vendor/wafer2-client-sdk/index') var config = require('../../../config') var util = require('../../../utils/util.js') Page({ /** * 页面的初始数据 */ data: { title: '', items: [], noItem: null }, url: { 'bought': config.service.myBough...
package org.bringo.server.controllers import javax.servlet.http.HttpServletRequest import org.bringo.server.views.ErrorPage import org.springframework.boot.web.servlet.error.ErrorController import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.RequestMapping import org.springf...
use std::collections::HashMap; use std::path::PathBuf; mod pascal; mod rms; const MAX_TILE: i32 = 84; const MIN_TILE: i32 = 1; const MAX_ROOMS: u8 = 128; const TILE_DIMENSIONS: u32 = 15; const FIRST_OBJECT: u32 = 'd' as u32; const LAST_OBJECT: u32 = 'w' as u32; struct RmsTmxIntermediate { id: u8, tiles: Vec<...
# arkham-horror Hints about what to do while you play this game. You may think that it's automatic game master.
import * as Cx from '../../core'; import {PointReducerProps} from './PointReducer'; interface SnapPointFinderProps extends PointReducerProps { /* Cursor X value. */ cursorX?: Cx.NumberProp, /* Cursor Y value */ cursorY?: Cx.NumberProp, /* A binding used to receive the x value of the nearest point.*/ ...
package com.plweegie.android.rpibleweather import java.math.BigDecimal fun Float.roundTo(decimalPlaces: Int): Float = BigDecimal(this.toDouble()) .setScale(2, BigDecimal.ROUND_HALF_EVEN).toFloat()
require 'rails_helper' RSpec.describe Query::EvidenceCheckable, type: :model do describe '.find_all' do subject { described_class.new.find_all } let!(:application_1) { create :application_part_remission } let!(:application_2) { create :application_full_remission } let(:application_3) { create :appli...
/* Author: Kendra Little Original link: https://www.littlekendra.com/2017/01/24/how-to-find-queries-using-an-index-and-queries-using-index-hints/ */ --Search for queries in the execution plan cache --Simply plug the name of the index you’re looking for into this query. If you have multiple databases with the same inde...
<div> @foreach ($replies as $reply ) <livewire:show-reply :reply="$reply" :key="$reply->id" /> @endforeach </div>
import 'package:flutter/material.dart'; import 'package:tuitionmedia/demo/demo_tutor.dart'; import 'package:tuitionmedia/screens/tutor_profile_screen.dart'; class TutorList extends StatefulWidget { const TutorList({Key? key}) : super(key: key); @override _TutorListState createState() => _TutorListState(...
<?php /** * Created by PhpStorm. * User: johnyftr * Date: 26/11/2018 * Time: 12:21 */ class CService extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('assets_helper'); $this->load->model('ModelClient/Modelapropos', 'Modelapropos'); ...
require File.expand_path('../action_object', __FILE__) module Fathom class MarginalizeTable < ActionObject attr_reader :table, :filter def initialize(table, filter) @table = infer_table(table) @filter = filter end def execute! conditioned_table end def conditioned_table ...
# frozen_string_literal: true module Gateway class AssessorsGateway def initialize(api_client) @internal_api_client = api_client end def search_by_postcode( postcode, qualification = "domesticSap,domesticRdSap" ) route = "/api/assessors?postcode=#{CGI.escape(postcode)...
# MobX on ReactNative "Everything that can be derived from the application state, should be derived. Automatically." MobX behind MobX ## setup `cd MobXApp` `make setup` ## Actions ## State ## Reactive derivations ## Reactions ## References MobX - https://mobxjs.github.io/mobx/ Getting Started - https://faceb...
2 16 0 0 0 0 10 4 0 0 0 0 14 4 0 0 0 14 0 10 0 0 0 15 0 10 0 0 0 4 1 15 0 0 0 4 10 15 0 0 1 0 0 14 0 0 10 1 0 1 0 0 10 14 0 1 0 0 14 2 1 1 0 0 15 14 1 1 0 0 15 7 1 1 0 0 2 0 2 0 0 0 4 0 0 14 0 0 4 0 1 14 0 0 4 0 14 7 0 0 4 0 3 0 0 0 4 15 1 1 0 1 0 0 2 2 0 1 0 2 2 1 0 1 1 0 0 3 0 1 3 1 1 2 0 1 3 2 1 2 0 11 0 0 0 4 0 14 ...
import React from 'react'; import { ArticleForm } from '../article-form'; import { renderWithContext } from '../../../spec-configs/render'; describe('article form', () => { it('does not crash', () => { renderWithContext(<ArticleForm onCreated={() => {}} />, {}); }); });
#!/bin/sh # EPUBCheck Testing Script # Created 03/22/2019 by Wendy Reid, Rakuten Kobo Inc. echo "Welcome to the EPUBCheck Tester! Follow the prompts to continue" echo "Please enter the folder location of the test EPUBs (i.e. ~/Home/test-files)" read loc1 echo "Please enter the folder location of EPUBCheck (i.e. ~/Home...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "searchresult.h" using vdslib::SearchResult; namespace storage { namespace api { IMPLEMENT_COMMAND(SearchResultCommand, SearchResultReply) IMPLEMENT_REPLY(SearchResultReply) SearchResultC...
package performance; import java.util.Collection; import java.util.Map; import java.util.Map.Entry; public class TimeUtil { private static void runStatements(Statements ss) { ss.runStatements(); } /** * Measure the execution time of the statement and print out the result. * * @para...
package rubberhose_test import ( "crypto/rand" "os" "strings" "testing" rubberhose "github.com/Cookie04DE/RubberHose" "github.com/stretchr/testify/require" ) func TestBlock(t *testing.T) { f, err := os.CreateTemp("", "") require.NoError(t, err) key := make([]byte, 32) _, err = rand.Read(key) require.NoErr...
create database if not exists stock_tushare DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; use stock_tushare; -- select * from stock_tushare.stock_daily_basic; create table if not exists stock_daily_basic( ts_code varchar(20) comment 'TS股票代码', trade_date date comment '交易日期', `open` float comment '开盘价', high fl...
from django.conf import settings PRIVATELESSON_VALIDATION_STR = getattr( settings, 'PRIVATELESSON_VALIDATION_STR', 'danceschool_privatelesson' )
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE InstanceSigs #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ParallelListComp #-} module Music.Types.MusicU ( MusicU(..), ToMusicU(..), mFoldU ) where import qualified Data.List (nub) import Data.Tuple.Select (sel3) import Euterpea (AbsPitch, Contro...
require 'spec_helper' describe PanamaxUi do describe '.allow_insecure_registries' do it 'returns NO if nothing is set' do ENV['INSECURE_REGISTRY'] = '' expect(described_class.allow_insecure_registries).to eq 'NO' end it 'returns NO if set to N' do ENV['INSECURE_REGISTRY'] = 'N' e...
my $letter = 'a'; repeat { say $letter; $letter++; } until $letter eq 'd';
<?php namespace DMT\KvK\Api\Exception; use DMT\CommandBus\Validator\ValidationException; use JMS\Serializer\Exception\Exception as SerializeException; use League\Tactician\Middleware; use Psr\Http\Client\ClientExceptionInterface; /** * Class ExceptionMiddleware */ class ExceptionMiddleware implements Middleware { ...
# frozen_string_literal: true namespace :ridgepole do desc 'Apply database schema' task apply: :environment do ridgepole('--apply', "-E #{Rails.env}", "--file #{schema_file}") Rake::Task['db:schema:dump'].invoke if Rails.env.development? Rake::Task['annotate_models'].invoke if Rails.env.development? ...
/** Date locale info. TODO(mmalerba): Integrate with i18n solution once we know what we're doing. */ export declare class DateLocale { firstDayOfWeek: number; months: { full: string; short: string; }[]; days: { full: string; short: string; xshort: string; }[];...
using Microsoft.AspNet.SignalR; using Microsoft.AspNet.SignalR.Hubs; using System; using System.Collections.Generic; using System.Linq; using System.Messaging; using System.Threading; using System.Threading.Tasks; using CommonObjects; using MsmqGateway.Core; using Messaging.Base; namespace Web.SignalR.LoanBroker { ...
%% Copyright (c) 2020 Nicolas Martyanoff <khaelin@gmail.com>. %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% %% THE SOFTWARE IS PROVIDED "AS I...
# frozen_string_literal: true require 'aws_backend' class AwsIamSamlProvider < AwsResourceBase name 'aws_iam_saml_provider' desc 'Verifies settings for a SAML Provider.' example ' describe aws_iam_saml_provider("arn:aws:iam::123456789012:saml-provider/FANCY") do it { should exist } its("arn"...
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a c...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE param ( id SERIAL PRIMARY KEY, "type" TEXT, "data" TEXT, "value" JSON ); COMMENT ON COLUMN param."type" IS 'Config type'; COMMENT ON COLUMN param."data" IS 'Config data block'; C...
import { LocalStorage } from "common/local-storage"; import { RainbowFancy } from "app/led/effects/rainbow-fancy"; import { Effect } from "common/effect"; import { Fade } from "app/led/effects/fade"; import { CRGB } from "core/rgb"; export type Preset<T extends Effect = any> = Omit< T, "FRAMES_PER_SECOND" | "onMou...
var score = 0; var timeEl = document.querySelector(".time"); var submit = document.getElementById("submit-button"); var secondsLeft = 30; var startButton = document.querySelector("#start-button"); var nextQuestion = document.querySelector("#answer-button"); var submitButton = document.querySelector("#submit-button"); v...
# px2style Pickles 2 CSS components. ## Install Install with npm. ```bash $ npm install --save px2style ``` Install with composer. ```bash $ composer require pickles2/px2style ``` ## Change log ### px2style v2.0.15 (2021/06/26) - `--px2-text-color`、 `--px2-background-color` を追加。 ### px2style v2.0.14 (2021/04...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Com.ChinaPalmPay.Platform.RentCar.Model; using System.Web; using Com.ChinaPalmPay.Platform.RentCar.Model.ParamModel; namespace Com.ChinaPalmPay.Platform.RentCar.IBLLS { public interface IUserHandler { UserLogin...
# Awesome Repository Template Full featured repository template ## Includes - [Sentiment Bot](https://github.com/behaviorbot/sentiment-bot) - [Stale Bot](https://probot.github.io/apps/stale/) - [Welcome bot](https://probot.github.io/apps/welcome) - [Release drafter](https://probot.github.io/apps/release-drafter) - C...
package argonaut import cats._ object CursorOpElementCats extends CursorOpElementCatss trait CursorOpElementCatss { implicit val CursorOpElementInstances: Show[CursorOpElement] with Eq[CursorOpElement] = { new Show[CursorOpElement] with Eq[CursorOpElement] { override def show(e: CursorOpElement) = { ...