Skip to content

Instantly share code, notes, and snippets.

View brynbellomy's full-sized avatar

Bryn Bellomy brynbellomy

  • Texas, Republic of
View GitHub Profile
@brynbellomy
brynbellomy / Signals.podspec
Last active August 29, 2015 14:12
Signals.podspec
Pod::Spec.new do |s|
s.name = 'Signals'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'A micro-framework for creating and observing events.'
s.authors = { 'Tuomas Artman' => '@artman' }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/artman/Signals'
s.ios.deployment_target = '8.0'
@brynbellomy
brynbellomy / JSTilemap.podspec
Last active August 29, 2015 14:13
JSTilemap.podspec
Pod::Spec.new do |s|
s.name = 'JSTilemap'
s.version = '0.0.1'
s.license = 'WTFPL'
s.summary = 'Podspec for JSTilemap (not mine)'
s.authors = { 'bryn austin bellomy' => 'bryn.bellomy@gmail.com' }
s.platform = :osx, '10.10'
@brynbellomy
brynbellomy / ReactiveCocoaSwift.podspec
Last active August 29, 2015 14:13
ReactiveCocoa.podspec
Pod::Spec.new do |s|
s.name = 'ReactiveCocoa'
s.version = '0.0.1'
s.summary = 'A framework for composing and transforming streams of values'
s.authors = { 'Justin Spahr-Summers' => '@jspahrsummers' }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/ReactiveCocoa/ReactiveCocoa'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
// NSScanner+Swift.swift
// A set of Swift-idiomatic methods for NSScanner
//
// (c) 2015 Nate Cook, licensed under the MIT license
import Foundation
extension NSScanner {
// MARK: Strings
@brynbellomy
brynbellomy / translate.go
Created December 16, 2015 06:42 — forked from hvoecking/translate.go
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
@brynbellomy
brynbellomy / keybase.md
Created April 24, 2017 05:03
keybase.md

Keybase proof

I hereby claim:

  • I am brynbellomy on github.
  • I am brynb (https://keybase.io/brynb) on keybase.
  • I have a public key ASDX89eg_Af8QGUp-HdvUTZK3ANmc5z_3R8Lv0eMLG4Z7Ao

To claim this, I am signing this object:

@brynbellomy
brynbellomy / FoodBudgetWallet.sol
Created June 25, 2017 01:38
FoodBudgetWallet.sol
pragma solidity ^0.4.0;
// This is our interface (note that it's not really a full
// contract, just a specification of available functions).
contract Reservable {
function reserve(uint seats) payable {}
}
contract FoodBudgetWallet {
address restaurant;
@brynbellomy
brynbellomy / Restaurant.sol
Last active June 25, 2017 01:39
Restaurant.sol
contract Restaurant {
function Restaurant() {}
event GotReservation(uint seats, uint ethAmount, uint ethBalance);
function reserve(uint seats) payable {
GotReservation(seats, msg.value, this.balance);
}
}
@brynbellomy
brynbellomy / DavesWallet.sol
Created June 25, 2017 01:41
DavesWallet.sol
contract DavesWallet {
event GotSomeMoney(uint amount, uint balance);
function() payable {
GotSomeMoney(msg.value, this.balance);
}
}
@brynbellomy
brynbellomy / medium-auction-contract-1.sol
Last active June 29, 2017 19:51
medium-auction-contract-1.sol
contract Auction {
function placeBid() returns (bool success) {}
function withdraw() returns (bool success) {}
function cancelAuction() returns (bool success) {}
event LogBid(address bidder, uint bid, address highestBidder, uint highestBid, uint highestBindingBid);
event LogWithdrawal(address withdrawer, address withdrawalAccount, uint amount);
event LogCanceled();
}