Skip to content

Instantly share code, notes, and snippets.

for FRAMEWORK in `\find Carthage/Build/iOS/ -name "*.framework"`; do
PLIST=$FRAMEWORK/Info.plist
grep "<string>com.firebase.Firebase</string>" $PLIST >/dev/null
if [ $? = 0 ]; then
NAME=$(basename $FRAMEWORK .framework)
echo "Replacing bundle identifier of $NAME"
plutil -replace CFBundleIdentifier -string "com.firebase.Firebase.$NAME" $PLIST
fi
done
@houmei
houmei / bcdall0.v
Created January 27, 2013 16:52
FizzBuzz by FPGA DE0 (QuartusII,verilog)
module bcdall0(BCD3,BCD2,BCD1,BCD0, lampoff);
input [3:0] BCD3;
input [3:0] BCD2;
input [3:0] BCD1;
input [3:0] BCD0;
output lampoff;
assign lampoff=(BCD0==4'd0)&(BCD1==4'd0)&(BCD2==4'd0)&(BCD3==4'd0);
endmodule
@yinyin
yinyin / endian.h
Created March 13, 2012 09:51
BSD/Linux-like <endian.h> for MacOS X
#ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__
#define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1
/** compatibility header for endian.h
* This is a simple compatibility shim to convert
* BSD/Linux endian macros to the Mac OS X equivalents.
* It is public domain.
* */
#ifndef __APPLE__
@sontek
sontek / snowjob.py
Created December 22, 2011 04:24
Make your terminal snow with python
#!/usr/bin/env python
import os
import random
import time
import platform
snowflakes = {}
try:
# Windows Support