This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/activerecord/rake' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class CodeTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@language = text | |
end | |
def render(context) | |
"<pre data-language='#{@language}'><code>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
has_many :followers | |
has_many :projects, through: :followers | |
end | |
class Project < ActiveRecord::Base | |
has_many :followers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jquery.jspuzzle.js | |
* jQuery Photo Puzzle Plugin | |
* http://duncanmcintyre.net/plugins/jspuzzle/ | |
* | |
* Copyright (c) 2011 Duncan McIntyre http://duncanmcintyre.net | |
* Version Beta | |
* Dual licensed under the MIT and GPL licenses. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Bootstrap v2.1.1 | |
* | |
* Copyright 2012 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world @twitter by @mdo and @fat. | |
*/ | |
.clearfix { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= | |
random_tweet = tweets.sample | |
tweet_text = random_tweet["text"] | |
#make links clickable | |
tweet_text.gsub!(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/) { |x| "<a href='#{x}'>#{x}</a>" } | |
#make mentions clickable | |
tweet_text.gsub!(/@\w+/) { |x| "<a href='http://twitter.com/#{x[1..-1]}'>#{x}</a>" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* executing "touch /folderx/current/tmp/restart.txt" | |
servers: ["server.com"] | |
[server.com] executing command | |
command finished in 365ms | |
* executing "rake assets:precompile" | |
servers: ["server.com"] | |
[server.com] executing command | |
** [out :: server.com] rake aborted! | |
** [out :: server.com] No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) | |
** [out :: server.com] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tree for /Users/jankees/Documents/work/Superheroes/superheroes-roast-2012/frontend | |
+ .gitattributes | |
+ .gitignore | |
+ .htaccess | |
+ 404.html | |
+ apple-touch-icon-114x114-precomposed.png | |
+ apple-touch-icon-57x57-precomposed.png | |
+ apple-touch-icon-72x72-precomposed.png | |
+ apple-touch-icon-precomposed.png | |
+ apple-touch-icon.png |