Skip to content

Instantly share code, notes, and snippets.

@jshawl
jshawl / post-update.sh
Created October 21, 2014 18:15
Restart Unicorn Git Hook
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
APP_ROOT=/var/www/superheros
UNICORN_PID=$APP_ROOT/pids/unicorn.pid
@jshawl
jshawl / precess-input-1413605028.scss
Created October 18, 2014 04:03
a precess production
@mixin box-sizing( $value ){
-webkit-box-sizing:$value;
-moz-box-sizing:$value;
box-sizing:$value;
}
.shape{
@include box-sizing('border-box');
border:1px solid red;
height:100px;
∴ ~/Sites export PATH=/opt/jekyll/bin:$PATH
∴ ~/Sites which jekyll
/opt/jekyll/bin/jekyll
∴ ~/Sites cd jesse.sh
∴ ~/Sites/jesse.sh git:(master) jekyll serve --watch
/opt/jekyll/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find jekyll (>= 0) amongst [RedCloth-4.2.9, actionmailer-4.1.5, actionmailer-4.1.1, actionmailer-4.0.0.rc1, actionmailer-3.2.11, actionpack-4.1.5, actionpack-4.1.1, actionpack-4.0.0.rc1, actionpack-3.2.11, actionview-4.1.5, actionview-4.1.1, activemodel-4.1.5, activemodel-4.1.1, activemodel-4.0.0.rc1, activemodel-3.2.11, activerecord-4.1.5, activerecord-4.1.1, activerecord-4.0.0.rc1, activerecord-3.2.11, activerecord-deprecated_finders-1.0.3, activeresource-3.2.11, activesupport-4.1.5, activesupport-4.1.1, activesupport-4.0.0.rc1, activesupport-3.2.18, activesupport-3.2.11, acts-as-taggable-on-3.4.1, addressable-2.3.6, arel-5.0.1.20140414130214, arel-4.0.2, arel-3.0.3, autoprefixer-rails-1.1.20140605, aws-sdk-1.48.1, backports-3.6.0, bcrypt-3.1.7,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jshawl
jshawl / precess-input-1412094466.scss
Created September 30, 2014 16:27
a precess production
.shape{
border:5px solid red;
}
@mixin size( $dimensions ){
height:$dimensions;
width:$dimensions;
}
.square{
@jshawl
jshawl / precess-input-1412093725.scss
Created September 30, 2014 16:15
a precess production
.shape{
border:5px solid red;
}
.square{
@extend .shape;
width:100px;
height:100px;
}
@jshawl
jshawl / precess-input-1412092136.scss
Created September 30, 2014 15:49
a precess production
li{
display:inline-block;
a{
display:block;
padding:1em;
text-decoration:none;
&:hover{
text-decoration:underline;
}
}
require 'date'
require 'octokit'
require './env.rb' if File.exists? './env.rb'
class Contribart
attr_accessor :dates
def initialize
@client = Octokit::Client.new(:access_token => GH_TOKEN )
@jshawl
jshawl / precess-input-1409767220.scss
Created September 3, 2014 18:00
a precess production
$color: chris;
a{
color: $color;
}