Skip to content

Instantly share code, notes, and snippets.

Always Working

Thomas Hunsaker thunsaker

Always Working
View GitHub Profile
thunsaker / miloshadzic-alt.zsh-theme
Created Nov 19, 2019
Alternate Version of the Miloshadzic zsh theme
View miloshadzic-alt.zsh-theme
# Yay! High voltage and arrows!
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
PROMPT='%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} '
thunsaker / LineEntry.cs
Last active Sep 17, 2018 — forked from davidtavarez/LineEntry.cs
Xamarin.Forms Entry just with bottom border. Added IsValid and ErrorColor Properties to better handle Validation Scenarios
View LineEntry.cs
using System;
using Xamarin.Forms;
public class LineEntry : Entry
public static BindableProperty BorderColorProperty =
thunsaker / weather
Created Mar 9, 2017
Alias for which only displays today's weather
View weather
alias weather='curl "[YOUR CITY HERE]" -s | head -7'
thunsaker / .slate
Last active Feb 11, 2019
Slate config that doesn't take over all of my keyboard shortcuts.
View .slate
# Slate:
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Push Bindings
bind right:ctrl;cmd push right bar-resize:screenSizeX/2
bind left:ctrl;cmd push left bar-resize:screenSizeX/2
bind up:ctrl;cmd push up bar-resize:screenSizeY
thunsaker / modernizr-ios-check.js
Last active Apr 27, 2016 — forked from danott/modernizr-tests.js
Custom Modernizr tests that are useful.
View modernizr-ios-check.js
/* modernizr-ios-check.js
* Daniel Ott (with modifications)
* 3 March 2011
* Custom Tests using Modernizr's addTest API
/* iOS
* There may be times when we need a quick way to reference whether iOS is in play or not.
* While a primative means, will be helpful for that.
thunsaker / timeline.js
Last active Feb 17, 2016
Small JS sample to push pins from inside a PebbleKit JS app
View timeline.js
/******************************* timeline lib *********************************/
// The timeline public URL root
var API_URL_ROOT = '';
* Send a request to the Pebble public web timeline API.
* @param pin The JSON pin to insert. Must contain 'id' field.
* @param type The type of request, either PUT or DELETE.
* @param topics Array of topics if a shared pin, 'null' otherwise.
thunsaker / us_geo_chart_google.html
Last active Jan 15, 2016 — forked from gerryster/us_geo_chart_google
US State Map using the GeoChart from the Google Chart Tools Based off of the Official Google JSFiddle
View us_geo_chart_google.html
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<div id="regions_div" style="width: 900px; height: 500px;"></div>
thunsaker / build.gradle
Created Oct 31, 2015
Gradle Release ProGuard Example
View build.gradle
buildTypes {
release {
runProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
thunsaker / forms-bindable-picker.cs
Created May 26, 2015
Xamarin.Forms BindablePicker
View forms-bindable-picker.cs
// via
using System;
using System.Collections;
using Xamarin.Forms;
public class BindablePicker : Picker {
public BindablePicker() {
this.SelectedIndexChanged += OnSelectedIndexChanged;
package your_package;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;