Skip to content

Instantly share code, notes, and snippets.

shadow liuwen-lvtu

Block or report user

Report or block liuwen-lvtu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1577258
//from https://github.com/Kronuz/iscroll-overflow
+ // Fix to avoid scrolling up/down the whole screen:
+ if(that.scrollTop <= 0)
+ that.scroller.scrollTop = 1;
+ if(that.scrollTop + that.scroller.offsetHeight >= that.scroller.scrollHeight)
+ that.scroller.scrollTop = that.scroller.scrollHeight - that.scroller.offsetHeight - 1;
View tutorial.mkdn

Susy Tutorial

For this tutorial I'm assuming you are already comfortable with CSS, Sass (I'll use the SCSS syntax) and Compass. Please get set up with each one of those before attempting to use Susy. Sass and Compass both have their own setup instructions and tutorials that you can use.

There is also reference documentation in the works.

What Susy Does

CSS Systems

@liuwen-lvtu
liuwen-lvtu / dos2unix.pl
Created Oct 4, 2011
recursively replace ^M with unix crlf
View dos2unix.pl
perl -pi -e 's/oldstring/newstring/g' `find ./ -name *.html`
perl -pi -e 'tr/\cM//d;' `find ./ -name "*.py"`
@liuwen-lvtu
liuwen-lvtu / gist:1238992
Created Sep 24, 2011 — forked from rjp/gist:795162
download redis command reference in one page
View gist:1238992
:>test.html; lynx -dump http://redis.io/commands | awk '/commands/{print $2}' | while read i; do j=${i##*/}; (echo "<h1>$j</h1>"; curl $i | sed -n -e '/<aside>/,/<\/aside>/d' -e '/<article>/,/<\/article>/p'; echo "<hr>") >> test.html; sleep 1; done
You can’t perform that action at this time.