Skip to content

Instantly share code, notes, and snippets.

View thunsaker's full-sized avatar
💻
Always Working

Thomas Hunsaker thunsaker

💻
Always Working
View GitHub Profile
@thunsaker
thunsaker / LineEntry.cs
Last active September 17, 2018 10:53 — forked from davidtavarez/LineEntry.cs
Xamarin.Forms Entry just with bottom border. Added IsValid and ErrorColor Properties to better handle Validation Scenarios
using System;
using Xamarin.Forms;
namespace YOURNAMESPACE
{
public class LineEntry : Entry
{
public static BindableProperty BorderColorProperty =
BindableProperty.Create(
@thunsaker
thunsaker / modernizr-ios-check.js
Last active April 27, 2016 21:56 — forked from danott/modernizr-tests.js
Custom Modernizr tests that are useful.
/* 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
thunsaker / timeline.js
Last active February 17, 2016 16:20
Small JS sample to push pins from inside a PebbleKit JS app
/******************************* timeline lib *********************************/
// The timeline public URL root
var API_URL_ROOT = 'https://timeline-api.getpebble.com/';
/**
* 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
thunsaker / us_geo_chart_google.html
Last active January 15, 2016 16:23 — 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
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<div id="regions_div" style="width: 900px; height: 500px;"></div>
@thunsaker
thunsaker / main.py
Created January 8, 2014 21:10 — forked from davemasse/main.py
import requests
from pyquery import PyQuery
import settings
if __name__ == '__main__':
# Log in to Alarm.com page
payload = {
'JavaScriptTest': '1',
'cookieTest': '1',
package com.example.scalpeldrawer;
import android.app.Activity;
import android.content.Context;
import android.support.v4.widget.DrawerLayout;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
package your_package;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import requests
from pyquery import PyQuery
import settings
if __name__ == '__main__':
# Log in to Alarm.com page
payload = {
'JavaScriptTest': '1',
'cookieTest': '1',