Skip to content

Instantly share code, notes, and snippets.

View jkereako's full-sized avatar

Jeff Kereakoglow jkereako

View GitHub Profile
@jkereako
jkereako / 3s.sh
Last active December 15, 2020 14:36
Shell script skeleton
#!/usr/bin/env bash
#
# Name of the Script
# Your Name
#
# Description of the script.
#
# Usage:
#
# $> yourscript -a[f1|f2] -b
import JavaScriptCore
import Foundation
let context = JSContext()!
import JavaScriptCore
@objc protocol MovieJSExports: JSExport {
var title: String { get set }
var price: String { get set }
@jkereako
jkereako / ewd-123.md
Last active May 29, 2019 20:13
EWD 123

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

//
// 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 December 7, 2018 16:24
Deletes bin and obj directories as created by VisualStudio
find . -iname "bin" -o -iname "obj" | xargs rm -rf
@jkereako
jkereako / jira
Last active August 6, 2022 01:49
Opens the current branch name in JIRA.
#!/usr/bin/env bash
#
# JIRA
# Copyright (c) 2018 - Jeff Kereakoglow
#
# Opens the current branch name in JIRA.
set -Eeuo pipefail
readonly COMPANY_NAME="yourdamncompanyname"
@jkereako
jkereako / BinaryFileService.cs
Created October 18, 2018 17:40
Xamarin.Forms: Downloads binary files and writes them to disk.
using System;
using System.IO;
using System.Net.Http;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Xamarin.Essentials;
namespace App.Services
@jkereako
jkereako / craps-detail.md
Created August 7, 2018 17:10
Craps Detail

Craps Introduction

Craps can be an intimidating game for the beginner. The table seems to have about a hundred different kinds of bets, the players are barking out commands in what seems to be a foreign language, and the pace is too fast to ever ask a question. I can sympathize with the beginner, because at one point in time this was how craps appeared to me. If this is how you view the game, I have good news. There is one fundamental bet, the "pass line" bet, that almost all players make. You can easily get by knowing just this bet your first time. As you get more experienced, you can add more bets to your repertoire. After just your first five minutes, you should feel comfortable with the flow of the game and

@jkereako
jkereako / craps-overview.md
Created August 7, 2018 17:07
Craps overview

Introduction

Craps seems like an intimidating game to those who haven't played it. There are dozens of bets available, and it seems like the game has a terminology all its own. While both those statements are true, it is easy to jump in with the knowledge of just two bets. What follows is an explanation of the most common bets, in roughly the order you should learn them. Again, you don’t have to understand all of the bets to play, just the ones you intend to wager on.

Pass