Skip to content

Instantly share code, notes, and snippets.

@f1fe
f1fe / WWDC2016-terminal.terminal
Created April 29, 2016 13:17
Terminal configured with WWDC2016 colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECgw
LjA3ODQzMTM3MjU1IDAuNjExNzY0NzA1OSAwLjU3MjU0OTAxOTYAEAGAAtIQERITWiRj
bGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNo
@f1fe
f1fe / keybase.md
Created June 1, 2015 13:49
keybase.md for keybase.io

Keybase proof

I hereby claim:

  • I am f1fe on github.
  • I am f1fe (https://keybase.io/f1fe) on keybase.
  • I have a public key whose fingerprint is 2780 7DBE 6DBB F9EC A473 5478 47B7 1EC3 05AA 4400

To claim this, I am signing this object:

@f1fe
f1fe / EightyPercent.workflow
Created June 6, 2014 14:29
AppleScript Service: Select a number, multiple by 0.8, and replace
(*
AppleScript expects a string to be returned. This was surprisingly difficult to determine.
Run this workflow as an AppleScript service. Set "Service receives selected 'text'"
*)
on run {input, parameters}
set val to input as string
set eighty to (val as real) * 0.8
return (eighty as string)
@f1fe
f1fe / SparrowExtensionParticleSystemLatest
Last active August 29, 2015 13:56
pod file for master branch of the Sparrow-Extension-Particle-System
Pod::Spec.new do |s|
s.name = 'Sparrow-Extension-Particle-System'
s.version = '0.5'
s.license = 'Simplified BSD'
s.summary = 'A particle system for the Sparrow framework, compatible with the "Particle Designer" from 71squared.com.'
s.description = 'A particle system for the Sparrow framework, compatible with the "Particle Designer" from 71squared.com.'
s.homepage = 'https://github.com/Gamua/Sparrow-Extension-Particle-System'
s.author = { 'Daniel Sperl' => 'https://twitter.com/PrimaryFeather',
'Holger Weissböck' => 'https://twitter.com/holgua',
'Gamua' => 'http://gamua.com/' }
@f1fe
f1fe / SparrowFrameworkLatest
Last active August 29, 2015 13:56
SparrowFrameworkLatest
Pod::Spec.new do |s|
s.name = 'Sparrow-Framework'
s.version = '2'
s.license = 'Simplified BSD'
s.summary = 'Objective-C library inspired by Adobe™ Flash and Starling that was built from ground up for iPhone, iPad and iPod Touch.'
s.description = 'Sparrow is a pure Objective-C library that was built from ground up for iPhone, iPad and iPod Touch. If you have already worked with Adobe™ Flash or Starling, you will feel right at home: Sparrow uses the same concepts and naming schemes.'
s.homepage = 'http://gamua.com/sparrow/'
s.author = { 'Daniel Sperl' => 'https://twitter.com/PrimaryFeather',
'Holger Weissböck' => 'https://twitter.com/holgua',
'Gamua' => 'http://gamua.com/' }
@f1fe
f1fe / UITextFieldDelegate-Validation-Boilerplate.m
Created November 12, 2012 21:44
Boilerplate code to validate an email/username UITextField and password UITextField before taking action
- (void)viewDidLoad
{
[super viewDidLoad];
self.finishButton.enabled = NO;
self.emailTextField.delegate = self;
self.passwordTextField.delegate = self;
}
#pragma mark - UITextFieldDelegate methods
@f1fe
f1fe / bex_plist_parser.rb
Created October 19, 2012 16:14
Marketcircle Billings .bex parser to output comments
require 'plist'
# the input argument is the name of the .bex file
result = Plist::parse_xml(ARGV[0])
time_entries = result['objects'][0]['timeEntries']
printf "Start Time, End Time, Minutes, Comment\n"
time_entries.each do |e|
duration_in_days = (e['endDateTime'] - e['startDateTime'])
printf "%s, %s, %s, %s\n", e['startDateTime'], e['endDateTime'], (duration_in_days * 24 * 60).to_i, e['comment']
end
@f1fe
f1fe / osx_lion_rail_setup.md
Created October 4, 2012 14:24 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL