Skip to content

Instantly share code, notes, and snippets.

View tsycho's full-sized avatar

Asif tsycho

View GitHub Profile
@arvearve
arvearve / gist:4158578
Created November 28, 2012 02:01
Mathematics: What do grad students in math do all day?

Mathematics: What do grad students in math do all day?

by Yasha Berchenko-Kogan

A lot of math grad school is reading books and papers and trying to understand what's going on. The difficulty is that reading math is not like reading a mystery thriller, and it's not even like reading a history book or a New York Times article.

The main issue is that, by the time you get to the frontiers of math, the words to describe the concepts don't really exist yet. Communicating these ideas is a bit like trying to explain a vacuum cleaner to someone who has never seen one, except you're only allowed to use words that are four letters long or shorter.

What can you say?

@iconstate
iconstate / libimobiledevice-build.sh
Created October 1, 2012 14:29 — forked from boxingsquirrel/libimobiledevice-build-without-root.sh
Build libimobiledevice from source easily... on Ubuntu 12.04 on VirtualBox
sudo apt-get update
sudo apt-get install build-essential git\
cmake python-dev cython swig \
libusb-1.0 \
automake autoconf libtool \
libgnutls-dev libglib2.0-dev libxml2-dev libreadline-dev
echo "Building libplist..."
git clone http://cgit.sukimashita.com/libplist.git/
@chanks
chanks / gist:998124
Created May 29, 2011 20:46
Override static asset cache expiration on Heroku.
# Stick the following in an initializer.
module Heroku
class StaticAssetsMiddleware
def cache_static_asset(reply)
return reply unless can_cache?(reply)
status, headers, response = reply
headers['Cache-Control'] = 'public, max-age=31556926' # 1 year
@mislav
mislav / pagination.md
Created October 12, 2010 17:20
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o