This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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" | |
~ $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O - https://raw.github.com/gist/2204072/4fe9d4a62921865005ab19ee4f90c67f27ec58cb/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q -O - https://raw.github.com/gist/2817051/e3e5f4d268994ae4d103329f845b34cb6a54b8df/install_rvm_1.9.3_on_Ubuntu_10.04.sh | bash |