Skip to content

Instantly share code, notes, and snippets.

View toffebjorkskog's full-sized avatar

Christoffer Björkskog toffebjorkskog

View GitHub Profile
@oxyc
oxyc / script.sh
Created July 25, 2015 15:02
add drupal module updates as separate git commits
# oneliner
for m in $(git status -s . | cut -c 4- | cut -d'/' -f1 | sort -u); do git status -s $m; read -p "Are you sure you want to add it? [y/N]" -n 1 -r; echo; if [[ $REPLY =~ ^[Yy]$ ]]; then git add -A "$m"; git commit -m "${m}: updated module"; fi; done
for module in $(git status -s . | cut -c 4- | cut -d'/' -f1 | sort -u); do
git status -s $module
read -p "Are you sure you want to add it? [y/N]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
git add -A "$module"
git commit -m "${module}: updated module"
; The official HD AI
; An Artificial Intelligence Script written by Archon and Promiskuitiv
; Get in contact with Promiskuitiv by sending a mail to neuernamae@web.de
; List of taunts it reacts to:
; Standard taunts.
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy.
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units.
# How to Create Custom WordPress Write/Meta Boxes
http://wp.tutsplus.com/tutorials/plugins/how-to-create-custom-wordpress-writemeta-boxes/
# Three Practical Uses for Custom Meta Boxes
http://wp.tutsplus.com/tutorials/three-practical-uses-for-custom-meta-boxes/
# Developing BuddyPress Themes – Part 1 : Working with the BuddyPress API and Loops
http://wp.tutsplus.com/tutorials/developing-buddypress-themes-part-1-working-with-the-buddypress-api-and-loops/
$list: harka hirvi kala kalkkuna kana kasvis nauta poro sika;
width: sprite-sprite-width(harka-small);
height: sprite-sprite-height(harka-small);
@each $img in $list {
&.#{$img} { @include sprite-sprite(#{$img}-small); }
}
@oxyc
oxyc / a
Created June 5, 2012 08:54
for i in *; do name=$(echo $i | sed 's/\.png/-small\.png/g'); mv $i $name; done