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
#[derive(Debug)] | |
struct RingBuffer<T: Clone> { | |
storage: Vec<Option<T>>, | |
read_idx: usize, | |
write_idx: usize, | |
len: usize | |
} | |
#[derive(Debug, PartialEq)] | |
struct Full; |
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
git config --global core.packedGitWindowSize 16m | |
git config --global core.packedGitLimit 64m | |
git config --global pack.windowMemory 64m | |
git config --global pack.packSizeLimit 64m | |
git config --global pack.thread 1 | |
git config --global pack.deltaCacheSize 1m | |
# Source: http://uberspace.de/dokuwiki/development:git#ram-nutzung |
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
// adds mobile class, and mobile os to html tag | |
jQuery(document).ready(function($){ | |
var deviceAgent = navigator.userAgent.toLowerCase(); | |
if (deviceAgent.match(/(iphone|ipod|ipad)/)) { | |
$('html').addClass('ios'); | |
$('html').addClass('mobile'); | |
} | |
if (deviceAgent.match(/android/)) { |
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
# Rails template for a basic project assuming the following: | |
# | |
# - SQLite for DB | |
# - Git for version control | |
# | |
# Based on a similar template by: Brian Smith ([email protected]) | |
# Basic housekeeping | |
# | |
run "rm public/index.html" |