Skip to content

Instantly share code, notes, and snippets.

View brianpattison's full-sized avatar

Brian Pattison brianpattison

View GitHub Profile
@brianpattison
brianpattison / Rm.rb
Created May 19, 2013 14:16
RubyMotion precompile error
# Error!
someiOSObject.send(:someMethod)
# No error!
someiOSObject.someMethod
someiOSObject.send(:someMethod)
@brianpattison
brianpattison / parse_email.md
Last active December 16, 2015 16:29
Partial Email From Parse.com Team 1/15/2013

Totally reasonable questions / concerns.

  1. Going under, going away, getting acquired, etc

We've raised ~7 million in venture funding so far from Google, Y Combinator, etc (https://parse.com/about/investors) and we still have a large chunk of that in the bank. We're looking towards our next fundraising round now to continue the infrastructure + product growth, expand our hiring efforts, etc.

Being acquired isn't part of our game plan for now. We want to build a viable business that people can use and enjoy. We have 50k apps built on our infrastructure and a huge customer base that is growing rapidly. Everyday we have more and more Basic, Pro, and Enterprise users paying us for our awesome services.

@brianpattison
brianpattison / README.md
Last active October 13, 2015 00:58
Rubymotion Layout Wrapper

Rubymotion Layout Wrapper

There's a lot of wrappers for Rubymotion already. I've been collecting my personal wrappers in the Loco namespace. I'm really starting to like this layout wrapper, so I thought I'd share it.

Usage

Include the loco.rb file in your Rubymotion project and include the Loco::UIView module in any of your custom UIViews.

class SampleView < UIView
@brianpattison
brianpattison / example_code.js
Created July 25, 2012 08:15
Appcelerator Titanium + Pusher WebView
var pusherClient = require('/lib/pusher/pusher_client').create({
debug: true,
key: 'YOUR KEY'
});
pusherClient.subscribe('channel');
pusherClient.bind('event_name', function(data) {
// Do something
});
@brianpattison
brianpattison / user.js
Created May 28, 2012 18:44
ACS Users Controller Work in Progress
var Ember = require('/lib/em_ti/ember-runtime');
Keychain = require('com.obscure.keychain');
/**
@class
An Appcelerator Cloud Services User.
@extends Ember.Object
*/
@brianpattison
brianpattison / nice_button.js
Created May 28, 2012 18:40
Extended Ember-Titanium Button
var Button = require('/components/button'),
ColorChanger = require('/lib/color_changer'),
Ember = require('/lib/em_ti/ember-runtime'),
ImageView = require('/lib/em_ti/ui/image_view'),
Label = require('/lib/em_ti/ui/label'),
View = require('/lib/em_ti/ui/view');
var BackgroundView = View.extend({
backgroundGradientBinding: Ember.Binding.transform(function(value) {
if (!Ember.none(value)) {

Jailbreak Apps

Some free. Some not.

  • Brightness Switcher
  • FolderCloser
  • IntelliScreenX
  • LowPowerBanner
  • MyWi 5
  • NoNewsIsGoodNews
@brianpattison
brianpattison / gist:1375666
Created November 18, 2011 05:20
SproutCore Hack for Android V8? or Kindle Fire?
SC.defineProperty = function(obj, keyName, desc, val) {
var m = meta(obj, false), descs = m.descs, watching = m.watching[keyName]>0;
if (val === undefined) {
val = hasDesc(descs, keyName) ? descs[keyName].teardown(obj, keyName) : obj[keyName];
} else if (hasDesc(descs, keyName)) {
// FIXME: Hack for Android V8? or Kindle Fire? Throws teardown is undefined error
if (typeof descs[keyName].teardown === 'function') {
descs[keyName].teardown(obj, keyName);
}
tell application "iTunes"
repeat with s in sources
if (kind of s is iPod) then update s
end repeat
end tell
@brianpattison
brianpattison / _scti-jquerymobileheadings.md
Created October 6, 2011 20:24
jQuery Mobile style headings w/ sproutcore-titanium

jQuery Mobile style headings w/ sproutcore-titanium