TODO: Write a project description
TODO: Describe the installation process
| .idea/* | |
| *.pyc |
| redis-cli EVAL "$(cat hello.lua)" 0 |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # | |
| # A fabric deploy script for a django project using uwsgi + nginx (is debian/ubuntu focused) | |
| # | |
| # The nginx virtual host conf and uwsgi.ini should reside in the project root: | |
| # - virtual host conf filename should be: PROJECT_NAME_nginx.conf | |
| # - uwsgi conf filename should be: uwsgi.ini | |
| # | |
| # The deployment is mercurial based, but the script requires little changes for using git | |
| # deployment works as follow: | |
| # $ fab (devel|staging|production) install_system_deps #only once |
| import macros | |
| proc procToLambda(input: PNimrodNode): PNimrodNode {.compiletime.} = | |
| # Ident !"foo" | |
| # Empty | |
| # Empty | |
| # FormalParams | |
| # Ident retType | |
| # IdentDefs | |
| # ... |
| from datetime import datetime | |
| import string | |
| from nltk.stem.lancaster import LancasterStemmer | |
| from nltk.corpus import stopwords | |
| #Gets the tweet time. | |
| def get_time(tweet): | |
| return datetime.strptime(tweet['created_at'], "%a %b %d %H:%M:%S +0000 %Y") |
| from django.utils.http import urlencode | |
| def reverse_querystring(view, urlconf=None, args=None, kwargs=None, current_app=None, query_kwargs=None): | |
| '''Custom reverse to handle query strings. | |
| Usage: | |
| reverse('app.views.my_view', kwargs={'pk': 123}, query_kwargs={'search': 'Bob'}) | |
| ''' | |
| base_url = reverse(view, urlconf=urlconf, args=args, kwargs=kwargs, current_app=current_app) | |
| if query_kwargs: | |
| return '{}?{}'.format(base_url, urlencode(query_kwargs)) |
| /** | |
| * Created by gaspar on 22/sept/15. | |
| */ | |
| //angularJS | |
| (function () { | |
| var app = angular.module('app', | |
| //ejemplo de algun controlador | |
| ['app.mainController'] | |
| ); |