This file contains hidden or 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
require 'json' | |
require 'json/generic_object' | |
JSON.parse '{"json_class":"JSON::GenericObject", "foo":"bar"}' | |
# => #<JSON::GenericObject foo="bar"> |
This file contains hidden or 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 Markdown; | |
if (typeof exports === "object" && typeof require === "function") // we're in a CommonJS (e.g. Node.js) module | |
Markdown = exports; | |
else | |
Markdown = {}; | |
// The following text is included for historical reasons, but should | |
// be taken with a pinch of salt; it's not all true anymore. |
This file contains hidden or 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
gem 'libvncclient-ruby', :require => 'libvnc', :git => '[email protected]:zweitag/libvncclient-ruby.git' |
This file contains hidden or 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
require "set" | |
def all_chars_in_file(file) | |
all_chars = Set.new | |
File.open(file).each_line do |line| | |
line.chars.inject(all_chars) { |s,c| s << c } | |
end | |
all_chars | |
end |
NewerOlder