This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.geocoder.geocodeAddressString("Haddonfield, NJ", | |
completionHandler: {(placemarks, error:NSError!) in | |
if error? { | |
println("Error \(error!.localizedDescription)") | |
if error!.code == 8 { | |
println("not found") | |
} | |
return | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var store:EKEventStore = EKEventStore() | |
store.requestAccessToEntityType(EKEntityTypeEvent, | |
completion:{(granted:Bool, error:NSError?) -> Void in | |
if let e = error { | |
println("Error \(e.localizedDescription)") | |
} | |
if granted { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var tabOpts = { | |
activate: handleTabSelect, | |
// fx has been deprecated | |
show: { | |
height: 'toggle', | |
opacity: 'toggle' | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Markdown | |
(defun turn-on-outline-minor-mode () | |
(outline-minor-mode 1)) | |
(when (require 'markdown-mode nil 'noerror) | |
(setq auto-mode-alist | |
(cons '("\\.md" . markdown-mode) auto-mode-alist)) | |
(setq auto-mode-alist | |
(cons '("\\.markdown" . markdown-mode) auto-mode-alist)) | |
(setq markdown-command "/usr/local/bin/Markdown.pl") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; a simple .emacs.d/init.el to set up | |
;; inferior lisp mode for Clojure with lein | |
;; this also add Marmalade as a package repository to obtain clojure-mode and paredit | |
(setq inferior-lisp-program "lein repl") | |
;; On OSX set the command key to be the meta key | |
(setq ns-command-modifier 'meta) | |
(require 'package) |
NewerOlder