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
import Foundation | |
public enum HTTPMethod: String { | |
case get = "GET" | |
case post = "POST" | |
case put = "PUT" | |
case delete = "DELETE" | |
} | |
public enum NetworkError: Error { |
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
function getQuery() { | |
const urlSearchParams = new URLSearchParams(window.location.search); | |
return Object.fromEntries(urlSearchParams.entries()); | |
} | |
function getAnchorTags() { | |
return document.getElementsByTagName('a'); | |
} | |
function getLinks() { |
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
import UIKit | |
import WebKit | |
final class ReCAPTCHAViewController: UIViewController { | |
private var webView: WKWebView! | |
private let viewModel: ReCAPTCHAViewModel | |
init(viewModel: ReCAPTCHAViewModel) { | |
self.viewModel = viewModel |
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
enum Font { | |
enum Style: String { | |
case bold = "Bold" | |
case regular = "Regular" | |
} | |
case fontAwesome(size: CGFloat) | |
case roboto(size: CGFloat, style: Style) | |
case robotoCondensed(size: CGFloat, style: Style) |
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
#!/bin/bash -e | |
# | |
# Super Clean! | |
# Copyright (c) 2018 - Jeff Kereakoglow | |
# | |
# Deletes all the stuff that VisualStudio's Clean ignores | |
git clean -xfd | |
rm -rf "~/.nuget/packages" |
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
#!/usr/bin/env bash | |
# | |
# Name of the Script | |
# Your Name | |
# | |
# Description of the script. | |
# | |
# Usage: | |
# | |
# $> yourscript -a[f1|f2] -b |
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
import JavaScriptCore | |
import Foundation | |
let context = JSContext()! | |
import JavaScriptCore | |
@objc protocol MovieJSExports: JSExport { | |
var title: String { get set } | |
var price: String { get set } |
The main purpose of this preface is to explain the specification "Preliminary Version", appearing on the title page of these lecture notes. They have been prepared under considerable tine pressure, circumstances under which I was unable to have my use of the English language corrected by a native, circumstances under which I was unable first to try out different methods of presentation. As they stand, I hope that they will serve their two primary purposes: to give my students a guide as to what I am telling and to give my Friends and Relations an idea of what I am doing. The future fate of this