This file contains hidden or 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 MathJaxBlockTag < Liquid::Tag | |
| def render(context) | |
| '<script type="math/tex; mode=display">' | |
| end | |
| end | |
| class MathJaxInlineTag < Liquid::Tag | |
| def render(context) | |
| '<script type="math/tex">' | |
| end |
This file contains hidden or 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 'cgi' | |
| require 'digest/md5' | |
| require 'net/https' | |
| require 'uri' | |
| module Jekyll | |
| class GistTag < Liquid::Tag | |
| def initialize(tag_name, text, token) | |
| super | |
| @text = text |
This file contains hidden or 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
| # An application template for Rails 3 | |
| gem "factory_girl_rails", :group => [:development, :test] | |
| gem "factory_girl_generator", :group => [:development, :test] | |
| gem "rspec", :group => [:development, :test] | |
| gem "rspec-rails", :group => [:development, :test] | |
| gem "haml" | |
| gem "haml-rails" | |
| gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3" | |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | |
| # Augmented version which starts server in SSL mode. Creating certificates: http://www.zunisoft.com/?p=740 | |
| APP_PATH = File.expand_path('../../config/application', __FILE__) | |
| require File.expand_path('../../config/boot', __FILE__) | |
| require 'rails/commands/server' | |
| require 'rack' | |
| require 'webrick' | |
| require 'webrick/https' |
This file contains hidden or 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 'rubygems' | |
| require 'wirble' | |
| Wirble.init | |
| Wirble.colorize | |
| require 'hirb' | |
| #Hirb::View.enable | |
| Hirb.enable :pager=>false |
This file contains hidden or 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
| sinatra | |
| haml |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| ## Find The Longest Palindrome In A String | |
| ## October 15, 2010 | |
| ## | |
| ## http://programmingpraxis.com/2010/10/15/find-the-longest-palindrome-in-a-string/ | |
| ## | |
| ## Greplin issued a programming challenge recently that required programmers | |
| ## to solve three problems; when completed, Greplin issued an invitation to | |
| ## send them a resume. The first problem required the programmer to find the |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| ## Find The Longest Palindrome In A String | |
| ## October 15, 2010 | |
| ## | |
| ## http://programmingpraxis.com/2010/10/15/find-the-longest-palindrome-in-a-string/ | |
| ## | |
| ## Greplin issued a programming challenge recently that required programmers | |
| ## to solve three problems; when completed, Greplin issued an invitation to | |
| ## send them a resume. The first problem required the programmer to find the |
This file contains hidden or 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
| <div id='sidebar'> | |
| <%= section(:sidebar) || partial(:default_sidebar) %> | |
| </div> |
This file contains hidden or 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
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.text.ParseException; | |
| import javax.servlet.http.HttpServlet; | |
| import javax.servlet.http.HttpServletRequest; | |
| import com.google.gwt.user.server.rpc.RemoteServiceServlet; | |
| import com.google.gwt.user.server.rpc.SerializationPolicy; | |
| import com.google.gwt.user.server.rpc.SerializationPolicyLoader; |