Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am tommycarpi on github.
* I am tommycarpi (https://keybase.io/tommycarpi) on keybase.
* I have a public key ASCpqET6A_VeLRYPytWgJQLAP4KC2XPRy57iEDU3fgRvAQo
To claim this, I am signing this object:
@tommycarpi
tommycarpi / dismiss_keyboard_on_tap_swift.md
Last active November 28, 2016 14:45
UIViewController extension to dismiss the keyboard while tapping on the background

Dismiss keyboard by tapping on view. Swift 3.

extension UIViewController {
    func dismissKeyboardOnTap() {
        let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard))
        view.addGestureRecognizer(tap)
    }
    
 func dismissKeyboard() {
@tommycarpi
tommycarpi / ipython_notebook+spark.md
Last active September 3, 2021 10:14
Link Apache Spark with IPython Notebook

How to link Apache Spark 1.6.0 with IPython notebook (Mac OS X)

Tested with

Python 2.7, OS X 10.11.3 El Capitan, Apache Spark 1.6.0 & Hadoop 2.6

Download Apache Spark & Build it

Download Apache Spark and build it or download the pre-built version.