- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
//routes | |
var async = require('async'); | |
var _ = require('lodash'); | |
var ObjectId = require('mongodb').ObjectID; | |
module.exports = function (app, models, config, messagebus, queue) { | |
//load modules | |
var validate = require('./validate'); |
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
# Understanding how it moves from route template | |
# The routes are on the cms_server.py | |
# The create.html is a big form. When you get to that page you are Get ing the page. GET bunt/player/create | |
# *** If there is no action= on the form then when you submit it will return to that page as a POST bunt/player/create | |
# <form method="post" enctype="multipart/form-data" accept-charset="utf-8"> | |
# So as seen above the POST method on the form will route it to same place. | |
# create.html | |
<form method="post" enctype="multipart/form-data" accept-charset="utf-8"> |
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
Verifying that +pistachiopony is my openname (Bitcoin username). https://onename.io/pistachiopony |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Once you have Hugo installed - type in terminal | |
hugo help | |
if you see the help options, all is good. Now create a folder in directory of choice | |
mkdir myBlog | |
cd into into your new folder | |
cd myblog | |
Now you can create your hugo blog by typing | |
hugo new site . | |
The . tells it to put it in the directory it is in,(but you can put another direct path if you like). | |
Open up your folder in your editor and you will see new folders there. |
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
Assuming you have virtualenv,virtual wrapper, python and pip already installed. | |
$mkvirtualenv yourproject //this creates your project in a virtual environment | |
You will see you are in your virtualenv project because it will look like this - | |
(yourproject)yourcomputer~/desktop$ | |
$pip install django // install django | |
$pip install django toolbelt | |
$django-admin.py startproject yourproject //this starts django off | |
Now cd into your new project folder | |
cd yourproject | |
Now get Core |
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
$ mkdir $HOME/mygo_projects | |
$ export GOPATH=$HOME/mygo_projects | |
$ go get github.com/gocraft/web |
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
package main | |
import ( | |
"fmt" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"time" | |
) | |
type Person struct { |