Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.
/* Useful celery config. | |
app = Celery('tasks', | |
broker='redis://localhost:6379', | |
backend='redis://localhost:6379') | |
app.conf.update( | |
CELERY_TASK_RESULT_EXPIRES=3600, | |
CELERY_QUEUES=( | |
Queue('default', routing_key='tasks.#'), |
# Here's your list of choices that would be displayed in a drop-down | |
# element on the web. It needs to be a tuple, and we define this | |
# as a variable just for readability/convenience. | |
# | |
# This example has 3 choices, each of which consists of two parts: | |
# 1. the thing that get strored in your database | |
# 2. the thing that you see in a dropdown list | |
LABEL_CHOICES = ( | |
('this gets stored in your database', 'This item is what you see in the drop-down'), | |
('django', 'Django'), |
The following instructions describe a set of processes allowing you to run Django database migrations against a production database without having to bring the web service down.
Note that in the below instructions, migrations are all run manually at explicit points, and are not an automatic part of the deployment process.
#include<stdio.h> | |
#include<stdlib.h> | |
struct list { | |
int value; | |
struct list* next; | |
}; | |
struct list* root = NULL; | |
struct list* lastNodeAddr = NULL; |
#include<stdio.h> | |
#include<stdlib.h> | |
struct doubly { | |
struct doubly* prev; | |
int value; | |
struct doubly* next; | |
}; | |
typedef struct doubly* node; |
#include<stdio.h> | |
#include<stdlib.h> | |
// circular linked list using Singly Linked list | |
struct circular { | |
int value; | |
struct circular* next; | |
}; |
#include<stdio.h> | |
#include<stdlib.h> | |
#define MAX 10 | |
int top = -1; | |
int stack[MAX]; | |
void push(int val) { | |
stack[++top] = val; | |
printf("Value Pushed!\n"); |
#include<stdio.h> | |
#include<stdlib.h> | |
#define MAX 5 | |
int front = 0; | |
int last = 0; | |
int queue[MAX]; | |
void enqueue(int val) { | |
queue[last++] = val; |