Skip to content

Instantly share code, notes, and snippets.

@wrenoud
wrenoud / prepare-commit-msg.sh
Last active January 19, 2016 18:15 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master qm-release qm-stable fm-release fm-stable)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@wrenoud
wrenoud / CracklePop.c
Last active September 10, 2015 02:31 — forked from anonymous/README.md
#include <iostream>
using namespace std;
void main()
{
for (int i = 1; i <= 100; i++)
{
bool divisible = false;
if (i % 3 == 0)