This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# cleanup_git_branches <folder> | |
pwd=$(pwd) | |
cd $1 | |
for branch in $(git branch | cut -c 3-); do | |
printf "Delete \e[32m$branch\e[0m ? (y/n, default 'no') " | |
read var |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef int(^Block)(void); | |
Block b[3]; | |
for (int i = 0; i < 3; i++) | |
b[i] = ^{return i;}; | |
for (int i = 0; i < 3; i++) | |
NSLog(@"%d", b[i]()); |