Skip to content

Instantly share code, notes, and snippets.

decode_tables_: {
prefix_length: 0, indexed_length: 9, entries_offset: 0
}
decode_tables_.size(): 1
decode_entries_: {
next_table_index: 0, length: 2, symbol_id: 2
next_table_index: 0, length: 2, symbol_id: 2
next_table_index: 0, length: 2, symbol_id: 2
decode_tables_: {
prefix_length: 0, indexed_length: 9, entries_offset: 0
prefix_length: 9, indexed_length: 6, entries_offset: 512
prefix_length: 15, indexed_length: 6, entries_offset: 576
prefix_length: 21, indexed_length: 6, entries_offset: 640
prefix_length: 27, indexed_length: 3, entries_offset: 704
prefix_length: 27, indexed_length: 1, entries_offset: 712
prefix_length: 27, indexed_length: 1, entries_offset: 714
prefix_length: 27, indexed_length: 1, entries_offset: 716
prefix_length: 27, indexed_length: 1, entries_offset: 718
@kysnm
kysnm / pre-commit
Last active August 29, 2015 14:10 — forked from naoty/pre-commit
#!/usr/bin/env ruby
# filter by extension
def extname_filter(files, extnames = ['.rb'])
files.split($/).select do |path|
extnames.include?(File.extname(path))
end
end
# grep 'binding.pry' (avoid a comment out)
ruby(11311,0x110801000) malloc: *** error for object 0x7ffe84900000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ruby(11311,0x7fff7a681310) malloc: *** error for object 0x7ffe62d30a98: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
sh: line 1: 11311 Abort trap: 6 ( rake db:schema:load RAILS_ENV=test )
11312 Done | ( grep -v "^ ->\|^-- " || test 1 )
% heroku run bash
Running `bash` attached to terminal... up, run.4287
~ $ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
~ $
@kysnm
kysnm / hello.js
Created December 3, 2012 06:51 — forked from shigeki/hello.js
第1回Node.js入門勉強会 レポート課題
var http = require('http');
server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
server.close();
});
server.listen(8080, 0, function () {
console.log('Server running at http://localhost:8080/');
});
@kysnm
kysnm / file0.txt
Created November 29, 2012 14:37
Play 2.0 / Scala の WS で同期リクエスト ref: http://qiita.com/items/bcb41ebfb5818a5a0305
package models
import play.api.libs.ws.WS.WSRequestHolder
import play.api.libs.ws.WS.url
import play.api.libs.concurrent.Promise
import play.api.libs.ws.Response
object Qiita {
def getTags = {
val wsRequestHolder: WSRequestHolder = url("https://qiita.com/api/v1/tags")
@kysnm
kysnm / file0.txt
Created November 29, 2012 14:36
Play2.0 / Scala で動的に設定値を追加 ref: http://qiita.com/items/d3ad5dbc60e857397256
play console [info] Loading project definition from /private/tmp/todolist/project
[info] Set current project to todolist (in build file:/private/tmp/todolist/)
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_35).
Type in expressions to have them evaluated.
Type :help for more information.
scala> new play.core.StaticApplication(new java.io.File("."))
[info] play - database [default] connected at jdbc:postgresql://localhost:5432/todolist
@kysnm
kysnm / install.sh
Created May 28, 2012 03:42 — forked from cloud8421/install.sh
Install tmux 1.6 on Ubuntu 10.04 with checkinstall
wget -q -O - https://raw.github.com/gist/2204072/4fe9d4a62921865005ab19ee4f90c67f27ec58cb/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash
@kysnm
kysnm / install.sh
Created May 28, 2012 03:29
rvm install 1.9.3 on Ubuntu 10.04
wget -q -O - https://raw.github.com/gist/2817051/e3e5f4d268994ae4d103329f845b34cb6a54b8df/install_rvm_1.9.3_on_Ubuntu_10.04.sh | bash