Skip to content

Instantly share code, notes, and snippets.

View vittoriom's full-sized avatar

Vittorio Monaco vittoriom

View GitHub Profile
@vittoriom
vittoriom / reports.swift
Last active April 23, 2016 13:17 — forked from sferrini/reports.swift
reports func must be more Swifty.
enum State {
case Happy
case Sad
}
struct Day {
let name: String
let state: State
}
@vittoriom
vittoriom / resetAllSimulators.sh
Last active August 29, 2015 14:27 — forked from ZevEisenberg/resetAllSimulators.sh
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
xcrun simctl list devices | grep -v '^[-=]' | grep -v 'unavailable' | cut -d "(" -f2 | cut -d ")" -f1 | xargs -I {} xcrun simctl erase "{}"