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
From .bashrc: | |
alias gs='git status ' | |
alias ga='git add ' | |
alias gb='git branch ' | |
alias gc='git commit ' | |
alias gd='git diff ' | |
alias go='git checkout ' | |
alias gk='gitk --all&' |
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
// Run this file with one large text file and a segmentation fault should occur | |
import std.stdio, std.file, std.conv, std.string; | |
File input_file; | |
void main(string[] args) { | |
input_file = File(args[1], "r"); | |
while(true) { | |
next_item(); | |
try_and_catch(); |
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
mixin template Identity() | |
{ | |
uint id = ID_UNKNOWN; | |
string name = NAME_UNKNOWN; | |
this() { } | |
auto set_id(uint new_id) { this.id = new_id; return this; } | |
auto set_name(string new_name) { this.name = new_name; return this; } | |
} |