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
@hiratz
hiratz / .bash_aliases
Created Sep 25, 2019 — forked from vratiu/.bash_aliases
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
@hiratz
hiratz / gist:c73b2fa0c6207450172d63a5dbe1db24
Created Apr 17, 2019 — forked from andrewrk/gist:1883543
function to count trailing zeros
View gist:c73b2fa0c6207450172d63a5dbe1db24

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.