brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/usr/bin/python | |
| """Replacement for htpasswd""" | |
| # Original author: Eli Carter | |
| import os | |
| import sys | |
| import random | |
| from optparse import OptionParser | |
| # We need a crypt module, but Windows doesn't have one by default. Try to find |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| // convert 0..255 R,G,B values to binary string | |
| RGBToBin = function(r,g,b){ | |
| var bin = r << 16 | g << 8 | b; | |
| return (function(h){ | |
| return new Array(25-h.length).join("0")+h | |
| })(bin.toString(2)) | |
| } | |
| // convert 0..255 R,G,B values to a hexidecimal color string | |
| RGBToHex = function(r,g,b){ |
| """ | |
| Gets the name of the active Git branch as a string. | |
| Depends on GitPython | |
| pip install GitPython | |
| """ | |
| from git import Repo | |
| repo = Repo('/path/to/your/repo') | |
| branch = repo.active_branch |
| for (var i = 0; i < 1024 * 1024; i++) { | |
| process.nextTick(function () { Math.sqrt(i) } ) | |
| } |
| /** | |
| * Cubic Bezier CSS3 transitions emulator | |
| * | |
| * See this post for more details | |
| * http://st-on-it.blogspot.com/2011/05/calculating-cubic-bezier-function.html | |
| * | |
| * Copyright (C) 2011 Nikolay Nemshilov | |
| */ | |
| function Bezier(p1,p2,p3,p4) { | |
| // defining the bezier functions in the polynomial form |
| #!/usr/bin/env python | |
| __version__ = '0.2' | |
| __releasedate__ = '2009-12-23' | |
| __author__ = 'Ryan McGreal <[email protected]>' | |
| __homepage__ = 'http://quandyfactory.com/insult' | |
| __repository__ = 'http://gist.github.com/258915' | |
| __copyright__ = 'Copyright (C) 2009 by Ryan McGreal. Licenced under GPL version 2. http://www.gnu.org/licenses/gpl-2.0.html' | |
| def generate_insult(): |