Skip to content

Instantly share code, notes, and snippets.

View ReCAPTCHAViewController.swift
import UIKit
import WebKit
final class ReCAPTCHAViewController: UIViewController {
private var webView: WKWebView!
private let viewModel: ReCAPTCHAViewModel
init(viewModel: ReCAPTCHAViewModel) {
self.viewModel = viewModel
@jkereako
jkereako / Font.swift
Created Sep 7, 2020
Example of using an Swift enum as a factory.
View Font.swift
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)
@jkereako
jkereako / super-clean.sh
Last active Jan 4, 2021
Deletes all the stuff that VisualStudio's Clean ignores
View super-clean.sh
#!/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"
@jkereako
jkereako / 3s.sh
Last active Dec 15, 2020
Shell script skeleton
View 3s.sh
#!/usr/bin/env bash
#
# Name of the Script
# Your Name
#
# Description of the script.
#
# Usage:
#
# $> yourscript -a[f1|f2] -b
View JavaScriptCore.swift
import JavaScriptCore
import Foundation
let context = JSContext()!
import JavaScriptCore
@objc protocol MovieJSExports: JSExport {
var title: String { get set }
var price: String { get set }
View ewd-123.md

Preface

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

View MenuTableViewCellModel.swift
//
// MenuTableViewCellModel.swift
// TestApp
//
// Created by Jeff Kereakoglow on 2/26/18.
// Copyright © 2018 Alexis Digital. All rights reserved.
//
import Foundation
import UIKit.UIViewController
@jkereako
jkereako / vsclean.sh
Created Dec 7, 2018
Deletes bin and obj directories as created by VisualStudio
View vsclean.sh
find . -iname "bin" -o -iname "obj" | xargs rm -rf
@jkereako
jkereako / jira.sh
Last active Dec 20, 2018
Opens the current branch name in JIRA.
View jira.sh
#!/bin/bash -e
#
# JIRA
# Copyright (c) 2018 - Jeff Kereakoglow
#
# Opens the current branch name in JIRA.
readonly SCRIPT_NAME=${0##*/}
readonly COMPANY_NAME="yourdamncompanyname"