Skip to content

Instantly share code, notes, and snippets.

View serinuntius's full-sized avatar
🏠
Working from home

serinuntius serinuntius

🏠
Working from home
View GitHub Profile

Bitcoin Hackathon # 2 Hands-on for BITBOX Dev.

This hands-on will be divided in to 2 parts. In the first part you'll learn BITBOX.

In the second part you'll learn how to create tokens w/ Wormhole.

BITBOX

BITBOX is a fully featured javascript framework which allows developers to begin interacting with the Bitcoin Cash blockchain. It offers Mnemonics, HDNodes, ECPairs, Crypto, Addresses, Transactions and much more.

@voluntas
voluntas / webrtc_for_work.rst
Last active April 30, 2024 14:20
仕事で WebRTC

仕事で WebRTC

日時

2023-01-15

@voluntas

バージョン

2023.1

url

https://voluntas.github.io/

この資料は以下の製品の宣伝を含みます。

@844196
844196 / gist:849cd820e2c3ce916486
Last active March 19, 2024 15:52
非淫夢民向けミュート正規表現パターン
[こそ]れ?マジ?[\??]
まず(.*?)さ[あぁ]?(?:、|(?:\.|・){2,})(.*?)(?:、|(?:\.|・){2,})?ある?んだけど(?:、|(?:\.|・){2,})(.*)
(.+)↑(.+)↓
やっぱ[あぁ]?(?:、|(?:\.|・){2,})?(.*?)(?:くん|君)?の(.*?)を(?:、|(?:\.|・){2,})?(.*?)
[\((].*?[\))]ないです
[\((](王者の風格|すっとぼけ|サイコパス|ガンギマリ|せっかち|ねっとり|思考停止|諸行無常|ドン引き|意味深|名推理|使命感|震え声|棒読み|半ギレ|淫夢|悟空|威圧|偏見|激寒|呆れ|恍惚|戒め|無知|妥協|提案|驚愕|池沼|正論|絶望|良心|哲学|便乗|困惑|脅迫|小声|適当|レ|素|[至名迷]言|大[嘘破]|[難幻]聴|[憤激]怒|届かぬ[思想]い|(?:察し|冊子)|(?:声だけ)?迫真|無(?:邪気|関心)|語録(?:無視)?|(?:ゲス|真)顏|(?:更|さら)なる高みへ|(?:.*?並(?:みの)?感想?|KONAMI|粉みかん))[\))]?
\?{,3}「.*?」
.*?、どうぞ
申(?:し訳ないが)?.*?は?[NN][GG]?
じゃないですかね[\.・]{2,}
@omasanori
omasanori / gist:7858569
Last active April 30, 2024 12:43
Rustのパターンマッチの話

Rustのパターンマッチの話

既に穴だらけですが、やれるだけやっていきます。今回はパターンマッチの話です。

TL;DR(経験者向け)

はい、あなたのよく知るパターンマッチです。ガードも使えますが、他の言語でガードを使うパターンの一部はOCamlのorパターンと同等の機能や範囲を表す機能によって置き換えることができます。

@os0x
os0x / dollarX.js
Created November 27, 2008 04:17 — forked from cho45/dollarX.js
very simple $X
// very simple version of $X
// $X(exp);
// $X(exp, context, resolver, XPathResult.NUMBER_TYPE).numberValue;
// @source https:/raw.github.com/gist/29681
function $X (exp, context, resolver, result_type) {
context || (context = document);
var Doc = context.ownerDocument || context;
var result = Doc.evaluate(exp, context, resolver, result_type || XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
if (result_type) return result;
for (var i = 0, len = result.snapshotLength, res = new Array(len); i < len; i++) {