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
// This file is LICENSED WITH https://gist.github.com/KisaragiEffective/a0aba5fd0ed0ab7c5839a5cb3038b9bc | |
using namespace std; | |
#include <iostream> | |
#include <limits> | |
template <class T> | |
constexpr int bits(T t) { | |
return std::numeric_limits<T>::digits; | |
} |
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
sealed class HList { | |
class Body<out A, out B : HList>(val head: A, val rest: B) : HList() { | |
} | |
object Tail : HList() | |
companion object { | |
fun <E1> of(e1: E1) = Body(e1, Tail) | |
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
"some string" | |
fun test() {} | |
"""triplet string""" | |
fun test2() {} |
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
<program> ::= <statements> | |
<statements> ::= (<statement> <eol>)* <statement> <eol> | |
<statement> ::= <decl_var> | <decl_label> | <decl_def> | <for_statement> | <loop_statement> | <while_statement> | <if_statement> | <function_call> | <proc_call> | <assign> | |
<decl_var> ::= "VAR " <identifier> ("=" <expr>)? | |
<decl_label> ::= "@" ([A-Z] | [0-9] | "_")+ | |
<decl_def> ::= ("COMMON ")? "DEF " <identifier> (" " <arguments> " " | "(" <arguments> ")") <eol> <statements> <eol> "END" | |
<for_statement> ::= "FOR " <var> "=" <expr> " TO " <expr> (" STEP " <expr>)? <eol> <statements> <eol> "NEXT" (" " <var>)? | |
<loop_statement> ::= "LOOP" <eol> <statements> <eol> "ENDLOOP" | |
<while_statement> ::= "WHILE " <expr> <eol> <statements> <eol> "WEND" | |
<if_statement> ::= <if_then_statement> | <if_then_else_statement> |
さくらで専用サーバーを10年ほど利用しています。 単体のハードを利用するもので、外部からの操作はsshでログインすることしかできないものです。 作業時間を必死に捻出して、こつこつと長期間システムを開発して何とか動作するものを作り上げていました。
さくらのレンタルサーバーを利用することは、ほんとうに危険で怖いことだとおもいます。 自分が体験したトラブルをレンタルサーバーの利用を検討している方々に共有させていただきたく初めて記事を書いてみました。
二年ほど前、さくらさんが専有サーバーの場所を移動したいという申し出があり快く許可しました。その時のご説明では、場所を移動するだけでハードの変更は一切行いませんというもので、今まで通りの動作が保証される作業内容ということだったのです。
事前にスケジュールと作業分担を打ち合わせてから、こちらでリモートから電源オフを行いさくらに連絡して
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
// 3 | |
const $false = ![]; | |
// 4 | |
const $true = !![]; | |
// 6 | |
const $undefined = [][[]]+[]; | |
// 3 | |
const $0 = +[]; | |
// 3+3 -> 6 | |
const $1 = +!+$0; |
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
/* | |
http://www.patorjk.com/software/taag/#p=display&f=Blocks&t=SeichiAssist | |
.----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. | |
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. | | |
| | _______ | || | _________ | || | _____ | || | ______ | || | ____ ____ | || | _____ | || | __ | || | _______ | || | _______ | || | _____ | || | _______ | || | _________ | | | |
| | / ___ | | || | |_ ___ | | || | |_ _| | || | .' ___ | | || | |_ || _| | || | |_ _| | || | / \ | || | / ___ | | || | / ___ | | || | |_ _| | || | / ___ | | || | | |