Skip to content

Instantly share code, notes, and snippets.

View squarefrog's full-sized avatar
😍
❤️ Swift

Paul Williamson squarefrog

😍
❤️ Swift
  • Cambridgeshire, UK
View GitHub Profile
struct CustomData: Codable {
}
struct AmigoHelper: Codable {
var username: String? = nil
var name: String? = nil
var userID: String? = nil
var email: String? = nil
struct AmigoHelper: Codable {
var username: String? = nil
var name: String? = nil
var userID: String? = nil
var email: String? = nil
//var customData: Array<Any>? = nil
init (username: String? = nil,
name: String? = nil,

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh [email protected]

Add ssh fingerprint and enter password provided in email

@squarefrog
squarefrog / .gitignore
Last active December 26, 2015 18:29 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@squarefrog
squarefrog / UIDeviceHardware.h
Created October 18, 2012 16:28 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
+ (NSString *) platform;