text
stringlengths
27
775k
import 'package:flutter/widgets.dart'; calculateShadowColor(color) { return HSLColor.fromColor(color) .withLightness(HSLColor.fromColor(color).lightness - 0.5 > 0.0 ? HSLColor.fromColor(color).lightness - 0.18 : 0.3) .toColor(); }
package io.inapinch.pipeline.operations import io.inapinch.pipeline.http.Http class GetHtml : FunctionalOperation<String, String>(Http::get) data class CreateUrl(val baseUrl: String) : FunctionalOperation<Map<String, Any>, String>({ Http.url(baseUrl, it) }) class GetJson : FunctionalOperation<String, Map<String, An...
/* * Copyright (c) .NET Foundation and Contributors * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * http://github.com/piranhacms/piranha * */ using System.Globalization; using Xunit; namespace Piranha.Tests.Utils { ...
@extends('layouts.base') @section('base-class') @yield('body-class') @endsection @push('style_inline') <style> .login-page, .register-page { background-image: url("{{ asset('images/default/bg-auth.jpg') }}"); background-position: center; background-repeat: no-repeat...
#!/usr/bin/env python import rospy import geometry_msgs.msg import std_msgs import tf def callback(newPose): global publisher, tfListener try: (trans, rot) = tfListener.lookupTransform('optitrak', 'total_station', rospy.Time(0)) except (tf.LookupException, tf.ConnectivityException, tf.Extrapolatio...
/* * Copyright (C) 2015-2022 Lightbend Inc. <https://www.lightbend.com> */ package docs.stream import scala.util._ import scala.concurrent.duration._ import scala.concurrent._ import akka.Done import akka.stream._ import akka.stream.scaladsl._ import akka.stream.testkit.scaladsl._ import akka.testkit.{ AkkaSpec, T...
%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2021. All Rights Reserved. %% %% 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 %% %% ...
export default class PuzzleInfo { constructor(frequency, name, ID, type, flags, enabled, description) { this.frequency = frequency; this.name = name; this.ID = ID; this.type = type; this.flags = flags; this.enabled = enabled; this.description = description; } }
// util.go package gomini func Substr(s string, start, length int) string { bt := []rune(s) if start < 0 { start = 0 } if start > len(bt) { start = start % len(bt) } var end int if (start + length) > (len(bt) - 1) { end = len(bt) } else { end = start + length } return string(bt[start:end]) }
--- layout: recipe title: "Creamy Potato Salad" image: avocado-muffins.jpg tags: snacks category: snacks ingredients: - 1.5kg potatoes - 1 cup of mayonnaise - 1 small red onion - 1 tbsp dijon mustard - 1 tbsp lemon juice - 1/2 cup paprika - 4 hard boiled eggs, chopped - shallots directions: - Boil potatoes for 12-1...
class String # Basado en soluciones de # http://stackoverflow.com/questions/6541209/decimals-and-commas-when-entering-a-number-into-a-ruby-on-rails-form def a_decimal_nolocalizado delimiter = I18n::t('number.format.delimiter') separator = I18n::t('number.format.separator') self.gsub(/[#{delimiter}#{...
# Chapter 10: Graph embedding: from graphs to matrices ## Importing the Zachary's karate club data 1. Download [data/zkc.graph](data/zkc.graph) and copy it into the `import` folder of your graph 2. Run the following Cypher query: ``` LOAD CSV FROM "file:///zkc.graph" AS row FIELDTERMINATOR " " MERGE (u:Node {id: toI...
# cat-facts This is a bot for regularly sending fun, free cat facts via email or sms. It operates via an email account with SMTP access. The bot does not cold-email anyone: only users who first email the bot will be subscribed, and the bot will periodically remind them how to unsubscribe. # How do I run this/I want ...
--- title: Blog3 date: 2020-02-07T00:21:39.000Z text: 'lorem this is really awesome' image: img/blog3.png tags: - Music - Sport subheading: - ww subtext: ww ---
Rails.application.routes.draw do root to: "application#home" get "/limit_session_lifetime_home" => "limit_session_lifetime#home", :as => :limit_session_lifetime_home get "/limit_session_lifetime_redirect_home" => "limit_session_lifetime#redirect_home" get "/bind_session_to_ip_address_home" => "bind_session_to_i...
-module(entrypoint_handler). -export([init/3, handle/2, terminate/2]). %% =================================================================== %% Cowboy callbacks %% =================================================================== init({_Any, http}, Req, []) -> {ok, Req, []}. handle(Req, State) -> BaseURL ...
package six.com.crawler.work.downer; import java.io.File; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.strea...
import 'package:flutter/material.dart'; import 'package:reservelt/services/auth.dart'; class Register extends StatefulWidget { final Function toggleView; Register({this.toggleView}); @override _RegisterState createState() => _RegisterState(); } class _RegisterState extends State<Register> { final AuthSer...
# frozen_string_literal: true module Control class CommandsService include AutoInject['navigation_service'] include AutoInject['operational_service'] SUPPORTED_COMMANDS = (Navigation::Commands::ALL + Operational::Commands::ALL).freeze def call(robot_id:, commands:, raise_errors: true) command...
using System; namespace _33_F { class Program { static void Main(string[] args) { Console.WriteLine("Quantos atletas participaram das corridas?"); var maxAtletas = int.Parse(Console.ReadLine()); for (var contAtleta = 0; contAtleta < maxAtletas; contAtleta++...
module SendGrid class TrackingSettingsDto attr_reader :open, :click, :google_analytics, :subscription alias click_tracking click alias open_tracking open alias subscription_tracking subscription def self.fetch(sendgrid_client:, name:, query_params:) name = scrub_alias_names(name.to_s) ...
#!/bin/bash -l set -eo pipefail function setup_gpadmin_user() { ./gpdb_src/concourse/scripts/setup_gpadmin_user.bash "$TEST_OS" } # Get ssh private key from REMOTE_KEY, which is assumed to # be encode in base64. We can't pass the key content directly # since newline doesn't work well for env variable. function i...
#!/usr/bin/env perl use strict; use warnings; use FindBin; use lib "$FindBin::RealBin/optimize/"; use OptimizeParams qw(&powell &easybrent &easydbrent &zbrent); use Data::Dumper; use Scalar::Util qw(looks_like_number); use 5.010; my @cmd_array = (); my %opts = (); my $output_dir = ""; my $result_regexp = "(.*)"; my ...
#!/bin/sh if [ $# -ne 1 ]; then echo "Usage: $(basename $0) up|down" echo " Use up to start the DynamoDB container, down to stop it." exit 1 fi if [ -n "$DYNAMODB" ]; then test "$1" = "up" && echo $DYNAMODB exit 0 fi A="invalid" case "$1" in down) A="stop" ;; up) ...
import { Player } from '../js/Player' import { Event } from '../js/Event' import { IArea } from '../js/Area' import { announce } from '../utils/Announcement' /* ========================================== EVENT ========================================== */ function setAffectedArea(areaMap: IArea, event: Event) ...
import 'package:english_words/english_words.dart'; import 'package:flutter/cupertino.dart'; import 'package:system_tray/system_tray.dart'; import 'dart:io'; import 'dart:async'; import 'package:window_manager/window_manager.dart'; class Tray { bool _toogleTrayIcon = true; final SystemTray _systemTray = SystemTray...
import { WhereExpression } from "./WhereExpression"; /** * Syntax sugar. * Allows to use brackets in WHERE expressions for better syntax. */ export declare class Brackets { /** * WHERE expression that will be taken into brackets. */ whereFactory: (qb: WhereExpression) => any; /** * Given W...
--- layout: post title: "量化" author: dazuo date: 2020-07-02 20:19:00 +0800 categories: [AI] tags: [量化] math: true mermaid: true --- 业界量化方案: - 感知量化训练(Quantization Aware Training, QAT) 优点:模型准确率更好,适用于对模型压缩率和准确率要求较高的场景。 - 训练后量化(Post-training Quantization, PAT) 优点:简单易用,适用于追求高易用性和缺乏训练资源的场景。
import { TsGenMethod } from '../src/TsGenMethod'; import { TsGenParam } from '../src/TsGenParam'; const method = new TsGenMethod("add", "public", "number"); method.addDecorator("@Api()") method.addDecorator("@Validate([0, 1])") method.addParameter(new TsGenParam("x", "number")); method.addParameter(new TsGenParam("y",...
import React from 'react' import classes from './DefectJudgeZone.scss' import Tabs from 'components/DefectCodeTabs' import Dialog from 'components/DefectJudgeDialog' import OurToaster from 'components/OurToaster' import { Button } from '@blueprintjs/core' import { identifyRole } from '../../Utils.js' type Props = { ...
# frozen_string_literal: true require 'pronto/bigfiles/message_creator' describe Pronto::BigFiles::MessageCreator do describe '#create_message' do subject(:created_message) do message_creator.create_message(patch_wrapper, num_lines) end let(:message_creator) do described_class.new(num_files...
ALTER TABLE product ALTER COLUMN name varchar(80); -- that should not make the ScriptRunner failing
//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
unit uOptions; {$IFDEF FPC} {$mode objfpc} {$H+} //{$modeswitch typehelpers} {$ENDIF} interface uses {$IFDEF DARWIN} {$IFDEF UseCThreads} cthreads, {$ENDIF} {$ENDIF} {$IFDEF DARWIN} cwstring, {$ENDIF} Classes; type TOptions = record StdIn: Boolean; StdOut: Boolean; InputFil...
require "graphql" require "graphql/client" require "json" require "minitest/autorun" class TestClient < MiniTest::Test NodeType = GraphQL::InterfaceType.define do name "Node" field :id, !types.ID end AdminUser = GraphQL::InterfaceType.define do name "AdminUser" field :password, !types.String e...
module Y2017.M01.D30.Exercise where import Data.Time import Data.Time.Calendar.Julian {-- Wheeeeee! We're going to be looking at some orbital (ephemeris) data, but before we even do that, we have to read in those data, written for FORTRAN and their ilk, because, you know, satellites. (that's no reason, but that's as...
from tasks.meta import OBSColumn, DENOMINATOR, UNIVERSE from tasks.util import ColumnsTask from tasks.tags import SectionTags, SubsectionTags, UnitTags from tasks.ca.statcan.license import LicenseTags, SourceTags from collections import OrderedDict class CensusColumns(ColumnsTask): def requires(self): r...
package com.huazie.fleaframework.common.util; import java.io.Serializable; import java.util.HashMap; import java.util.Map; /** * Flea Map 封装了 HashMap 的常用逻辑 * * @author huazie * @version 1.1.0 * @since 1.1.0 */ public class FleaMap implements Serializable { private static final long serialVersionUID = 87668...
/** * Copyright 2018 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ const rewire = require('rewire'); const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const should = chai.should(); chai.use(chaiAsPromised); const Query = rewire('../lib/Query'); const Client = ...
package org.kframework import java.util.Optional /** * Created by manasvi on 8/13/15. */ class RewriterResult(val rewriteSteps: Optional[Integer], val exitCode: Optional[Integer], val k: kore.K) { }
# Installation You can install this plugin into your CakePHP application using [composer](http://getcomposer.org). The recommended way to install composer packages is: ``` composer require dereuromark/cakephp-meta:dev-master ``` Details @ https://packagist.org/packages/dereuromark/cakephp-meta This will load the plu...
class Macaco(): def __init__(self, nome): self.nome=nome self.__bucho=[] @property def bucho(self): return self.__bucho @bucho.setter def bucho(self, comidas): raise ValueError(f'Impossível colocar {comidas} no bucho, coma usando comer()!') def comer(...
module Feature.Playlist.PlaylistRepoClass where import Protolude import Feature.Playlist.Playlist import Feature.User.User import Infrastructure.Utils.Id data InsertPlaylist = InsertPlaylist { insertPlaylistName :: Text , insertPlaylistDescription :: Text , insertPlaylistStyle :: PlaylistStyle , insertPlaylis...
# Test parsing strings as numbers! # `Base.parse` is the frontend, but strtod, strotol, and strtoul are the backend # Test basic methods for both of our string types m = m"123456789" # MallocString @test parse(Float64, c"123456789") === 123456789.0 @test parse(Float64, m) === 123456789.0 @test ...
import 'dart:math' as math; import 'package:flutter/material.dart'; class FeedingTime extends StatelessWidget { final Animation<double> animation; final AnimationController controller; final Color faceColor; final double widthRatio; FeedingTime({ Key key, this.animation, this.control...
module GtfsNion class Agency < ::GtfsNion::GtfsEntityBase attr_reader :agency_id, :agency_name, :agency_url, :agency_timezone, :agency_lang, :agency_phone, :agency_fare_url, :agency_email def attributes { agency_id: agency_id, agency_name: agency_name, agency_url...
package server import ( contextpkg "context" "time" "github.com/tliron/glsp" "github.com/tliron/kutil/logging" ) // // Server // type Server struct { Handler glsp.Handler LogBaseName string Debug bool Log logging.Logger Context contextpkg.Context ReadTimeout time.Duration WriteT...
wget http://mattmahoney.net/dc/text8.zip mkdir data unzip text8.zip mv text8 data/ rm text8.zip
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms....
package com.ak47.cms.cms.controller import com.ak47.cms.cms.dao.* import com.ak47.cms.cms.entity.* import org.slf4j.LoggerFactory import org.springframework.beans.factory.annotation.Autowired import org.springframework.data.domain.Page import org.springframework.data.domain.PageRequest import org.springframework.data....
const util = require('util') const exec = util.promisify(require('child_process').exec) exports.prettierFmt = async () => await exec('npx prettier --write .')
cat ../../../v05Ana_5TevCentRec_dec05esA/integral/values/chi422_integral.txt cat ../../../v05Ana_5TevCentRec_dec05esA/integral/values/chi523_integral.txt cat ../../../v05Ana_5TevCentRec_dec05esA/integral/values/chi6222_integral.txt cat ../../../v05Ana_5TevCentRec_dec05esA/integral/values/chi633_integral.txt cat ../../...
<?php namespace Elcodi\Admin\PrintableBundle\Controller; use Mmoreram\ControllerExtraBundle\Annotation\Entity as EntityAnnotation; use Mmoreram\ControllerExtraBundle\Annotation\Form as FormAnnotation; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configurat...
/* eslint-disable no-underscore-dangle */ class Player extends Component { constructor( context, posX, posY, width, height, color, horizontalLimit, facingDirection = 'right' ) { super(); this.c = context; this.width = width; this.height = height; this.posX = posX;...
import {createProgram} from './webgl'; import StateProgram from './state-program'; import RenderProgram from './render-program'; import GameOfLife from './programs/gameoflife'; import GameOfLifeBlur from './programs/gameoflife-blur'; console.log('🐭'); let golStateProgram = new StateProgram({shaderSource: GameOfLife}...
package sort; import edu.princeton.cs.algs4.StdRandom; import edu.princeton.cs.algs4.Stopwatch; /** * 选择排序 * 时间复杂度---O(N^2) */ public class Select { public static void sort(Comparable[] a){ // 将a[]按升序排列 int N = a.length; for (int i = 0; i < N; i++) { // 将a[i]和a[i+1..N]中最小的元素...
--- layout: post microblog: true date: 2016-02-06 16:28 +1300 guid: http://JacksonOfTrades.micro.blog/2016/02/06/t695811239159533570.html --- @memeki Haha "Loved one" *sobs*
module Patryn # Reponsible for providing script execution context class Environment attr_reader :argv def initialize(args = ARGV) @argv = args end def ruby_version RUBY_DESCRIPTION end end end
package net.blay09.mods.cookingforblockheads.api.event; import net.minecraft.item.ItemStack; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.eventbus.api.Event; public class OvenCookedEvent extends Event { private final World world; private final BlockPos ...
<?php namespace Docker\API\Model; class Service { /** * @var string */ protected $iD; /** * @var NodeVersion */ protected $version; /** * @var \DateTime */ protected $createdAt; /** * @var \DateTime */ protected $updatedAt; /** * @var Se...
import 'dart:ui'; import 'package:developer_tools/src/dashboard/drawer_menu.dart'; import 'package:developer_tools/src/views/responsive_view.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_native/flutter_native.dart'; import 'jsontod...
# [`analogs.py`](https://github.com/romainmartinez/pyomeca/blob/master/pyomeca/analogs.py) ::: pyomeca.analogs
export default interface ILifecycleAware { create: () => void update: (time: number, delta: number) => void delete: () => void }
export const SAVE_AND_VALIDATE_DEBOUNCE_TIME = 1500; export const ROUTES = { POST_INDEX: 'post.index', POST_NEW: 'post.new.index', POST_EDIT: 'post.edit.index', }; export const POST_STATUS_MESSAGE_TYPE = { INFO: 'info', SUCCESS: 'success', ERROR: 'error', }; export const POST_DRAFTS_MODAL = 'drafts'; exp...
<div class="au-grid"> <div class="container"> <div class="row palette"> <div class="col-xs-3 palette__bg"> <p><a href="#">Abc</a></p> <p>Abc</p> <p class="palette__text--muted">Abc</p> <hr /> <hr class="palette__text--focus" /> </div> <div class="col-xs-3...
############################### ODE Integrators ################################ # restrict to ODE integrators? could use for gradient flow. function simulate(U::Update, x, ti::Real, tf::Real) t = ti while t < tf x, t = U(x, t) end x, t end ################################# Runge Kutta ########...
#!/bin/bash # USE THIS SCRIPT FOR BASIC SYSTEM STATUS DEBUG INFO # load code software version source /home/admin/_version.info ## get basic info (its OK if not set yet) source /home/admin/raspiblitz.info 2>/dev/null source /mnt/hdd/raspiblitz.conf 2>/dev/null # for old nodes if [ ${#network} -eq 0 ]; then echo "b...
using System; using System.ComponentModel.DataAnnotations; namespace CVGS.Data { [MetadataType(typeof(GameMetaData))] public partial class Game { public string CategoryName { get; set; } public string PlatformName { get; set; } } public class GameMetaData { public int I...
#![doc = "generated by AutoRust 0.1.0"] #![allow(non_camel_case_types)] #![allow(unused_imports)] use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AvailablePatchCountByClassification { #[serde(default, skip_serializing_if = "Option::is_none")] pub securi...
import Resolver from './helpers/Resolver' export default { Location: { ...Resolver('Location', { undefinedToNull: [ 'nameEN', 'nameDE', 'nameFR', 'nameNL', 'nameIT', 'nameES', 'namePT', 'namePL', 'nameRU', ], }), }, }
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later ver...
# go-template-bf-interpreter Brainf*ck interpreter written by go-template (not Golang!) ## Description Go-template is turing-complete! From now on, your `cubectl` works as a bf interpreter! ## Requirements - k8s construction tool (`kind` for example) - `kubectl` ## Usage ```bash # make k8s cluster (kind for exam...
package dynamic import "strings" // Link stores a BDAP link data that is returned by running dynamic link RPC commands type Link struct { AcceptExpired bool `json:"accept_expired"` AcceptExpiresOn int `json:"accept_expires_on"` AcceptTime int `json:"accept_time"` AcceptTxID ...
const hasOwnProperty = Object.hasOwnProperty; export default function proxy(actions) { const ret = {}; for (let key in actions) { if (hasOwnProperty.call(actions, key)) { ret[key] = async function () { try { return await actions[key](...arguments); } catch (e) { const ...
package com.evolutiongaming.stracer.util import com.evolutiongaming.stracer.Sampling import com.evolutiongaming.stracer.Sampling._ trait Probability { def apply(sampling: Option[Sampling]): Double } object Probability { private val defaultProbabilityValue = 0.01 private val alwaysProbabilityValue = 1.0 priv...
import 'package:flutter/material.dart'; import 'package:page_transition/page_transition.dart'; class PageTransitionUtils { /// Slide page transition static Route fadePageTransition({@required Widget page}) => PageTransition( type: PageTransitionType.fade, duration: Duration(seconds: 1), child: pa...
package toolbox.week2.test import org.scalatest._ import org.scalatest.concurrent.TimeLimitedTests import org.scalatest.time.{Millis, Span} import toolbox.week2.Fibonacci class FibonacciSpec extends FlatSpec with Matchers with TimeLimitedTests { val timeLimit = Span(15, Millis) "For 2" should "be 1" in { ...
<?php namespace estvoyage\risingsun\ointeger\operation\unary; use estvoyage\risingsun\{ ointeger, block }; class addition extends any { function __construct(ointeger $addend, ointeger $template, block $overflow = null) { parent::__construct($addend, new ointeger\operation\binary\addition($template, $overflow)); ...
<?php declare(strict_types=1); namespace App\Tests\Factory; use App\Entity\Category; use App\Entity\CzechWord; use App\Entity\Source; use App\Factory\CzechWordFactory; use App\Form\Word\CzechWordFormData; use Mockery; use PHPUnit\Framework\TestCase; class CzechWordFactoryTest extends TestCase { /** @var CzechWor...
# nullmumbai08-10-16 These files are the part of the live demo I presented in my Null Mumbai 8th October 2016 meet. Topics Covered: 1. SQL Injection 2. CSRF 3. Brute Force 4. Image Upload Vulnerability 5. Safeguarding scripts Presentation Link: http://www.slideshare.net/SiddharthMahajan21/null-mumbai-08102...
package io.sellmair.kompass.internal import android.arch.lifecycle.Lifecycle import android.arch.lifecycle.LifecycleObserver import android.arch.lifecycle.LifecycleOwner import android.arch.lifecycle.OnLifecycleEvent import io.sellmair.kompass.KompassReleasable import io.sellmair.kompass.internal.util.mainThread priv...
#include <iostream> #include "VirtualFilesystem.h" int main(int argc, char *argv[]) { std::string user_input; std::cout << "Welcome to" << std::endl; std::cout << " _______ _____" << std::endl; std::cout << "/____ / | ___|" << std::endl; std::cout << " / / | |___" << std::endl; std::cou...
import { get, set } from 'lodash'; import { xml2js } from 'xml-js'; import { ExecutionContext, Policy, PolicyCategory, Scope, YapPolicy } from '../../'; /** * Xml to json policy * The xml-to-json policy converts a request or response body from XML to JSON. * @example * <xml-to-json kind="javascript-friendly | dire...
class CfgPatches { class ITK_Items { units[] = {}; weapons[] = {}; requiredAddons[] = {"A3_Weapons_F_Explosives"}; author[] = {"Garth 'LH' de Wet", "Burga"}; }; }; #include "CfgAmmo.hpp" #include "CfgMagazines.hpp" #include "CfgWeapons.hpp" #include "CfgVehicles.hpp" class CfgMineTriggers { class RangeTri...
import Debug from "debug"; import React, { Component } from "react"; import { bundle } from "./bundle"; import { InputFile } from "./types"; const debug = Debug("code-kitchen:bundler"); export const errorBoundary = ( id: string, Element: React.ComponentType, errorCallback: (err: Error) => void ) => { return ...
export enum TextChatEvents { ErrorSendingMessage = 'errorSendingMessage', ShowTextChat = 'showTextChat', HideTextChat = 'hideTextChat', MessageReceived = 'messageReceived', MessageSent = 'messageSent' }
namespace OICNet.Server.Hosting { public interface IOicContextFactory { } public interface IOicContextFactory<TSource> : IOicContextFactory { OicContext CreateContext(TSource source); void DisposeContext(OicContext context); } }
import Numeric data Set = Set { r :: Integer, s :: Integer, t :: Integer } step :: Set -> Set -> Set step old new = Set r' s' t' where quotient = r old `div` r new r' = r old - (r new * quotient) s' = s old - (s new * quotient) t' = t old - (t new * quotient) run :: Integer -> Integer -> IO Set run self rhs...
import { Injectable, HttpService, Request } from '@nestjs/common'; import * as axios from 'axios'; import { performanceDto } from '../../dtos/performance.dto'; //This is services class and Http request gose here. //Use axios to perform Http request to the remote server because it is more flexible than the builtin //ht...
//----------------------------------------------------------------------------- // <copyright file="SelectExpandWrapperConverter.cs" company=".NET Foundation"> // Copyright (c) .NET Foundation and Contributors. All rights reserved. // See License.txt in the project root for license information. // </copyright...
package io.github.omisie11.coronatracker.vo /** * Class representing result of data fetching * Used to show snackbar with error */ enum class FetchResult { SERVER_ERROR, NETWORK_ERROR, UNEXPECTED_ERROR, OK }
! { dg-do run } ! PR 34565 - intenal writes with negative strides. This ! test case tries out a negative stride in a higher ! dimension. program main implicit none integer :: i integer, parameter :: n1=2, n2=3, n3=5 character(len=n1*n2*n3*2) :: line character(len=2), dimension(n1,n2,n3):: c write (unit=c(:...
package domain.news.content case class Content( userId: Long, newsId: String )
require 'clearingnumbers' RSpec.describe ClearingNumbers do it "returns an array" do banks = ClearingNumbers.banks expect(banks).to be_an(Array) end it "lists all bank names and returns valid data for them" do names = ClearingNumbers.bank_names expect(names).to be_an(Array) expect(names.coun...
# Meio dia Command Line Sound 🕺🍻 Chaaaaaaaama! ## Compatibility - Linux - Windows - Mac ## Installing Install globally: npm install -g meiodia ## Running Run command: meiodia Or import in NodeJS script: import meiodia from 'meiodia'; meiodia(); ## Running with [npx](https://www.npmjs.co...
#!/bin/bash # Usage: build_helper_fsts.sh [-m] [-s SCRIPT_DIR] LEX-FILE PH-FILE mswitch="" if [[ $1 == "-m" ]]; then mswitch="-m" shift fi script_dir="" if [[ $1 == "-s" ]]; then script_dir=${2}/ PERL5LIB=$script_dir export PERL5LIB shift 2 fi lex=$1 ph=$2 if [[ ${#ph} -eq 0 ]]; then echo ...
Automon LTW Config XML Files ======================== By configuring AspectJ LTW (Load Time Weaving) xml files you can tell Automon which parts of your program you would like to monitor simply by providing 2 pointcuts (user_monitor, and user_exceptions). This directory contains xml files that you can use as starting ...
<a href="/" class="btn btn-sm btn-secondary"><i class="fas fa-eye"></i></a> <a href="/" class="btn btn-sm btn-primary"><i class="fas fa-edit"></i></a> <button type="button" class="btn btn-sm btn-danger" data-toggle="modal" data-target="#addDelete"> <i class="fas fa-trash-alt"></i> </button>
import gql from 'graphql-tag'; import {LAUNCH_TILE_DATA} from './launches'; import {RouteComponentProps} from '@reach/router/index'; import {client} from "../app"; export const GET_MY_TRIPS = gql` query GetMyTrips { me { id email trips { ...LaunchTile } } } ${LAUNCH_TILE_...
source core/var.bash source core/measure.bash source core/float.bash function sleep_a_little() { sleep 2 } function testMeasure() { local diff= local result= measure diff sleep_a_little result # echo "diff is $diff" # echo "result is $result" assertLt "$diff" 2.1 assertGt "$diff" 1.9 }