Skip to content

Instantly share code, notes, and snippets.

@mtei
mtei / helix_keyboard_build_tool_memo.md
Last active August 24, 2023 08:19
キーボード自作、特に Helix キーボードキットの製作に最低必要な工具のメモ
@nealey
nealey / slack-emoji-bulk-delete.js
Last active May 25, 2023 23:09
Bulk delete every custom emoji in Slack
//
// I just found out that we have a bunch of NSFW emoji in our bulk-imported set of >4000 emoji.
// Rather than weed them out, I want to start with a blank slate. This code does that.
//
// Navigate to your "Custom Emoji" page, the one with all the delete buttons.
// Delete one of them and acknowledge that it's going away forever.
// Then open the JavaScript console and paste this in.
//
// At some point your JavaScript console will start spewing errors.
// Reload the Emoji page, delete one emoji by hand again, and paste this in again to resume.
バイナリ ⇔ 文字列 の相互変換をするだけなので楽
http://www.cipa.jp/std/documents/j/DC-008-2012_J.pdf
ページ49 / 195のUserComment参照
UserCommentフィールドの値を バイナリ⇔文字列型 の変換する関数の実装
piexif/_helper.pyに実装
引数、返り値などは下記のような具合に
@krtx
krtx / ping.go
Last active September 17, 2020 15:58
practice
package main
import (
"errors"
"fmt"
"math/rand"
"net"
"os"
"os/signal"
"strconv"
@yymm
yymm / want_to_ergodox.md
Last active May 27, 2020 00:44
Ergodox買おうの会

この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)

購入できるところ

➜ FalbaTech

ErgoDox - FalbaTech

選んでいくスタイル。

@sasezaki
sasezaki / phpdbg.md
Last active July 30, 2023 13:51
phpdbg - 新しいオールドスクールデバッガ

phpdbg - 新しいオールドスクールデバッガ

phpdbgcom.png

PHPのコア周辺での活動が顕著な krakjoe -Joe Watkins氏に より新しいプロジェクトが発足した。PHP用デバッガ phpdbg だ。ここ数日karkjoe・felipensp両氏により活発に開発が行われている。

これは、C言語開発者にはお馴染みのGDBに似たデバッグ環境をPHP向けに提供する。

@ys4kw
ys4kw / ruby-iap.md
Last active November 19, 2016 02:05
RubyでiOSの課金処理
def in_app_purchase receipt_data
  res = RestClient.post('https://buy.itunes.apple.com/verifyReceipt', {:'receipt-data' => receipt_data}.to_json)
  res = JSON.parse(res)

  if res['status'] == 21007
    res = RestClient.post('https://sandbox.itunes.apple.com/verifyReceipt', {:'receipt-data' => receipt_data}.to_json)
    res = JSON.parse(res)
  end
@taiki45
taiki45 / lambda_and_closure.md
Last active December 20, 2015 02:38
λ式とクロージャ 〜手続きと環境のハーモニーを探して〜

λ式とクロージャ

手続きと閉包

前提

ここでは手続きまたは関数ともに純粋なものを扱う。

  • 関数は渡される引数が同じであれば常に同じ値を返す
  • 関数は変動する外部の変数を参照しない
  • 関数には副作用がない
@esehara
esehara / roudo.txt
Last active December 19, 2015 02:19
ロウドー 第一章
ちょうど一年前に この道を通った夜
昨日の事のように 今はっきりと想い出す
大声で怒鳴ったせいで メソッドは長い行さ
どこまでも続く メインメソッドが綺麗で
プロマネの君は まるで死人のように
青白い顔を浮かべたまま 眠れる棺桶の老人
ゆすって起こした俺を 恨めしそうににらんで
俺の手を握り返し「休みが欲しい…」と言った
@rummelonp
rummelonp / zsh_completion.md
Last active February 22, 2023 15:06
zsh の補完関数の自作導入編

zsh の補完関数の自作導入編

あまり深く理解してないので識者のツッコミ大歓迎

補完を有効にする

取り敢えず最低限だけ

# 補完を有効にする