Skip to content

Instantly share code, notes, and snippets.

View elliotboney's full-sized avatar

Elliot Boney elliotboney

View GitHub Profile
@elliotboney
elliotboney / styler.css
Created July 25, 2013 20:55 — forked from NigelThorne/styler.css
Workflowy styles
/* I use Stylish (a chome addin) to set these styles
* URLs on the domain workflowy
*/
.next-row {
border: 2px solid #46A546 !important;
border-top-left-radius:0.5em;
background-color: #CCFFCC !important;
}
function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()}
@elliotboney
elliotboney / redir.js
Created September 20, 2013 22:40
redirect based on cookie
function C(k){return(document.cookie.match('(^|; )'+k+'=([^;]*)')||0)[2]}
if(C('affiliate') == 'txrealtors') { window.location.href="https://al152.infusionsoft.com/saleform/nathnie"; }
@elliotboney
elliotboney / align.less
Created February 5, 2014 02:29
vertically align anything
@mixin vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.element p {
@include vertical-align;

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
#!/bin/sh
# tunnel.sh
# Configure
LOCAL_HOST=127.0.0.1;
USERNAME="your_username";
# set your remote address and SSH port.
TUNNEL_PORT="2022"
REMOTE_HOST="my.homedomainorip.com -p $TUNNEL_PORT";
@elliotboney
elliotboney / .tern-project
Created April 23, 2014 15:41
tern js .tern-project
{
"libs": [
"browser",
"jquery"
],
"plugins": {
"node": {},
"doc_comment": {}
}
}
@elliotboney
elliotboney / Lighten Darren.js
Created May 1, 2014 20:18
Lighten and Darken colors in js
function LightenDarkenColor(col, amt) {
var usePound = false;
if (col[0] == "#") {
col = col.slice(1);
usePound = true;
}
var num = parseInt(col,16);
(function (window, document) {
function onLoad(callback) {
if (document.readyState === "complete") {
setTimeout(callback, 1);
} else if (document.addEventListener) {
window.addEventListener("load", callback, false);
} else {
window.attachEvent("onload", callback);
}
@elliotboney
elliotboney / clearfix.css
Created May 31, 2014 14:59
Modern micro clearfix
/**
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* contenteditable attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that are clearfixed.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.cf:before,