build=`uname --hardware-platform`
apt-get install python-dev libjpeg62 libjpeg-dev libpng12-0 libpng-dev libfreetype6-dev
ln -s /usr/lib/${build}-linux-gnu/libjpeg.so /usr/lib
ln -s /usr/lib/${build}-linux-gnu/libz.so /usr/lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.extend($.validator.messages, { | |
required: "can't be blank", | |
remote: 'needs to get fixed', | |
email: 'is an invalid email address', | |
url: 'is not a valid URL', | |
date: 'is not a valid date', | |
dateISO: 'is not a valid date (ISO)', | |
number: 'is not a valid number', | |
digits: 'needs to be digits', | |
creditcard: 'is not a valid credit card number', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bootstrap_paginate(pages, options={}) | |
options.reverse_merge!( | |
:class => 'pagination', | |
:renderer => BootstrapLinkRenderer, | |
:previous_label => '←'.html_safe, | |
:next_label => '→'.html_safe | |
) | |
will_paginate(pages, options) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BeautifulSoup import BeautifulSoup | |
import requests | |
import os | |
album_url = "http://imgur.com/a/TYfWa/all/hot/day/page/%d?scrolled" | |
pages = 3 | |
directory = "heroes" | |
posts_list = [] |
NewerOlder