環境変数 | 設定内容 | 既定値 |
---|---|---|
PID_FILE |
プロセスIDを格納しておくファイルへのパス | /www.pid |
PORT |
ポート番号 | 80 |
WWW_DIR |
ドキュメントルート | $(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UUIDNext; | |
using Microsoft.AspNetCore.Authentication; | |
public class Program | |
{ | |
private static Guid GenerateId() => Uuid.NewDatabaseFriendly(UUIDNext.Database.PostgreSql); | |
private static string ToControllerId(Guid id) => Base64UrlTextEncoder.Encode(id.ToByteArray(true)); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BinaryTreeNode { | |
constructor(value) { | |
this.value = value; | |
this.left = null; | |
this.right = null; | |
} | |
depth() { | |
let result = 0; | |
if (this.left) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class QueueOverflow extends Error {} | |
class MyQueue { | |
constructor(capacity) { | |
this.array = []; | |
this.head = 0; | |
this.tail = 0; | |
this.capacity = capacity; | |
} | |
isEmpty() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node { | |
constructor(value = null, next = null) { | |
this.value = value; | |
this.next = next; | |
} | |
} | |
class List { | |
constructor() { | |
this.head = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tree = { | |
value: 'A', | |
left: { | |
value: 'B', | |
left: 'D', | |
right: 'E', | |
}, | |
right: { | |
value: 'C', | |
left: 'F', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl x:Class="Prism6Sample.Wpf.Common.Views.ModalWindowBase" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:system="clr-namespace:System;assembly=mscorlib" | |
xmlns:prism="http://prismlibrary.com/" | |
prism:ViewModelLocator.AutoWireViewModel="True" | |
xmlns:local="clr-namespace:Prism6Sample.Wpf.Common.Views" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem 'irb' | |
gem 'nokogiri' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __RANGE_H__ | |
#define __RANGE_H__ | |
#include <cassert> | |
class NumberIterator : public std::iterator<std::bidirectional_iterator_tag, int64_t, std::ptrdiff_t, int64_t*, int64_t&> | |
{ | |
private: | |
int64_t n, d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* MLton用 ORD_KEY signature *) | |
signature ORD_KEY = | |
sig | |
type ord_key | |
val compare : (ord_key * ord_key) -> order; | |
end; | |
(* 赤黒木のシグネチャ *) | |
signature RED_BLACK_TREE = | |
sig |
NewerOlder