footer: 2018-03-24 - Code Block London - [email protected] - @provoost on Twitter slidenumbers: true autoscale: false
- Coins
- Digital signatures
| testnet=1 | |
| [main] | |
| [test] | |
| server=1 | |
| rpcpassword=bitcoin | |
| rpcuser=bitcoin |
footer: 2018-03-24 - Code Block London - [email protected] - @provoost on Twitter slidenumbers: true autoscale: false
| #!/bin/sh | |
| SIGNED_BINARIES=0 | |
| while getopts ":n:v:s" opt; do | |
| case $opt in | |
| n) | |
| NAME=$OPTARG | |
| ;; | |
| v) | |
| VERSION=$OPTARG |
Create payment request using their demo site. Obtain URL from QR code, e.g. on OSX using QR Journal.
| node_modules | |
| 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 |
| #!/usr/bin/env ruby | |
| require 'open-uri' | |
| require 'JSON' | |
| require 'digest/sha2' | |
| require 'pry' | |
| require 'bigdecimal' | |
| require 'bitcoin' # Because I need to cheat every now and then | |
| # Usage: | |
| # gem install pry json ffi ruby-bitcoin |
| // 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) { |
| 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"] | |
| } |