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
use std::rc::Rc; | |
extern crate core; | |
use core::cell::RefCell; | |
use std::ops::Deref; | |
type RT = Rc<RefCell<Thing>>; | |
struct Thing { | |
a: Vec<String>, | |
} |
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
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
7 | |
2 | |
1 | |
0 | |
4 | |
1 | |
4 | |
9 | |
5 | |
9 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Print Git commit statistics for a specific author | |
# Usage: git-stats "Linus Torvalds" | |
git-stats() { | |
author=${1-`git config --get user.name`} | |
echo "Commit stats for \033[1;37m$author\033[0m:" | |
git log --shortstat --author $author -i 2> /dev/null \ | |
| grep -E 'files? changed' \ | |
| awk 'BEGIN{commits=0;inserted=0;deleted=0} \ | |
{commits+=1; if($5!~"^insertion") { deleted+=$4 } \ |