Skip to content

Instantly share code, notes, and snippets.

View gemfarmer's full-sized avatar

Brian Hedberg gemfarmer

View GitHub Profile
@gemfarmer
gemfarmer / Cabin Manager
Last active December 29, 2015 09:59
App to manage important cabin-specific information
Cabin Manager--Modern Bulletin Board
Sharing a cabin with many families can lead to confusion.
Who maintenances this? Who maintenances that? Who filled the boat up last? Who? WHo? Who?
Features of this App
*Works well on mobile devices (currently only reliable internet access is on phone)
*Secure user login
*Guest login with access to some, but not all, info
@gemfarmer
gemfarmer / annoying media query error
Created January 24, 2014 21:01
seemingly simple error. But i have scoured the files with no missing } in the vicinity of any media queries. Also, line 6536 is in the middle of a comment block
Warning: Can't parse CSS: @media missing '}' near line 6536:1 Use --force to continue.
diff --git a/_data/federal_county_production/AK.yml b/_data/federal_county_production/AK.yml
index 52ef59a..fb17897 100644
--- a/_data/federal_county_production/AK.yml
+++ b/_data/federal_county_production/AK.yml
@@ -1,11 +1,24 @@
'2122':
name: Kenai Peninsula Borough
products:
+ Gas (mcf):
+ name: Gas
diff --git a/_data/federal_county_production/AK.yml b/_data/federal_county_production/AK.yml
index 52ef59a..fb17897 100644
--- a/_data/federal_county_production/AK.yml
+++ b/_data/federal_county_production/AK.yml
@@ -1,11 +1,24 @@
'2122':
name: Kenai Peninsula Borough
products:
+ Gas (mcf):
+ name: Gas
diff --git a/Makefile b/Makefile
index c59862e..417d10c 100644
--- a/Makefile
+++ b/Makefile
@@ -205,8 +205,7 @@ data/state_self_employment.yml:
FROM self_employment \
WHERE \
region IS NOT NULL AND \
- region != 'US' AND \
- jobs > 0 \
diff --git a/Makefile b/Makefile
index c59862e..5a9a21f 100644
--- a/Makefile
+++ b/Makefile
@@ -205,8 +205,7 @@ data/state_self_employment.yml:
FROM self_employment \
WHERE \
region IS NOT NULL AND \
- region != 'US' AND \
- jobs > 0 \
diff --git a/_data/federal_county_production/CA.yml b/_data/federal_county_production/CA.yml
index 1b740e1..34496b3 100644
--- a/_data/federal_county_production/CA.yml
+++ b/_data/federal_county_production/CA.yml
@@ -198,16 +198,16 @@
name: Geothermal
units: 'Electrical Generation, Thousands of Pounds'
volume:
- '2006': 37899363
- '2007': 35201153
@gemfarmer
gemfarmer / Heading accessibility script
Created January 20, 2017 19:43
Type in the developer tools console to get a list of the headings on a given webpage
for (var i = 0, headings = $$('h1,h2,h3,h4,h5,h6'); i < headings.length; i++)
console.log(headings[i].textContent.trim() + " " + headings[i].tagName, headings[i]);
@gemfarmer
gemfarmer / README.md
Last active March 23, 2017 15:47
Bash script that kills a process

Usage

This script will kill the pid process that is responsible for keeping a port open. Use as follows to kill the process that corresponds to a given port:

./killport [PORT]

If the command killport is not recognized, make it executable:

@gemfarmer
gemfarmer / image_checker.rb
Last active March 28, 2017 18:23
File for checking if images are being used in a site. Best for static sites with build directories
# Find this on Github here: https://gist.github.com/gemfarmer/f3f2e35663b96cd3fa8d90b49e6216a0
require 'colorator' # Comment this out to run the script without colorator
built_path = '_site'
directory_name = 'tmp'
unique_path = 'check_images'
image_path = 'assets/img'
use_relative = false
ignore_removable = false
remove_all = false