text
stringlengths
27
775k
package com.leessy.ofm1000test.mqtt import android.app.Service import android.content.Context import android.content.Intent import android.net.ConnectivityManager import android.os.Binder import android.os.IBinder import android.util.Log import io.reactivex.Observable import io.reactivex.disposables.Disposable import ...
//------------------------------------------------------------------------------ // <copyright file="EntityDesignerDataSourceView.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // // @owner Microsoft // @backupOwner Microsoft //-------------------------...
<?php namespace UserAgentParserTest; use PHPUnit\Framework\TestCase; use UserAgentParser\Model\RenderingEngine; use UserAgentParser\Model\Version; /** * @author Martin Keckeis <martin.keckeis1@gmail.com> * @license MIT * * @covers \UserAgentParser\Model\RenderingEngine * * @internal */ class RenderingEngineTe...
#!/bin/bash cd "$(dirname "$0")" function run () { case "${1:-build-run}" in build-run) dotnet restore sample.csproj # generate project.json asset msbuild -noLogo /p:Configuration=Debug sample.csproj -v:m echo "RUN sample.exe" export CLOJURE_LOAD_PATH=$(cd "../clojure.clr-mono/bin" &&...
class Plan < ActiveRecord::Base has_many :subscriptions def is_upgrade_from?(plan) (price || 0) >= (plan.price || 0) end def free_trial? trial_length > 0 end end
# -*- coding: utf-8 -*- class GitController < ApplicationController load_and_authorize_resource class: Project layout "layouts/sidebar" def branches @title = "Branches" @project = Project.find params[:project_id] @report = @project.reports.sort { |report| report.commit.committed_at }[-1] end d...
use config::{Config, Environment, File}; use serde::Deserialize; /// Application settings #[derive(Deserialize, Debug)] pub struct Settings { database: DatabaseSettings, app_port: u16, secret_key: String, } impl Settings { pub fn get_address(&self) -> String { format!("0.0.0.0:{}", self.app_po...
var spdlog_8h = [ [ "synchronous_factory", "structspdlog_1_1synchronous__factory.html", "structspdlog_1_1synchronous__factory" ], [ "SPDLOG_CRITICAL", "spdlog_8h.html#ae91dad63ce8e0f912ff58cdd62f60981", null ], [ "SPDLOG_DEBUG", "spdlog_8h.html#a10a205c2dfdb91688e85c3f49bc671cd", null ], [ "SPDLOG_ERROR...
# Ring.com Ring.com API ## Api ### Session Create a session, which generates a token that can be used for all the other requests. ### Devices List all devices for an account. ### Dings Get the active ding session. Also possible to get the URL to a recording for a given ding. ### History Retrieve a list of hist...
export default class backgroundTouch { constructor(changeBgFn) { this.width = document.body.clientWidth; this.height = document.body.clientHeight; this.changeBgFn = changeBgFn; document.addEventListener('touchstart', this.transitionTouch.bind(this)); } transitionTouch(e) { const percentageHei...
namespace ToggleFlow.Models { class ActiveInNextReleaseState : ToggleState { private readonly FeatureToggle _featureToggle; public ActiveInNextReleaseState(FeatureToggle featureToggle) { _featureToggle = featureToggle; } public void Move() { ...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { ContentLoading } from 'src/app/models/ContentLoading'; import { GuildMotd, GuildMotdView } from 'src/app/models/GuildMotd'; import { ApiService } from 'src/app/servic...
from builtins import object from collections import OrderedDict import logging import sys import datetime import os import errno import copy from pythonjsonlogger import jsonlogger from cloghandler import ConcurrentRotatingFileHandler class LogFactory(object): ''' Goal is to manage Simple LogObject instance ...
; RUN: llc < %s -march=nvptx -mcpu=sm_35 | FileCheck %s ; Verify that the NVPTXLowerAggrCopies pass works as expected - calls to ; llvm.mem* intrinsics get lowered to loops. declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture readonly, i64, i32, i1) #1 declare void @llvm.memset.p0i8.i64(i8* nocapture...
package com.jayeshsolanki.sentiance.geofenceexercise import android.annotation.SuppressLint import android.app.NotificationManager import android.app.Service import android.content.Context import android.content.SharedPreferences import android.location.Criteria import android.location.Location import android.location...
require 'papapi' require 'spec_helper' RSpec.describe Papapi::Merchant::Commission do let(:session) { Papapi::Session.new(script_url).login(merchant_login, merchant_password) } it "#create" do commission = Papapi::Merchant::Commission.new(session) #commission.create('11111111', '11111111', 1.0, '5535d2d7'...
using MyApp.Logic.Entities; using MyApp.Logic; using Reusable.Rest; using ServiceStack; using ServiceStack.OrmLite; using System; using System.Threading.Tasks; using ServiceStack.Text; using Reusable.Rest.Implementations.SS; namespace MyApp.API { // [Authenticate] public class EmailService : BaseService<EmailL...
#!/usr/bin/perl -w use warnings; use strict; use Test::More; use FindBin; use File::Temp; my $config_base = "$FindBin::Bin/test_configs/non-sequence-yamlfile"; my $build_root = $ENV{DESTDIR}; my ($range_conf_fh, $range_conf) = File::Temp::tempfile(); warn "tmpfile: $range_conf"; #FIXME allow setting of lr->funcdir ...
<?php namespace api\library\model; use think\Model; class LibraryTagModel extends Model { }
import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Router } from '@angular/router'; import { Plex } from '@andes/plex'; import { Auth } from '@andes/auth'; import { AppComponent } from '../../app.component'; import { OrganizacionService } from '../../services/organizacion.service'; @Compone...
#![recursion_limit = "1024"] extern crate serde_derive; extern crate serde_json; extern crate yew_export_button; mod components; mod model; mod repo; mod time; use wasm_bindgen::prelude::*; #[wasm_bindgen(start)] pub fn run_app() { yew::App::<components::App>::new().mount_to_body(); }
use strict; use warnings; use DBI; use Test::More; use Test::mysqld; Test::mysqld->new( my_cnf => { 'skip-networking' => '', }, ) or plan skip_all => $Test::mysqld::errstr; plan tests => 3; my @mysqld = Test::mysqld->start_mysqlds( 2, my_cnf => { 'skip-networking' => '', }, ); ok...
{-# LANGUAGE OverloadedStrings #-} module Language.Nix.FilePathSpec where import Data.String import Distribution.Text import qualified Language.Nix.FilePath as Nix import Test.Hspec import Text.PrettyPrint as PP displayPath :: String -> Doc -> SpecWith () displayPath path resu...
#!/usr/bin/env bash docker login -u ${USERNAME} -p ${PASSWORD} container-registry.oracle.com
package pandascore const ( CSGO Game = "csgo" Dota2 Game = "dota2" LoL Game = "lol" ) // Game represents a single game in the PandaScore API (eg. csgo, dota2, ...) type Game string // Validates that the access token is valid. func (g Game) IsValid() bool { return g == CSGO || g == Dota2 || g == LoL }
%% ------------------------------------------------------------------- %% %% Copyright (c) 2019 Carlos Gonzalez Florido. All Rights Reserved. %% %% This file is provided to you under the Apache License, %% Version 2.0 (the "License"); you may not use this file %% except in compliance with the License. You may obtain ...
import 'package:krypton_flutter_demo/redux/actions/app_actions.dart'; import 'package:krypton_flutter_demo/redux/reducers/auth_reducer.dart'; import 'package:krypton_flutter_demo/redux/reducers/language_reducer.dart'; import 'package:krypton_flutter_demo/redux/reducers/notifier_reducer.dart'; import 'package:krypton_fl...
//////////////////////////////////////////////////////////////////////////// // Module : alife_surge_manager.h // Created : 25.12.2002 // Modified : 12.05.2004 // Author : Dmitriy Iassenev // Description : ALife Simulator surge manager //////////////////////////////////////////////////////////////////////////// ...
import leon.lang._ import leon.annotation._ object Imp { @main def foo(i: Int): Int = { var a = 0 a = a + 3 if(i < a) a = a + 1 else a = a - 1 a } ensuring(_ >= 0) }
/* * Copyright (c) 2004 David Flanagan. All rights reserved. * This code is from the book Java Examples in a Nutshell, 3nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose, * including teaching and use in open-sou...
#pragma once #include <regex> namespace mtl { class Parser { public: }; }
define( 'spell/data/entity/createAmbiguousSiblingName', function() { 'use strict' return function( entityConfig ) { var children = entityConfig.children if( !children ) return false var names = {} for( var i = 0, n = children.length; i < n; i++ ) { var name = children[ i ].name if( name )...
#!/bin/bash rm -f /tmp/anonbrowser.xpi zip -r -1 /tmp/anonbrowser.xpi manifest.json background.js anon.js icons popup python -m http.server --bind 127.0.0.1 --directory ./tests 9999 > /dev/null 2>&1 & python3 tests/main_test.py rm -f /tmp/anonbrowser.xpi
# vite-vue3-ts-template 通过 vite 搭建的 vue3+ts 基础模板
# interface functions for mapping between xyz and CAD parametric coordinates """ This function gets the vector of CAD parametric coordinates from the mesh database. See [`coords_xyzToXi`](@ref) for a description of the parametric coordinate system. **Inputs** * mesh **Inputs/Outputs** * xivec: vec...
use actix_web::{delete, patch, web, HttpRequest, Responder, Scope}; use getto_application::helper::flatten; use crate::z_lib::remote::{logger::Logger, response::actix_web::RespondTo}; use crate::x_outside_feature::remote::api::{ feature::ApiAppData, logger::{app_logger, generate_request_id}, }; use crate::a...
<?php class Tutorial_Lab_Rating_View_Controller extends DatabaseController { public function __construct() {} // ($tutorial_lab_rating_id, $tutorial_lab_id, $date_posted, $rating, $comments, // $tutorial_lab_name, $member_id, $member_type, $first_name, $last_name, // $flag_for_review = false) protected fun...
## typeIsA() - [A Class typeIsA](#A) - [B HTML typeIsA](#B) #### All examples below can be executed in the console of [repl.html](../../test-collection/repl.html) ## A Class typeIsA<a name="A"></a> ``` type_czech = TypeCzech('LOG-ERRORS') class FirstName { constructor(f_name) { this.f_name = f_name ...
using Microsoft.Extensions.DependencyInjection; using Zuravvski.Infrastructure.Cqrs.Abstractions.Events; namespace Zuravvski.Infrastructure.Cqrs.Memory.DependencyInjection { internal sealed class InMemoryEventBus : IEventBus { private readonly IServiceScopeFactory _serviceScopeFactory; public...
{-# OPTIONS_GHC -optc-D__HUGS__ #-} {-# INCLUDE "HsUnix.h" #-} {-# LINE 1 "System/Posix/IO.hsc" #-} {-# OPTIONS -fffi #-} {-# LINE 2 "System/Posix/IO.hsc" #-} ----------------------------------------------------------------------------- -- | -- Module : System.Posix.IO -- Copyright : (c) The University of Glas...
/* * Copyright 2020 Huawei Technologies Co., Ltd. * * 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 appl...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the HiGHS linear optimization suite */ /* */ /* Written an...
use std::collections::HashMap; use std::fs::File; use std::io::Read; use std::io::Result; pub fn solve() -> Result<()> { let mut file = File::open("input/22.txt")?; let mut raw_input = String::new(); file.read_to_string(&mut raw_input)?; let input = parse_input(&raw_input); println!("day 22 first:...
namespace ThemeSample.Enums { /// <summary> /// Defines the supported themes for the sample app /// </summary> public enum Theme { Light, Dark, Blue, Orange, White } }
package com.epam.random_coffee.authentication.service.impl import com.epam.random_coffee.authentication.service.PasswordEncoder import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AsyncWordSpec import java.util.concurrent.Executors import scala.concurrent.{ ExecutionContext, Future } class Pa...
<?php declare(strict_types=1); require_once __DIR__ . '/../vendor/autoload.php'; use Gocanto\PSQL\Application; use Gocanto\PSQL\Env; use Laminas\Diactoros\ServerRequestFactory; use League\Container\Container; $app = new Application(new Env(), new Container()); $app->boot(); try { $app->handle( ServerRe...
export const GET_FILTER_ITEMS = state => { return state.items.filter(function(item) { var searchRegex = new RegExp(state.searchQuery, "i"); return ( searchRegex.test(item.nombre) || searchRegex.test(item.nit) || searchRegex.test(item.responsable) ); })...
var class_mage = [ [ "fight", "class_mage.html#a4a54a7d829e723dc93a7645d42e716b9", null ], [ "getRegeneration", "class_mage.html#aad0ee3a4e8bad8ca9f4c0f368641b88e", null ], [ "init", "class_mage.html#a4be4055f3361d4800e16bc2e2e38cda6", null ], [ "receiveHit", "class_mage.html#ac9878ad64aeb8055f731dee22c...
require 'socket' require 'thread' module MarilynRPC # A class with nothing but `__send__` and `__id__` class ClientBlankSlate instance_methods.each { |m| undef_method m unless m =~ /^__|object_id/ } end class NativeClientProxy < ClientBlankSlate # Creates a new Native client proxy, were the calls ge...
const { MongoMemoryServer } = require('mongodb-memory-server'); const mongoose = require('mongoose'); const COLLECTIONS = ['users', 'mics']; class DBManager { constructor() { this.db = null; this.server = null; this.connection = null; } // Spin up a new in-memory mongo instance ...
<?php namespace App\Services; use App\Models\User; use BaconQrCode\Renderer\Image\Png; use BaconQrCode\Writer; use PragmaRX\Google2FA\Google2FA; class Google2FAService { public static function getQrCodeRaw(User $user) { $google2fa = new Google2FA(); $code = $google2fa->getQRCodeUrl(config('a...
// To parse this JSON data, do // // final pokemonMoves = pokemonMovesFromJson(jsonString); import 'dart:convert'; PokemonMoves pokemonMovesFromJson(String str) => PokemonMoves.fromJson(json.decode(str)); String pokemonMovesToJson(PokemonMoves data) => json.encode(data.toJson()); class PokemonMoves { int ac...
package logrus import ( "goa.design/goa/v3/codegen" "goa.design/goa/v3/eval" ) const ( name = "logrus" cmd = "example" importLogrus = "github.com/sirupsen/logrus" sectionTemplateServerMainLogger = "server-main-logger" logrusTemplate = `...
/* * Copyright (c) TIKI Inc. * MIT license. See LICENSE file in root directory. */ import 'dart:convert'; import 'package:flutter/services.dart'; class ApiMicrosoftRepositoryInfo { // TODO Microsoft cards static const _dbLocationOutlook = "res/json/microsoft_info_outlook_db.json"; Future<List<dynamic>> out...
namespace DiscordBotsList.Api.Objects { public interface IDblEntity { /// <summary> /// Discord Id /// </summary> ulong Id { get; } /// <summary> /// Username of the entity /// </summary> string Username { get; } /// <summary> ...
package org.rs2server.rs2.model; import org.rs2server.rs2.model.region.Region; /** * An instance of a ground item (items shown on * the floor when they are dropped). * @author Michael * */ public class GroundItem { /** * The name of the controller for the current item. */ private String controllerName = ...
import 'dart:async'; import 'package:flutter/material.dart'; class TimerCountDownWidget extends StatefulWidget { Function onTimerFinish; TimerCountDownWidget({this.onTimerFinish}) : super(); @override State<StatefulWidget> createState() => TimerCountDownWidgetState(); } class TimerCountDownWidgetState ext...
// eslint-disable-next-line @typescript-eslint/no-explicit-any declare const global: any // FIXME: Mockの型がみつからない /* eslint @typescript-eslint/no-explicit-any: 0 */ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type export function useMockedUrlFetchApp(responseCode: number, contentText: string...
from info.modules.index import index_blue from flask import render_template, current_app @index_blue.route('/') def index(): return render_template('news/index.html') @index_blue.route('/favicon.ico') def get_ico(): return current_app.send_static_file('news/favicon.ico')
from Connect4_Globals import * class Player(): """A class that represents a player in the game""" def __init__(self, coin_type): """ Initialize a player with their coin type """ self.coin_type = coin_type def complete_move(self): """ A method to...
<?php namespace PhproTest\SoapClient\Unit\Xml; use Phpro\SoapClient\Xml\SoapXml; use Zend\Diactoros\Stream; /** * Class SoapXmlTest * * @package PhproTest\SoapClient\Unit\Xml */ class SoapXmlTest extends \PHPUnit_Framework_TestCase { /** * @var \DOMDocument */ private $xml; /** * Loa...
using UnityEngine; using System.Collections; using SimpleJSON; using ChuMeng; using System.Collections.Generic; using System; using UnityEngine.SocialPlatforms; using UnityEngine.UI; using Random = System.Random; using Mirror; using System.Linq; using DG.Tweening; using PixelCrushers.DialogueSystem; using UnityEngine....
import React from "react"; import styled from "styled-components"; export const ResultCard = ({ title, body, id = "result card" }) => { return ( <> <Card> <div id={id}> <h4 style={{ margin: "10px", fontSize: 20 }}> <b>{title}</b> </h4> <p style={{ margin: "...
package webstationapi.DTO; import lombok.Data; import java.util.List; @Data public class CartFinalDTO { private Long cartId; private int userId; private List<FlatGetDTO> flats; private Double totalFlatPrice; private List<LiftGetDTO> lifts; private Double totalLiftPrice; private Lis...
import 'package:flutter/material.dart'; import 'package:flutter_devfest/venues/daily_profile.dart'; import 'package:flutter_devfest/clientProfile/my_profile.dart'; import 'package:flutter_devfest/universal/dev_scaffold.dart'; import 'dart:math'; import 'package:flutter_devfest/home/index.dart'; import 'package:flutt...
define double @"binary:"(double %x, double %y) { entry: ret double %y } define double @"binary>"(double %LHS, double %RHS) { entry: %cmptmp = fcmp olt double %RHS, %LHS %booltmp = uitofp i1 %cmptmp to double ret double %booltmp } define double @"binary|"(double %LHS, double %RHS) { entry: %ifcond = fcmp ...
const BaseLang = require('./BaseLang.js') class Lang extends BaseLang { constructor (language) { super() if (language === 'ko') { this.data = { kick: '서버 관리자가 당신을 추방했습니다. 이유: %s', ban: '서버 관리자가 당신을 영구히 추방했습니다. 이유: %s' } } else { this.data = { kick: 'Server admin ...
/** * Catch Errors Handler * * With async/await, there is needed some way to catch errors * Instead of using try{} catch(e) {} in each controller, the function is wrapped in catchErrors() * This function catches any errors they throw, and passes it along to express middleware with next() */ exports.catchErrors = ...
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Sikiro.Application.Customer.Ao; using Sikiro.Common.Utils; using Sikiro.Entity.Customer; using Sikiro.Interface.Id; using Sikiro.Interface.Msg; using Sikiro.Service.Customer; using Sikiro.Tookit...
package nsg.menu; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import nsg.NSGParameters; import nsg.SceneManager; import nsg.component.Node; public class NodePopMenu extends JPopupMenu implements NSGParameters{ st...
require "csv" require_relative "../lib/seabase" unless [:development, :test, :production].include? Seabase.env puts "Use: bundle exec rake seed SEABASE_ENV=test|development|production" exit end class Seeder attr :env_dir def initialize @db = ActiveRecord::Base.connection common_dir = File.join(File.d...
package com.flipperdevices.bridge.synchronization.impl.repository.storage import android.content.Context import com.flipperdevices.bridge.dao.api.model.FlipperKeyPath import com.flipperdevices.bridge.synchronization.impl.model.KeyWithHash import com.flipperdevices.bridge.synchronization.impl.model.ManifestFile import ...
require 'test_helper' describe Rodzilla::Util do describe "methods" do it "should have a module method demodulize" do Rodzilla::Util.must_respond_to(:demodulize) end end describe "demodulize" do it "should extract the classname from a module hierarchy" do Rodzilla::Util.demoduliz...
'use strict'; const getDocumentationUrl = require('./utils/get-documentation-url'); const MESSAGE_ID_ARROW = 'ArrowFunctionExpression'; const MESSAGE_ID_FUNCTION = 'FunctionDeclaration'; const getReferences = scope => scope.references.concat( ...scope.childScopes.map(scope => getReferences(scope)) ); const isSameSc...
module Cartowrap module HTTPService class Endpoint attr_reader :options, :credentials def initialize(options, credentials = {}) @options = options @credentials = credentials end def get p options.to_json endpoint = "#{endpoint_uri}#{endpoint_querystring}...
import Data.List import Data.Map (Map) import qualified Data.Map as Map hasTwo :: Map Char Int -> Bool hasTwo = not . Map.null . Map.filter (== 2) hasThree :: Map Char Int -> Bool hasThree = not . Map.null . Map.filter (== 3) hasTwoOrThree :: String -> [Bool] hasTwoOrThree line = [hasTwo m, hasThree m] where m = M...
#!/bin/bash # Import Environment Variables for f in ~/.env/* do . $f done # Run pre-dump dumps for cmd in `awk 'BEGIN { for (a in ENVIRON) if (a ~ /_DUMP$/) print ENVIRON[a] }'` do echo "Running extra dump: $(/bin/basename $cmd)" 1>&2 $cmd done # stop stop_app.sh 1>&2 # Run tar, saving to stdout cd ~ cd...
/// Copyright (C) 2015 Brendan Duncan. All rights reserved. enum FbxMappingMode { /// The mapping is undetermined. None, /// There will be one mapping coordinate for each surface control point/vertex. ByControlPoint, /// There will be one mapping coordinate for each vertex, for every polygon /// of...
import { palette } from '@roleypoly/design-system/atoms/colors'; import { HalfsiesContainer, HalfsiesItem } from '@roleypoly/design-system/atoms/halfsies'; import { SparkleOverlay } from '@roleypoly/design-system/atoms/sparkle'; import { Toggle } from '@roleypoly/design-system/atoms/toggle'; import { AmbientLarge, ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; public class Chloroplast : ProducerObject { public override void Start() { base.Start(); showSubtleDamage = true; text_title = "Chloroplast"; text_description = "Produces ...
using System.Collections.Generic; using TauCode.WebApi.Testing.Tests.AppHost.Domain.Bids; namespace TauCode.WebApi.Testing.Tests.AppHost.Core.Features.Bids.GetAllBids { public class GetAllBidsQueryResult { public IList<BidDto> Items { get; set; } public class BidDto { publi...
import React from 'react' import AddItem from './add' import MenuTable from './table' import {composeWithTracker} from 'react-komposer' import Subheader from 'material-ui/Subheader' const Menu = ({id, menu, isMember, isOwner}) => { return ( <div className="menu tearsheet middle"> <Subheader classN...
#[doc = "Reader of register P4OUT"] pub type R = crate::R<u8, super::P4OUT>; #[doc = "Writer for register P4OUT"] pub type W = crate::W<u8, super::P4OUT>; #[doc = "Register P4OUT `reset()`'s with value 0"] impl crate::ResetValue for super::P4OUT { type Type = u8; #[inline(always)] fn reset_value() -> Self::...
package builtin import ( "context" "fmt" "github.com/boltdb/bolt" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/pkg/errors" uuid "github.com/satori/go.uuid" "github.com/micromdm/micromdm/mdm/checkin" "github.com/micromdm/micromdm/platform/pubsub" "github.com/micromdm/micromdm/pl...
--- title: "MSC3391: Removing account data" published: false created_at: "2021-09-09" description: keywords: proposal-in-review client_stats: server_stats: sdk_stats: services_stats: footnotes: notes: links: - title: "PR for MSC3391" link: "https://github.com/matrix-org/matrix-doc/pull/3391" - title: Rendered l...
require 'spec_helper' describe FullCircle::APIFactory do describe "#create" do it "creates a new api client and connection with the arguments passed in" do factory = described_class.new cache = double "cache" api_client = factory.create("360durango.com", cache: cache) connection= api_cl...
package uk.gov.ons.ctp.response.lib.dto; /** Represents OutboundChannel options */ public enum OutboundChannel { SMS, POST }
#include <eepp/ui/cuiwinmenu.hpp> #include <eepp/ui/cuimanager.hpp> #include <eepp/graphics/csubtexture.hpp> namespace EE { namespace UI { cUIWinMenu::cUIWinMenu( const cUIWinMenu::CreateParams& Params ) : cUIComplexControl( Params ), mFont( Params.Font ), mFontColor( Params.FontColor ), mFontShadowColor( Params....
package com.stone.persistent.recyclerview.library import android.content.Context import android.util.AttributeSet import android.widget.OverScroller import androidx.recyclerview.widget.RecyclerView import java.lang.reflect.Field /** * 一个可以方便获取Y轴速率的RecyclerView基类 */ open class BaseRecyclerView @JvmOverloads construc...
#blocks【区块】文件夹放置页面区块的编码文件,每个页面都可以分成若干个区块,比如项目列表、成员列表等,每个区块是相对独立的一个功能集合。
package horo import ( "errors" "fmt" "net/http" "net/http/httptest" "testing" "github.com/kylelemons/godebug/pretty" "golang.org/x/net/context" ) func TestSimpleHandle(t *testing.T) { h := New() h.GET("/", func(c context.Context) error { return Text(c, 200, "ok") }) r, _ := http.NewRequest("GET", "/", ...
from copy import deepcopy import itertools # brute force means of producing sum of two numbers def two_of_five(numbers): result = [] j = 0 the_copy = deepcopy(numbers) iterations = len(the_copy) while j < iterations: i =0 a = the_copy.pop(0) while i < len(the_copy): ...
using System; using System.Runtime.Serialization; using Spark.Cqrs.Eventing.Sagas; using Spark.Example.Domain.Commands; using Spark.Example.Domain.Events; namespace Spark.Example.Sagas { [DataContract] public sealed class MoneyTransferSaga : Saga { [DataMember(Name = "a")] public Decimal A...
--- name: 💬 Support Question about: If you have a question about configuration, usage, etc. --- ## Support Question Ask your question here. Be sure to search existing issues since someone might have already asked something similar.
#!/bin/sh shuf -n 1 << EOF zone-A zone-B EOF
/* * Copyright 2013 Cloudera 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...
this is a yes-no oracle. ask a q with yr heart and go to [yesno.pink](http://www.yesno.pink) to receive an answer.
import React from 'react' import {Link} from 'gatsby' import formatPrice from '../utils/priceFormat' import {StyledProducts} from '../styles/components' export default function Products() { return ( <div> hola </div> ) }
require 'spec_helper' describe Presenter::Board do let!(:team) { double(:team) } let!(:game_tree_klass) { double(:game_tree_klass) } let!(:board) { double(:board, dimensions: 1) } let!(:board_presenter) { build(:board_presenter, game_tree_klass: game_tree_klass, board: board) } describe :invalid_tile_select...
import React, { useEffect, useState } from 'react' import styled from 'styled-components' import { Input, Text, Flex, Box } from 'wswap-uikit' import { useUserDeadline } from 'state/user/hooks' import QuestionHelper from '../QuestionHelper' const Field = styled.div` align-items: center; display: inline-flex; & ...