Skip to content

Instantly share code, notes, and snippets.

View adamstac's full-sized avatar

Adam Stacoviak adamstac

View GitHub Profile

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
#main {
width: 100%;
}
aside {
width: 160px;
}
#sidebar {
width: 240px;
// `Clearfix
//--------------------------------------------------
// Can be added to other style rules via:
//
// #foobar
// @extend .clearfix
.clearfix
zoom: 1
@adamstac
adamstac / _sass-retina.sass
Created September 17, 2011 14:07 — forked from jamesfinley/Hi-res Graphic Mixin
A simple way to include both low-res and hi-res graphics for iOS/Desktop/etc.
@mixin hires-graphic($file, $type, $width, $height)
$file-name: $file + "." + $type
$retina-name: $file + "-retina." + $type
@media (-webkit-min-device-pixel-ratio: 2)
&
background-image: image-url($retina-name)
-webkit-background-size: $width $height
@adamstac
adamstac / ios-media-queries.sass
Created September 17, 2011 13:58
iOS Media Queries for iPhone/iPod, iPad & Retina and Non-Retina Devices
.ipad-only,
.iphone-only,
.retina-only,
.non-retina-only,
.retina-iphone-only,
.non-retina-iphone-only
display: none
// iPad Only
@media only screen and (device-width: 768px)
[07:37][adamstacoviak:~]$ gem list
*** LOCAL GEMS ***
aasm (2.1.4)
acl9 (0.12.0)
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
#!/bin/bash
if [ -z "$1" ]; then
wdir="."
else
wdir=$1
fi
for f in $( ls $wdir/*.erb ); do
out="${f%.erb}.haml"
if [ -e $out ]; then
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml: lang="en">
<head>
<title>vectoredink</title>
<metta http-equiv="Content-Type" content="text/html; chartset=utf-8" />
<style type="text/css">
html {
// Modified, cleaner Haml syntax.
// First link works, second does not.
// First link
%ul
%li.arrow= link_to "Search/Add Customer", new_customer_path
// Second link
- form_for :reservation do |form|
%ul
// config file: nodejuice.js
// Example StaticMatic configuration.
// -> http://localhost:3010
exports.sidekick = {
host : null, // Leave 'null' to listen on all hosts.
port : 3010, // access your server from this port.
fetch : { // point to your web server.
host : 'localhost',
port : 3000