yum install ncurses-devel openssl-devel
yum groupinstall "Development Tools"
wget "http://erlang.org/download/otp_src_19.3.tar.gz" -O otp19.tar.gz
tar xfz otp19.tar.gz
cd otp_src_19.3/
./configure
make && make install
| CC=gcc | |
| CFLAGS=-lm -pthread | |
| rtl_mmpump: rtl_mmpump.c | |
| # xxx: gcc ./rtl_mmpump.c -pthread -lm $(pkg-config --libs --cflags libusb-1.0 librtlsdr) | |
| $(CC) -o $@ $< $(CFLAGS) $(shell pkg-config --libs --cflags libusb-1.0 librtlsdr) | |
| all: rtl_mmpump |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' |
| #pragma mark - | |
| #pragma mark CGFloat | |
| #pragma mark Trigonometric Functions | |
| #define CGFloatCos(a) (CGFLOAT_IS_DOUBLE ? cos(a) : cosf(a)) | |
| #define CGFloatSin(a) (CGFLOAT_IS_DOUBLE ? sin(a) : sinf(a)) | |
| #define CGFloatTan(a) (CGFLOAT_IS_DOUBLE ? tan(a) : tanf(a)) | |
| #define CGFloatACos(a) (CGFLOAT_IS_DOUBLE ? acos(a) : acosf(a)) | |
| #define CGFloatASin(a) (CGFLOAT_IS_DOUBLE ? asin(a) : asinf(a)) | |
| #define CGFloatATan(a) (CGFLOAT_IS_DOUBLE ? atan(a) : atanf(a)) |
Prerequisites:
Software components used:
| // I had a need to replace the use of RegexKitLite's arrayOfCaptureComponentsMatchedByRegex with | |
| // the built-in NSRegularExpression in iOS 5+, and didn't find an existing example, so I wrote one: | |
| - (NSArray *) arrayOfCaptureComponentsOfString:(NSString *)data matchedByRegex:(NSString *)regex | |
| { | |
| NSError *error = NULL; | |
| NSRegularExpression *regExpression = [NSRegularExpression regularExpressionWithPattern:regex options:NSRegularExpressionCaseInsensitive error:&error]; | |
| NSMutableArray *test = [NSMutableArray array]; | |