- 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
// 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
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
# 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
//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
{% extends '/layouts/layout.njs' %} | |
{% block content %} | |
<div class="box "> | |
<aside class="container"> | |
<div class="col col-1of1-xs"> | |
<h1>Create a group</h1> | |
<br> | |
</div> | |
</aside> |
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
{% extends '/layouts/layout.njs' %} | |
{% block contenttype%}item-form{%endblock%} | |
{% block content %} | |
{% if item.summary and item.title and (item.ship or item.exchange) and item.category and (item.images|length > 0) and (item.groups|length > 0) and (item.state != "open") %} | |
{% set isPublishable = 1 %} | |
{% else %} | |
{% set isPublishable = 0 %} | |
{% endif %} |
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
<!--In the Dashboard.njs--> | |
<div class="dashboard-item-offer box {{"invisible" if offer.isHidden}} {{"offer-to-rate" if offer.state == "rescinded" and not offer.ratedBySeller }}"> | |
<div class="col col-1of4-md col-1of1-xs"> | |
{% include "partials/userthumb.njs" %} | |
{% include "partials/modals/message.njs" %} *****This tells the button where to go | |
<div class="offerer"> | |
<p class="offerer-name">{{offer.offerer.name}}</p> | |
<p class="offerer-location">{{offer.offerer.location.city}}, {{offer.offerer.location.state}}</p> | |
<a><button type="submit" class="bttn6 seller-message" data-toggle="modal" data-target="#modalSellerMessage"> Message</button></a> |
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
var mariaItem = function (req, res, next) { | |
Item.findOne({ _id: "5099803df3f4948bd2f98391"}, function (err, result){ | |
req.contents = {}; | |
req.contents.result = result; | |
next(); | |
}); | |
}; | |
var mariaView = function (req, res, next){ | |
async.waterfall([ |