text
stringlengths
27
775k
package com.kilchichakov.fiveletters.config import com.mongodb.ConnectionString import com.mongodb.MongoClient import com.mongodb.client.MongoDatabase import org.litote.kmongo.KMongo import org.springframework.beans.factory.annotation.Value import org.springframework.context.annotation.Bean import org.springframework....
# frozen_string_literal: true require "spec_helper" ExecuteSuite = GraphQL::Compatibility::ExecutionSpecification.build_suite(GraphQL::Execution::Execute) LazyExecuteSuite = GraphQL::Compatibility::LazyExecutionSpecification.build_suite(GraphQL::Execution::Execute)
'use strict'; /** * @ngdoc function * @name todoListApp.controller:TaskmakerCtrl * @description * # TaskmakerCtrl * Controller of the todoListApp */ angular.module('todoListApp') .controller('TaskmakerCtrl', function ($mdDialog,$scope) { $scope.name="Nueva Tarea"; $scope.task={ name:"", des...
# TextVectorization layer ### `TextVectorization` class ```python tf.keras.layers.TextVectorization( max_tokens=None, standardize="lower_and_strip_punctuation", split="whitespace", ngrams=None, output_mode="int", output_sequence_length=None, pad_to_max_tokens=False, vocabulary=None, ...
import 'package:animated_bottom_nav_bar/Utils/constants.dart'; import 'package:flutter/material.dart'; class AnimatedBottomNavBarItems extends StatelessWidget { AnimatedBottomNavBarItems({ Key? key, required this.isSelected, required this.label, required this.icon, this.activeColor = Colors.blue,...
require 'rzubr' require 'strscan' class Calculator def initialize() @grammar_table = grammar_table end def grammar_table rule = Rzubr::Rule prec = rule. left('+', '-'). left('*', '/'). right(:UPLUS, :UMINUS) lines = rule.name(:lines) \ > rule[:lines, :expr, "\n"] & :parse_lin...
# vim: set ts=8 sts=2 sw=2 tw=100 et : use strict; use warnings; no if "$]" >= 5.031009, feature => 'indirect'; no if "$]" >= 5.033001, feature => 'multidimensional'; no if "$]" >= 5.033006, feature => 'bareword_filehandles'; use Test::More 0.88; use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; use Test::File::ShareDir ...
require_relative '../bench_init' context "Configured Monitor" do source = StreamMonitor::Controls::Source.example settings = StreamMonitor::Divergence::Settings.build data = settings.get monitor = StreamMonitor::Divergence::Monitor.new source settings.set monitor test "The frequency_milliseconds is con...
--- layout: post title: "Go项目依赖下载超时" subtitle: 'mysql-schema-sync项目里的依赖处理' author: "陶叔" header-style: text tags: - Go --- > 依赖管理:go mod tidy > 问题:dial tcp 172.217.24.17:443: i/o timeout ![](https://tjj006-1302037511.cos.ap-shanghai.myqcloud.com/2021/09/06/16309095344070.jpg) ``` go env -w GO111MODULE=on go env -w G...
#include "client.h" #include "gl/gl_errors.h" #include "gl/primitive.h" #include "input/keyboard.h" #include "world/chunk_mesh_generation.h" #include <SFML/Window/Mouse.hpp> #include <common/debug.h> #include <common/network/net_command.h> #include <common/network/net_constants.h> #include <thread> #include "client_c...
//config.js /** TWITTER APP CONFIGURATION * consumer_key * consumer_secret * access_token * access_token_secret */ module.exports = { consumer_key: process.env.twitter_consumer_key, consumer_secret: process.env.twitter_consumer_secret, access_token: process.env.twitter_access_token, access_token_secret: p...
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Tests that Win32 API prototypes can be successfully loaded (i.e. that // lookupFunction works for al...
#!/bin/bash set -e set -o pipefail set -u BASE=/scratch/users/surag/retina/ RUNNAME=20220202_bpnet JOBSCRIPT=/home/users/surag/kundajelab/retina-models/jobscripts/jobscript.sh # make a copy of code run mkdir -p $BASE/models/$RUNNAME/fold0/modisco cd /home/users/surag/kundajelab/retina-models/src for x in `ls $BAS...
const moment = require('moment'); const assert = require('assert'); const uuid = require('uuid/v4'); const db = require('./helpers/db'); const { getSpecies, up } = require('../../migrations/20201203162238_migrate_species_from_versions'); describe('getSpecies', () => { it('returns an empty array if data or project ar...
require "date" require "active_record" require "i18n" require "i18n_alchemy/date_parser" require "i18n_alchemy/time_parser" require "i18n_alchemy/numeric_parser" require "i18n_alchemy/attribute" require "i18n_alchemy/association_parser" require "i18n_alchemy/proxy" module I18n module Alchemy def localized(attrib...
package org.batfish.question.nodeproperties; import com.google.common.collect.HashMultiset; import com.google.common.collect.ImmutableList; import com.google.common.collect.Multiset; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import javax.annotation.Nonnull; import org.batfish.com...
use crate::bron_kerbosch::types::*; use std::sync::Arc; /// Generic function type, all algorithms must follow this prototype pub type Algorithm<N = Node> = fn(Arc<Graph>, &mut Vec<Node>, Set<N>, Set<N>, Options) -> Report; /// A Generator is a function that returns a list of candidates, /// useful to have a generic i...
#!/bin/sh #execute currdir=$(dirname $0) az_switch="" if [[ $1 == "az" ]];then az_switch="az" fi echo "execute: sh ${currdir}/build_mongodb_mock.sh ${az_switch}" sh ${currdir}/build_mongodb_mock.sh "${az_switch}"
class ViewProcessorMapper implements IViewProcessorMapper, IViewProcessorUnmapper { //----------------------------------- // // Private Properties // //----------------------------------- final Map _mappings = new Map(); IViewProcessorViewHandler _handler; ITypeFilter _matcher; ILogger _logger; ...
/* * 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 ...
#!/bin/sh function migrate() { echo applying migrations - django_peeringdb # always fake, since peeeringdb_server does not use concrete models manage migrate django_peeringdb --fake echo applying all migrations manage migrate } cd /srv/www.peeringdb.com case "$1" in "uwsgi" ) echo starting uwsgi ...
/* * 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 ...
// *********************************************************************** // Copyright (c) 2016-2018 Charlie Poole // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction,...
package handler import ( "fmt" "strconv" "github.com/EdlanioJ/kbu-store/app/domain" "github.com/go-playground/validator/v10" "github.com/gofiber/fiber/v2" "github.com/opentracing/opentracing-go" log "github.com/sirupsen/logrus" ) type storeHandler struct { storeUsecase domain.StoreUsecase validate *vali...
from django.db import models from lobby.models import Player # class Thread(models.Model): # start_time = models.DateTimeField() # duration = models.DurationField() # # player_list class ChatMessages(models.Model): # thread = models.ForeignKey(Thread, on_delete=models.CASCADE) username = models....
/** * Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com> */ package akka.actor.mailbox import com.typesafe.config.Config import akka.util.Duration import java.util.concurrent.TimeUnit.MILLISECONDS import akka.actor.ActorSystem class MongoBasedMailboxSettings(val systemSettings: ActorSystem.Settings, va...
--- ms.openlocfilehash: dff2178ac4279f130f7e3e2e11239541f8c00604576f172f19f723950915d1f6 ms.sourcegitcommit: 7f8d1e7a16af769adb43d1877c28fdce53975db8 ms.translationtype: HT ms.contentlocale: de-DE ms.lasthandoff: 08/06/2021 ms.locfileid: "6993780" --- Microsoft Project
<?php namespace Shoperti\PayMe\Gateways\PaypalPlus; use Shoperti\PayMe\Gateways\PaypalExpress\Events as PaypalExpressEvents; /** * This is the PaypalPlus events class. * * @author Arturo Rodríguez <arturo.rodriguez@dinkbit.com> */ class Events extends PaypalExpressEvents { }
mkdir -p $HOME/.docker; echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json; echo $'{\n "experimental": "enabled"\n}' | sudo tee $HOME/.docker/config.json; sudo service docker restart;
import { IsNotEmpty, IsNumber, IsString, MaxLength } from 'class-validator'; /* Camada responsável por formatar os dados recebidos no Controller e Services Nessa podemos setar os tipos de dados que queremos receber */ export class CreateProductDto { //Esses decorators vem da lib class-validator and class-tran...
# Useful tools for GNURadio programming ## matlab/ Matlab codes for read and write samples * Correlation.m: cross-correlation program, with different kind of preambles ## python/ Python codes for tx/rx samples. It should be used with the grforwarder project, which supports timestamp mechanism. * raw_msgqtx.py: t...
@extends('layouts.front-master') @section('title', 'Уникальная Калмыкия') @section('sidebar') @include('front.menu') @stop @section('content') <header> @include('front.slideshow') </header> <div class="box"> <div class="row"> <?php foreach ($Articles as $Article){ echo '<div class="12u(mobilep)"> <p...
<?php /** * Copyright 2017 Alexandru Guzinschi <alex@gentle.ro> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace Vimishor\Cnp\Test; use Vimishor\Cnp\Gender; /** * @author Alexandru Guzinschi <alex@gentle.ro> */ class GenderTe...
#!/bin/bash # Install Python Dependencies pip3 install --user -r requirements.txt # Download required additional labels wget -N https://ait.ethz.ch/projects/2019/faze/downloads/preprocessing/MPIIFaceGaze_supplementary.h5 wget -N https://ait.ethz.ch/projects/2019/faze/downloads/preprocessing/GazeCapture_supplementary....
package com.sankoudai.java.apix.guava; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import java.util.List; import java.util.NoSuchElementException; import static org.junit.Assert.assertEqual...
-- add new object -- update object -- remove object import UseCases.Client import Storage.Memory2 import Domain.Model {- func :: m a -> m b void $ func a === func a >> pure () -} import qualified Command.Command as Cmd import Command.Result helpMessage :: String helpMessage = "TagMe.\n\ \Tool for labudubadubdubz...
############################ Possible improvements ############################# ### - Better search feature (window and feature) ### - Better font selector (window and feature) ### - Search and replace feature ################################################################################ # Tk require "tk" r...
<?php declare(strict_types=1); /** * This file is part of Narrowspark Framework. * * (c) Daniel Bannert <d.bannert@anolilab.de> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Viserio\Component\Foundation\Bootstrap; use Viserio\Cont...
fn main() { let <tspan data-hash="1">six</tspan> = <tspan class="fn" data-hash="0" hash="3">plus_one</tspan>(5); } fn <tspan class="fn" data-hash="0" hash="3">plus_one</tspan>(<tspan data-hash="2">x</tspan>: i32) -> i32 { <tspan data-hash="2">x</tspan> + 1 }
package controllers import org.scalatestplus.play.{OneAppPerTest, PlaySpec} import play.api.test.FakeRequest import play.api.test.Helpers._ import utils.TimeTestSpec class RootControllerSuite extends PlaySpec with OneAppPerTest with TimeTestSpec { "index action" should { "render index page" in withFixture { ...
import NaverStrategy from "./naver"; export default NaverStrategy; export { NaverStrategy };
use icc::IntCodeComputer; use std::collections::VecDeque; #[aoc(day23, part1)] pub fn solution_23a(input: &str) -> i64 { let v: Vec<i64> = input .trim() .split(',') .map(|o| o.parse::<i64>().unwrap()) .collect(); let mut comps: Vec<IntCodeComputer> = vec![IntCodeComputer::new(v,...
import 'dart:convert'; import 'dart:typed_data'; import 'package:crypton/crypton.dart'; import 'package:pointycastle/export.dart' as pointy; /// [PublicKey] using EC Algorithm class ECPublicKey implements PublicKey { final pointy.ECPublicKey _publicKey; static final pointy.ECDomainParameters curve = pointy.ECCurv...
extern crate rustc_version; use rustc_version::{version_meta, Version}; fn main() { let version = version_meta().unwrap(); if version.semver >= Version::new(1, 10, 0) { println!("cargo:rustc-cfg=feature=\"since_1_10_0\""); // extended_compare_and_swap } if version.semver >= Version::new(1, 1...
#!/usr/bin/env bash echo "Authenticating to google cloud" gcloud auth login
SUBROUTINE GIPROC ( mproc, mbchan, iret ) C************************************************************************ C* GIPROC * C* * C* This subroutine is called by subprocesses to create a communications * C* channel between the subprocess and the calling process. The * C* subprocess is created usin...
using System.Linq; using static SudokuLib.Helpers.SudokuConstants; using static SudokuLib.Helpers.SudokuHelper; namespace SudokuLib.Core { public class Validator { public static bool IsValid(int[,] sudokuBoard, (int row, int column) cellPosition) { var (row, column) = cellPosition;...
/* * Copyright 2017 TimWSpence * * 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 i...
package com.base.component.ui.horizontalrecycler import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.base.component.R import com.base.component.constant.Recyclerview...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import '/models/admin_model.dart'; import '/utils/theme_helper.dart'; import '/widgets/loading_indicator.dart'; import 'admins_ui.dart'; class AdminScreen extends StatelessWidget { AdminScreen({Key? key}) : super(key: key...
(RECTIFY (208307 5248 (:REWRITE CONSP-OF-PSEUDO-LAMBDAP)) (132513 4850 (:REWRITE CONSP-OF-IS-CONJUNCT?)) (72285 1746 (:REWRITE PSEUDO-TERM-LISTP-OF-SYMBOL-LISTP)) (65173 909 (:REWRITE TRUE-LISTP-OF-CAR-WHEN-TRUE-LIST-LISTP)) (60567 892 (:DEFINITION TRUE-LIST-LISTP)) (58518 4250 (:REWRITE S...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Post; use App\Tag; use App\Category; use App\User; use DB; use Illuminate\Support\Facades\Storage; use App\Http\Requests\PostStoreRequest; use App\Http\Requests\PostUpdateRequest; class PostController...
import {TParser} from "../TParser"; import {parse} from "../parse"; import {Stream} from "../Stream"; import {ParseResult} from "../ParseResult"; import {ParseError} from "../ParseError"; import {oneOf} from "./oneOf"; // try to parse p1, then p2 if p1 fails. export function either(p1: TParser, p2?: TParser) { ret...
/* -- Query: SELECT * FROM movies2017.movies_company LIMIT 0, 1000 -- Date: 2018-03-31 00:22 */ INSERT INTO `movies_company` (`Movies_idMovies`,`Company_idCompany`) VALUES (1,100); INSERT INTO `movies_company` (`Movies_idMovies`,`Company_idCompany`) VALUES (1,101); INSERT INTO `movies_company` (`Movies_idMovies`,`Comp...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bxf; using System.Windows; using System.Windows.Controls; using System.Collections.ObjectModel; using Microsoft.Phone.Controls; namespace WpUI { public class MainWindowPresenter : DependencyObject { public MainWindowPr...
import { NativeModules } from 'react-native'; import type { PaymentMethodCreateParams, ApplePay, PaymentSheet, ConfirmSetupIntent, InitialiseParams, CreatePaymentMethodResult, RetrievePaymentIntentResult, RetrieveSetupIntentResult, ConfirmPaymentResult, HandleNextActionResult, ConfirmSetupIntentRe...
require 'db_spec_helper' module Bosh::Director describe 'Add Multi-Runtime-Config Support' do let(:db) { DBSpecHelper.db } let(:migration_file) { '20170510154449_add_multi_runtime_config_support.rb' } before do DBSpecHelper.migrate_all_before(migration_file) db[:runtime_configs] << {id: 100...
/* Copyright 2009-2016 EPFL, Lausanne */ package leon package solvers package unrolling import purescala.Common._ import purescala.Expressions._ import purescala.Definitions._ import purescala.Extractors._ import purescala.ExprOps._ import purescala.Types._ import utils._ import scala.collection.mutable.{Map => Mut...
--- title: Dendrogram order: 1 --- The leaves will be aligned on the same level. This algorithm does not consider the node size, which means all the nodes will be regarded as unit size with 1px. <br /> <img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zX7tSLqBvwcAAAAAAAAAAABkARQnAQ' alt='dendrogram' wid...
scalaVersion := "2.10.2" libraryDependencies ++= Seq("commons-io" % "commons-io" % "2.4") assemblyMergeStrategy in assembly := { case PathList("META-INF", xs @ _*) => MergeStrategy.discard case x => MergeStrategy.first }
import { Injectable } from "@angular/core"; import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from "@angular/common/http"; import { Order } from "./model/order"; import { DeliveryOption } from "./model/deliveryOption"; import { Observable } from "rxjs"; import { config } from "src/environments/config"...
import pandas as pd import numpy as np import tensorflow as tf import normal import com #reading the smaple data df = pd.read_csv('trail.csv') print(df.head()) print(np.mean(df)) x_value = df['Value'].values #input and output array input = [] output =[] for i in range(0,len(x_value)): input.ap...
import paramiko from time import sleep import json import config import ssh import mister import cores import logger import discord SETTINGS = config.get_config() maps = cores.read_file_map() RECENTS_FOLDER = '/media/{}/config/'.format(SETTINGS['core_storage']) last_game = None last_core = None def replace_text(...
package de.maibornwolff.codecharta.importer.crococosmo import de.maibornwolff.codecharta.importer.crococosmo.CrococosmoImporter.Companion.main import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Test import java.io.File class CrococosmoImporterTest { @Test fun `should create json ...
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE ScopedTypeVariables #-} module Data.Metric ( Metric(..), closest, ) where import Data.Proxy import Data.Ratio import Data.Word class Metric a where dist :: (Fractional n) => a -> a -> n closest :: (Fractional n, Ord n, Metric a) => Proxy n -> [a] -> a -...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Moq; using NUnit.Framework; namespace Azure.Messaging.ServiceBus.Tests.Client { public class ServiceBusTransportMetricsTests { [Test] public void CanConstructMetricsWithFactory()...
using System; namespace BistroFiftyTwo.Cli.Client { public class Ingredient { public int ordinal { get; set; } public string recipeId { get; set; } public double quantity { get; set; } public string units { get; set; } public string ingredient { get; set; } publi...
using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Social.Basecamp.Models.Bc3.Todos; namespace Skybrud.Social.Basecamp.Models.Bc3.Webhooks { public class BasecampWebhookTodoCreatedData : BasecampWebhookData { public new BasecampWebhookTodoCreatedDetails Details { get...
using MediatR; using Microsoft.Extensions.Logging; using Moq; using SFA.DAS.Apprenticeships.Api.Types; using SFA.DAS.AssessorService.Application.Api.Controllers; using System.Collections.Generic; using System.Threading; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using NUnit.Framework; using SFA.DAS.Assesso...
class ConcentracaoTeste{ int id; int idTeste; double concentracao; ConcentracaoTeste({this.id, this.idTeste, this.concentracao}); //Transforma o objeto em um Map para gravar no banco Map<String, dynamic> toMap(){ var map = <String,dynamic>{ 'id': id, 'idTeste': idTeste, 'concentrac...
import { SpecialModifier } from "../enums"; export interface AttackCard { text: string; modifier?: number; special?: SpecialModifier; continue?: boolean; shuffle?: boolean; }
// Manages the state shared by GeckoBridge instances and exposes // an api usable by other services. use crate::generated::common::{ AppsServiceDelegateProxy, CardInfoType, MobileManagerDelegateProxy, NetworkInfo, NetworkManagerDelegateProxy, NetworkOperator, PowerManagerDelegateProxy, }; use common::tokens::S...
namespace OkonkwoOandaV20.TradeLibrary.DataTypes.Transaction { public class OrderCancelTransaction : Transaction { public long orderID { get; set; } public string clientOrderID { get; set; } public string reason { get; set; } public long? replacedByOrderID { get; set; } } }
package master_thread import ( "fmt" . "github.com/toophy/chat_svr/account" "github.com/toophy/chat_svr/proto" "github.com/toophy/toogo" "sync" ) // 主线程 type MasterThread struct { toogo.Thread AccountsMutex sync.RWMutex // 帐号读写锁 AccountsId map[uint64]*GameAccount // 帐号ID索引 AccountsName map[str...
# require this file to load all the backports up to Ruby 1.9.2 require 'backports/1.9.1' if RUBY_VERSION < '1.9.2' Backports.warned[:require_std_lib] = true require "backports/std_lib" Backports.require_relative_dir end
#FILE=user2.pem source global_settings echo "" echo "=========================" echo "Delete cert file for Network Manager" ${CURL_APP} --request DELETE "${URL}/file?file=${FILE}&type=${TYPE}" \ -b cookie --insecure \ # | ${JQ_APP} echo -e "\n"
--- layout: post title: 砖墙 category: HashMap tags: HashMap LeetCode Keywords: HashMap LeetCode description: --- ## 1. LeetCode 554: [Brick Wall](https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/) ## 2. 描述: 有一面长方形的墙,墙是由很多层砖堆成的,每块砖的高度相同但是宽度不同,需要从墙的顶部到底部画一条垂直的线,并使得穿过的砖最少。 砖墙由一组整数数组表示,每一个数组内的数字都代表砖...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\User; use App\Idea; use View; use Cookie; use Lang; use MetaTag; class PageController extends Controller { public function home(Request $request) { # META MetaTag::set('t...
#!/bin/bash if [ ! -d $1 ]; then mkdir -p $1 pushd $1 > /dev/null git clone https://github.com/Marvell-switching/FPA-switch . git checkout master popd > /dev/null fi
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} module Algorithm.GradientDescent (GradientDescent, Grad, StopCondition(StopWhen), grad, move, descend ) where -- import Numeric.AD as AD...
package dar // FileHeader describes a file within a zip file. // See the zip spec for details. type FileHeader struct { // Name is the name of the file. // It must be a relative path: it must not start with a drive // letter (e.g. C:) or leading slash, and only forward slashes // are allowed. Name string Creato...
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
using UnityAudioManager; using UnityEngine; namespace SonarSpaceship.Triggers { public class MusicAudioVolumeTriggerScript : MonoBehaviour, IMusicAudioVolumeTrigger { [SerializeField] private float musicVolume = 1.0f; public float MusicVolume { get => musicVolume; ...
export interface SubscriptionTryout { changeVector: string; query: string; }
import 'react-native-gesture-handler'; import React from 'react'; import {StatusBar} from 'expo-status-bar'; import Navigator from './navigators/Navigator'; import {MainProvider} from './contexts/MainContext'; const App = () => { return ( <> <MainProvider> <Navigator /> </MainProvider> ...
import { createFeatureSelector, createSelector } from '@ngrx/store' import { ModeratorState } from './moderator.state' export const selectModeratorState = createFeatureSelector<ModeratorState>('moderator') export const selectModeratorQuestions = createSelector( selectModeratorState, (state: ModeratorState) => sta...
include("dynamic_smagorinsky.jl") function realspace_LES_calculation!(s::AbstractSimulation) hasles(s) || return nothing if is_dynamic_les(s) realspace_dynamic_les_calculation!(s) fourierspace_dynamic_les_calculation!(s) coefficient_les_calculation!(s) end calc_les!(s) end @par...
## UPDATE LOG ### 2017-05-19 1. 登陆系统实现JWT验证方式.
const $window = $(window); export class DropDown { constructor(options) { this.options = options; this.init(); } init() { let self = this; self.main = self.getMain(); let events = self.options.events; self.main.on('click', 'button', function () { ...
# xsp_eventfd `xsp_eventfd` supports a Linux-like event file descriptor ("eventfd") mechanism. In particular, this allows one to `select()` on socket file descriptors and still be awoken by other tasks. ## Features and limitations * It should be analogous to Linux's eventfd, except that semaphore mode is not y...
package se.gustavkarlsson.skylight.android.feature.googleplayservices import android.os.Bundle import kotlinx.android.parcel.IgnoredOnParcel import kotlinx.android.parcel.Parcelize import se.gustavkarlsson.skylight.android.lib.navigation.Backstack import se.gustavkarlsson.skylight.android.lib.navigation.Screen import ...
package io.github.kmakma.adventofcode.y2019.utils import io.github.kmakma.adventofcode.y2019.utils.ComputerNetwork.Companion.buildEnvironment import io.github.kmakma.adventofcode.y2019.utils.ComputerNetwork.NetworkMode.LOOP import io.github.kmakma.adventofcode.y2019.utils.ComputerNetwork.NetworkMode.SINGLE import io.g...
require "keg" require "formula" require "migrator" module Homebrew def uninstall raise KegUnspecifiedError if ARGV.named.empty? # Find symlinks that can point to keg.rack links = HOMEBREW_CELLAR.subdirs.select(&:symlink?) if !ARGV.force? ARGV.kegs.each do |keg| keg.lock do p...
export * from './types/index'; export * from './alexa-device-handler';
# frozen_string_literal: true require_relative "../gergich" require "English" module Gergich module Capture class BaseCapture def self.inherited(subclass) super name = normalize_captor_class_name(subclass) Capture.captors[name] = subclass end def self.normalize_captor_...
import { makeStyles } from '@material-ui/core/styles'; export const cardBodyStyle = makeStyles((theme) => ({ cardBody: { padding: "0.9375rem 1.875rem", flex: "1 1 auto", }, })); export default cardBodyStyle;
package org.team5419.fault.math.localization import org.team5419.fault.math.geometry.Pose2d import org.team5419.fault.math.geometry.Rotation2d import org.team5419.fault.math.geometry.Twist2d import org.team5419.fault.math.units.meters import org.team5419.fault.util.Source class TankPositionTracker( headingSource:...
package com.rarible.core.daemon.healthcheck import org.springframework.boot.actuate.health.Health import org.springframework.boot.actuate.health.Status import java.time.Duration import java.time.Instant import java.util.concurrent.atomic.AtomicReference class DowntimeLivenessHealthIndicator( private val allowedDo...
// <copyright> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> namespace System.Activities.Presentation.Debug { using System.Activities; using System.Activities.Presentation.View; using System.Runtime; /// <summary> /// AllowBreakpointAttribute is an attribute to de...
require 'spec_helper' describe Weary::Env do describe "#env" do it_behaves_like "a Rack env" do subject do req = Weary::Request.new("http://github.com/api/v2/json/repos/show/mwunsch/weary") described_class.new(req).env end end end end