Skip to content

Instantly share code, notes, and snippets.

View elliotboney's full-sized avatar
😁
vibin

Elliot Boney elliotboney

😁
vibin
View GitHub Profile
@elliotboney
elliotboney / .tern-project
Created April 23, 2014 15:41
tern js .tern-project
{
"libs": [
"browser",
"jquery"
],
"plugins": {
"node": {},
"doc_comment": {}
}
}
#!/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";

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'>
@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;
@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"; }
function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()}
@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;
}