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 Vehicle | |
| def initialize(args) | |
| @color = args[:color] | |
| @wheels = args[:wheels] || 4 | |
| @radio = args[:on] | |
| end | |
| def drive | |
| @status = :driving | |
| end |
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 Vehicle | |
| def initialize(args) | |
| @color = args[:color] | |
| @wheels = args[:wheels] || 4 | |
| @radio = args[:on] | |
| end | |
| def drive | |
| @status = :driving | |
| end |
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
| function Validator(){ | |
| this.errors = []; | |
| this.valid = true | |
| }; | |
| Validator.prototype.eval_input = function(input, format, message){ | |
| if (input.match(format) == null ){ | |
| this.errors.push(message); | |
| this.valid = false; | |
| } |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
| <link rel="stylesheet" href="main.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
| </head> |
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
| $('#editor').on('keydown', e => { | |
| if(!(e.which === 13 && e.metaKey)){ return } | |
| let{ start, end} = editor.getSelection() | |
| let expr = editor.getText(start, end) | |
| docChan.push("compute_img", {expr, start, end}) | |
| console.log("cmd-enter") | |
| }) | |
Goal: using the command line, ssh into a remote vm that is running a linux os.
How can I try ssh-ing into a remote vm using linux distro?
Can I use Herkou? - not easily.
Can I use another web server hosting site? yes - Digital Ocean, I think droplet
Is it free? no - asked Stafford about discount code, but I haven’t done the the math and it could be inconsequential
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
| ʕ ཀ ᴥ ཀ ʔ | |
| ༼ ༎ຶ ෴ ༎ຶ༽ | |
| ヾ(-_- )ゞ | |
| (༎ຶ⌑༎ຶ) | |
| (⊙_⊙) | |
| \(^∀^)メ(^∀^)ノ | |
| (っ˘ڡ˘ς) | |
| /ᐠ.ꞈ.ᐟ\ | |
| ▼・ᴥ・▼ | |
| 。・:*:・゚★,。・:*:・゚☆ |
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
| # @return [Array<String>] | |
| def gem_paths | |
| Gem.path.flat_map { |path| Dir.glob("#{path}/gems/*") } | |
| end | |
| # @param [String] gem_name | |
| # @return [Boolean] | |
| # @raise [LoadError] | |
| def require_gem(gem_name) | |
| if defined?(::Bundler) |
OlderNewer