Skip to content

Instantly share code, notes, and snippets.

Jeff Kereakoglow jkereako

Block or report user

Report or block jkereako

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 /
Created Dec 7, 2018
Deletes bin and obj directories as created by VisualStudio
find . -iname "bin" -o -iname "obj" | xargs rm -rf
jkereako /
Last active Dec 20, 2018
Opens the current branch name in JIRA.
#!/bin/bash -e
# Copyright (c) 2018 - Jeff Kereakoglow
# Opens the current branch name in JIRA.
readonly SCRIPT_NAME=${0##*/}
readonly COMPANY_NAME="yourdamncompanyname"
jkereako / BinaryFileService.cs
Created Oct 18, 2018
Xamarin.Forms: Downloads binary files and writes them to disk.
View BinaryFileService.cs
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

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



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.


jkereako / swift-calling-convention.rst
Created Jul 5, 2018
Printable version of Swift Calling Convention
View swift-calling-convention.rst

The Swift Calling Convention

This whitepaper discusses the Swift calling convention, at least as we want it to be.

It's a basic assumption in this paper that Swift shouldn't make an implicit promise to exactly match the default platform calling

jkereako / UITableViewExtensions.swift
Last active Apr 22, 2018
Common extensions for UIViewController.
View UITableViewExtensions.swift
// UITableViewExtensions.swift
// Created by Jeff Kereakoglow on 4/22/18.
// Copyright © 2018 AlexisDigital. All rights reserved.
import UIKit.UITableView
extension UITableView {
jkereako /
Created Mar 10, 2018
Add all values in a file.
# Concatenate all lines into 1 line delimited by a "+" and pipe the input into bc
# Example: 178.91+143.39+145.433
paste -sd+ electric_bills.txt | bc
jkereako / Playground.swift
Created Feb 28, 2018
Difference between Generic parameter with a type constraint and just a regular type constraint
View Playground.swift
import Foundation
import PlaygroundSupport
protocol SomeProtocol {
var someProperty: Int { get }
// The parameter `some` is of type T and type T conforms to SomeProtocol
func generic<T: SomeProtocol>(some: T) -> Int {
return some.someProperty
You can’t perform that action at this time.