Skip to content

Instantly share code, notes, and snippets.

View jhauraw's full-sized avatar

Jhaura Wachsman jhauraw

View GitHub Profile
@jhauraw
jhauraw / app.css
Last active May 26, 2020 00:59
Axiom Hugo Theme Blogdown CSS Beta
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-i

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jhauraw
jhauraw / stripe_event_tokens.txt
Last active August 29, 2015 13:58
Stripe Webhook Event Tokens
/**
* Complete list of Stripe Event Tokens as sent via webhook
* in the object: event_json->type. Useful in your webhook
* file for taking action depending on the type of event,
* such as with PHP and the switch statement.
* Valid: 2014-04-01
*/
account.updated
@jhauraw
jhauraw / stripe_webhook.php
Last active August 29, 2015 13:57
Stripe Webhook PHP Example
<?php
// You can save this file as index.php and make it available in a public webhook directory in your app:
// http://example.com/webhooks/stripe/index.php
// In your Stripe Dashboard -> Webhooks page, add a LIVE and/or TEST URL:
// http://example.com/webhooks/stripe/
// Load the Stripe library
require_once 'lib/Stripe.php';
@jhauraw
jhauraw / yaml-if-truthy.liquid
Last active December 16, 2015 03:19
A test of how Liquid Template language evaluates YAML Front Matter variables of the truthy, falsy type. Meant for debugging Jekyll templates.
# Each value of 'single' in 'yaml-results-truthy.yml' was run
# through each of these '{% if %} clauses.
#
# If the '{% if %}' clause evaluated to truthy, the statement
# is shown in 'yaml-results-truthy.yml' under the --- block
# for that value of 'single'.
# If falsy, nothing is printed and nothing was added to the
# results file.
@jhauraw
jhauraw / Default (OSX).sublime.keymap
Created March 27, 2013 23:49
My Sublime Text User Key Bindings file.
[
// {"keys": ["shift+space"], "command": "move", "args": {"by": "characters", "forward": true}},
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context": [
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
@jhauraw
jhauraw / Preferences.sublime-settings
Last active December 15, 2015 12:19
My Sublime Text User Preferences file.
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
@jhauraw
jhauraw / opencart-export-outright.sql
Created March 7, 2013 02:30
Import Sales into Outright from OpenCart Shopping Cart. Breaks each Sale into line item parts such as: Sub-Total, Shipping, Tax, Coupon and Credit, so you can see detailed Reports in Outright.
/*
Description: Import Sales into Outright from OpenCart Shopping Cart.
Breaks each Sale into line item parts such as: Sub-Total, Shipping,
Tax, Coupon and Credit, so you can see detailed Reports in Outright.
Author: Jhaura Wachsman
URL: http://JhauraWachsman.com
Copyright 2013 Jhaura Wachsman
Usage:
1) Create categories 'Sales Shipping', 'Sales Tax', 'Sales Coupon'