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
| INFO global: Vagrant version: 1.5.1 | |
| INFO global: Ruby version: 2.0.0 | |
| INFO global: RubyGems version: 2.0.14 | |
| INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.5.1/bin/vagrant" | |
| INFO global: VAGRANT_LOG="DEBUG" | |
| INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded" | |
| INFO global: VAGRANT_CPU_CORES="3" | |
| INFO global: VAGRANT_INSTALLER_VERSION="2" | |
| INFO global: VAGRANT_DETECTED_OS="Linux" | |
| INFO global: VAGRANT_INSTALLER_ENV="1" |
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
| import jinja2 | |
| data = { | |
| "EINVAL": "Invalid value", | |
| "EMFILE": "Too many open files", | |
| "EINTR": "Interrupted by a signal" | |
| } | |
| with open('errno.h', 'wt') as f: | |
| f.write(jinja2.Template(""" |
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
| all: | |
| rustc mycrate.rs | |
| RUST_BACKTRACE=1 rustc main.rs -L . |
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
| from . import first | |
| from . import hello |
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
| docker run -it ubuntu bash |
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
| ANY_FUNCTION valuable password | |
| INSTANCE valuable password | |
| NAMED_TUPLE valuable password | |
| BUILTIN_RANGE valuable password |
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 generator() { | |
| var result = yield "http://google.com"; | |
| console.log(result) | |
| } | |
| var gen = generator() | |
| var url = gen.next() | |
| var req = new XMLHTTPRequest(url) | |
| req.ondocumentstatechage = function(resp) { | |
| gen.next(resp.responseText) |
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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| func handler(w http.ResponseWriter, r *http.Request) { | |
| fmt.Fprintf(w, "Hello World") | |
| } |
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
| #[macro_use] extern crate quick_error; | |
| quick_error! { | |
| #[derive(Debug)] | |
| pub enum SomeError { | |
| Io(err: io::Error, path: PathBuf) { | |
| display("I/O error at {path}: {err}", err=err, path=path) | |
| description(err.description()) | |
| } | |
| ApplicationError | |
| } |
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
| #[macro_use] extern crate quick_error; | |
| quick_error! { | |
| #[derive(Debug)] | |
| pub enum SomeError { | |
| Io(err: io::Error) { | |
| from() | |
| display("I/O error: {}", err) | |
| description(err.description()) | |
| } | |
| ApplicationError |