Skip to content

Instantly share code, notes, and snippets.

Avatar
👶
raising my 2 kids (Amazon Alexa for Android, and my son Felix)

Nano workwithnano

👶
raising my 2 kids (Amazon Alexa for Android, and my son Felix)
View GitHub Profile
@workwithnano
workwithnano / LogSymbols.applescript
Last active May 20, 2016
Log ticker symbols from investment accounts in Quicken 2016 using AppleScript
View LogSymbols.applescript
tell application "Quicken 2016"
set quickenDocument to front document
set tickerSymbols to ""
repeat with theAccount in accounts of quickenDocument
set accountType to type of theAccount
set isInvestmentAccount to my stringContains(name of accountType, {"BROKERAGE", "RETIREMENT"})
if isInvestmentAccount is true then
try
set accountName to name of theAccount
log "Account: " & accountName
@workwithnano
workwithnano / simulator_populator
Last active Aug 29, 2015 — forked from cabeca/simulator_populator
This script removes and recreates all simulators in Xcode 6.
View simulator_populator
#!/usr/bin/env ruby
device_types_output = `xcrun simctl list devicetypes`
device_types = device_types_output.scan /(.*) \((.*)\)/
runtimes_output = `xcrun simctl list runtimes`
runtimes = runtimes_output.scan /(.*) \(.*\) \((com.apple[^)]+)\)$/
devices_output = `xcrun simctl list devices`
devices = devices_output.scan /\s\s\s\s(.*) \(([^)]+)\) (.*)/
View gist:10250a84180673d7a6e5

Keybase proof

I hereby claim:

  • I am workwithnano on github.
  • I am nanderson (https://keybase.io/nanderson) on keybase.
  • I have a public key whose fingerprint is 720B 672B 828E DEB4 E1A2 B7DC 9744 A3B3 7785 0846

To claim this, I am signing this object:

@workwithnano
workwithnano / MTFGestures.rb
Created Nov 10, 2012
Calling define_method in RubyMotion Module (v 1.27)
View MTFGestures.rb
module MTFGestures
def gestureRecognizerWithCompletionBlock( gestureClassString, target, completion )
case gestureClassString
when "UIPanGestureRecognizer" then
# Define the panning delegate method based
# on the completion handler passed to this
@workwithnano
workwithnano / rake failure.sh
Created Sep 22, 2012
_kCFBooleanTrue4, what's with the number 4 at the end of the constant?
View rake failure.sh
Nanos-MacBook-Air:zinemachine nano$ rake --trace
** Invoke default (first_time)
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
/usr/bin/env VM_KERNEL_PATH="/Library/RubyMotion/data/6.0/iPhoneSimulator/kernel-i386.bc" VM_OPT_LEVEL="0" /Library/RubyMotion/bin/ruby --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/RubyMotion.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/UIKit.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreVideo.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreImage.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/Security.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/Foundation.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreGraphics.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/CoreFoundation.bridgesupport" --uses-bs "/Library/RubyMotion/data/6.0/BridgeSupport/ImageIO.br