Skip to content

Instantly share code, notes, and snippets.

@WilfredLemus
WilfredLemus / gitflow-breakdown.md
Created December 16, 2017 22:29 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@WilfredLemus
WilfredLemus / gunicorn_start.bash
Created May 12, 2016 04:56 — forked from postrational/gunicorn_start.bash
Example of how to set up Django on Nginx with Gunicorn and supervisordhttp://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name
/**
* Este script de javascript permite trabajar transparentemente solicitudes que requieren
* protección del token CSRF por medio de AJAX JQUERY.
* Esto te permitirá hacer solcitudes a web Services de Django por medio de AJAX Jquery.
* Para utilizarlo basta con integrar el archivo DjangoAjax.js en tu directorio de JS y hacer referencia a él en tus templates
* que requieren del uso de AJAX por POST o algún otro que requiera el token CSRF.
* Este script está basado en la documentación oficial de Django https://docs.djangoproject.com
*/
$(function(){
@WilfredLemus
WilfredLemus / voice.js
Last active August 29, 2015 14:08 — forked from Kolesias123/voice.js
/**
* Módulo: Voice
* Funciones de comandos por voz en HTML 5.
*/
Voice =
{
Speech: null, // webkitSpeechRecognition
Recognizing: false, // ¿Estamos intentando reconocer la voz ahora mismo?
LastCommand: '', // Último comando
@WilfredLemus
WilfredLemus / voice.js
Last active August 29, 2015 14:08 — forked from Kolesias123/voice.js
/**
* Módulo: Voice
* Funciones de comandos por voz en HTML 5.
*/
Voice =
{
Speech: null, // webkitSpeechRecognition
Recognizing: false, // ¿Estamos intentando reconocer la voz ahora mismo?
LastCommand: '', // Último comando