text stringlengths 27 775k |
|---|
```sh
var = is_set handle
```
Returns true if the provided value is a set handle.
### Parameters
The set handle.
### Return Value
True if the provided value is a set handle.
### Examples
```sh
handle = set_new 1 2 3
value = is_set ${handle}
assert ${value}
released = release ${handle}
assert ${released}
```
|
import tensorflow as tf
import pandas as pd
import numpy as np
import numba
from sklearn.preprocessing import MinMaxScaler
def read_data():
training_data = pd.read_csv('./consumption_train.csv', index_col=0, parse_dates=['timestamp'])
test_data = pd.read_csv('./cold_start_test.csv', index_col=0, parse_dates=... |
### 1.0.1
* bugfix: choked on parsing less with import statements, fixed by upgrading to doiuse 4.0.0
### 1.0.0
* update to doiuse 3.0.0
### 0.1.1
* update to postcss 6.0.1
### 0.1.0
* initial release
|
; Test case: evaluation of "$" inside macros and eager variables
org #2000
db 8192
db 8193
db $
db 1
db 2
dw #ffff
org #4000
loop:
jr loop
|
fun main(){
val numbers = listOf(1,2,5,7,8,8,8,9,6)
val setOfNumbers = numbers.toSet()
println("Set: ${setOfNumbers}")
val set1 = setOf(1,2,3)
val set2 = mutableSetOf(3,2,1)
println("$set1 == $set2: ${set1 == set2}") //true (mesmo conjunto de items)
println("Contains 10: ${setOfNumbers.contains(10)}")
}
... |
import React from 'react'
import {Input, Box} from "@chakra-ui/react"
import {filterNotes} from "../../redux/noteSlice"
import { useDispatch } from 'react-redux'
const Search = () => {
const dispatch = useDispatch();
const handleChange = (e) => {
dispatch(filterNotes(e.target.value));
}
return (
<Box>... |
import 'package:flutter/material.dart';
import 'package:my_shop_app/pages/cart_page.dart';
import 'package:my_shop_app/providers/products_provider.dart';
import 'package:my_shop_app/widgets/app_drawer.dart';
import 'package:my_shop_app/widgets/products_grid.dart';
import 'package:my_shop_app/widgets/badge.dart';
... |
export * from './InboundTransporter'
export * from './OutboundTransporter'
export * from './HttpOutboundTransporter'
|
#!/bin/sh
install_qt() {
git clone "https://github.com/qt/qt5"
cd qt5 || exit
perl init-repository -f --module-subset="qtbase,qttools,qtsvg,qttranslations"
./configure -opensource -confirm-license -c++std c++17 \
-nomake examples -nomake tests \
-no-opengl -no-dbus -no-widgets -no-gui \... |
## "Тихий" режим
У Svelte Easyroute есть третий режим - "silent". Вы можете
использовать его, если не хотите менять URL в строке
браузера.
```javascript
export var router = new Router({
mode: "silent",
routes: [
...
]
})
```
У этого режима есть своя история маршрутов. Используйте
эти два метода:
```javascript... |
const { User } = require('../models');
const userData = [
{
user_name:'Olivia',
contact_number: '8047649572',
user_id: 1,
},
{
user_name:'Hilary',
contact_number: '8593793769',
user_id: 2,
},
{
user_name:'Patrick',
contact_number: '8701734965',
user_id: 3,
},
{
user_name:'Victor... |
module TableMappings.BancosBaseDb
(
getOne,
save,
update,
delete,
selOneSql,
savSql,
updSql,
delSql,
selOneCmd,
savCmd,
updCmd,
delCmd
) where
import Database.HDBC
import DataAccess.Commands
import DataAccess.Entities
import TableMappings.Types.Banco
import DataAccess.PageResult
import Data... |
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using Photon.Realtime;
using Photon.Pun;
using ExitGames.Client.Photon;
public class SceneLoader : MonoBehaviour
{
public GameObject LoadingScreen;
public void NowLoading() {
LoadingScreen.SetActive... |
package com.aqrlei.helper.log.engine
import com.aqrlei.helper.log.config.ILogConfig
import com.aqrlei.helper.log.control.ILogControl
import com.aqrlei.helper.log.printer.ILogPrinter
/**
* created by AqrLei on 2020/5/19
*/
interface ILogEngine {
fun v(tag: String, msg: String, tr: Throwable? = null)
fun v(m... |
package de.htwg.zeta.common.models.project.gdsl.style
case class Line(
color: Color,
style: LineStyle,
width: Int
)
object Line {
val defaultColor: Color = Color.defaultColor
val defaultStyle: LineStyle = Solid()
val defaultWidth: Int = 1
val defaultLine: Line = Line(
defaultColor,
default... |
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using FluentValidation;
using Insolvency.CalculationsEngine.Redundancy.BL.DTOs.APPA;
using Insolvency.CalculationsEngine.Redundancy.Common.Extensions;
using System.Collections;
using Insolvency.CalculationsEngine.Redundancy.BL.DTOs.Comm... |
=begin
1.solicitar el peso
2.Solicitar la estatura de la persona
3.Calcular el IMC
4.Determinar estado del peso
a.si el IMC < 18.5 baja de peso
b. si el IMC 18.5 y 24.99 esta normal
c. si el IMC > = 25, tiene sobrepeso
5.Imprimir el peso
=end
print "Ingresa tu peso en (kg): "
weight=gets.chomp.to_f
print "Ingresa tu ... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Team8Project.Common.Enums;
using Team8Project.Contracts;
using Team8Project.Core;
using Team8Project.Models.Characters;
namespace Team8Project.Tests.Core.FactoryTests
{
[TestClass]
public class Factory_Should
{
[TestMethod]
public v... |
Program Daynames;
{$apptype console}
uses
ArrayP in '..\source\DAYNAMES\ArrayP.pas';
begin
execute;
end.
|
/* eslint-disable max-lines, @typescript-eslint/no-use-before-define */
import type { Styles } from 'nightingale-types';
export interface FormatObjectOptions {
padding?: string;
maxDepth?: number;
}
export type StyleFn = (styles: Styles, value: string) => string;
export type ObjectStyles<Keys extends string = st... |
import express from 'express'
import userRoutes from './user.route'
import listRoutes from './list.route'
import authRoutes from './auth.route'
import adminRoutes from './admin.route'
const router = express.Router() // eslint-disable-line new-cap
router.get('/test', (req, res) => res.send('OK'))
// mount user routes... |
import tensorflow as tf
class siamese:
# Create model
def __init__(self):
self.x1 = tf.placeholder(tf.float32, [None, 784])
self.x2 = tf.placeholder(tf.float32, [None, 784])
with tf.variable_scope("siamese") as scope:
self.o1 = self.network(self.x1)
... |
<?php
namespace Jiromm\Battle\Exceptions;
class ArmyBuilderException extends BattleException
{
}
|
import React, { useState, useEffect } from 'react';
import Link from 'next/link';
import { connect } from 'react-redux';
import { sendErrorMessage, getStats } from '../../redux/actions';
import { IContext } from '../../@types';
import { redirectIfNotAuthenticated } from '../../utils/session';
import { err } from '../..... |
---
title: Chapter1 - Introduction(1)
categories:
- OS
last_modified_at: 2022-05-07
tags:
- OS
toc: true
toc_sticky: true
---
### Chapter 1 - Introduction(1)
OS란?
쉽게 말해 컴퓨터 하드웨어와 사용자간에 존재하는 프로그램

WH... |
rs.initiate({
_id: "odmantic-replica-set",
version: 1,
members: [
{ _id: 0, host: "172.16.17.11:27017" },
{ _id: 1, host: "172.16.17.12:27017" },
{ _id: 2, host: "172.16.17.13:27017" },
],
});
|
# Test-Application
This folder reflects a normal Symfony application structure.
Please keep this in mind if you're add new test files.
|
// Copyright © 2020 The With-Go Authors. All rights reserved.
// Licensed under the BSD 3-Clause License.
// You may not use this file except in compliance with the license
// that can be found in the LICENSE.md file.
package array
import (
"reflect"
"testing"
)
func TestPresenter_AsFloat64Slice(t *testing.T) {
f... |
/*
*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
#!/bin/bash
# git archive --format=tar --prefix=stack/ HEAD | gzip >/pi/archive/sagas-stack-0.1.tar.gz
rm /pi/archive/sagas/sagas-stack*
git archive --prefix=stack/ -o /pi/archive/sagas/sagas-stack-0.1.tar.gz HEAD
echo 'done.'
ls -alh /pi/archive/sagas/sagas-stack*
|
class Task < ActiveRecord::Base
has_many :critiques, foreign_key: 'create_in_task_id'
has_many :artifacts, foreign_key: 'submitted_in_task_id'
end
|
package com.bitatron.adconsent.data
import com.bitatron.adconsent.presentation.Status
class GoogleConsentStatusToConsentStatusMapper {
fun map(consentStatus: com.google.ads.consent.ConsentStatus): ConsentStatus = when (consentStatus) {
com.google.ads.consent.ConsentStatus.UNKNOWN -> ConsentStatus(Status... |
<?php
declare(strict_types=1);
namespace spaceonfire\Bridge\Cycle\Collection;
/**
* @template T of object
* @template P
*/
final class Change
{
public const ADD = 'ADD';
public const REMOVE = 'REMOVE';
/**
* @phpstan-var self::ADD|self::REMOVE
*/
private string $type;
/**
* @... |
class OrderCall extends eVENT {
constructor({occTime, delay}={}) {
super({occTime, delay});
}
}
OrderCall.successorNode = "TakeOrder";
OrderCall.eventRate = 0.5;
|
package com.electrit.protokol
import kotlin.random.Random
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
class ObjectsTest {
@Suppress("EqualsOrHashCode")
class Data(
var bytes: ByteArray = ByteArray(0),
var string: String = "",
) {
over... |
package com.cognifide.slung.component.filter.configuration;
public interface ComponentFilterConfiguration {
boolean isEnabled();
boolean canFilter(String resourceType);
}
|
using AbstractTrees
using Primes
using Tables
using Test
using Wordlegames
const primes5 = primes(10000, 99999) # vector of 5-digit prime numbers
const primel = GamePool(primes5)
const primelxpc = GamePool(primes5; guesstype=MinimizeExpected)
@testset "GamePool" begin
@test typeof(primel) == GamePool{5,UInt8,Maxi... |
(ns general-expenses-accountant.config
(:require [clojure.java.io :as io]
[mount.core :as mount :refer [defstate]]
[omniconf.core :as cfg]
[taoensso.timbre :as log]))
(def ^:private dev-env "DEV")
(cfg/define {:env-type {:description "Environment type (to be set in CMD args or EN... |
<?php
/*
* $Id: PropelDateTime.php 1262 2009-10-26 20:54:39Z francois $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DI... |
---
company-name: "Albert Technologies (Formerly Adgorithms)"
domain: albert.ai
home: https://albert.ai/
privacy-policy: https://albert.ai/terms-and-conditions/
email: customerservise@adgorithms.com
member-of: "Interactive Advertising Bureau (IAB)"
---
|
# Contributing to XPM
[A full guide on contributing to all repositories in this organization will be found here soon.][contributing]
[contributing]: https://github.com/xanite/xanite/blob/master/CONTRIBUTING.md
|
module EventCalendar
class ApplicationController < ActionController::Base
include Concerns::ApplicationController
layout 'layouts/application'
helper ::ApplicationHelper
before_action :login_required
private
#=== エンジンが有効かを判定する。
# 無効の場合リダイレクトする。
def enable_engine_required
unles... |
package ar.com.pablitar.funspaces
trait Positioned[T] {
def space: AbstractSpace[T]
var position: Point[T] = space.origin
}
trait Speedy[T] <: Positioned[T]{
def speed: Point[T]
def applySpeed(delta:T) = position = position + speed * delta
}
class Car(var speed: Point[Double])(implicit val space:... |
package io.qbeast.spark.keeper
import io.qbeast.core.keeper.{Keeper, LocalKeeper}
class ProtocolMockTest extends ProtocolMockTestSpec {
"the qbeast-spark client" should
"throw an execution when an inconstant state is found" in withContext(LocalKeeper) {
context =>
implicit val keeper: Keeper = Loc... |
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh" \
&& . "./utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n System Utils\n\n"
brew_install "Iterm2 Terminal" "iterm2" "--cask" "" "async-install"
#brew_install "Magicprefs" "magicpre... |
package com.sksamuel.centurion.formats
import com.sksamuel.centurion.Logging
import com.sksamuel.centurion.Struct
import com.sksamuel.centurion.StructType
import com.sksamuel.centurion.parquet.ToParquetSchema
import com.sksamuel.centurion.parquet.parquetReader
import com.sksamuel.centurion.parquet.parquetWriter
import... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE LambdaCase #-}
-- |
module Lang.Syntax where
import Data.Semigroup ((<>))
import Data.Text (Text)
import qualified Data.Text as Text
import Lang.Annot
data Term name ann
= App ... |
// Copyright (c) 2019, 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.
// test w/ `pub run test -N diagnostic_describe_all_properties`
class DiagnosticPropertiesBuilder {
v... |
# Keyword `CURRENT_TIMESTAMP`
Returns current date and time.
Syntax:
```sql
CURRENT_TIMESTAMP
``` |
%%%-------------------------------------------------------------------
%%% @author Aaron Lelevier
%%% @doc Rider server where a single Process maps to a single Rider
%%% @end
%%%-------------------------------------------------------------------
-module(rl_rider).
-behaviour(gen_server).
-include("ride_log.hrl").
%%... |
using System;
using System.Reflection.Emit;
namespace Illuminator.Extensions
{
public static class Functions
{
/// <summary>
/// Emit if statement.
/// <example>
/// <code>
/// if (condition) {
/// then();
/// } else {
/// ... |
require 'spec_helper'
describe "PasswordResets" do
it "emails user when requesting password reset" do
user = FactoryGirl.build(:user)
visit "/login"
click_link "password"
fill_in "Email", :with => user.email
click_button "Reset Password"
page.should have_content("Email sent")
last_email.t... |
import {
Body,
Controller,
Delete,
Get,
HttpException,
HttpStatus,
Param,
Post,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
import { createHash } from 'crypto';
import { CreateUserDto } from './dto/create-user.dto';
import { UserEntity } from './user.entity';
import { User... |
package scalaomg.server.room
import akka.actor.ActorRef
/**
* Minimal interface for a client communication channel. It must have an Id and a send method.
*/
trait Client {
/**
* Client identifier.
*/
val id: String
/**
* Send a message to such client.
* @param msg the message to send
* @tpara... |
# -*- coding: utf-8 -*-
"""IPL Score Prediction.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1pUPWZBWfVqxbIXMyo7d9vJz4OduQsd_u
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
war... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Checkout\Block\Cart\Item;
/**
* Cart Item Configure block
* Updates templates and blocks to show 'Update Cart' button and set right form submit url
*
* @module Checkout
*/
class ... |
using SearchCustomNavigationPage.Controls;
using SearchCustomNavigationPage.ViewModels;
using Xamarin.Forms.Xaml;
namespace SearchCustomNavigationPage.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class Page1 : SearchPage
{
public Page1()
{
Initialize... |
# 多层感知机的简洁实现
:label:`sec_mlp_concise`
正如你所期待的,我们可以(**通过高级API更简洁地实现多层感知机**)。
```python
import paddle
from paddle import nn
from d2l import torch as d2l
import pd2l
```
C:\Users\WeiWu-GU\anaconda3\envs\pte\lib\site-packages\ipykernel\pylab\backend_inline.py:164: DeprecationWarning: `configure_inline_support` is ... |
using System;
using System.Buffers.Binary;
using System.Diagnostics;
using Microsoft.Extensions.Logging;
using NaCl.Core;
namespace Lyn.Protocol.Bolt8
{
public class ChaCha20Poly1305CipherFunction : ICipherFunction
{
private readonly ILogger<ChaCha20Poly1305CipherFunction> _logger;
readonly byte[] _k... |
import 'package:flutter/widgets.dart';
abstract class MultipassBuildWidget extends StatefulWidget {
const MultipassBuildWidget({ Key? key }) : super(key: key);
@override
MultipassBuildElement createElement() => MultipassBuildElement(this);
@override
MultipassBuildState createState();
}
class M... |
package dns
import (
"fmt"
"github.com/alibaba/kt-connect/pkg/common"
opt "github.com/alibaba/kt-connect/pkg/kt/options"
"github.com/alibaba/kt-connect/pkg/kt/service/cluster"
"github.com/alibaba/kt-connect/pkg/kt/util"
"github.com/rs/zerolog/log"
"io/ioutil"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
... |
'''
Wrapper/entry point for WSGI servers like Gunicorn.
Can launch multiple modules at once,
but requires environment variables to be set to do so.
2019-20 Benjamin Kellenberger
'''
''' import resources and initialize app '''
import os
from bottle import Bottle
from setup.migrate_aide import migrate_... |
package com.dyh.permutationandcombination;
/**
* 孤傲的A练习题:A(A也是他的编号)是一个孤傲的人,在一个n个人(其中编号依次为1到n)的队列中,他于其中的标号为b和标号c的人都有矛盾,所以他不会和他们站在相邻的位置。
* 现在问你满足A的要求的对列有多少种?
* 给定人数n和三个人的标号A,b和c,请返回所求答案,保证人数小于等于11且大于等于3。
* 例:6,1,2,3
* 返回:288
* 思路:利用排列组合
* @author dyh
*
*/
public class LonelyA {
public static int... |
// $Id: AwincIni.h 1.6.1.1 2012/03/08 06:55:15EST 277133 Development 277133(2012/03/08 06:55:49EST) $
//
// Declarations for class to manage average wage increases in ini file.
#pragma once
#ifndef __AWINCINI_H
#define __AWINCINI_H
#include "AwincDoc.h"
// Description: Manages the file of projected average... |
/*
* Copyright (c) haipham 2019. All rights reserved.
* Any attempt to reproduce this source code in any form shall be met with legal actions.
*/
package org.swiften.redux.android.dagger
/** Created by viethai.pham on 2019/02/21 */
class DependencyLevel1(private val tag: String, val sd: DependencyLevel2) {
fun f... |
package com.td.stereotosurround.util
/**
* Created by TAPOS DATTA on 04,August,2021
*/
class CustomBuffer(var capacity: Int) {
private var bufferSize: Int = 0
private val buffer = FloatArray(capacity)
fun getSamples(sampleSize: Int): FloatArray {
if (sampleSize > bufferSize || bufferSize < 1) ... |
const download = require('download-git-repo')
const ora = require('ora')
/**
*
* @param {string} path
* @param {string} name
*/
function downloadRepositorie(path, name) {
return new Promise((resolve, reject) => {
const spinner = ora('downloading template...')
spinner.start()
download(path, name, { clo... |
#ifndef _NT35310_H_
#define _NT35310_H_
#include <stdint.h>
void tft_hard_init(void);
void tft_write_command(uint8_t cmd);
void tft_write_byte(uint8_t *data_buf, uint32_t length);
void tft_write_half(uint16_t *data_buf, uint32_t length);
void tft_write_word(uint32_t *data_buf, uint32_t length, uint32_t flag)... |
# Copyright 2022 The TensorFlow Authors. 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
#
# Unless required by applica... |
/****
* ExapisSOP
* Copyright (C) 2020 Takym.
*
* distributed under the MIT License.
****/
using System;
using System.IO;
namespace ExapisSOP.IO.Settings.CommandLine
{
/// <summary>
/// コマンド行引数のオプションを表します。
/// </summary>
public class Option
{
/// <summary>
/// このオプションの名前を取得します。
/// </summary>
publi... |
// Copyright 2017 The Dawn Authors
//
// 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 t... |
<?php
$rootDir = __DIR__ . '/../../';
require_once $rootDir . 'core/fundControlApp.php';
/* @var $FundControl FundControl */
?>
<div class="scrollable">
<div class="scrollable-content">
<div class="list-group" toggle="off" bubble target="rightSidebar">
<?
/*
<a class="list-group-item media" href="" ng-repeat... |
import {Component, OnDestroy, OnInit} from '@angular/core';
import {BroadcastService} from "@azure/msal-angular";
import {MsalService} from "@azure/msal-angular";
import {Subscription} from "rxjs/Subscription";
@Component({
selector: 'cd-root',
templateUrl: './app.component.html',
styles: []
})
export class AppC... |
function Start-WinSubscriptionService {
[CmdletBinding()]
param(
[System.Collections.IDictionary] $LoggerParameters
)
if (-not $LoggerParameters) {
$LoggerParameters = $Script:LoggerParameters
}
$Logger = Get-Logger @LoggerParameters
$Logger.AddInfoRecord('Starting Windows Ev... |
package com.tunasushi.tool
/**
* @author TunaSashimi
* @date 2020-02-02 19:49
* @Copyright 2020 TunaSashimi. All rights reserved.
* @Description
*/
class PathTool |
# -*- coding: utf-8 -*-
require 'rails_helper'
require 'tempfile'
describe Asciicast do
describe '.find_by_id_or_secret_token!' do
subject { Asciicast.find_by_id_or_secret_token!(thing) }
context 'for public asciicast' do
let(:asciicast) { create(:asciicast, private: false) }
context 'when lo... |
use std::ops::{AddAssign, SubAssign};
#[repr(C)]
#[derive(Copy, Clone)]
pub union R16 {
w: u16,
b: [u8; 2]
}
#[cfg(target_endian="little")]
const LO_IDX : usize = 0;
#[cfg(target_endian="big")]
const LO_IDX : usize = 1;
const HI_IDX : usize = 1 - LO_IDX;
impl R16 {
#[inline]
pub fn from_bytes(lo: u8... |
package com.ipincloud.iotbj.srv.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Date;
import java.sql.Timestamp;
import com.alibaba.fastjson.annotation.JSONField;
//(SyncDevice)
//generate by redcloud,2020-07-24 19:59:20
public class SyncDevice implements Serial... |
@extends('layout')
@section('content')
<div class="row d-flex align-items-center" style="height: 500px">
<div class="col d-flex justify-content-center">
<a class="btn btn-lg" href="auth" style="background-color: #6441a5; color: white">Login with Twitch</a>
</div>
</div>
@endsection |
-- |
-- Module : Jikka.Core.Parse.Token
-- Description : defines tokens of our core language. / core 言語の字句要素を定義します。
-- Copyright : (c) Kimiyuki Onaka, 2020
-- License : Apache License 2.0
-- Maintainer : kimiyuki95@gmail.com
-- Stability : experimental
-- Portability : portable
module Jikka.Core.Parse.Tok... |
import React from "react"
import { graphql, Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const FetchRemoteB = ({ data }) => {
return (
<Layout>
<SEO title="Fetch Remote B" />
<pre
dangerouslySetInnerHTML={{ __html: JSON.stringify(data, n... |
use crate::errors::RustusError;
use actix_web::{
http::header::{CacheControl, CacheDirective},
web, HttpRequest, HttpResponse,
};
use futures::stream::empty;
use crate::{RustusResult, State};
pub async fn get_file_info(
state: web::Data<State>,
request: HttpRequest,
) -> RustusResult<HttpResponse> {
... |
// See LICENSE.Berkeley for license details.
// See LICENSE.SiFive for license details.
package uncore.agents
import Chisel._
import uncore.coherence._
import uncore.tilelink._
import uncore.constants._
import uncore.util._
import util._
import config._
class L2BroadcastHub(implicit p: Parameters) extends Hierarchic... |
%%--------------------------------------------------------------------
%% Copyright (c) 2021-2022 EMQ Technologies Co., Ltd. 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 Lice... |
# overflowProblem
An algorithmic/programming challenge.
## Problem
> The following is a paraphrase of the problem found in the specification.
Given a pyramid of 250 mL glasses stacked on top of each other with each row of glasses containing 1 more glass than
the "row" above it, when N litres of water is poured on t... |
package mock
import (
"reflect"
record "github.com/appist/appy/record"
mock "github.com/stretchr/testify/mock"
)
type (
// Mock is the workhorse used to track activity on another object.
Mock struct {
mock.Mock
}
// AnythingOfTypeArgument is a string that contains the type of an argument
// for use when t... |
#_{:clj-kondo/ignore [:refer-all]}
(ns drampa.matches-test
(:require [clojure.test :refer :all]
[drampa.matches :refer :all]
[drampa.claims :as d.claims]
[drampa.tiles :as d.tiles]))
(deftest get-initial-match-is-correct
(let [{:keys [wall dead-wall players prevailing-wind dora ... |
#!/bin/bash
mkdir vlc
mkdir play
mkdir pause
mkdir close
mkdir back
mkdir fullscreen
mkdir next
mkdir prev
mkdir volume-up
mkdir volume-down
mkdir not-vlc
|
#ifndef SCRIPT_STATE_H
#define SCRIPT_STATE_H
#include "IPillarState.h"
class ScriptState : public IPillarState
{
public:
ScriptState() {};
void OnEnter(PillarInput *pInput, PillarOutput *pOutput) override;
PillarMode OnExecute(PillarInput *pInput, PillarOutput *pOutput) override;
void OnEx... |
package io.warburton.zolin.model
/**
* @author tw
*/
data class Merchant(val id: String, val name: String) |
package Analytics
import (
"github.com/loyal1213/goonvif/xsd/onvif"
"github.com/loyal1213/goonvif/xsd"
)
type GetSupportedRules struct {
XMLName string `xml:"tan:GetSupportedRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type CreateRules struct {
XMLName string `xml:"tan:Creat... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import styled from 'styled-components';
import {RHSParticipant, Rest} from 'src/components/rhs/rhs_participant';
interface Props {
userIds: string[];
}
const Following = (pr... |
---
pageClass: page-daily-list
date: 2018.12.24
title: 日报 2018.12.24
meta:
- itemprop: name
content: 日报 2018.12.24
- name: description
itemprop: description
content: 今天的新发现
list:
- name: 开源项目
list:
- name: gitalk/gitalk
note: 基于 GitHub Issue 和 Preact 开发的评论插件
url: https://github.com/gitalk/gitalk
l... |
export function ensure<TValue>(
predicate: (value: unknown) => value is TValue,
defaultValue: TValue
): (value: unknown) => TValue {
return (value) => (predicate(value) ? value : defaultValue);
}
|
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.interact.loc
import jetbrains.datalore.base.geometry.DoubleVector
import jetbrains.datalore.plot.base.interact.GeomTarget
import jetbr... |
export * from './radiobutton.module';
export * from './radiobutton.component';
|
---
-api-id: P:Windows.Devices.WiFiDirect.WiFiDirectInformationElement.Oui
-api-type: winrt property
-api-device-family-note: xbox
---
<!-- Property syntax
public Windows.Storage.Streams.IBuffer Oui { get; set; }
-->
# Windows.Devices.WiFiDirect.WiFiDirectInformationElement.Oui
## -description
A three-byte organiza... |
using FengZhen.SuperStore.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FengZhen.SuperStore.Data.Repositories
{
public interface IProductRepositories
{
int AddProduct(string id, string name, decimal price, i... |
package client
import (
"fmt"
minting "github.com/threefoldtech/rivine/extensions/minting"
"github.com/threefoldtech/rivine/extensions/minting/api"
client "github.com/threefoldtech/rivine/pkg/client"
types "github.com/threefoldtech/rivine/types"
)
// PluginClient is used to be able to get the active mint condit... |
# Bad Map Generator
### A 2D top down map generator.
Uses SDL for drawing on the screen, getting user input, and timing.
#Usage
**ESC** Quit the application.
**r** Fills map with random noise.
**g** Fills map with greyscale noise.
**m** Fills map with Lichen-looking stuff.
**n** Fills map with a map generated w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.