text
stringlengths
27
775k
import React, { Component } from 'react' class NetEasePlayer extends Component { render() { return ( <div className="netease-player" style={{ position: 'absolute', top: '0' }}> <iframe title="163-music" frameBorder="no" border="0" marginWidth=...
name := "browserless" enablePlugins(ScalaJSBundlerPlugin, ScalaJSJUnitPlugin) scalaVersion := "2.13.2" scalaJSUseMainModuleInitializer := true // Adds a dependency on the uuid npm package npmDependencies in Compile += "uuid" -> "3.1.0" ivyLoggingLevel in ThisBuild := UpdateLogging.Quiet
<?php declare(strict_types=1); /** * @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at> * * @author Christoph Wurst <christoph@winzerhof-wurst.at> * @author Roeland Jago Douma <roeland@famdouma.nl> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redi...
require "open3" require_relative "utils" module Giblish # A home-grown interface class to git. Used for situations when the # 'official' ruby git gem does not support an operation that is needed. class GitItf attr_reader :repo_root, :git_dir def initialize(path) @repo_root = Giblish::PathManager.f...
module F2h class InsertTags def initialize @get_current_dir = Dir.getwd @get_current_foldername = File.basename(@get_current_dir) @bp = Boilerplate.new end def insert_img_html(filenames,location) text_to_be_inserted = "" filenames.each do |f| text_to_be_inserted << ...
--- description: KeyTypeEnum title: Кэйтипинум | Документация Майкрософт ms.prod: sql ms.prod_service: connectivity ms.technology: ado ms.custom: '' ms.date: 01/19/2017 ms.reviewer: '' ms.topic: conceptual apitype: COM f1_keywords: - KeyTypeEnum helpviewer_keywords: - KeyTypeEnum enumeration [ADOX] ms.assetid: 3e597c52...
using System.Threading.Tasks; using NhsLoginAndAppPoc.Models; namespace NhsLoginAndAppPoc.Repositories { public interface IImmunisationStatusRepository { Task<ImmunisationStatusResponse> Get(string nhsNumber); } }
package org.asion.webflux.test; import org.asion.webflux.boot.AsionWebfluxAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import static org.springframework.context.annotation.FilterType.ASSIGNABLE_TYPE; /** * @author Asion....
"use strict"; const log = require('../common/log'); const TickerCourse = require('../common/db/ticker').model; const WebSocket = require('ws'); const WS_URI = 'wss://api.bitfinex.com/ws/2' const handleEvent = function(event, state){ if(event.event !== 'subscribed') { log.warn("Unknown event received: " + JSON....
package rocks.metaldetector.persistence.domain; import org.assertj.core.api.WithAssertions; import org.assertj.core.data.TemporalUnitLessThanOffset; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import rocks.metaldetector.per...
#include "message.h" #include "./crypto/sha256/sha256.h" #include "./crypto/aes/aes.h" // Needs an extra 16 bytes for the padding (Padding always added even when length before encryption is mod(16)) uint8_t message_buf[SCEWL_MAX_DATA_SZ + 32]; int read_preamble(intf_t *intf, scewl_id_t *src_id, scewl_id_t *tgt_id, s...
package ch.wsl.box.client.views.components.widget import ch.wsl.box.model.shared.{JSONField, JSONFieldTypes, WidgetsNames} import io.circe.Json import io.udash.properties.single.Property import io.udash._ import scalatags.JsDom import scalatags.JsDom.all._ object HiddenWidget extends ComponentWidgetFactory { over...
require 'rails_helper' RSpec.describe 'trips/show', type: :view do before(:each) do user = FactoryGirl.create(:user) @trip = assign(:trip, FactoryGirl.create(:trip, user_id: user.id)) sign_in user # https://github.com/ryanb/cancan/wiki/Testing-Abilities#controller-testing @ability = Object.new ...
import { TestResultModel } from "../../models/tests/test-result.model"; export class TestResultsHistoryDataMock { public static get TestResultHistoryData(): TestResultModel[] { return [ { "systemNumber": "1000000", "reasonForCancellation": null, "testerStaffId": "123", "test...
/*=============================================================================== Copyright (c) 2019 PTC Inc. All Rights Reserved. Copyright (c) 2015 Qualcomm Connected Experiences, Inc. All Rights Reserved. Vuforia is a trademark of PTC Inc., registered in the United States and other countries. =====================...
-- @testpoint:opengauss关键字begin(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists begin; create database begin; --清理环境 drop database begin; --关键字带双引号-成功 drop database if exists "begin"; create database "begin"; --清理环境 drop database "begin"; --关键字带单引号-合理报错 drop database if exists 'begin'; create database 'begin'; -...
#!/usr/bin/env bash echo "Building the doc" cd documentation mvn clean package echo "Cloning repo" cd target git clone -b gh-pages git@github.com:smallrye/smallrye-mutiny.git site echo "Copy content" yes | cp -R generated-docs/* site echo "Pushing" cd site git add -A git commit -m "update site" git push origin gh-pa...
package com.github.malitsplus.shizurunotes.data import com.github.malitsplus.shizurunotes.R import com.github.malitsplus.shizurunotes.common.I18N class OneStoryStatus( val storyId: Int, val storyName: String, val charaId: Int, val loveLevel: Int, val charaStoryStatusList: List<CharaStoryStatus> ) ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace CS2TS.Tests { public class EnumTests { [Fact] public void Enum() { var input = @" public enum Foo { Bar, B, Baz = 4, Boo = 5, Foo = 4, A }"; ...
package com.isaacudy.opentrivia.core.ui import android.app.Dialog import android.os.Bundle import android.os.Parcelable import androidx.appcompat.app.AlertDialog import androidx.fragment.app.DialogFragment import kotlinx.android.parcel.Parcelize import nav.enro.annotations.NavigationDestination import nav.enro.core.na...
# Docker These files can be used for running Algernon as a docker container. build_prod.sh and run_prod.sh is for building and running the production image for Algernon. This image will serve both HTTP and HTTPS+HTTP/2. Please adjust the Dockerfile for your needs. In particular, the caching is too aggressive if you h...
package com.zwwhnly.springbootaction.javabase.thread.lock; public class MyThread implements Runnable { private ReentrantLockTest reentrantLockTest = null; public MyThread(ReentrantLockTest reentrantLockTest) { this.reentrantLockTest = reentrantLockTest; } @Override public void run() { ...
#!/bin/bash set -e # check args if [ "$1" == "" ]; then echo "error no image tag" exit 1 fi # autodetect container runtime container_runtime="docker" if ! command -v $container_runtime > /dev/null; then container_runtime="podman" fi if ! command -v $container_runtime > /dev/null; then echo "error: no ...
--- layout: post title: Surgery categories: comics then-this-happened --- ![surgery](/public/images/june-26-2017-comic.png) Our son and my wife's sister were there. But I feel I was mostly silent.
<?php declare(strict_types=1); namespace app\controller\monitor; use app\BaseController; use app\model\Camera; use app\model\CameraCloseOrder; use app\model\CloseContact; use app\model\Role; use think\Request; class Monitor extends BaseController // 主要面向APP端进行服务 { // 不需要验证 protected $excludeValidateCheck =...
#!/bin/bash # Copyright 2018 ChemAxon 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 applicable law or agre...
use wasm_bindgen::prelude::*; use wee_alloc::WeeAlloc; use js_sys::Uint32Array; // Use `wee_alloc` as the global allocator. #[global_allocator] static ALLOC: WeeAlloc = WeeAlloc::INIT; #[wasm_bindgen(module = "/www/utils/rnd.js")] extern { fn rnd(max: usize) -> usize; } #[wasm_bindgen] #[derive(PartialEq)] pub e...
package com.compguide.web.Execution.Entities; import com.google.gson.Gson; /** * Created with IntelliJ IDEA. User: tiago Date: 15-09-2013 Time: 14:05 To * change this template use File | Settings | File Templates. */ public class ProcessedDecision { private String optionParameter; private String value; ...
#include "DetectionThread_cmd.h" #include <QProcess> #include <QDebug> DetectionThread_cmd::DetectionThread_cmd(QObject *parent) : QThread(parent) { } void DetectionThread_cmd::run() { QProcess process(this); qDebug()<<"执行cmd图像检测"; process.startDetached("cmd",QStringList()<<"/c"<<"python D:...
package polynote.kernel.util import java.nio.file.{Path, Paths} object PlainServerCommand { def apply( sparkConfig: Map[String, String], mainClass: String = "polynote.server.SparkServer", serverArgs: List[String] = Nil ): Seq[String] = { val allDriverOptions = sparkConfig.get("spark.driver...
alrm ==== `alrm` is a work in progress. `alrm` is intended to be a simple monitoring solution written in Go.
using System; using System.Collections.ObjectModel; namespace FrameworkLibrary { public interface IChatRoom { Guid ChatRoomID { get; } string ChatRoomName { get; } ReadOnlyCollection<ChatUser> CurrentUsers { get; } ReadOnlyCollection<ChatMessage> ChatMessages { get; } R...
import 'package:flutter/foundation.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:universal_html/prefer_universal/html.dart' as html; class UrlUtil { static void launchURL(String url) async { if (await canLaunch(url)) { await launch(url); } else { throw 'Could not launch ...
#!/binn/bash this_path=$(dirname $0) rm -rf ${this_path}/CMakeCache.txt rm -rf ${this_path}/CMakeFiles rm -rf ${this_path}/cmake_install.cmake rm -rf ${this_path}/compile_commands.json rm -rf ${this_path}/Makefile rm -rf ${this_path}/running_google_test.sh rm -rf ${this_path}/src rm -rf ${this_path}/.cmake rm -rf ${th...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class CD extends Model { /* * Table associated with model. * * @var string */ protected $table = 'CD'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ...
#!/bin/bash -e find_ndk() { for NDK in $NDK_HOME $NDK_PATH $ANDROID_NDK_HOME $ANDROID_NDK; do if [ -f "$NDK/ndk-build" ]; then echo $NDK return fi done ANDROID_HOME=$HOME/Library/Android/sdk if [ -f "$ANDROID_HOME/ndk-bundle/ndk-build" ]; then echo $ANDROID_HOME/ndk-bundle return ...
use std::collections::{HashMap, HashSet}; use failure::{format_err, Error}; use utils::{result, RetTypes}; #[derive(Debug)] struct Intervals { intervals: Vec<(usize, usize)>, } impl Intervals { fn new() -> Self { Self { intervals: vec![] } } fn add_interval(&mut self, from: usize, to: usize)...
=begin -------------------------------------------------------------------------------- A utility routine that scans I18n-related properties files and Freemarker templates for obvious issues. Properties files: Warn if a specialized file has no default version. Warn about duplicate keys, keys with empty values. Wa...
SET NAMES 'utf8'; ALTER TABLE `PREFIX_tab` CHANGE `id_parent` `id_parent` INT(11) NOT NULL; INSERT INTO `PREFIX_tab` (`id_tab`, `class_name`, `id_parent`, `position`) VALUES (43, 'AdminSearch', -1, 0) ON DUPLICATE KEY UPDATE `id_parent` = -1; ALTER TABLE `PREFIX_search_engine` ADD UNIQUE (`server`,`getvar`); REP...
package tests.tca import ca.uwaterloo.scalacg.annotation.reachable object PolymorphicRecursion1 { class S[T](var s: T) { System.err.println(s.toString()); @reachable override def toString = "hi" } class Base class FooBar extends S[S[S[Base]]]( new S( new S(new Base))) { @reachable overri...
import 'package:json_annotation/json_annotation.dart'; part 'cache_config.g.dart'; @JsonSerializable() class CacheConfig extends Object { @JsonKey(name: 'enable') bool enable; @JsonKey(name: 'maxAge') int maxAge; @JsonKey(name: 'maxCount') int maxCount; CacheConfig( this.enable, this.maxAge, ...
using System.Collections.Generic; using System.IO; using ValkyrieTools; namespace FFGAppImport { public class IAFinder : AppFinder { protected string obbPath; public IAFinder(Platform p) : base(p) { } // If the installed app isn't this or hi...
using Stardust; using UnityEngine; public class DialogAdapter : IComponent, IUpdate, IInitialize { DialogData _dialogData { get; set; } DialogUI _dialogUI; bool _stop; public void Init() { _dialogUI = Object.FindObjectOfType<DialogUI>(); _dialogUI.onClickEnter += _dialogUI_onCl...
package org.ligi.trulesk import android.app.Activity import android.content.Context import android.content.Context.MODE_WORLD_READABLE import android.os.Build.VERSION.SDK_INT import android.os.Build.VERSION_CODES.LOLLIPOP import android.os.Environment.DIRECTORY_PICTURES import com.jraska.falcon.Falcon import org.junit...
# Changelog Full changelog for deanblackborough/docker-compose-quick-start. ## v0.01: 22nd April 2018 ### Initial release Bootstrap to help with the setup of a PHP/MySQL web app using Docker for local development, this app does not do anything other than echo `phpinfo()` it is simply a starting point for your d...
using System; using System.IO; using System.Threading.Tasks; using AgentFramework.Core.Contracts; using AgentFramework.Core.Extensions; using AgentFramework.Core.Handlers; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace AgentBot.Services { public class AgentBotMiddleware...
module CCLF module Fee class TransferFeeAdapter < LitigatorFeeAdapter end end end
#!/usr/bin/env python3 ''' SPDX-License-Identifier: BSD-2-Clause Copyright 2017 Massachusetts Institute of Technology. ''' import asyncio import json import yaml try: from yaml import CSafeLoader as SafeLoader, CSafeDumper as SafeDumper except ImportError: from yaml import SafeLoader as SafeLoader, SafeDumper...
// Copyright (c) 2016-2020 Fabian Schuiki //! An implementation of lazy compiler passes. // #![deny(missing_docs)] use std; use std::cell::RefCell; use std::collections::HashMap; use std::fmt; use crate::hir; use crate::score::*; use crate::score::{ScoreBoard, ScoreContext}; use crate::ty::Ty; use crate::typeck::Ty...
#!/usr/bin/env Rscript library("optparse") option_list = list( make_option(c("-f", "--file"), type="character", default=NULL, help="dataset file name", metavar="character"), make_option(c("-o", "--out"), type="character", default="out.txt", help="output file name [default= %default]",...
$(document).ready(function () { var table = $('#dataTableBuilder').DataTable(); $("#tagForm").parsley(); //Open modal to create a new tag $(document).on("click", "#openTagModal", function () { document.getElementById("tagForm").reset(); $("#id").val(""); $("#tagForm").data("a...
alias l="ls -lh" alias rn="react-native" command -v ag >/dev/null 2>&1 && { alias lsg="ls | ag " alias lslg="ls -a | ag " alias lg="ls -lh | ag " alias ags="ag -G scala$ " } || { alias lsg="ls | grep " alias lslg="ls -a | grep " alias lg="ls -lh | grep " } # remove rm -i to avoid useless ...
// // common.hpp // // @author Roberto Cano // #pragma once #include <string> #include <vector> #include <map> #include <unordered_map> #include <set> #include <cassert> #include <memory> #include <queue> #include <optional> #include <iterator> #include "Framework/Core/Types.hpp"
#include <stdio.h> main() { float aumento = 0.1, salario_limite = 1500, salario, salario_reajustado; printf("Qual e o seu salario? "); scanf("%f", & salario); if (salario < salario_limite) { salario_reajustado = salario + (salario * aumento); printf("Voce receceu um aumento salarial. Seu salario agor...
<!-- * @Author: tangdaoyong * @Date: 2020-11-30 13:57:48 * @LastEditors: tangdaoyong * @LastEditTime: 2020-11-30 13:58:00 * @Description: file content --> # React生命周期 [React生命周期查看](https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/)
class IvlNotices::CoverallToIvlTransitionNoticeBuilder < IvlNotice include ApplicationHelper def initialize(consumer_role, args = {}) @family = Family.find(args[:options][:family]) find_transition_people(args[:options][:result][:people]) args[:recipient] = @family.primary_applicant.person args[:not...
using System.Threading.Tasks; namespace XrnCourse.LocalFiles.Services { public interface ITextfileService { Task SaveText(string filename, string text); Task<string> LoadText(string filename); } }
import * as babylon from "babylon"; import traverse from "@babel/traverse"; import { NodePath, Scope } from "babel-traverse"; import * as t from "@babel/types"; import { check } from "./check"; import { parameters } from "./parameters"; const fidanValueInit = ( init: | t.Expression | t.PatternLike | t.Sp...
module PageflowScrolled # @api private module ReactServerSideRenderingHelper include Pageflow::RenderJsonHelper include PageflowScrolled::EntryJsonSeedHelper def render_scrolled_entry(entry) seed_json = render_json do |json| scrolled_entry_json_seed(json, entry) end ReactServ...
package com.grivos.spanomatic.spans import android.text.TextPaint import android.text.style.ClickableSpan import android.view.View class ListenableClickableSpan(val clickName: String) : ClickableSpan() { var listener: Listener? = null override fun onClick(widget: View) { listener?.onClick(clickName)...
package com.fr1x3.invoicingan import android.app.Application class InvoPayeApplication : Application() {}
#!/bin/bash # Perform static code analysis and serve godoc locally cd ${HOLOGRAM_DIR}; godoc -analysis=type -http=:6060
#!/usr/bin/env bash SOURCE="$1" OUTPUT="$2" MAX_ITERATIONS="${3:-10}" ITERATIONS="0" DELETE_SOURCE="false" set -e # ACTUAL WRAPPING function wrap_zip { echo "... wrapping in ZIP" OUTPUT="$OUTPUT.zip" zip -r "$OUTPUT" "$SOURCE" } function wrap_tar { echo "... wrapping in TAR" OUTPUT="$OUTPUT.tar" tar -cv...
const httpStatus = require('http-status'); const {omit} = require('lodash'); const {handler: errorHandler} = require('../middlewares/error'); const Eos = require('eosjs'); // Eos = require('./src') let {ecc} = Eos.modules; //Optional configuration.. const config = { keyProvider: ['5KU2rsGJMzvHCp9xWEemzfMEnemLm3c66X...
# katas Collection of katas created by me :) Accepting suggestions and ideas, if you like them, mention me ;) If you solve one of them and would like me to link your solution at the bottom, send me a message or propose a PR!
Threadable.AddOrganizationMemberController = Ember.ObjectController.extend(Threadable.CurrentUserMixin, { needs: ['organization', 'organization_members'], organization: Ember.computed.alias('controllers.organization'), autoJoinGroups: function() { return this.get('organization.groups').filterBy('autoJoin', ...
// Global Route strings import 'package:flutter/material.dart'; const String homeRoute = '/'; const String loginRoute = '/login'; const String profileRoute = '/profile'; const String exerciseRoute = '/exercise'; const String workoutRoute = '/workout'; const String settingsRoute = '/settings'; const String rootPageRout...
#[derive(Debug, Deserialize)] pub struct Config { pub web: Web, } #[derive(Debug, Deserialize)] pub struct Web { pub motd: String, pub request_queue: usize, }
<?php namespace Omnipay\Cathaybk\Message; use Omnipay\Cathaybk\Support\Helper; use Omnipay\Common\Message\AbstractResponse; use Omnipay\Common\Message\RedirectResponseInterface; class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface { /** * Is the response successful? * ...
namespace Sparcpoint.Media.Ripper { public class SaveTitleOptions { public string DirectoryPath { get; set; } } }
<?php declare(strict_types = 1); namespace Dashboard\Domain\Generalisation; use Dashboard\Domain\Services\Summary; /** * Interface ToolDashboardSummaryInterface * * Interface that must be implemented by each Tool class buildable through the ToolFactory. * Defines the methods that must returns summaries of data c...
import * as React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux' import { Context } from 'koa'; import counterApp from './../../webui/store/reducer' import App from '../../webui...
namespace CommonMark.Parser { /// <summary> /// Class containing methods for fast forward matching of string contents /// </summary> internal static class ScannerCharacterMatcher { /// <summary> /// Moves along the given string as long as the current character is a whitespace. ...
UPDATE scannable_items SET documenttype = 'CHERISHED' WHERE documenttype = 'Cherished'; UPDATE scannable_items SET documenttype = 'OTHER' WHERE documenttype != 'Cherished';
--- layout: project_single title: "20 Beautiful Indoor Garden Design Ideas" slug: "20-beautiful-indoor-garden-design-ideas" parent: "diy-indoor-bohemian-decor" --- interior decorating ideas with plants
#pragma once /* * This file declares the operations that can be used when simulating the program. * It also declares a function that links these operations to slots in an array */ #include <stdint.h> #include "operations.h" #include "datatypes.h" void sim_setup_function_array( void (*op[NUM_OPS])( int argc, data ar...
if defined?(Rollbar) require 'rollbar/request_data_extractor' class RequestDataExtractor include Rollbar::RequestDataExtractor def from_rack(env) extract_request_data_from_rack(env).merge \ route: env["REQUEST_PATH"] end end end
/* * This file is part of the Tug package. * * (c) François Pluchino <francois.pluchino@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {Constraint} from '@server/db/constraints/Constraint'; import {LooseObject} ...
# frozen_string_literal: true module Dttp class Account < ApplicationRecord self.table_name = "dttp_accounts" end end
/** * Accept a promise and then set a timeout on it. After `time` ms, it will reject. * @param promise - The promise that you want to set time limit on. * @param time - Time before timeout. In `ms`. * @param rejectReason - When reject, show a reason. Defaults to `"timeout"` * * @internal */ export const timeout ...
#!/bin/bash wget https://raw.githubusercontent.com/mascalx/PiSpider/master/script/spider.py wget https://raw.githubusercontent.com/mascalx/PiSpider/master/script/TFT.py wget https://raw.githubusercontent.com/mascalx/PiSpider/master/script/dewarp.py wget https://raw.githubusercontent.com/mascalx/PiSpider/master/script/...
<div class="footer" > <div> <center><strong>Copyright</strong> ERP &copy; 2018</center> </div> </div> </div> </div> @yield('footer_scripts') <script> $(document).ready(function(){ Dropzone.options.myAwesomeDropzone = { autoProcessQueue: false, uploadMultiple: true, ...
# matlab-bitbankcc matlab-bitbankcc is library to use bitbank API on MATLAB. This library is referring to [python-bitbankcc](https://github.com/bitbankinc/python-bitbankcc). ![Reference_image](https://raw.githubusercontent.com/kazookie/matlab-bitbankcc/main/docs/img/reference_image.png) ## Useage Add this pr...
require 'drugbank/base' module Drugbank class Packager < Drugbank::Base include SaxStream::Mapper map :name, :to => 'name' map :url, :to => 'url' end end
#!/usr/bin/env python from asnake.client import ASnakeClient import pandas as pd import datetime from tqdm import tqdm client = ASnakeClient(baseurl='XXX', username='XXX', password='XXX') client.authorize() accession_records = client.get('repositories/2/accessions', params...
# encoding: UTF-8 class Carto::Analysis < ActiveRecord::Base # INFO: disable ActiveRecord inheritance column self.inheritance_column = :_type belongs_to :visualization, class_name: Carto::Visualization def self.find_by_natural_id(visualization_id, natural_id) analysis = find_by_sql( [ "sele...
use strict; use warnings; use File::Basename; use Readonly; use Test::More; use Try::Tiny; try { require Test::Perl::Critic; Test::Perl::Critic->import(-profile => "t/perlcriticrc"); } catch { plan skip_all => 'Test::Perl::Critic is not installed.'; }; my @PERL_DIRS = qw( lib script ); all_critic_ok(@PERL...
import 'package:flutter/material.dart'; import 'circle_painter.dart'; const _imageWeight = 0.875; const _outlineWeight = 0.0625; class ExerciseWidget extends StatelessWidget { final double size; final Color color; final ImageProvider? image; const ExerciseWidget({ Key? key, required this.size, t...
using System; using System.IO; using System.Threading; namespace ExaminingConsole { public static class Exploration { public static void SubMain() { //Exploration.RedirectStandardInput(); Exploration.TryConsoleKeyEvents(); //Explorations.File...
using MediatR; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SFA.DAS.CommitmentsV2.Api.Types.Responses; using SFA.DAS.CommitmentsV2.Application.Queries.GetDataLocks; using SFA.DAS.CommitmentsV2.Shared.Interfaces; using System.Threading.Tasks; namespace SFA.DAS.CommitmentsV2.Api.Contr...
#!/bin/sh set -e echo "Usage:" echo ======== echo "" echo "1. Create" echo "2. Start" echo "3. View logs; press repeatedly" echo "4. Remove" echo "5. Prune containers"
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; namespace Agency.Network.RoadRunner { /// <summary> /// Edge in the RoadRunner graph /// </summary> [Serializable()] public class Edge { public Edge() { this.RoadLevel = 0; } /// <...
// ==UserScript== // @name Sane Roobert // @description Fixes the borked Roobert font on Twitch // @match *://twitch.tv/* // @match *://www.twitch.tv/* // @grant GM_addStyle // ==/UserScript== GM_addStyle(` @import "https://raw.githack.com/tbodt/twitch-roobert-sane/master/roobert-sane.css"; html body { font-family...
namespace fgui { export class UIPackage { private _id: string; private _name: string; private _items: PackageItem[]; private _itemsById: Object; private _itemsByName: Object; private _resKey: string; private _customId: string; private _sprites: Object...
/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package scalaguide.ws.scalaws import play.api.libs.ws._ import scala.concurrent.Future import play.api.mvc._ import play.api.test._ import java.io._ import org.junit.runner.RunWith import org.specs2.runner.JUnitRunner // #scalaws-person case...
import * as React from 'react'; type NativeElement = React.ChangeEvent<HTMLInputElement & HTMLTextAreaElement>; export function useForm<T>( initialValues: T, onSubmit?: (data: T) => void, onCancel?: (data: T) => void, ): [T, (event: NativeElement) => void, (event: React.SyntheticEvent) => void, () => void...
SFX_Cry04_3_Ch4: dutycycle 240 squarenote 4, 15, 7, 1696 squarenote 8, 14, 6, 1700 squarenote 4, 13, 6, 1696 squarenote 12, 13, 3, 1568 squarenote 8, 12, 3, 1572 squarenote 4, 12, 2, 1568 squarenote 8, 11, 1, 1552 endchannel SFX_Cry04_3_Ch5: dutycycle 90 squarenote 4, 14, 7, 1537 squarenote 8, 13, 6, 1539...
-module( mode ). -export( [example/0, values/1] ). example() -> Set = [1, 2, "qwe", "asd", 1, 2, "qwe", "asd", 2, "qwe"], io:fwrite( "In ~p the mode(s) is(are): ~p~n", [Set, values(Set)] ). values( Set ) -> Dict = lists:foldl( fun values_count/2, dict:new(), Set ), [X || {X, _Y} <- dict:fold( fun keep_maxs/3, [{0...
<?php namespace Davelip\Queue; use Illuminate\Support\ServiceProvider; use Davelip\Queue\Connectors\DatabaseConnector; use Davelip\Queue\Console\DatabaseCommand; class DatabaseServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ ...
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not ...