Rib Rdb writes: "The new parser doesn't support this". Use single line comments instead
The ruby object model is not the same as the java object model. The
| # Prerequisit: ImageMagick installed | |
| def file_exists?(filename) | |
| `[ -f #{filename} ] && echo "Found" || echo "Not found"` == "Not found\n" | |
| end | |
| ['landing'].each do |screengrab_file_name| | |
| before = screengrab_file_name + '_before.png' | |
| after = screengrab_file_name + '_after.png' | |
| difference = screengrab_file_name + '_difference.png' |
| >> IF = -> b { b } | |
| => #<Proc:0x007fb4e4049cc8 (lambda)> | |
| >> LEFT = -> p { p[-> x { -> y { x } } ] } | |
| => #<Proc:0x007fb4e403d680 (lambda)> | |
| >> RIGHT = -> p { p[-> x { -> y { y } } ] } | |
| => #<Proc:0x007fb4e4028ff0 (lambda)> | |
| >> IS_EMPTY = LEFT |
| ctrl-z | |
| bg | |
| touch /tmp/stdout | |
| touch /tmp/stderr | |
| gdb -p $! | |
| # In GDB | |
| p dup2(open("/tmp/stdout", 1), 1) | |
| p dup2(open("/tmp/stderr", 1), 2) |
| window.addEventListener "DOMContentLoaded", -> | |
| body = $ "body" | |
| canvas = $ "#canvas" | |
| chalkboard = $ "#chalkboard" | |
| close = $ "#close" | |
| ledge = $ "#ledge" | |
| lightswitch = $ "#lightswitch" | |
| output = $ "#output" | |
| shade = $ "#shade" | |
| share = $ "#share" |
| require 'sj' | |
| run SinatraJekyll |
| /* | |
| The MIT License (MIT) | |
| Copyright (c) 2014 Ismael Celis | |
| 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 |