Skip to content

Instantly share code, notes, and snippets.

View sh1ma's full-sized avatar
😼
AnonChan

Kota Amasaka sh1ma

😼
AnonChan
View GitHub Profile
@roppinhoppin
roppinhoppin / lreader.py
Created August 25, 2017 12:26
A tool to give us literacy of TCompactProtocol
# Input file must be a binary file (I recommend to use op_to_bin.py to convert int sequence to binary)
# This code partly uses the original thrift code. https://github.com/apache/thrift/blob/master/LICENSE
# This tool is made for easily understanding the complex TCompactProtocol format.
# Because of my laziness and LINE barely using, there're no implementations of MAP and LIST.
# How to use
# ./lreader.py output.bin
#!/usr/bin/env python
@5S
5S / Twitter-Account-Generate-API.txt
Created February 2, 2017 10:03
Undocumented Twitter Account Generate API
/*
非公式 Twitter アカウント生成 API
Twitter も廃れ始め、そろそろ潮時だと考えたため公開します。
某氏が公開した API 1.0 の account/generate のほか、独自に発見した API 1.1 の account/create と
認証不要の mobile_client_api/signup もまとめてあります。
何かの役に立つかもしれません。
mobile_client_api/signup については最近テストしていないので、使えないかもしれません。
その場合は情報のみということで。
@fujimaki-k
fujimaki-k / Releaseflow.md
Last active March 12, 2024 03:03
リリースまでの流れ

リリースまでの流れ

1. フィーチャーブランチの作成

  • develop ブランチから新たに作成する機能のためのフィーチャーブランチを作成します。
git branch feature/new_feature develop

2. プログラムの開発とテスト

@14427
14427 / hkt.rs
Last active February 7, 2024 10:18
Higher-kinded type trait
use std::rc::Rc;
trait HKT<U> {
type C; // Current type
type T; // Type with C swapped with U
}
macro_rules! derive_hkt {
($t:ident) => {
impl<T, U> HKT<U> for $t<T> {
@matope
matope / string_join_benchmark.go
Last active June 4, 2023 03:15
Golang string join benchmark
package main
import (
"bytes"
"strings"
"testing"
)
var m = [...]string{
"AAAAAAAAA",
@zaftzaft
zaftzaft / gist:9044781
Created February 17, 2014 04:34
Pocket の Access Token 取得するやつ
/*
* Get Pocket Access Token
* 2014/02/17
*/
var readline = require("readline");
var qs = require("querystring");
var request = require("request");
var consumerKey = "";