Skip to content

Instantly share code, notes, and snippets.

@ezekg
ezekg / adapters.application.js
Last active February 11, 2017 19:50
New Twiddle
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend();
@ezekg
ezekg / Juicefile
Last active October 18, 2016 16:58
Example Juicefile configuration.
# -*- mode: yaml -*-
# vi: set ft=yaml:
# Development project information
project:
name: example
url: example.dev
# Deployment configuration
deployment:

Keybase proof

I hereby claim:

  • I am ezekg on github.
  • I am ezekg (https://keybase.io/ezekg) on keybase.
  • I have a public key ASA0obyrPKS3Ts18SGETX1ydkeXJKbBCRgzziT1LhowmNgo

To claim this, I am signing this object:

@ezekg
ezekg / ultimate-ut-cheat-sheet.md
Created July 8, 2016 23:35 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@ezekg
ezekg / Cliref.md
Created June 5, 2016 20:26 — forked from yunga/Cliref.md
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     [email protected]
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

@ezekg
ezekg / .bash_profile
Last active May 13, 2016 22:48
Jekyll new post command
# Generate a new Jekyll post
#
# @param $1 - Post slug
# @param $2 - Post title
function new-post {
post="_posts/$(date +%Y-%m-%d)-$1.md"
if [[ -f "$post" ]]; then
echo "Post '$1' already exists"
else
touch "$post"
@ezekg
ezekg / build.sh
Last active May 16, 2016 18:36
Simple bash task runner
#!/usr/bin/env bash
# Run a task
#
# @param $1 - Task name
# @param $2 - Command to run
function task() {
printf "\033[00;34m%-50s\033[0m" "$1 ..."
eval "$2" && success || fail
}
@ezekg
ezekg / ipn-test.php
Created April 22, 2016 23:42 — forked from mikejolley/ipn-test.php
Quick snippet/plugin/dropin to test IPN support
<?php
/**
* Plugin Name: PayPal Sandbox IPN Tester
* Description: Pings the IPN endpoint to see if your server can connect. Just head to <a href="/?ipn-test=1">yoursite.com/?ipn-test=1</a> whilst logged in as admin.
* Version: 1.0.0
* Author: WooThemes
* Requires at least: 4.1
* Tested up to: 4.3
*/
if ( ! defined( 'ABSPATH' ) ) {
@ezekg
ezekg / yardoc_cheatsheet.md
Created February 23, 2016 22:38 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

YARD CHEATSHEET http://yardoc.org

cribbed from http://pastebin.com/xgzeAmBn

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@ezekg
ezekg / SassMeister-input-HTML.html
Created February 6, 2016 18:20
Generated by SassMeister.com.
<section>
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
<div>Item 6</div>
<div>Item 7</div>
<div>Item 8</div>
</section>