Skip to content

Instantly share code, notes, and snippets.

View plindberg's full-sized avatar

Peter Lindberg plindberg

View GitHub Profile
@plindberg
plindberg / jaikuslurp.sh
Created January 6, 2012 09:45
The script that powers fleecelabs.se/jaikuslurp/
# See this Gist for how to run this: https://gist.github.com/1562129
if [ -z '$1' ]; then
echo 'Run me again, but with -s followed by your Jaiku username at the end.'
echo 'Like so: bash < <(curl -s fleecelabs.se/jaikuslurp/) -s plindberg'
exit
fi
USERNAME=$1
echo "Hey @$USERNAME, I am jaikuslurp. Let's get your jaiks archived."

To install mechanize for python under /tmp.

mkdir -p /tmp/jaikuslurp/lib/python
curl http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz | \
  (cd /tmp/jaikuslurp; tar zxf -)
cd /tmp/jaikuslurp/mechanize-0.2.5
export PYTHONPATH=/tmp/jaikuslurp/lib/python/
python setup.py install --home=/tmp/jaikuslurp
python -c 'import mechanize'
@plindberg
plindberg / dabblet.css
Created January 28, 2012 21:32
display: table-cell and maximum height
/* display: table-cell and maximum height */
body {margin-top: 50px;}
.block {
width: 100%;
display: table;
}
.left, .right {
@plindberg
plindberg / dabblet.css
Created January 28, 2012 23:30
display: table-cell and maximum height
/* display: table-cell and maximum height */
body {margin-top: 50px;}
.block {
width: 100%;
display: table;
}
.left, .right {
@plindberg
plindberg / dabblet.css
Created January 28, 2012 23:30
display: table-cell and maximum height
/* display: table-cell and maximum height */
body {margin-top: 50px;}
.block {
width: 100%;
display: table;
}
.left, .right {
@plindberg
plindberg / dabblet.css
Created January 30, 2012 14:00
display: table-cell and maximum height
/* display: table-cell and maximum height */
body {margin-top: 50px;}
.block {
width: 100%;
display: table;
}
.left, .right {
@plindberg
plindberg / dabblet.css
Created February 20, 2012 14:42
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#o {
border: 5px solid red;
display: inline-block;
border-radius: 10px;
}
@plindberg
plindberg / dabblet.css
Created February 20, 2012 15:30
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#o {
position: absolute;
top: 20px; left: 20px;
display: inline-block;
overflow: hidden;
width: 50%;
@plindberg
plindberg / dabblet.css
Created February 24, 2012 14:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#o {
border:1px solid hotpink;
width: 200px;
height: 200px;
position: relative;
}
@plindberg
plindberg / gist:1908052
Created February 25, 2012 11:51
Responsive web design with Sass 3.2 alpha
.top-block-switcher-item
+responsive-layout-unit
cursor: pointer
border: 5px solid $background-white
+border-radius(3px)
+respond-to(desktop)
width: 15.25%