Skip to content

Instantly share code, notes, and snippets.

@sounisi5011
sounisi5011 / command.sh
Created October 22, 2017 11:34
`raspivid -?` output
raspivid -? > raspivid-help.txt
@sounisi5011
sounisi5011 / README.md
Created January 1, 2018 16:10
JavaScriptの識別子(変数名)として有効な文字列にマッチする正規表現

Mac版Google Chrome 63.0.3239.84(64ビット)を使用し、力技で生成した、JavaScriptの識別子(変数名)として有効な文字列にマッチする正規表現

生成した正規表現

js-identifier-char-regex.txtを参照

生成コード

generate.jsを参照

@sounisi5011
sounisi5011 / matches-closest.polyfill.js
Last active February 12, 2018 16:02 — forked from jonathantneal/matchesSelector.polyfill.js
Element.matches & Element.closest Polyfill
/**
* @see https://dom.spec.whatwg.org/#interface-element
* @see https://developer.mozilla.org/docs/Web/API/Element/matches#Polyfill
* @see https://gist.github.com/jonathantneal/3062955
* @see https://github.com/jonathantneal/closest
*/
(function(global){
var Element;
var ElementPrototype;
@sounisi5011
sounisi5011 / README.md
Last active March 13, 2018 08:28
入力した文字を括弧で囲むだけのクソアプリ(Mithril.js版)
@sounisi5011
sounisi5011 / README.md
Last active March 13, 2018 08:32
入力した文字を括弧で囲むだけのクソアプリ(Vanilla JS版)
@sounisi5011
sounisi5011 / README.md
Last active March 13, 2018 08:40
URLインターフェイスに対応しているかをテストする
@sounisi5011
sounisi5011 / README.md
Last active March 13, 2018 09:13
JavaScriptのinputイベントのイベントオブジェクトに存在するプロパティの状態検査をするためのコード
@sounisi5011
sounisi5011 / dom2markdown.js
Created March 16, 2018 14:09
DOMノードをMarkdownに変換する関数(未完成)
/**
* @param {!Node} targetNode Markdownに変換するDOMノード
* @param {boolean} childOnly trueの場合、DOMノードの子要素のみを変換する
* @return {string}
*/
function dom2markdown(targetNode, childOnly=false) {
/**
* 文字列をMarkdown用にエスケープする
* @param {string} text エスケープする文字列
* @param {string} escapeChar エスケープする文字
@sounisi5011
sounisi5011 / README.md
Last active March 16, 2018 22:36
端までスクロールしたらコンソールに出力するテストコード
@sounisi5011
sounisi5011 / README.md
Last active March 19, 2018 23:35
入力した文字を括弧で囲むだけのクソアプリ(Hyperapp版)