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
import jinja2 | |
from flask import Flask, render_template, request, redirect, url_for | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from . import formatting | |
from .config import get_config | |
db = SQLAlchemy() |
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
#!/usr/bin/env python | |
fizzbuzz = ( | |
('fizz' if i % 3 == 0 else '') + ('buzz' if i % 5 == 0 else '') + (str(i) if i % 3 and i % 5 else '') | |
for i in xrange(1, 100 + 1) | |
) | |
for entry in fizzbuzz: | |
print entry |
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
#!/bin/bash | |
# Make sure to run as root. | |
apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev | |
cd ~ | |
mkdir git | |
cd git | |
wget https://github.com/git/git/archive/v2.3.0.tar.gz |