Skip to content

Instantly share code, notes, and snippets.

View orthecreedence's full-sized avatar

andrew lyon orthecreedence

View GitHub Profile
@orthecreedence
orthecreedence / json.rs
Last active June 25, 2016 23:29
Rust example
extern crate serde_json;
use self::serde_json::Value;
use self::serde_json::Value::{I64, U64, F64, Bool, Null, Object, Array};
fn grab(keys: Vec<&str>, data: Value) -> Result<Value, String> {
let last: bool = keys.len() == 0;
if last { return Ok(data); }
let key = keys[0];
@orthecreedence
orthecreedence / struct.rs
Last active July 10, 2016 04:26
Rust macro error
macro_rules! serializable {
(
$(#[$struct_meta:meta])*
pub struct $name:ident {
$(
$(#[$field_meta:meta]) *
$field:ident: $type_:ty
),* ,
}
) => {
### Keybase proof
I hereby claim:
* I am orthecreedence on github.
* I am orthecreedence (https://keybase.io/orthecreedence) on keybase.
* I have a public key whose fingerprint is DEDF 113E 5424 8344 1637 16B5 5C66 FAD1 3222 D757
To claim this, I am signing this object:
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.