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
I hereby claim:
To claim this, I am signing this object:
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:
#!/bin/sh | |
# git pre-commit hook that runs an Uncrustify stylecheck. | |
# Features: | |
# - abort commit when commit does not comply with the style guidelines | |
# - create a patch of the proposed style changes | |
# | |
# More info on Uncrustify: http://uncrustify.sourceforge.net/ | |
# This file is part of a set of unofficial pre-commit hooks available |
indent_align_string=false | |
indent_braces=false | |
indent_braces_no_func=false | |
indent_brace_parent=false | |
indent_namespace=false | |
indent_extern=false | |
indent_class=false | |
indent_class_colon=false | |
indent_else_if=false | |
indent_columns=4 |
// 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]; | |