Skip to content

Instantly share code, notes, and snippets.

@chehab
chehab / flask_deploy.sh
Created November 22, 2013 13:42
Deploying Flask App mod_wsgi/Py Webfaction From http://community.webfaction.com/questions/12718/installing-flask
#!/bin/bash
# First, fill in these variables with your Application Name and URL Path:
APPNAME="myflask"
URLPATH="/"
# Step 2
# deploy the app
cd $HOME
@chehab
chehab / dir-tree.py
Created August 23, 2013 09:42
Go through every file and subdirectory in a directory tree
import os
for dirname, dirnames, filenames in os.walk('.'):
# print path to all subdirectories first.
for subdirname in dirnames:
print os.path.join(dirname, subdirname)
# print path to all filenames.
for filename in filenames:
print os.path.join(dirname, filename)
@chehab
chehab / dumy-page.html
Created July 28, 2013 16:39
nav-tree ( Bootstrap 3 + Font Awesome )
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title> nav-tree &mdash; Bootstrap3 + Font Awesome </title>