THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| To change a field name in django 1.7+ | |
| 1. Edit the field name in the model (but remember the old field name: you need it for step 3!) | |
| 2. Create an empty migration | |
| $ python manage.py makemigrations --empty myApp | |
| 3. Edit the empty migration (it's in the migrations folder in your app folder, and will be the most recent migration) by adding | |
| migrations.RenameField('MyModel', 'old_field_name', 'new_field_name'), | |
| to the operations list. |
| <!DOCTYPE HTML> | |
| <html lang="en" ng-app="myApp"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Dynamic Pagination w/ Filtering</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content="Kim Maida"> | |
| <!-- JS Libraries --> |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
| celery flower --address=127.0.0.1 --url_prefix=flower --broker=<broker url> |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/mail" | |
| "net/smtp" | |
| "crypto/tls" | |
| ) |
| #!/bin/sh | |
| # Redirect output to stderr. | |
| exec 1>&2 | |
| # enable user input | |
| exec < /dev/tty | |
| consoleregexp='console.log' | |
| # CHECK | |
| if test $(git diff --cached | grep $consoleregexp | wc -l) != 0 | |
| then |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
Install Package Control for easy package management.
Ctrl+`