text
stringlengths
27
775k
define(['jquery', 'kbaseTabs'], ($, KBaseTabs) => { 'use strict'; describe('The KBaseTabs widget', () => { it('module should load', () => { expect(KBaseTabs).toBeDefined(); }); it('should render with minimal options', () => { const $host = $(document.createElemen...
import Config from 'config'; import * as path from 'path'; import * as express from 'express'; const routes = express.Router(); [ '/', '/books', '/voting', '/seasons', '/current', ].forEach(route => { routes.get(route, (req, res) => { res.sendFile(path.resolve(Config.STATIC_FILES_PATH, 'index.html')); ...
require "rails_helper" RSpec.describe DownstreamDiscardDraftWorker do let(:base_path) { "/foo" } let(:edition) do create( :draft_edition, base_path: base_path, title: "Draft", ) end let(:content_id) { edition.content_id } let(:base_arguments) do { "base_path" => base_pa...
package com.netposa.commonsdk.myapplication import android.Manifest import android.content.pm.PackageManager import android.os.Build import android.os.Bundle import android.util.Log import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AppCompatActivity import androidx.core.app.ActivityCompat import ...
export class ModError { mod_id: number; modname: string; modErr: string[]; constructor(mod_id: number, modname: string, modErr: string[] = []) { this.mod_id = mod_id; this.modname = modname; this.modErr = modErr; } }
import { object, string, number } from 'yup' const deleteTaskSchema = object({ id: number().required().positive() }); export {deleteTaskSchema};
using System; using System.Diagnostics; using System.IO; using System.Threading.Tasks; namespace ChangeLogBuilder { public static class Program { public static async Task Main(string[] args) { try { var config = new Config(args); var rele...
#!env python import tornado.httpclient import tornado.ioloop import tornado.web import tornado.ioloop import tornado.web from tornado import options import asyncio import json import argparse import functools import local_controller as LocalController import os import common import tornado.log import logging impor...
#!/bin/bash # TODO parameterise start/end years? # ensure appropriate conda env has been activated if [ -z "$NOMIS_API_KEY" ]; then echo NOMIS_API_KEY is not set, exiting exit 1 fi if [ -z "$REGION" ]; then echo REGION is not set, exiting exit 1 fi #$ -m e #$ -M a.p.smith@leeds.ac.uk #$ -cwd -V #$ -l h_vm...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import operator_benchmark as op_bench import torch """Microbenchmarks for Cat operator""" # Configs for PT Cat operator cat_short_configs = op_bench.cross_product_con...
import React, { useContext } from 'react'; import { combineStyles } from '../../helperFunctions/combineStyles'; import globalDefaultStyle from '../../public/styles/globalDefaultStyles'; import StateContext from '../../context/context'; import { Component } from '../../interfaces/Interfaces'; function IndirectChild({ s...
## How to run this API locally * copy `.env.sample` to `.env` * fill in all the variables there spin up a MinIO server ```bash docker run -p 9000:9000 \ --name minio1 \ -v /mnt/data:/data \ -e "MINIO_ACCESS_KEY=this-is-a-key" \ -e "MINIO_SECRET_KEY=password1" \ minio/minio server /data ``` (note, this is a...
import { MetadataInterface } from "./interfaces"; import { Node } from "unist"; import * as mustache from "mustache"; export const tranformsLinkNodeToUnfurledNode = (node: Node, card: MetadataInterface) => { node.type = "html"; const template = ` <div> <a class="gatsby-remark-link-unfurl" href="{{...
require 'spec_helper' describe WebsitesController, :speed => :slow do render_views before(:all) { WebMock.allow_net_connect! } after(:all) { WebMock.disable_net_connect! } describe "GET index" do it "returns websites as json" do get 'index' assigns(:websites).count.should == 5 end ...
<?php namespace PhpAssumptions\Output; use League\CLImate\CLImate; use PhpAssumptions\Cli; class XmlOutput implements OutputInterface { /** * @var \DOMDocument */ private $document; /** * @var string */ private $file; /** * @var \DOMXPath */ private $xpath; ...
Changelog for package daux.io ----------------------------- 1.1 (2018-12-29) ------------------ * Clear docs directory before downloading new version * Install daux.io dependencies in Docker image * Change to Gitlab webhook syntax 1.0 (2016-09-04) ------------------ * Initial version forked from cokeSchlumpf
My blog http://snoweek.github.io/ ## init ``` git init git add . git commit -m "first commit" git remote add origin https://github.com/snoweek/snoweek.github.io.git git push -u origin master ``` ## update ``` git add . git commit -m "update" git push -u origin master ``` ## clone ``` git clone https://github.com/...
package org.infinispan.server.memcached import test.MemcachedTestingUtil._ import org.infinispan.test.SingleCacheManagerTest import org.infinispan.test.fwk.TestCacheManagerFactory import net.spy.memcached.MemcachedClient import org.testng.annotations.{Test, AfterClass} import org.infinispan.manager.EmbeddedCacheManage...
{-# OPTIONS_GHC -fno-warn-type-defaults #-} import CustomSet ( delete , difference , fromList , insert , intersection , isDisjointFrom , isSubsetOf , member , null , size , toList , union ) import Data.List (sort) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (conf...
import fs from "fs"; import path from "path"; import resolve from "@rollup/plugin-node-resolve"; import sucrase from "@rollup/plugin-sucrase"; import replace from "@rollup/plugin-replace"; import typescript from "@rollup/plugin-typescript"; import { terser } from "rollup-plugin-terser"; const output_dir = "./dist"; c...
<?php declare(strict_types=1); namespace Malios\Ast2Zephir\Generator\Common; use Malios\Ast2Zephir\Generator\Finder; use Malios\Ast2Zephir\Enum\Stmt; use PhpParser\Node; trait ParseStatements { /** * Generic method to parse array of statements. * e.g. content of method, if block, else block etc. *...
const themeDir = 'content/themes/handbook'; module.exports = { cleancss: { opts: { compatibility: 'ie11,-properties.merging', level: { 1: { specialComments: false, removeQuotes: true, removeWhitespace: true, tidyAtRules: true, cleanupCharsets:...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class DetailKelengkapan extends Model { use HasFactory; protected $table = 'detail_kelengkapan'; protected $guarded = []; public function kelengkapan() { return $th...
var baseMatches = require('../internal/baseMatches'), filter = require('./filter'); /** * Performs a deep comparison between each element in `collection` and the * source object, returning an array of all elements that have equivalent * property values. * * **Note:** This method supports comparing arrays, boo...
import type { GridLayoutElementData } from "./GridLayout"; const DEBUG = false; /** * Return the bottom coordinate of the layout. * * @param {Array} layout Layout array. * @return {Number} Bottom coordinate. */ export function bottom(layout: GridLayoutElementData[]): number { return layout.reduce((max, {...
CREATE EXTERNAL TABLE [fhir].[ClinicalImpression] ( [resourceType] NVARCHAR(4000), [id] VARCHAR(64), [meta.id] NVARCHAR(4000), [meta.extension] NVARCHAR(MAX), [meta.versionId] VARCHAR(64), [meta.lastUpdated] VARCHAR(30), [meta.source] VARCHAR(256), [meta.profile] VARCHAR(MAX), [meta....
import os import random import numpy as np import torch def _get_rank() -> int: """Returns 0 unless the environment specifies a rank.""" rank_keys = ("RANK", "SLURM_PROCID", "LOCAL_RANK") for key in rank_keys: rank = os.environ.get(key) if rank is not None: return int(rank) ...
require 'rails_helper' RSpec.describe Speaker, type: :model do let(:speaker) { build(:speaker, name: speaker_name, birthdate: speaker_birthdate) } describe 'attributes' do let(:speaker_name) { 'Oliver Twist' } let(:speaker_birthdate) { DateTime.new(1992) } it 'has name and birthdate attributes' do ...
class SmartIoC::BeanDependency attr_reader :bean, :ref, :package attr_accessor :bean_definition def initialize(bean:, ref:, package:) @bean = bean @ref = ref @package = package end def ref @ref || @bean end def ==(dependency) dependency.bean == @bean && dependency.package == @packag...
#Attach INSERT INTO Attach (MID, ProjID) Values ('123001','86101'); INSERT INTO Attach (MID, ProjID) Values ('123002','86101');
#ifndef SIMPLEX_H #define SIMPLEX_H #include <vector> typedef std::vector<std::vector<double>> BasicRep; class Simplex { public: Simplex(int m, int n); Simplex(BasicRep basic_rep); void initialize(BasicRep basic_rep); void solve(); double getMin() const; private: BasicRep basic_rep_; bo...
## Comportamento esperado ## Comportamento real ## Etapas para reproduzir o problema 1. 1. 1. ## Especificações - Versão: - Plataforma: - Subsistema:
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import * as path from 'path'; import { _ISOLATED as ISOLATED, _SCRIPTS_DIR } from './index'; const SCRIPTS_DIR = path.join(_SCRIPTS_DIR, 'vscode_datascience_helpers'); //============================ // getServerInfo.py t...
package ch.yvu.teststore.revision import com.fasterxml.jackson.annotation.JsonCreator import com.fasterxml.jackson.annotation.JsonProperty import java.util.* data class RevisionDto @JsonCreator constructor( @JsonProperty("revision") val revision: String, @JsonProperty("time") val time: Date, @...
#ifndef __SCREEN_HPP__ #define __SCREEN_HPP__ #include <ftdi.h> class Screen { public: virtual ~Screen() {} virtual void turnOff() = 0; virtual void turnOn() = 0; }; class ScreenImpl : public Screen { public: ScreenImpl(); virtual ~ScreenImpl() {} virtual void turnOff(); virtual void turnOn(); pri...
using Convex using Convex.ProblemDepot: run_tests using Test using SCS, ECOS, GLPK using MathOptInterface const MOI = MathOptInterface const MOIU = MOI.Utilities # Seed random number stream to improve test reliability using Random Random.seed!(2) @testset "ProblemDepot" begin @testset "Problems can run without `...
# TODO: Check math again! """ Marginal loglikelihood for sample i. Marginalizes over lambda and uses skew-t likelihood. Used for updating beta. """ function marginal_loglike_beta(i::Char, state::State, data::Data) Nfinite = ref_Nfinite(data, 'T') Z = ref_Z(data, 'T') yfinite = ref_yfinite(data, 'T') loc = sta...
using Unity.Entities; namespace ScriptsAndPrefabs.Player.Weapon { public struct WeaponFire_C : IComponentData { } }
@file:Suppress( "unused" ) @file:UseExperimental( BotsOnly::class, TestingOnly::class ) package dev.whyoleg.ktd.api.ton import dev.whyoleg.ktd.* import dev.whyoleg.ktd.api.* import dev.whyoleg.ktd.api.TdApi.* /** * Sends a request to TON lite server through Telegram servers * * @request - The request ...
/**@file Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent Module Name: WinNtLib.h Abstract: Public include file for the WinNt Library **/ #ifndef __WIN_NT_PEIM_H__ #define __WIN_NT_PEIM_H__ // // This forces Windows.h WIN32 include file to be include...
"""SingleTable metrics based on applying a ColumnPairsMetrics on all the possible column pairs.""" from itertools import combinations import numpy as np from sdmetrics import column_pairs from sdmetrics.single_table.base import SingleTableMetric from sdmetrics.utils import NestedAttrsMeta class MultiColumnPairsMet...
# asterix-specs Asterix specifications in structured format. See project's [homepage](https://zoranbosnjak.github.io/asterix-specs/). For more information, questions or comments, feel free to contact project maintainer [Zoran Bošnjak](mailto:zoran.bosnjak@sloveniacontrol.si).
/* * Copyright 2021 Ona Systems, 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 applicable law or agr...
#!/bin/bash #============================================================ # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part2.sh # Description: OpenWrt DIY script part 2 (After Update feeds) # Lisence: MIT # Author: P3TERX # Blog: https://p3terx.com #======================================================...
package com.panda.pda.app.operation.fms.data.model /** * created by AnJiwei 2021/8/26 */ data class TaskRecordModel( val createTime: String, val id: Int, val operateDetail: String, val operateName: String, val operateType: String )
#!/bin/bash perf_base="$(dirname `readlink -f "$0"`)" for arg in "$@" do argsString+="$arg\t" done awk -v fields="$argsString" -f "$perf_base"/transpose.awk
import 'dart:convert'; import 'package:http/http.dart'; import '../../common/runner/process_runner.dart'; import '../command/selenium_command.dart'; import '../process/selenium_process.dart'; import '../selenium.dart'; /// Runs the selenium process. class SeleniumProcessRunner implements ProcessRunner { static con...
export default [ // socket.io reserved 'error', 'connect', 'disconnect', 'disconnecting', 'newListener', 'removeListener', 'ping', 'pong' ]
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANG...
/// Web IDL /// /// https://heycam.github.io/webidl/ @JS('window') library web_i_d_l_1; import 'package:js/js.dart'; import 'callbacks.dart'; import '../manual.dart'; /// /// /// The [DOMException] interface represents an abnormal event /// (called an exception) that occurs as a result of calling a method /// or ac...
<?php /** * @backupGlobals disabled */ class BrowserExtensionApiControllerGetAuthStatusTest extends PHPUnit_Framework_TestCase { /** * @expectedException Exception */ public function testExceptions(){ $c = new \Controllers\BrowserExtensionApiController(false, false); $c->run(false,...
using Plus.Modularity; namespace Plus.Http.Client.IdentityModel.Web { [DependsOn( typeof(PlusHttpClientIdentityModelModule) )] public class PlusHttpClientIdentityModelWebModule : PlusModule { } }
using System; using System.Collections.Generic; using System.Text; namespace Qc.YilianyunSdk { public class YilianyunBaseOutputModel<T> { public YilianyunBaseOutputModel() { } /// <summary> /// 自定义错误 error=-1,success:0 /// </summary> /// <param name="customErrorDesc"><...
Rails.application.routes.draw do get '/messages' => 'messages#index' end
package org.ekstep.ep.samza.task; import org.apache.samza.task.MessageCollector; import org.ekstep.ep.samza.core.BaseSink; import org.ekstep.ep.samza.core.JobMetrics; import org.ekstep.ep.samza.domain.Event; public class TelemetryRedacterSink extends BaseSink { private TelemetryRedacterConfig config; public Tel...
# core mechanism of extending Taine Zhao's @thautwarm 's MatchCore pattern matching. using MatchCore ## compile (quote) left and right hands of a rule # escape symbols to create MLStyle compatible patterns # compile left hand of rule # if it's the first time seeing v, add it to the "seen symbols" Set # insert a :& ...
<html> <head> <title>User Update</title> </head> <body> <?php if(isset($_GET['submit'])) { $urN = $_GET['urN']; $scrn = $_GET['scrn']; $mail = $_GET['mail']; $urTy = $_GET['urTy']; $did = $_GET['did']; $conn = new MongoClient(); $db = $conn->selectDB('Users'); $users = $db->use...
--- layout: post title: "プロセスのSELinuxコンテキスト (ドメイン)" date: 2021-11-18 category: Linux cover: /assets/cover6.jpg redirect_from: comments: true published: true latex: false photoswipe: false syntaxhighlight: true # sitemap: false # feed: false --- 各プロセスのSELinuxの...
; RUN: opt < %s -reassociate -disable-output define void @foo() { %tmp162 = fsub <4 x float> zeroinitializer, zeroinitializer ; <<4 x float>> [#uses=1] %tmp164 = fmul <4 x float> zeroinitializer, %tmp162 ; <<4 x float>> [#uses=0] ret void }
//! use crate::widgets::{NcTreeItem, NcTreeItemCbUnsafe, NcTreeOptions}; #[allow(unused_imports)] // for doc comments use crate::widgets::NcTree; /// # `NcTreeOptions` constructors impl NcTreeOptions { /// New NcTreeOptions for [`NcTree`]. pub fn new(items: &[NcTreeItem], indentcols: u32) -> Self { S...
(WF-DAGP (119 119 (:TYPE-PRESCRIPTION POSP-OF-ALEN1)) (2 2 (:LINEAR ARRAY2P-LINEAR)) (1 1 (:REWRITE PSEUDO-DAG-ARRAYP-MONOTONE)) (1 1 (:REWRITE BOUNDED-DAG-PARENT-ARRAYP-MONOTONE)) ) (WF-DAGP-EXPANDER (84 84 (:TYPE-PRESCRIPTION POSP-OF-ALEN1)) (3 3 (:REWRITE PSEUDO-DAG-ARRAYP-MONOTONE)) (3 3 (:REWRITE BOUNDED-D...
这里存放的是用于生成数据库表的 SQL 文件。 在使用这些 SQL 之前,请确保已经建好了一个名为 bms 的数据库。
--- layout: post title: A Journey to Python tags: - python guide --- # Python 之旅
using System; using System.Text.Json; namespace SkillTrail.Shared.Infrastructure.Database { public class DomainEventSnapshot { public Guid Id { get; set; } public Guid CorrelationId { get; set; } public DateTime CreatedAt { get; set; } public DateTime? PublishedAt { get; set; }...
class DateSeparator { const DateSeparator({ this.year = '-', this.month = '-', this.day = '-', }); final String year; final String month; final String day; }
// --------------------------------------------------------------------------------------- // <copyright file="ColorTests.cs" company="Corale"> // Copyright © 2015-2021 by Adam Hellberg and Brandon Scott. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software ...
DOUBLE PRECISION FUNCTION MINAF77 (FE,N,NDIV,DEL,L,U,GUESS,X) IMPLICIT DOUBLE PRECISION (A-H,O-Z) PARAMETER (MAXN=1024) C ------------------------------------------------------------------ C MINA FINDS AN APPROXIMATE MINIMUM OF A REAL FUNCTION OF C N VARIABLES, GIVEN AN INITIAL ESTIMATE OF...
use 5.006; use strict; use warnings; use Test::More 0.92; use File::Temp; use Test::Deep qw/cmp_deeply/; use lib 't/pir/lib'; use PCNTest; use Path::Tiny::Rule; #--------------------------------------------------------------------------# my @tree = qw( lib/Foo.pm lib/Foo.pod t/test.t ); my $td = make_tree(@t...
/* * * 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 * distribute...
module Shaman class Init include Shaman::Helpers extend Shaman::Helpers def self.check return unless ENV['SHAMAN_TOKEN'].nil? error! "SHAMAN_TOKEN not defined. Please find it at #{LABS_URL}/users/me" end def self.init(options) new(options).call end def initialize(optio...
# 팀8의 홈페이지입니다. |이름|학번|GitHubID|Email| |:---|:---|:---|:---| |정성엽|2018315006|yeobdoll|jsysu2846@naver.com| |장찬우|2015727049|dja2613|dja960112@naver.com| |정근영|2018315012|Jeong-Geunyeong|wrd6774@naver.com| ## 김수환 - kimsoohwan@sunmoon.ac.kr ## 정근영 - wrd6774@naver.com ## 장찬우 - dja960112@naver.com ## 새치기
require 'pathname' RAILS_REQUIREMENT = "~> 4.0" def assert_minimum_rails_version requirement = Gem::Requirement.new(RAILS_REQUIREMENT) rails_version = Gem::Version.new(Rails::VERSION::STRING) return if requirement.satisfied_by?(rails_version) puts "Calagator requires Rails #{RAILS_REQUIREMENT}. You are using...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; using TrophyParser.Models; namespace TrophyParser.PS3 { /// <summary> /// From https://github.com/darkautism/TROPHYParser /// Refactor by DarkNacho /// </summary> public class TR...
require 'spec_helper' describe Ducktrap::Node, '#call' do subject { object.call(input) } let(:object) { class_under_test.new } let(:class_under_test) do Class.new(described_class) do evaluator = Class.new(Ducktrap::Evaluator) do def output :foo end end const_set(:...
/* __ __ __ __ __ ___ * \ \ / / \ \ / / __/ * \ \/ / /\ \ \/ / / * \____/__/ \__\____/__/ * * Copyright 2014-2017 Vavr, http://vavr.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
const canvasWidth = 715; const canvasHeight = 601; const vline = { x1: 100, y1: 0, x2: 100, y2: canvasHeight + 5 } // let chkorentaion = false; let count = 1; const topLeft = {X : 267, Y : 35}; const topRight = {X : 528, Y : 35}; const bottonLeft = {X : 267, Y : 582}; const topLeft_O = {X : ...
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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 requir...
# frozen_string_literal: true require 'valkyrie/persistence/postgres/persister' require 'valkyrie/persistence/postgres/query_service' module Valkyrie::Persistence::Postgres # Metadata Adapter for Postgres Adapter. # # This adapter uses ActiveRecord to persist resources in a JSON-B column named # `metadata`. Thi...
# frozen_string_literal: true RSpec.describe Elarian::Simulator do let(:simulator) { Helpers::EventMachine.get_client(described_class) } describe "#receive_message" do let(:params) do { phone_number: "+25411111111", messaging_channel: { channel: "sms", number: "RSDK_SENDER" }, se...
<?php __halt_compiler(); the installation data (eg. tar, gz, PHP, etc.) other text
#![cfg(feature = "ui-test")] use termchat::application::{Application, Signal}; use termchat::config::Config; use message_io::node::{NodeHandler}; #[test] fn send_file() { let termchat_dir = std::env::temp_dir().join("termchat"); let test_path = termchat_dir.join("test"); let _ = std::fs::remove_dir_all(&...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/11/26 0026 * Time: 17:23 */ namespace app\admin\controller; use think\Controller; use think\Session; use think\Config; class Home extends Controller{ /** **************李火生******************* * @param Request $request * Notes:...
package ir.taghizadeh.deezer.data.network.services import ir.taghizadeh.deezer.data.network.responses.ChartArtistsResponse import kotlinx.coroutines.Deferred import retrofit2.Call import retrofit2.http.GET //https://api.deezer.com/chart/0/artists interface ChartArtistsService { @GET("chart/0/artists") fun ge...
using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace Nuxleus.Configuration { public class PreCompiledXslt : ConfigurationElement { [ConfigurationProperty("name", IsRequired = true)] public string Name { get...
class SharkPhoto < ApplicationRecord belongs_to :shark mount_uploader :image, SharkPhotoUploader before_create :update_position def as_json opts={} super.merge({ size: self.image.size, url: self.image.try(:url), name: self.image.try(:file).try(:filename) }) end private def up...
# frozen_string_literal: true module Api module V1 class SplitSerializer < ::Api::V1::BaseSerializer set_type :splits attributes :id, :course_id, :distance_from_start, :vert_gain_from_start, :vert_loss_from_start, :kind, :base_name, :name_extensions, :sub_split_kinds, :description, ...
#include <string.h> #define max(a, b) (((a) > (b)) ? (a) : (b)) #define min(a, b) (((a) < (b)) ? (a) : (b)) #define trimin(a, b, c) (min(min(a, b), c)) //the minimum of a,b,c int maximalSquare(char** matrix, int matrixSize, int* matrixColSize) { if (matrixSize == 0) return 0; int M = matrixSize, N = *matrixColSi...
# Better Mac 推荐 macOS 平台下的优秀应用、插件、技巧等。 更多:[Better 系列](./README.md) #### 评分说明 | 评分 |★★★★★ | ★★★★☆ | ★★★★ |★★★☆ |★★★ | | --- | --- | --- | --- | --- | --- | | 说明 | 强烈推荐 | 十分优秀 | 值得使用 | 亮点突出 | 同类出众 | ## 应用 #### 效率工具 | 评分 | 名称 | 简介 | 价格 | 评测 | | --- | --- | --- | --- | --- | | ★★★★★ | [Alfred][alfred] | 超越 Spo...
use clap::ArgMatches; use msbt::Msbt; use rayon::prelude::*; use std::{ fs::File, io::{BufReader, BufWriter}, path::{Path, PathBuf}, }; use crate::{ model::{Content, Msyt}, subcommand::find_files, Result, }; pub fn import(matches: &ArgMatches) -> Result<()> { let input_paths: Vec<&str> = ...
--- class: - stop rel: - self properties: name: Bearer (RFC 6750) sort: 1607 level: 3 description: 'All challenges defined by this specification MUST use the auth-scheme value "Bearer". This scheme MUST be followed by one or more auth-param values. ' entities: - class: - stop rel: - self properties:...
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Governor\Framework\Repository; use Governor\Framework\Domain\AggregateRootInterface; /** * * @author david */ in...
(ns horizons.parsing.parser-test-jupiter (:require [horizons.core :as h] [clj-time.core :as t])) (def jupiter-map {::h/S {::h/file-header {::h/revision-date {::h/date (t/date-time 2016 9 13)} ::h/body-name "Jupiter" ::h/body-id 599} ::h/physical-properties {::h/mass {::h/unit-code ...
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNT...
using Test using MultivariatePolynomials const MP = MultivariatePolynomials using SemialgebraicSets struct DummyAlgo <: SemialgebraicSets.AbstractGröbnerBasisAlgorithm end function SemialgebraicSets.gröbnerbasis!(::AbstractVector{<:MP.APL}, ::DummyAlgo) error("Dummy algo") end struct DummySolver <: Semialgebrai...
package com.example.happylife import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import com.example.happylife.databinding.ActivityLicenseDetailInfoBinding import com.example.happylife.databinding.ActivityMainBinding import com...
if (storageAvailable('sessionStorage') && window.location.pathname != '/data-status') { var set = sessionStorage.getItem('set'); if (set) { var temp = JSON.parse(sessionStorage.getItem('temp')); var twoH = JSON.parse(sessionStorage.getItem('twoH')); var rh = JSON.parse(sessionStorage.ge...
// // ObjectiveREST.h // ObjectiveREST // // Created by Yoann Gini on 05/05/12. // Copyright (c) 2012 iNig-Services. All rights reserved. // #import <Foundation/Foundation.h> #import <ObjectiveREST/ORServer.h> #import <ObjectiveREST/ORServerProtocols.h>
require 'react/native_library' module React class API @@component_classes = {} def self.import_native_component(opal_class, native_class) @@component_classes[opal_class.to_s] = native_class end def self.create_native_react_class(type) raise "Provided class should define `render` method"...
import {EventEmitter} from 'events'; import {IpcRenderer, IpcRendererEvent} from 'electron'; import electron from 'electron'; export default class Client { emitter: EventEmitter; ipc: IpcRenderer; id!: string; constructor() { this.emitter = new EventEmitter(); this.ipc = electron.ipcRenderer; this.i...
using System.ComponentModel.DataAnnotations; namespace ManageCourses_ms.Resources { public class SaveCursosResource { [Required] public int grado { get; set; } [Required] [MaxLength(2)] public string letra { get; set; } } }