Skip to content

Instantly share code, notes, and snippets.

View 3Easy's full-sized avatar

@3Easy 3Easy

View GitHub Profile
@3Easy
3Easy / .zshrc
Last active September 9, 2021 02:01
# ~/.zshrc (goes in the home directory, e.g. next to apps, dekstop, documents…)
# Find and set branch name var if in git repository.
function git_branch_name()
{
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch == "" ]];
then
:
else
@3Easy
3Easy / .bash_profile
Created May 28, 2019 01:15
Bash Profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\[\e[01;31m\]\w \$(parse_git_branch): \[\e[00m\]"
@3Easy
3Easy / bower.json
Last active September 21, 2017 08:38
NPM Bower Gulp
{
"name": "3easy",
"description": "",
"main": "index.js",
"authors": [
"3Easy <[email protected]>"
],
"license": "MIT",
"homepage": "3easy.org",
"ignore": [
@3Easy
3Easy / mc_runoff.bas
Last active August 29, 2015 14:20
Deloitte Loan Life & Valuation
Option Compare Database
'
'------------------------------------------------------------------------------>
'
Public Function RunOffData()
' RunOff Data
' Requires dbo_LenderInfoMmmYY for 13 Months
@3Easy
3Easy / keybase.md
Created February 26, 2015 04:02
Keybase GitHub Identity

Keybase proof

I hereby claim:

  • I am 3Easy on github.
  • I am 3easy (https://keybase.io/3easy) on keybase.
  • I have a public key whose fingerprint is 5F09 5E10 F994 570B F762 D532 7123 769D D100 E0B6

To claim this, I am signing this object:

$segs = explode('/', $_SERVER['REQUEST_URI_PATH']); $env_config['show_profiler'] = ( ! ENV_DEBUG OR ($segs[1] == $cp)) ? 'n' : 'y' ;
@3Easy
3Easy / gist:4e2ca319bbdfd99d4400
Last active August 29, 2015 14:04
Store Orders CSV Export
{exp:http_header content_type="text/csv" content_disposition="attachment" filename="squiddies-orders-{current_time format="%Y%m%d-%H%i"}.csv"}Order ID, Email, Shipping Name, Shipping Address 1, Shipping Address 2, Shipping City, Shipping State, Shipping Postcode, Shipping Country, Order Items
{exp:store:orders order_status="new"}
{order_id}, {order_email}, {shipping_name}, {shipping_address1}, {shipping_address2}, {shipping_city}, {shipping_state_name}, {shipping_postcode}, {shipping_country_name}, {items}{sku} x {item_qty} {/items}{/exp:store:orders}
@3Easy
3Easy / ee_video.php
Last active December 16, 2015 10:19
ExpressionEngine Video Embed
{exp:channel:entries channel="video" limit="1"}
<h2>{title}</h2>
{video_embed}
{if video_embed_type == "vimeo"}
<iframe src="http://player.vimeo.com/video/{video_embed_key}?badge=0" width="600" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
{/if}
{if video_embed_type == "youtube"}
<iframe width="600" height="400" src="http://www.youtube.com/embed/{video_embed_key}" frameborder="0" allowfullscreen></iframe>
{/if}
{/video_embed}
@3Easy
3Easy / Short Grid
Last active December 12, 2015 00:59
Short Grid
<div class="row">
<div class="eight columns end">
<p>Add a class of 'end' to the last column if there are less than twelve to avoid an element floating right.</p>
</div>
</div>
@3Easy
3Easy / Complex Grid
Last active December 12, 2015 00:09
Complex Grid
<div class="row">
<div class="twelve columns">
<div class="row">
<div class="three columns">
<p class="panel">Three</p>
</div>
<div class="four columns">
<p class="panel">Four</p>
</div>
<div class="five columns">