Skip to content

Instantly share code, notes, and snippets.

View adamstac's full-sized avatar

Adam Stacoviak adamstac

View GitHub Profile
@adamstac
adamstac / _ga_event_link.html
Created January 9, 2014 22:48
Track and event to Google Analytics - Category, Action, Label
@adamstac
adamstac / screen.css
Created August 9, 2011 04:54
Faux equal height columns hack using pure CSS / Sass (with jQuery fallback for IE 6 & 7)
.two-columns {
overflow: hidden;
*zoom: 1;
position: relative;
}
.two-columns .column-one, .two-columns .column-two {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
@adamstac
adamstac / gist:7462464
Created November 14, 2013 06:42
How to set the timezone on Ubuntu

How to set the timezone on Ubuntu

You can check your current timezone by just running...

$ date
$ Thu Nov 14 00:39:05 CST 2013

You can also check the timezone file...

$ more /etc/timezone

Pour Over Brew Method

Notes

  • Grind coffee beans at medium or regular coarseness setting
  • Start with a ~16:1 water:coffee ratio and tune to your coffee
  • Wet the filter before adding coffee to remove paper taste
  • Wet ground coffee and allow to 'bloom' for 1 minute
  • Slowly pour water in a circular, nickel size pattern
@adamstac
adamstac / application.html.erb
Created August 21, 2013 05:53
Application layout template for a Rails based iOS web application
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes">
@adamstac
adamstac / functions.php
Created July 31, 2013 15:05
Hide WordPress toolbar for non-admins
<?php
//
// Hide WordPress toolbar for non-admins
//
if ( !current_user_can('administrator') ) {
show_admin_bar(false);
}
?>
@adamstac
adamstac / gist:6122773
Created July 31, 2013 15:05
Hide WordPress toolbar for non-admins
<?php
//
// Hide WordPress toolbar for non-admins
//
if ( !current_user_can('administrator') ) {
show_admin_bar(false);
}
?>
@adamstac
adamstac / TODO
Created February 11, 2011 18:50
A Rubyist’s guide to setting up a Mac OS X development environment using Homebrew, RVM, Git and Bundler
* Review this article and add new steps as needed: http://blog.therubymug.com/blog/2010/05/20/the-install-osx.html
adamstacoviak@AS-MBP-i7 [06:11:14] [~]
-> % vagrant init precise32 http://files.vagrantup.com/precise32.box
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
adamstacoviak@AS-MBP-i7 [06:12:23] [~]
-> % vagrant up
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
@adamstac
adamstac / _typekit-fout.scss
Last active December 14, 2015 07:18
Prevents Typekit FOUT by setting visibility: hidden; on the class .wf-loading while fonts are loading
// Typekit FOUT
//------------------------------------------------
// References:
// 1. http://blog.typekit.com/2010/10/29/font-events-controlling-the-fout/
//
.wf-loading {
visibility: hidden;
}