http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/DSC03818.jpg
http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/ny11.jpg
http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/ny21.jpg
http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/ny31.jpg
http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/bton.jpg
http://www.offsetdesign.co.uk/wp-content/themes/phototouch/uploads/lcd.jpg
Jan 16, 2012

New york at Christmas

Sep 29, 2011

Cartesian products in bash?

Given a directory with 2 sub-directories, A and B, this snippet will output: quartz ~/>; ls A B quartz ~/> ls -d1 */../*/ | sed ‘s;/../;->;g;s;/;;g’ A->A A->B B->A B->B

Sep 29, 2011

Weighted sampling of items in Python

Let’s say you need to produce realistically distributed random selections from a list. For example, let’s say you’re writing a US meteor simulation game, and want to select the state the meteor will land in. Assuming that the impact site will be completely geographically random, then the following example will select a state, with a [...]

Sep 27, 2011

Less.css and Controlling Element Size

Those of you (implicitly or explicitly) familiar with the css Box model will know that managing the width/height of elements that have padding applied can be a pain.  Getting that number just right after adding borders, subtracting padding, and failing to finger-count is just boring, and error-prone, and that’s before the guy you’re designing for requests that [...]

 

February 2012
M T W T F S S
« Jan    
  1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29  


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser