Skip to content

Instantly share code, notes, and snippets.

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

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

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

実験途中経過報告

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

fizz = function f() {
fizz = function () {
fizz = function () {
fizz = f
return "Fizz"
}
}
}
buzz = function f() {
@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:
var net = require('net');
var util = require('util');
var events = require('events');
var Message = require('./message');
function Client() {
var self = this;
events.EventEmitter.call(this);
source: https://twitter.com/WhitehackerZ1/status/381278065675870208/photo/1
・訳を作成したのは@qnighyです。
・内容は上記のURLに掲載されていた画像を参照しながら作成しました。
その画像の提供者は私ではありません。画像の提供者については、元ツイートの発言者に尋ねるのが適切でしょう。
・文脈がわからないと読みづらいところやインターネットスラングが含まれる部分についてはうまく訳せていないかもしれない。
Kirk_Caswell: Diciprine: they'll learn just for this game
Diciprineさん: このゲームのためだけに勉強するんですよ
bgates: Diciprine: It's not race or nationality or natural language that prevents people from writing shellcode, it's the lack of working shellcode.
Diciprineさん: シェルコードを書くのが難しいのは人種や国籍や自然言語のせいではなくて、動くシェルコードがないからですよ。
@tondol
tondol / nicovideo_rtmpe.md
Last active June 9, 2018 02:50
ニコニコ公式アニメポータルのrtmpeプロトコル動画をダウンロードする覚え書き

はじめに

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

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

パラメータの取得

@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
@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;
/*
Copyright © 2014 Hidekazu Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE

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

ビルド方法

script/build

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

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