Skip to content

Instantly share code, notes, and snippets.

hiratz hiratz

Block or report user

Report or block hiratz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vratiu
vratiu / .bash_aliases
Created Mar 26, 2014
Git shell coloring
View .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@andrewrk
andrewrk / gist:1883543
Created Feb 22, 2012
function to count trailing zeros
View gist:1883543

Given an unsigned integer, return the number of trailing zero bits

Test framework:

#include <stdio.h>
#include <assert.h>

unsigned trailing_zeros(unsigned n) {
    // fill in this function
You can’t perform that action at this time.