This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=ImportHtml("url","query","index") | |
url = url of page to download | |
query = "table" (type of html object) | |
index = "3" a number (to skip over other things on the page that might | |
be set up as a table) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- to force a mobile view on a responsive site. Place in-between the header tags. --> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> | |
/* To correctly size elements with borders and padding */ | |
html { | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" cd " - Current Directory | |
" cd - " - Takes you to the last directory you were in | |
" . " Current Directory | |
".." Previous Directory | |
"~" Home Directory (But don't do it!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------ | |
# Opens up various text editors in background | |
alias subl='open -a "Sublime Text 2" -g' | |
alias mate='open -a "TextMate" -g' | |
# ------------------------------------------------ | |
# Server Aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">window.onload=function(){var anchors=document.getElementsByTagName("a");for(var i=0,len=anchors.length;i<len;i++){anchors[i].onclick=function(){return false;};};};</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout better_branch | |
git merge --strategy=ours master # keep the content of this branch, but record a merge | |
git checkout master | |
git merge better_branch # fast-forward master up to the merge | |
---------------------- | |
If you want your history to be a little clearer, I'd recommend adding some information to the merge commit message to make it clear what you've done. Change the second line to: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A PERONSAL INSTALLATION GUIDE: | |
-------------------- | |
SETUP: | |
- Github Account | |
- AWS | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to this page... | |
https://developers.facebook.com/tools/debug/ | |
... and add this string ... | |
?fbrefresh=CAN_BE_ANYTHING | |
... to any url ... | |
<URL /> | |
... and get ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function splitURL(){ | |
var query = window.location.search.substring(1), | |
vars = query.split("&"), | |
params = {}, | |
p; | |
for (var i=0; i<vars.length;i++){ | |
p = vars[i].split("="); | |
params[ p[0] ] = p[1]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// debouncing function from John Hann, via Paul Irish | |
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
;(function(sr){ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced () { | |
var obj = this, args = arguments; | |
function delayed () { | |
if (!execAsap) | |
func.apply(obj, args); |
OlderNewer