Skip to content

Instantly share code, notes, and snippets.

View troyericg's full-sized avatar

Troy Griggs troyericg

  • The New York Times
  • New York
View GitHub Profile
@troyericg
troyericg / Command Line Commands
Created January 31, 2013 19:47
A quick list of OSX Terminal commands. For an A-Z index of the Apple OS X command line, I go to http://ss64.com/osx/
" cd " - Current Directory
" cd - " - Takes you to the last directory you were in
" . " Current Directory
".." Previous Directory
"~" Home Directory (But don't do it!)
@troyericg
troyericg / code drop
Last active July 23, 2018 22:39
where I keep miscellaneous code snippets
<!-- 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;
}
@troyericg
troyericg / google spreadsheet url scraper
Created January 31, 2013 18:52
For copying an HTML table from a website into a google spreadsheet
=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)