text
stringlengths
27
775k
import Vue from "vue"; import { library } from "@fortawesome/fontawesome-svg-core"; import { faAngleDoubleLeft, faAngleDoubleRight, faAngleDown, faAngleLeft, faAngleRight, faBars, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faEye, faQuestionCircle, faLanguage, faTimes, faTi...
import { ConsoleSink, ConsoleSinkOptions, LogEvent } from "serilogger"; /** * ProxyInterface für die Console zum ausgeben von Nachrichten */ export interface ConsoleProxy { // #region error /** * Outputs an error message. You may use string substitution and additional arguments with this method * ...
package spark.storage import java.nio.ByteBuffer import akka.actor._ import org.scalatest.FunSuite import org.scalatest.BeforeAndAfter import org.scalatest.PrivateMethodTester import org.scalatest.concurrent.Eventually._ import org.scalatest.concurrent.Timeouts._ import org.scalatest.matchers.ShouldMatchers._ import...
// import { execSync } from 'child_process'; import chalk from 'chalk'; import * as utils from './utils'; const log = (...info: any[]) => utils.log(chalk.blueBright(...info)); export const build = (_: string) => { log('Building DigitalOcean snapshot...'); };
<? $arraysubmenu[0][Judul]="Tambah IK"; $arraysubmenu[1][Judul]="Update/Cari IK"; $arraysubmenu[0][href]="index.php?pilihan=ltambah"; $arraysubmenu[1][href]="index.php?pilihan=llihat"; $arraysubmenu[0][t]="C"; $arraysubmenu[1][t]="C"; createsubmenu("Instruksi Kerja",$arraysubmenu); ?>
use super::super::tree; use super::super::common::index_readed; use std::fs::File; pub struct CommitObject { commit_hash:String, pub index: Vec<index_readed::IndexReaded>, pub tree_dir: Vec<String>, } impl CommitObject { pub fn new() -> Self { Self { commit_hash: "".to_string(), index: Vec::ne...
module.exports = map // map := (Continuable<A>, (A) => B) => Continuable<B> function map(source, lambda) { return function continuable(callback) { source(function continuation(err, value) { if (err) { return callback(err) } callback(null, lambda(value)) ...
<?hh <<__EntryPoint>> function main_1778() { $im = imagecreatetruecolor(120, 20); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color); ob_start(); imagepng($im); $md5 = md5(ob_get_clean()); imagedestroy($im); echo "md5: $md5\n"; }
# A Complete example ``` import 'package:button3d/button3d.dart'; import 'package:flutter/material.dart'; var button1 = Button3d( style: Button3dStyle.BLUE, onPressed: () {}, child: Text("Add"), ); var button2 = Button3d( style: Button3dStyle( topColor: Colors.lightGreen, backColor: Colors.deepOr...
package com.testerum.common_rdbms.util import java.sql.ResultSet fun ResultSet.readListOfString(): List<String> { val result = mutableListOf<String>() while (next()) { result.add(getString(1)) } close() return result }
# eslint-config-blued-typescript 主要文档目录:[eslint-config-blued](https://www.npmjs.com/package/eslint-config-blued) 基于React进行的规则增强,只需将上述文档中`blued`修改为`blued-typescript`即可。 > 包含安装步骤以及`extends`的设置 ```bash npx install-peerdeps --dev eslint-config-blued-typescript ``` ```yml extends: blued-typescript ``` ## 注意事项 如果同时使...
/* * 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 writing, software * distributed u...
using System.Threading.Tasks; using Akka.Cluster; using Master.Seed.Node.Commands; using Microsoft.Extensions.Hosting; using Petabridge.Cmd.Cluster; using Petabridge.Cmd.Host; using ServiceHost.Client.Shared; using Tauron.Application.AkkaNode.Bootstrap; using Tauron.Application.AkkaNode.Bootstrap.Console; using Tauron...
<?php /** * Install Skin class. * * @since 1.9.10 * * @package OMAPI * @author Justin Sternberg */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WordPress class extended for on-the-fly addon installations. */ class OMAPI_InstallSkin extends WP_Upgrader_Skin { /** * Empty ...
# frozen_string_literal: true module Thredded class MessageboardsController < Thredded::ApplicationController before_action :thredded_require_login!, only: [:new, :create, :edit, :update] after_action :verify_authorized, except: %i(index) after_action :verify_policy_scoped, except: %i(new create edit upd...
package main import ( "database/sql" "strings" ) type inserter struct { tx *sql.Tx query *sql.Stmt params []interface{} } func (c *db) prepare(columns []string) (ins *inserter, err error) { query := `insert into drive_stats (` query += strings.Join(columns, ", ") query += `) values (` query += strings....
package net.bdew.compacter.blocks.cobbler import net.bdew.compacter.registries.Blocks import net.bdew.lib.block.HasTE import net.minecraft.block.Block class BlockCobbler extends Block(Blocks.machineProps) with HasTE[TileCobbler]
import { Injectable } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpResponse, HttpHandler, HttpEvent, HttpErrorResponse, HttpParams, HttpParameterCodec } from '@angular/common/http'; import { Observable, throwError, from, forkJoin, of, iif, Subject, BehaviorSubject } from 'rxjs'; imp...
[[src]](https://github.com/ghc/ghc/tree/master/compiler/utils/Bag.hs) (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 Bag: an unordered collection with duplicates Satisfy predictate Don't Left Right Standard definition foldBag t u e EmptyBag = e fol...
import { Dimensions, StyleSheet } from 'react-native'; import { Colors, Fonts, Sizes } from '../../environment/theme'; const { width, height } = Dimensions.get('window'); export default StyleSheet.create({ modal: { justifyContent: 'center', alignItems: 'center', width, height, margin: 0, padding: 0, }, ...
module ExprExpander where import Types import qualified Data.List.NonEmpty as NE import Data.Foldable (foldl', toList) both :: (a -> b) -> (a, a) -> (b, b) both f (q, w) = (f q, f w) expandSyntax :: LispSyntax -> LispAst expandSyntax (ConstS t) = Const (primitiveSyntaxToAst t) expandSyntax (VarS s) = Var s -- trivia...
--- layout: issue title: "Zend_Controller_Router_Route_Chain does not make routes available" id: ZF-10234 --- ZF-10234: Zend\_Controller\_Router\_Route\_Chain does not make routes available ------------------------------------------------------------------------------- Issue Type: Improvement Created: 2010-07-27T06:...
using System.Collections.Immutable; namespace Deltics.VersionInfo { public class VarFileInfo : FileInfo { public Var Value { get; internal set; } } }
<?php /** * The plugin bootstrap file * * This file is read by WordPress to generate the plugin information in the plugin * admin area. This file also includes all of the dependencies used by the plugin, * registers the activation and deactivation functions, and defines a function * that starts the plugin. * * ...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using System.Threading.Tasks; namespace M...
using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using Wox.Plugin; using Wox.Plugins.Common; namespace Wox.Plugins.KeePass.Parsers { public interface IOpenKeePassParser : IParser { } public class OpenKeePassParser : IOpenKeePassParser { private const string ...
#!/usr/bin/bash python3 -m pip install ./dist/*.whl --force-reinstall
#!/usr/bin/env node const fetch = require('node-fetch'); if (process.argv.length !== 3) { throw new Error(`Usage: ${process.argv[1]} «count»`); } const countString = process.argv[2]; const count = countString|0; if (`${count}` !== countString) { throw new Error(`Unable to parse “${countString}” as number.`); } ...
<?php namespace App\Classes; class ParserFactory { public static function getParser($url) { if (strpos($url, '/223/purchase/public/purchase/info/common-info') !== false) { return new PublicPurchase($url); } elseif (strpos($url, 'info/lot-list') !== false) { return new...
/* * Copyright (c) 2021, Firely (info@fire.ly) and contributors * See the file CONTRIBUTORS for details. * * This file is licensed under the BSD 3-Clause license * available at https://raw.githubusercontent.com/FirelyTeam/firely-net-sdk/master/LICENSE */ using Hl7.Fhir.ElementModel; using Hl7.Fhir.Model; usin...
import { LOCATION_CHANGE } from 'connected-react-router' import { getPageTitleFromRoute } from 'utils/routes' export type State = { pageTitles: Array<string> } const initState = { pageTitles: [] } export const reducer = (state: State = initState, action: any) => { if (action.type === LOCATION_CHANGE) { con...
namespace PathfinderMG.Core.Source.ScenarioCore.Pathfinders { interface IPathfinder { } }
-- Copyright (c) YugaByte, Inc. alter table kms_config add column name varchar(100); update kms_config set name = CONCAT(key_provider, ' KMS Configuration');
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Windows.Forms; /// <summary> /// CREDITS: https://github.com/lolp1/GetD3DHookOffset /// </summary> namespace GameSharp.Internal.Direct3D { public abstract class D3DDevice ...
using MediatR; using System.Threading; using System.Threading.Tasks; using Tufan.Authority.Domain.Model.Request; using Tufan.Authority.Domain.Services; namespace Tufan.Authority.Application.Session.Query { public class GetSessionQuery : SessionRequest, IRequest<string> { } public class GetSessionQue...
#include <Arduino.h> #include "main_config.h" #include "quickjs.h" #ifdef _UNIT_SONICIO_ENABLE_ #include "module_unit_sonicio.h" #include "SONIC_IO.h" static SONIC_IO sensor; static JSValue unit_sonicio_begin(JSContext *ctx, JSValueConst jsThis, int argc, JSValueConst *argv) { ...
require File.join(File.dirname(__FILE__), 'spec_helper') describe RDF::Node do before :each do @new = Proc.new { |*args| RDF::Node.new(*args) } end it "should be instantiable" do lambda { @new.call }.should_not raise_error end it "== a node with the same identifier" do @new.call("a").should =...
export declare function getPointsConfidence(heatmapScores: any, heatMapCoords: any): Float32Array; export declare function getOffsetVectors(heatMapCoordsBuffer: any, offsetsBuffer: any): any; export declare function getOffsetPoints(heatMapCoordsBuffer: any, outputStride: any, offsetsBuffer: any): any; export declare fu...
#include "gtest/gtest.h" #include "Lithe/LitheCore.h" #include "SphericalTestAtlas.hpp" #include <vector> using namespace std; using namespace lithe; // The fixture for testing class Block. class SphericalAtlasTest : public ::testing::Test { protected: // You can do set-up work for each test here. Spherical...
# Helloworld project spring boot 프로젝트로 간단한 샘플들을 정의한다. ##주소 샘플 1. Spring boot web project 1. ApiController 1. Thymeleaf 1. Exception 1. Validation 1. JPA 1. Gradle 1. FTP deploy
package com.neokii.ntune import org.json.JSONObject class LqrTuneActivity: BaseTuneActivity() { override fun getRemoteConfFile(): String { return "/data/ntune/lat_lqr.json" } override fun getItemList(json: JSONObject): ArrayList<TuneItemInfo> { return ArrayList<TuneItemInfo>().apply { ...
using System; using System.Collections.Generic; using Application.Common.Models; using FluentValidation; namespace Application.Tasks.Dtos { public class UpdateTaskDto : Dto { public string Name { get; set; } public string Note { get; set; } public bool IsDone { get; set; } publi...
<!DOCTYPE html> <html lang="hu"> <head> <title>Tanárok modosítása</title> <meta charset="utf-8"> <link href="{{ asset('/css/adminStyle.css') }}" rel="stylesheet"> <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script> </head> <body> <div id="table"> <div id="top"> <h2>Tanár módos...
import { Titles } from '../titles'; const titles = new Titles({ staging: true, }); describe('Class(Titles)', () => { describe('func(get)', () => { it('should return a given title', async () => { const title = await titles.get(144); expect(title.ID).toEqual(144); expect(title.IsPrefix).toEqu...
import Vue from 'vue' import VueI18n from 'vue-i18n'; Vue.use(VueI18n) import { languages } from './i18n/index.js'; import { defaultLocale } from './i18n/index.js'; // Expected value= Object { en:en, es:es } const messages = Object.assign(languages); // I18n object var i18n = new VueI18n({ locale: defaultLocale, ...
import React, {useMemo, useState} from "react"; import {Trans} from "@lingui/macro"; import {IBaseProps} from "../../interfaces/props"; import {Box} from "@chakra-ui/layout"; import { IconButton, Menu, MenuButton, MenuItemOption, MenuList, MenuOptionGroup } from "@chakra-ui/react"; import {SettingsIcon} from "@ch...
const _binary_koan$elm_spruce$Native_Spruce = function() { const { nativeBinding, rawSpawn, andThen, succeed } = _elm_lang$core$Native_Scheduler const http = require("http") const parseUrl = require("url").parse function buildServer(settings) { function encodeRequest(request, callback) ...
@model SpartanTrainingRoom.Models.Course @{ ViewData["Title"] = "Video"; } <div class="main-container"> <h1>Course: C#</h1> <div class="video-container"> <video width="850" height="500" src="~/video/CSharpVariable.mp4" controls="controls"> Your browser does not sup...
import moment from 'moment'; import { Moment } from 'moment'; import { vektetSjanse } from '../utils/mock-utils'; import { Sivilstand, SivilstandTyper } from '../../models/person/person'; const ugift = (fraOgMed: string) => { return { kodeRef: SivilstandTyper.Ugift, beskrivelse: 'Ugift', f...
class DefaultUIobject #data struct attr_accessor :enabled attr_reader :label def initialize drawable, label, update_func = nil, enabled = true @drawobj, @label, @update_callback, @enabled = drawable, label, update_func, enabled end def update param width = param[0] height = param[1] @up...
const TmSignature = artifacts.require("TMSignatureMock"); contract("TmSignature", () => { beforeEach(async () => { this.contract = await TmSignature.new(); }); context("recoverSigner", () => { it("should verify signature correctly", async () => { const appHash = "0x8D1897D04B6B4746021EAF4BF80F0FF9...
using UnityEngine; /// <summary> /// -Base class for all characters. /// -Data structure /// </summary> public class BaseCharacter : MonoBehaviour { private string _characterName; private float _health; private float _walkSpeed; private float _runSpeed; private float _jumpSpeed; private float _...
export { SmallHeader as default } from "../../components/Header.js"
package p; public class FindLoopInLinkedList { public LinkedListLoop a; public int loopLength; public void createLoop(){ a = new LinkedListLoop(); a.addAtEnd(10); a.addAtEnd(20); a.addAtEnd(30); a.addAtEnd(40); a.addAtEnd(50); a.addAtEnd(60); a.insertLoop(2); a.displayLoop(); } ...
#if __WASM__ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Windows.Foundation; using Windows.UI.Xaml.Media; namespace Windows.UI.Xaml.Controls { internal partial class PopupRoot : Panel { public PopupRoot() { Background = new SolidColorBrush(Colors.Transparent); ...
package kpn.database.base import kpn.core.metrics.AnalysisActionDoc import kpn.core.metrics.ApiActionDoc import kpn.core.metrics.LogActionDoc import kpn.core.metrics.ReplicationActionDoc import kpn.core.metrics.SystemStatusDoc import kpn.core.metrics.UpdateActionDoc trait MetricsDatabase { def api: DatabaseCollect...
/// <reference path='fourslash.ts' /> // @allowJs: true // @Filename: /a.js ////module.exports = 0; /////*1*/export type /*2*/N = number; // @Filename: /b.js ////type T = import("./a")./*3*/N; verify.baselineFindAllReferences('1', '2', '3');
; ModuleID = 'streamcluster_header.cu' source_filename = "streamcluster_header.cu" target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64" target triple = "nvptx64-nvidia-cuda" !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!1086, !1087, !1088} !llvm.ident = !{!1089} !nvvm.internalize.after.link = !{} !nvvmir.version = !{...
import isPowerOfTwo from "../isPowerOfTwo"; describe("isPowerOfTwo", () => { it("should check if the number is made by multiplying twos", () => { expect(isPowerOfTwo(-1)).toBe(false); expect(isPowerOfTwo(0)).toBe(false); expect(isPowerOfTwo(1)).toBe(true); expect(isPowerOfTwo(2)).toBe(true); expe...
UPDATE test SET name = ? WHERE id = ?) CREATE TABLE interleaved_inserts ( id INTEGER PRIMARY KEY, name STRING NOT NULL ) CREATE TABLE testing (id INTEGER PRIMARY KEY, name STRING NOT NULL) SELECT id, name, name FROM test'; SELECT COUNT(*) FROM test')->fetchColumn()); SELECT * FROM test')); CREATE TABLE test ( id INTEG...
//! This module defines the ScanModule, a trait that all scan modules must implement in order //! to be run by ArmorLib. The `ScanModule` trait is available in the root namespace as //! `armorlib::ScanModule`. use errors::ArmorlibError; use scan_object::ScanObject; use finding::Finding; /// A trait that defines the n...
using System; using System.Collections.Generic; using System.Globalization; using System.Text.RegularExpressions; using Newtonsoft.Json; using RippleDotNetCore.Rippled.Helper; namespace RippleDotNetCore.Rippled.Json { public static class Extensions { public static string ToLower(this Enum value) ...
package com.wei.android.lib.fingerprintidentify.demo; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.TextView; import com.wei.android.lib.fingerprintidentify.FingerprintIdentify; import com.wei.android.lib.fi...
/*************************************************** This is a library for the MCP23017 i2c port expander These displays use I2C to communicate, 2 pins are required to interface Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purcha...
About ----- [![Build Status](https://travis-ci.org/hyperion-rt/hyperion.svg)](https://travis-ci.org/hyperion-rt/hyperion?branch=master) [![CircleCI](https://circleci.com/gh/hyperion-rt/hyperion/tree/master.svg?style=svg)](https://circleci.com/gh/hyperion-rt/hyperion/tree/master) [![Documentation Status](https://readth...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Http.Metadata { /// <summary> /// Defines a contract for outline the response type returned from an endpoint. /// </summary> public int...
import '../../../general/TileType.dart'; import '../MoveFinder.dart'; import '../random/RandomAI.dart'; import 'dart:math'; import 'package:tuple/tuple.dart'; import '../../../general/Move.dart'; import '../../../general/Intelligence.dart'; import '../ArtificialIntelligence.dart'; import '../../board/Hexxagon.dart'; ...
package ch_test import ( "github.com/dollarkillerx/easyutils/clog" "runtime" "strconv" "sync" "testing" "time" ) func TestCh(t *testing.T) { // 生成测试数据 a := []int{} for i:=0;i<100;i++ { a = append(a,i) } sy1 := sync.WaitGroup{} // go 打印测试数据 chi := make(chan int,10) chi <- 1 for _,i := range a { ...
<?php namespace App\Services; use App\Repositories\VoteRepository; use Illuminate\Http\Request; class VoteService { private $voteRepository; /** * Construct repository * * @param \App\Repositories\voteRepository $voteRepository */ public function __construct( VoteRepository $...
<?php /** * This file is part of the Krystal Framework * * Copyright (c) No Global State Lab * * For the full copyright and license information, please view * the license file that was distributed with this source code. */ namespace Krystal\Application\Component; use Krystal\Authentication\AuthManager as Co...
//------------------------------------------------------------------------------ // <copyright file="TempFiles.cs" company="Microsoft"> // // <OWNER>Microsoft</OWNER> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //----...
using SkiaSharp; using System; using System.Collections.Generic; using System.Text; namespace Mageki.Drawables { public class MenuButton : IButton { const float backgroundSizeRatio = 1.6f; private Button button = new Button(); MenuBackground background = new MenuBackground(); ...
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!! # This file is machine-generated by mktables from the Unicode # database, Version 6.1.0. Any changes made here will be lost! # !!!!!!! INTERNAL PERL USE ONLY !!!!!!! # This file is for internal use by core Perl only. The format and even the # name or existence of...
import * as React from 'react' import { Fragment } from 'react' import { Switch, Route } from 'react-router-dom' import { ThemeProvider } from '@material-ui/styles' import routes from 'app/routes' import Appbar from 'app/components/Appbar' import Home from './Home/Home' import theme from 'app/styles/theme' const R...
<?php /** * Copyright 2018 SURFnet B.V. * * 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 ag...
let abc = undefined; const def = null; function getData(): string | undefined { return ''; } const data = getData(); if (data) { const someOtherData = data; } let input: unknown; input = 'someInput'; let someSensitiveValue: string; if (typeof input === 'string') { someSensitiveValue = input; } func...
Any contribution you make to this repository will be under the [Apache 2 Licence](https://www.apache.org/licenses/LICENSE-2.0) as dictated by Section 5 of that licence: ``` 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work...
#include <vector> #include <map> #include <algorithm> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: map<int, vector<pair<int, int>>> S; void dfs(TreeNode* root, int u, int v) ...
import 'package:flutter_test/flutter_test.dart'; import 'package:happy_holidays/api/holiday_api.dart'; import 'package:happy_holidays/api/holiday_api_client.dart'; import 'package:happy_holidays/model/national_holiday.dart'; import 'package:http/http.dart' as http; import 'package:mockito/mockito.dart'; class MockApi ...
using Equinor.ProCoSys.IPO.Domain; using Microsoft.Extensions.Configuration; namespace Equinor.ProCoSys.IPO.WebApi.Misc { public class PlantProvider : IPlantProvider, IPlantSetter { private readonly IConfiguration _configuration; public PlantProvider(IConfiguration configuration) => _configur...
module Zen ## # Module for generating HTML diffs using Diff::LCS and a custom callback # class. See {Zen::HTMLDiff.diff} and {Zen::HTMLDiff::Callback} for more # information on the usage and the returned HTML. # # @since 2012-05-02 # module HTMLDiff ## # Gets the difference between the two given...
package typingsSlinky.amazonConnectStreams.connect import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native sealed trait AgentErrorStates extends StObject @JSGlobal("connect....
require 'gdsii/group' require 'gdsii/property' module Gdsii # # Generic class to be inherited by various GDSII elements (i.e. things that # can be added to a Structure). # class Element < Group # No BNF for generic Element; refer to actual Element itself (i.e. # Boundary, Path, etc.) #...
export let CONFIG = {} as any; export let firebase; export const Bootstrap = (config, _firebase) => { CONFIG = config; firebase = _firebase firebase.initializeApp(config.firebaseConfig); }; export const setConfig = (config) => { CONFIG = config; };
import React, { memo } from "react"; import styled from "styled-components"; import { Text, Icon } from "@gnosis.pm/safe-react-components"; import { Accordion, AccordionSummary, AccordionDetails, withStyles, } from "@material-ui/core"; import { theme } from "theme"; import { Link } from "components/basic/inpu...
import { Client, UserinfoResponse } from 'openid-client'; import { logInfo } from '@navikt/familie-logging'; import azure from './azure'; export default async (passport: any): Promise<Client> => { logInfo('Konfigurerer passport'); const azureAuthClient: Client = await azure.hentClient(); const azureOidcStr...
#!/bin/sh # This script ensures that ep-lite is automatically restarting after # an error happens # Handling Errors # 0 silent # 1 email ERROR_HANDLING=0 # Your email address which should receive the error messages EMAIL_ADDRESS="no-reply@example.com" # Sets the minimum amount of time between the sending of error...
require 'rails_helper' RSpec.describe 'Annotation display', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:related_annotations) do FactoryBot.create(:annotation, canvas: 'https://digi.vatlib.it/iiif/MSS_Urb.lat.491/canvas/p0012', data: { resource: [{ '@type' => 'oa:Something...
import { Express } from "express"; import { IBearerStrategyOption } from "passport-azure-ad"; import { PeerList } from "webrtc-signal-http"; import { Publisher } from "webrtc-signal-http-publisher"; export interface ISignalerOpts { port?: number; trustProxy?: boolean; loggingEnabled: boolean; authEnabl...
package net.imknown.android.forefrontinfo.ui.base import android.content.res.AssetManager import android.util.Log import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import net.imknown.android.forefrontinfo.R import net.imknown.android.forefrontinfo.base.MyApplication import net.imknow...
--DROP FUNCTION cartesian; /** * This function computes the x,y,z co-ordinates on the cartesian unit sphere * for a given ra, decl. * ra and decl are both in degrees. */ CREATE FUNCTION cartesian(ira DOUBLE PRECISION, idecl DOUBLE PRECISION) RETURNS TABLE (x DOUBLE PRECISION, y DOUBLE PRECISION, z DOUBLE PRECISIO...
<?php declare(strict_types=1); namespace Zing\QueryBuilder\Tests; use Zing\QueryBuilder\QueryBuilder; use Zing\QueryBuilder\Tests\Models\Order; /** * @internal */ final class CustomBuilderTest extends TestCase { public function testScope(): void { self::assertSame( Order::query()->wher...
/** * @file DiceRoller.cpp * @brief The Dice Roller is taking a rule from the user, and execute * this rule, by setting up dice, and rolling them all. * @author Samuel RRJ Masuy * @version 1.0 * @date 2016-10-18 */ #include <regex> #include <stdio.h> #include "DiceRoller.h" #include "DiceExceptions.h" DiceRoll...
// imports const path = require('path'); const DPNSDocument = require('./dpnsDocument.model.js'); const debug = require('debug')('server:debug'); /** * DashUser class - represents a registered Dash Platform Username * @class DashUser * @property {string} id Unique id fopr the user record - the id of the DPNS docume...
--- title: 【スマートヘルスケア協会】薬局でHPV自己チェック‐「健康応援スポット」認証へ description: 1月30日付薬事日報に当協会の記事が掲載されました。メールマガジンでもお伝えさせていただいた自己チェックサービス提供施設管理者研修に関わる内容です。ぜひご一読ください。 date: 2019-01-31T06:15:53.059Z categories: topic images: - caption: ■薬事日報(紙面)※株式会社薬事日報社の掲載許諾済み url: /img/190130記事トップ_hpv_薬事日報_大.jpg --- 1月30日付薬事日報に当協会の記事が掲載されました。メール...
# day8 ## 关于init函数,下面说法正确的是() ```text A. 一个包中,可以包含多个 init 函数; B. 程序编译时,先执行依赖包的 init 函数,再执行 main 包内的 init 函数; C. main 包中,不能有 init 函数; D. init 函数可以被其他函数调用; ``` ## 下面这段代码输出什么以及原因 ```text A. nil B. not nil C. compilation error ``` ```golang func hello() []string { return nil } func main() { h := hello if h =...
--- layout: page permalink: /2021/kolokwium/2/ --- ## 2021 Kolokwium 2 ### Zadanie 1 <div> <p> Dla \(n \geq 4\) znajdź liczbę etykietowanych drzew \(n\)-wierzchołkowych, w których \(\{ 1,2,3 \}\) jest zbiorem niezależnym. </p> <p> <style> .inline-image { height: 20pt; vertical-align: text-bottom } </style> <em>Wsk...
# frozen_string_literal: true RSpec.shared_context 'file upload requests helpers' do def capybara_url(path) "http://#{Capybara.current_session.server.host}:#{Capybara.current_session.server.port}#{path}" end end
package me.anno.io.serialization /** * use this to mark a property for serialization * it needs to be ISerializable * * public properties are serializable by default * */ annotation class SerializedProperty(val name: String = "", val forceSaving: Boolean = false)
<?php declare(strict_types=1); namespace App\Services; use App\Models\ReservationMenu; abstract class ReservationService { protected ReservationMenu $reservationMenuRepository; protected const CATEGORY = [ 'ボディトリートメント', 'フェイシャル', 'その他メニュー(リラク)', '足裏・リフレクソロジー', 'ヘッド', 'ボディケア' ]; public function __cons...