Skip to content

Instantly share code, notes, and snippets.

∴ ~/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,
@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;
@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
upstream app {
# Path to Unicorn SOCK file, as defined previously
server unix:/tmp/unicorn.superheros.sock fail_timeout=0;
}
server{
listen 80;
server_name qed.im;
root /var/www/superheros;
try_files $uri/index.html $uri @app;

FizzBuzz!

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

Bonus!

Solve this problem without using any loops.

Double Bonus!

@jshawl
jshawl / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Installfest!

Sublime Text

Download

XCode CLI tools

$ xcode-select --install
@jshawl
jshawl / git-notes
Last active August 29, 2015 14:09 — forked from richardcornish/git.md
Start
=====
1. Install Git
http://git-scm.com/download/mac
(But consider using Homebrew)
2. Make a GitHub account
https://github.com/
3. Open Terminal
@jshawl
jshawl / Git notes
Last active August 29, 2015 14:09 — forked from richardcornish/git.md
Start
=====
1. Install Git
http://git-scm.com/download/mac
(But consider using Homebrew)
2. Make a GitHub account
https://github.com/
3. Open Terminal