Skip to content

Instantly share code, notes, and snippets.

View brycehamrick's full-sized avatar

Bryce Hamrick brycehamrick

View GitHub Profile
@brycehamrick
brycehamrick / hoodie-debug.txt
Created February 18, 2014 19:28
hoodie debug
This file has been truncated, but you can view the full file.

.d$b. .d$b. .d$$$$$$b.  .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P'  'Q$$$$$$P' 'Q$$$$$$$P
@brycehamrick
brycehamrick / keybase.md
Last active August 29, 2015 14:02
keybase.md

Keybase proof

I hereby claim:

  • I am brycehamrick on github.
  • I am bhamrick (https://keybase.io/bhamrick) on keybase.
  • I have a public key whose fingerprint is DDCF 527B 51DA 7A56 D3EE C023 3714 2CF3 37AA 9060

To claim this, I am signing this object:

@brycehamrick
brycehamrick / Archive\cA.scpt
Created December 10, 2014 20:11
Outlook Archive Script
tell application "Microsoft Outlook"
activate
set msgSet to current messages
if msgSet = {} then
error "No messages selected. Select at least one message."
error -128
end if
set theMsg to item 1 of msgSet
set theAccount to account of theMsg
set archiveFolder to folder "Archive" of theAccount
Verifying I am +bhamrick on my passcard. https://onename.com/bhamrick
@brycehamrick
brycehamrick / CaptureCanRedeem
Created August 16, 2012 01:07
Capture Promo Creation
public bool CaptureCanRedeem(string barcode, out bool alreadyExist)
{
alreadyExist = false;
query.Add("type_name", "promos");
query.Add("attributes", "{\"code\":\"" + barcode + "\"}");
query.Add("client_id", client_id);
query.Add("client_secret", client_secret);
JObject obj = GetData("https://loccitane.janraincapture.com/entity.create", query);
if (obj["stat"] != null && obj["stat"].Value<string>() == "error" && obj["error"] != null && obj["error"].Value<string>() == "unique_violation")
alreadyExist = true;
@brycehamrick
brycehamrick / backplane_ready.js
Last active December 12, 2015 00:38
Backplane ready callback
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
// Code to be executed on BP ready
}
@brycehamrick
brycehamrick / backplane_channel.js
Last active December 12, 2015 00:38
Pass the Backplane channel ID to the server via JSONP
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
// Get the channel ID
var bpChannel = Backplane.getChannelID();
@brycehamrick
brycehamrick / backplane_subscribe_switch_send.js
Last active December 12, 2015 01:39
Subscribing to a Backplane channel and testing type, then sending the messageURL to a server.
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
Backplane.subscribe(function(message){
switch(message.type) {
@brycehamrick
brycehamrick / backplane_subscribe.js
Last active December 12, 2015 01:49
Subscribe to Backplane messages
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
Backplane.subscribe(function(message){
// Do something with message
@brycehamrick
brycehamrick / backplane_subscribe_switch.js
Last active December 12, 2015 01:49
Subscribing to a Backplane channel and testing type
(function() {
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2)
return;
/**
* Callback function to be executed on BP ready
*/
function bp_ready_callback() {
Backplane.subscribe(function(message){
switch(message.type) {