Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / webrtc.rst
Last active May 14, 2024 10:12
WebRTC コトハジメ
@uiur
uiur / reload.sh
Created April 23, 2015 09:26
Reload chrome extensions using chrome-cli
#!/bin/bash -e
id=$(chrome-cli list links | grep "chrome://extensions/" | awk '{print $1}' | sed -E "s/^\[([0-9]+)\]$/\1/g")
if [[ -n $id ]] ; then
chrome-cli reload -t "$id"
else
chrome-cli open "chrome://extensions"
fi
fizz = function f() {
fizz = function () {
fizz = function () {
fizz = f
return "Fizz"
}
}
}
buzz = function f() {
@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

Atomコードリーディングメモ

ビルド方法

script/build

起動したらsrc/window-bootstrap.coffeeが起動時間のログを出してるので、そいつをgrepすると/src/broweser/atom-application.coffee が引っかかる。

src/broweser/atom-application.coffee は、 src/browser/main.coffee に呼ばれている

@satomacoto
satomacoto / create.py
Last active December 15, 2022 10:34
kNN on xvideos.com-db.csv
# -*- coding:utf-8 -*-
from pymongo import MongoClient
client = MongoClient()
db = client.xvideos
def create_db():
f = open('xvideos.com-db.csv')
for line in f:
@tondol
tondol / nicovideo_rtmpe.md
Last active June 9, 2018 02:50
ニコニコ公式アニメポータルのrtmpeプロトコル動画をダウンロードする覚え書き

はじめに

http://www.nicovideo.jp/watch/1380872606

上記の動画を例にDL方法を解説する。

パラメータの取得

@rummelonp
rummelonp / 0-gif.md
Created February 4, 2012 16:25
GIF アニメ分解して Canvas で再生するやつ

GIF アニメ分解して Canvas で再生するやつ

GifVJ
これがクールだったのでどうにかこれを JavaScript で作れないか頑張ってみた(頑張ってる途中)

実験途中経過報告

Burrn!
ランダムで GIF アニメを全画面表示
Enter で再生/停止

@tyage
tyage / get.js
Last active December 30, 2015 11:39
Array.prototype.uniq = function() {
var o = {}
, i
, l = this.length
, r = [];
for (i = 0; i < l; i += 1) o[this[i]] = this[i];
for (i in o) r.push(o[i]);
return r;
@johndbritton
johndbritton / decompress.md
Created November 19, 2013 09:35
Explained: Zlib decompress with Perl
decompress="perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'"
  1. perl - Execute the Perl binary
  2. -MCompress::Zlib - Load the Zlib Perl module
  3. -e '...' - Execute the specified Perl code
  4. undef $/; - Undefine the input record separator to read input to the end
  5. <> - Read from standard input
  6. uncompress(...) - Use uncompress the input using Zlib