Skip to content

Instantly share code, notes, and snippets.

View tobynet's full-sized avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
@tobynet
tobynet / min-caml-syscall.bin.txt
Created May 10, 2019 23:03
メモ of min-camlのプログラムからシェルが取れるか? https://cookies.hatenablog.jp/entry/2018/12/16/120213
52 53 90 3c bb 89 e3 51 3c b9 53 89 e1 3c ba 31 d2 cd 80
@tobynet
tobynet / index.html
Created March 26, 2019 12:24
[sandbox][WIP] JB sandbox
<div class="javabo">
<a href="javascript:void" class="redjavabo">
今すぐダウンロード
</a>
</div>
<p class="control">
<label for="input">Your dream:</label>
<input id="input" value="" placeholder="is ...?">
<br>
@tobynet
tobynet / index.html
Last active March 26, 2019 01:49
Make your own JavaButton
<div class="javabo">
<a href="javascript:void" class="redjavabo">
今すぐダウンロード
</a>
</div>
<p class="control">
<label for="input">Your dream:</label>
<input id="input" value="" placeholder="is ...?">
<br>
@tobynet
tobynet / random-string-for-54-novel.py
Created July 4, 2018 07:04
#54文字の文学賞 のジェネレータ https://ujiqn.github.io/54-novel/ に入れる用スクリプト(ランダム版)
#!/usr/bin/env python
WIDTH = 9
HEIGHT = 6
import random
#src = "┣╋┻┳┫"
src = "☐⊡▤▥▩▨▧▦▣"
# string -> [shuffled string]
@tobynet
tobynet / rotation-string-for-54-novel.py
Last active July 4, 2018 07:03
#54文字の文学賞 のジェネレータ https://ujiqn.github.io/54-novel/ に入れる用スクリプト
#!/usr/bin/env python
import numpy as np
message = \
'''
 
 あなたと
  ジャバ
 
 今すぐ
@tobynet
tobynet / index.html
Created February 25, 2018 06:40
[PoC] CSS logging with React, ジャバボタン.css
<h1>[PoC] CSS logging in <code>`input type=password`</code> with React, ジャバボタン.CSS</h1>
<p><strong>Input "java"</strong> in the following password field like JavaButton.</p>
<div id="input-button" class="redjavabo"></div>
<p><a href="https://github.com/facebook/react/issues/11896">Original issue is here.</a></p>
@tobynet
tobynet / css-simple-tooltip.markdown
Created December 14, 2017 04:39
CSS Simple Tooltip
@tobynet
tobynet / watch-qmk-make.sh
Created December 9, 2017 05:47
Watch your code for keymaps and compile qmk firmware with inotifywait command.
#!/bin/env bash
# ref. https://github.com/rvoicilas/inotify-tools/wiki#inotifywait
# ref. inotifywait --help
cd qmk_firmware
while inotifywait --recursive --event modify \
keyboards/lets_split/keymaps/j3/ ; do
make lets_split/rev2:j3
done
@tobynet
tobynet / index.html
Last active September 7, 2017 23:24
[WIP] inheritance.in.js
<p>Open the <em>Console</em> and see it!</p>
<img src="https://i.gyazo.com/e3ac4649fb1d6e1f93a47ef5a8dd9c9e.gif" style="border: 1px solid lightgray;">
<p>or press <code>F12</code> to open console in DevTools on your browser.</p>
@tobynet
tobynet / script.babel
Created September 7, 2017 20:12
this.in.JS
// Codepen inserts 'use strict' in head!!
// Error
//this.poop = '💩';
//console.log(`[top] this.poop: ${poop}`);
const Foo = function f() {
this.poopInF = '💩inFunc';
console.log(`[f()] this.poopInF: ${this.poopInF}`);
}