Skip to content

Instantly share code, notes, and snippets.

View jayfallon's full-sized avatar
🎯
Focusing

Jay Fallon jayfallon

🎯
Focusing
View GitHub Profile
//use this for apache + passenger + sinatra
require 'application'
set :run, false
set :environment, :production
FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
$stdout.reopen(log)
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
@jayfallon
jayfallon / gist:487984
Created July 23, 2010 20:17
application.sass
//imports
@import "reset.sass"
//variables
$textShadow: 0 1px 1px rgba(0,0,0,.3)
//mixins
@mixin globalWidth
margin: 0 auto
width: 720px
redis-server /opt/local/etc/redis.conf
@jayfallon
jayfallon / helper.rb
Created November 17, 2010 16:29 — forked from nex3/helper.rb
def conditional_body
haml_concat "<!--[if !IE]>--><body><!--<![endif]-->"
haml_concat "<!--[if IE 6]><body class='ie ie6'><![endif]-->"
haml_concat "<!--[if IE 7]><body class='ie ie7'><![endif]-->"
haml_concat "<!--[if IE 8]><body class='ie ie8'><![endif]-->"
tab_up
yield
tab_down
haml_concat "</body>"
end
@jayfallon
jayfallon / Basic Nav
Created November 27, 2010 18:15
Basic navbar with full-size buttons
//scss mixins
//mixins
@mixin globalWidth{
margin: 0 auto;
width:720px;
}
@mixin logoSize{
width: 184px;
height: 50px;
@jayfallon
jayfallon / Traceback
Created September 4, 2011 21:28
npm install forever
> daemon@0.3.0 preinstall /root/src/npm/node_modules/forever/node_modules/daemon
> node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /root/local/node
@jayfallon
jayfallon / index.html
Created March 6, 2012 23:54
Default Boilerplate index.html file
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
@jayfallon
jayfallon / gist:5491242
Created April 30, 2013 19:27
Using Mac OSX 10.8.3, thought I had closed the activator UI properly but then got this message when I tried spinning up the application again. Not a big deal, but an unexperienced user may have some difficulty locating the RUNNING_PID file.
➜ activator-0.1.1 ./activator ui
Found previous process id: 73653
Play server process ID is 73862
This application is already running (Or delete /Users/jfallon/Downloads/activator-0.1.1/RUNNING_PID file).
extends _global.jade
block head
link(rel="stylesheet", href="/css/products.css")
block header
section.search-form
div.page-inner
div.form-wrap