Create payment request using their demo site. Obtain URL from QR code, e.g. on OSX using QR Journal.
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
resolutions := 58 76 80 120 152 | |
all_FILES := $(foreach resolution, $(resolutions), icon-$(resolution).png) | |
all: $(all_FILES) | |
icon-%.png: icon-itunes-connect-1024.png | |
convert $< -resize $*x$* $@ | |
icon-itunes-connect-1024.png: icon.svg |
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
Sjors-Macbook:modules sjors$ icuke-module 4 contact.m | |
xcrun -sdk iphonesimulator4.2 gcc -I. -I/usr/local/lib/ruby/gems/1.8/gems/iCuke-0.6.3/ext/iCuke/sdk4.2 -I/usr/local/lib/ruby/gems/1.8/gems/iCuke-0.6.3/ext/iCuke/sdk4.2/json -arch i386 -pipe -ggdb -std=c99 -DTARGET_OS_IPHONE -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -F/System/Library/PrivateFrameworks -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -x objective-c -fobjc-abi-version=2 -fobjc-legacy-dispatch -c -o contact.o contact.m | |
xcrun -sdk iphonesimulator4.2 gcc -I. -I/usr/local/lib/ruby/gems/1.8/gems/iCuke-0.6.3/ext/iCuke/sdk4.2 -I/usr/local/lib/ruby/gems/1.8/gems/iCuke-0.6.3/ext/iCuke/sdk4.2/json -arch i386 -pipe -ggdb -std=c99 -DTARGET_OS_IPHONE -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -F/System/Library/PrivateFrameworks -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -Xlinker -objc_abi_version -Xlinker 2 -dynamiclib -o contact-sdk4.2.dylib -undefined dynamic_l |
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
source 'http://rubygems.org' | |
gem 'rails', '>=3.0.0' | |
gem 'rake', ">=0.9.2" | |
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' | |
gem 'cancan', ">=1.3.2" | |
gem 'haml',">=3.0.9" | |
gem 'rails3-jquery-autocomplete', '0.3.2' | |
gem 'paperclip' | |
gem 'json' |
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
{ | |
'app_has_moved' : true, | |
'new_app_location' : "https://itunes.apple.com/nl/app/your_new_app/idNEW_APP_ID?mt=8", | |
'app_has_moved_message' : "In order to stay current, please re-download the app from this location. Apologies for the inconvenience." | |
} |
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
NSNumber* appHasMoved = [JSON objectForKey:@"app_has_moved"]; | |
if(appHasMoved != nil && [appHasMoved boolValue]) { | |
// Notify the user that the app has moved. | |
[[NSNotificationCenter defaultCenter] postNotificationName:@"AppHasMoved" | |
object:self | |
userInfo:@{ | |
@"new_app_location" : [JSON objectForKey:@"new_app_location"], | |
@"app_has_moved_message" : [JSON objectForKey:@"app_has_moved_message"], | |
@"app_has_moved_title" : [JSON objectForKey:@"app_has_moved_title"] | |
} |
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
// Observe and notify user if app has moved: | |
[[NSNotificationCenter defaultCenter] addObserverForName:@"AppHasMoved" | |
object:nil | |
queue:NSOperationQueuePriorityNormal | |
usingBlock:^(NSNotification *note) { | |
// Check if we've already told the user recently | |
NSDate *appHasMoved = [[NSUserDefaults standardUserDefaults] valueForKey:@"AlertAppHasMoved"]; | |
int interval = 7*24*60*60; | |
if (appHasMoved == nil || | |
[appHasMoved compare:[[NSDate date] dateByAddingTimeInterval:-interval]] == NSOrderedAscending) { |
footer: 2018-03-24 - Code Block London - sjors@sprovoost.nl - @provoost on Twitter slidenumbers: true autoscale: false
- Coins
- Digital signatures
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
testnet=1 | |
[main] | |
[test] | |
server=1 | |
rpcpassword=bitcoin | |
rpcuser=bitcoin |
Warning: this is highly experimental
It assumes you're already running BTCPay Server somehwere.
Create a user and group:
sudo adduser patron --disabled-password
OlderNewer