Skip to content

Instantly share code, notes, and snippets.

View skanehira's full-sized avatar
🦍
I'm Gorilla

skanehira skanehira

🦍
I'm Gorilla
View GitHub Profile
@azu
azu / browser-resources.md
Last active June 25, 2020 01:57
ブラウザ/セキュリティ/プライバシー周りの一次情報に近い二次情報の情報源をまとめたもの

一次情報に近い二次情報の情報源をまとめたもの。

ここでの一次情報はコミットとかコードのこと。

Browser

function! BF(fxxk) abort
let mem = 0z00
for i in range(15)
let mem = mem + mem
endfor
let ip = 0
let dp = 0
let out = []
while ip < len(a:fxxk)
let c = a:fxxk[ip]
@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@suzujun
suzujun / program_number_type.md
Last active February 27, 2023 12:57
言語間の整数型範囲まとめ

signed: 符号あり

数値範囲 mysql java golang javascript
-128 ~ 127 tinyint byte int8 -
-32768 ~ 32767 smallint short int16 -
-8388608 ~ 8388607 mediumint (int) (int32) -
-2147483648 ~ 2147483647 int int int32 -
-9223372036854775808 ~ 9223372036854775807 bigint long int64

※カッコは補うためのタイプ

@dstotijn
dstotijn / pcm2wav.go
Last active December 9, 2023 07:26
pcm2wav
package main
import (
"encoding/binary"
"io"
"log"
"os"
"github.com/go-audio/audio"
"github.com/go-audio/wav"
@papiron
papiron / coolbanner
Last active January 20, 2024 03:52
クールなバナーを作るシェルスクリプト(MacやFreeBSD用。Linuxの場合は下記のコメントを参照。)
#!/bin/sh
[ $# -lt 1 ] && echo 'Usage: coolbanner STRING [HEIGHT]' && exit
string="$1"
if [ -z $2 ]; then
height=30
else
height="$2"
fi
@mono0926
mono0926 / commit_message_example.md
Last active July 20, 2024 08:30
[転載] gitにおけるコミットログ/メッセージ例文集100
@abcang
abcang / .zshrc
Created April 9, 2016 10:33
ssh先の場合tmux自動起動するやつ。.zshrcとかに入れると便利。tmuxをデタッチするとssh終了するか聞かれるので便利
## ssh先の場合tmux自動起動
if [[ -n "${REMOTEHOST}${SSH_CONNECTION}" && -z "$TMUX" && -z "$STY" ]] && type tmux >/dev/null 2>&1; then
function confirm {
MSG=$1
while :
do
echo -n "${MSG} [Y/N]: "
read ans
case $ans in
[yY]) return 0 ;;
@cucmberium
cucmberium / gist:e687e88565b6a9ca7039
Last active February 28, 2024 01:23
Twitterの検索API & Twitterでの検索術

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません