Skip to content

Instantly share code, notes, and snippets.

Avatar

Štefan Ľupták stefanluptak

View GitHub Profile
View gist:4be05987f8e464d07634
iex(9)> files = [{'test.zip', "ABCBED"}]
[{'test.zip', "ABCBED"}]
iex(10)> :zip.create('mem', files, [:memory])
{:ok,
{'mem',
<<80, 75, ...>>}}
@dstrelau
dstrelau / app.rb
Created Nov 22, 2010
Gollum protected by HTTP Basic
View app.rb
require 'gollum/frontend/app'
require 'digest/sha1'
class App < Precious::App
User = Struct.new(:name, :email, :password_hash)
before { authenticate! }
helpers do
def authenticate!