Skip to content

Instantly share code, notes, and snippets.

View BobDickinson's full-sized avatar

Bob Dickinson BobDickinson

View GitHub Profile
@BobDickinson
BobDickinson / TextField.swift
Created April 11, 2016 23:16
Multi-line UITextView with background and placeholder functionality of UITextField
// This class is necessary to support "inset" (required to position placeholder appropriately
// in TextView)
//
class TextField: UITextField
{
var inset: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0);
override func textRectForBounds(bounds: CGRect) -> CGRect
{
return UIEdgeInsetsInsetRect(bounds, inset);
@BobDickinson
BobDickinson / app.js
Created January 6, 2016 08:22
Test using CO to replace wait.for
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
app.use(app.router);
var co = require('co');
var lodash = require('lodash');
@BobDickinson
BobDickinson / keybase.md
Created March 25, 2014 18:25
keybase.md

Keybase proof

I hereby claim:

  • I am BobDickinson on github.
  • I am bobdickinson (https://keybase.io/bobdickinson) on keybase.
  • I have a public key whose fingerprint is 02C4 F506 B482 A728 6E34 7327 8789 BCF3 B0DB 58FF

To claim this, I am signing this object: