This file contains 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
public final class Pair<L, R> { | |
private L _left; | |
private R _right; | |
public Pair(L left, R right) { | |
this._left = left; | |
this._right = right; | |
} | |
public L left() { |
This file contains 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
extern crate uuid; | |
use uuid::Uuid; | |
fn main() { | |
let refs = vec![&uuid::NAMESPACE_DNS, &uuid::NAMESPACE_OID, &uuid::NAMESPACE_URL, &uuid::NAMESPACE_X500]; | |
let tags = vec!["NAMESPACE_DNS", "NAMESPACE_OID", "NAMESPACE_URL", "NAMESPACE_X500"]; | |
let pairs = refs | |
.iter() | |
.zip(tags.iter()) | |
.map(|(u,t)| |
This file contains 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
# file ~/.config/fish/config.fish | |
# Based on clearance | |
# name: clearance | |
# --------------- | |
# Based on idan. Display the following bits on the left: | |
# - Current directory name | |
# - Git branch and dirty state (if inside a git repo) | |
function _git_branch_name | |
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||') |
NewerOlder