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 exec = require('child_process').exec; | |
| var capture_stdout = function(cmd, callback) { | |
| exec(cmd, function(err, stdout, stderr) { | |
| callback(err, stdout, stderr); | |
| }); | |
| } | |
| module.exports = capture_stdout; |
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 'nokogiri' | |
| require 'open-uri' | |
| base = 'http://www.yhachina.com/3g/' | |
| def nopen(page) | |
| Nokogiri::HTML(open(page)) | |
| end | |
| doc = nopen(base + 'allthehostel.html') |
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
| class Bla | |
| def a | |
| "a" | |
| end | |
| def b | |
| self.a | |
| end | |
| def c |
NewerOlder