Skip to content

Instantly share code, notes, and snippets.

View devinfoley's full-sized avatar

Devin Foley devinfoley

View GitHub Profile
@devinfoley
devinfoley / keybase.md
Created July 22, 2017 17:28
Verifying myself on Keybase

Keybase proof

I hereby claim:

  • I am devinfoley on github.
  • I am devinfoley (https://keybase.io/devinfoley) on keybase.
  • I have a public key ASCaK5ZMxF2jItZGGsxd0XF6AViOxLNy4NX9n5-W70I3bAo

To claim this, I am signing this object:

@devinfoley
devinfoley / locales_1.csv
Last active July 30, 2022 07:44
Dates in various locales on iOS
locale_id time formatted
en_IE 00:00 11 Jul 2013 00:00:00 Pacific Daylight Time
en_IE 00:01 11 Jul 2013 01:00:00 Pacific Daylight Time
en_IE 12:00 11 Jul 2013 12:00:00 Pacific Daylight Time
en_IE 12:01 11 Jul 2013 13:00:00 Pacific Daylight Time
ro_MD 00:00 11.07.2013, 00:00:00 Ora de vară în zona Pacific
ro_MD 00:01 11.07.2013, 01:00:00 Ora de vară în zona Pacific
ro_MD 12:00 11.07.2013, 12:00:00 Ora de vară în zona Pacific
ro_MD 12:01 11.07.2013, 13:00:00 Ora de vară în zona Pacific
br 00:00 2013 Goue 11 00:00:00 GMT-07:00
- (void)pusher:(PTPusher *)pusher connectionDidConnect:(PTPusherConnection *)connection {
NSLog(@"PTPusher:connectionDidConnect %@", @"Connected");
if (user != NULL) {
NSString* channelName = [NSString stringWithFormat:@"user-%d", user.userId];
NSLog(@"Subscribing to %@", channelName);
PTPusherChannel* channel = [self.pusher channelNamed:channelName];
if (channel != NULL) {
[self.pusher unsubscribeFromChannel:channel];
}
[self.pusher subscribeToChannelNamed:channelName];
@devinfoley
devinfoley / gist:1267725
Created October 6, 2011 15:40
Set git commit log to :release_notes in Capistrano
namespace :show do
desc "Show some internal Cap-Fu: What's mah NAYM?!?"
task :me do
set :task_name, task_call_frames.first.task.fully_qualified_name
local_sha = `git rev-parse --verify HEAD`
remote_sha = capture("cd #{current_path}; git rev-parse --verify HEAD")
git_log = `git log #{remote_sha.strip}..#{local_sha.strip}`
puts git_log
set :release_notes, git_log