Skip to content

Instantly share code, notes, and snippets.

View aqlla's full-sized avatar
🎯
Focusing

Aquilla Sherrock aqlla

🎯
Focusing
View GitHub Profile
@aqlla
aqlla / getopts-example.sh
Created May 27, 2022 22:01
Example for shell script getopt with longs because i always forget.
# src: https://stackoverflow.com/a/30026641
# credit to @mcoolive
# Transform long options to short ones
for arg in "$@"; do
shift
case "$arg" in
'--help') set -- "$@" '-h' ;;
'--number') set -- "$@" '-n' ;;
'--rest') set -- "$@" '-r' ;;
@aqlla
aqlla / nyt-paywall.css
Created December 30, 2019 19:17
Overcome NYT Paywall
body > div#app > div > div.css-mcm29f {
overflow: scroll;
}
body > div#app > div > div > div.css-1bd8bfl,
body > div#app > div > div#gateway-content {
display: none;
}
import Foundation
typealias JSON = AnyObject
typealias JSONDict = Dictionary<String, JSON>
typealias JSONArray = Array<JSON>
struct User {
let id: Int
let name: String
let email: String