Skip to content

Instantly share code, notes, and snippets.

@akahigeg
akahigeg / Gemfile
Created June 20, 2013 08:11
for Nanoc with Pow
source 'http://rubygems.org'
gem 'bundler'
gem 'rack'
gem 'rack-rewrite'
gem 'mime-types'
gem 'nanoc', '3.4'
gem 'adsf'
gem 'haml'
gem 'sass'
@akahigeg
akahigeg / example.md
Created September 21, 2011 12:36
なんちゃってtoctree

toctree from /

<%= toctree :from => '/' %>

toctree from current item

<%= toctree %>

toctree include only specified directories

@akahigeg
akahigeg / amazon_ecs_with_memcache.rb
Created September 17, 2011 06:06
Amazon::Ecs response caching to memcached
# -*- coding: utf-8 -*-
require 'amazon/ecs'
require 'dalli'
require 'active_support/core_ext'
module Amazon
class Ecs
class << self
def send_request_with_memcache(opts)
@akahigeg
akahigeg / gist:736193
Created December 10, 2010 13:24
TitaniumReporter for Jasmine
(function() {
if (! jasmine) {
throw new Exception("jasmine library does not exist in global namespace!");
}
var TitaniumReporter = function() {};
TitaniumReporter.prototype = {
reportRunnerStarting: function(runner) {