git flow feature start <branchname>
starts a new branch
git commit -am "commit message"
make commits as usual
git pull
from master branch, pull in latest changes from the repo (repeat often)
git pull origin <branchname>
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
var get_rounded_rectangular_shape = function(points, r) { | |
var sb; | |
if(r === 0) { | |
sb = new Array(3*(points.length+1)); | |
//Set up a move to and a line to the initial point | |
sb[0] = "M"; | |
sb[3*points.length] = "L"; | |
sb[1] = sb[3*points.length + 1] = points[0][0]; |
DO WTF YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Alexey Silin <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WTF YOU WANT TO PUBLIC LICENSE |
git flow feature start <branchname>
starts a new branch
git commit -am "commit message"
make commits as usual
git pull
from master branch, pull in latest changes from the repo (repeat often)
git pull origin <branchname>
#!/bin/sh | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... | |
# 1. Copy the file into your repo at `.git/hooks/pre-push` | |
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
/* Polyfill indexOf. */ | |
var indexOf; | |
if (typeof Array.prototype.indexOf === 'function') { | |
indexOf = function (haystack, needle) { | |
return haystack.indexOf(needle); | |
}; | |
} else { | |
indexOf = function (haystack, needle) { | |
var i = 0, length = haystack.length, idx = -1, found = false; |
/** | |
* Get a random floating point number between `min` and `max`. | |
* | |
* @param {number} min - min number | |
* @param {number} max - max number | |
* @return {number} a random floating point number | |
*/ | |
function getRandomFloat(min, max) { | |
return Math.random() * (max - min) + min; | |
} |
import MySQLdb | |
import MySQLdb.cursors | |
from config import config | |
class Cursor(object): | |
def __init__(self, mysql_cursor): | |
self.cursor = mysql_cursor | |
def __iter__(self): |