Skip to content

Instantly share code, notes, and snippets.

View kriscoleman's full-sized avatar

Kris Coleman kriscoleman

  • Zeeland, MI
View GitHub Profile
@kriscoleman
kriscoleman / ide.sh
Last active November 2, 2019 18:15
My Portable Docker IDE
#!/bin/sh
PROJECT_NAME=${PWD#"${PWD%/*/*}/"}
CONTAINER_NAME=${PROJECT_NAME//\//_}
docker run -it --rm \
-v $PWD:/workspace \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.ssh:/home/me/.ssh \
-v ~/.tmux/ressurect/${PROJECT_NAME}:/home/me/.tmux/resurrect \
-e HOST_PATH=$PWD \
@kriscoleman
kriscoleman / MyEZTableViewController
Last active September 6, 2016 20:17
A simpler way of declaring UITableView content in Xamarin.iOS
//Task: Show Customer Cells with the following behaviors:
// - Customer Name as Cell Title
// - Customer Address as Cell Subtitle
// - Customer Logo as Cell Image
// - Implement Swipe action to delete customers
public class MyEZTableViewSource : EZTableViewSource<EZRow>
{
List<Customer> _customers;