Skip to content

Instantly share code, notes, and snippets.

View lwe's full-sized avatar
💭
I may be slow to respond.

Lukas Westermann lwe

💭
I may be slow to respond.
View GitHub Profile
require 'sidekiq'
require 'sidekiq/manager'
require 'sidekiq/scheduled'
class SidekiqService
attr_reader :options, :manager
def initialize(options = {})
@options = options
@lwe
lwe / Gemfile
Last active December 14, 2015 05:59
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0.beta1'
gem 'sqlite3'
# THIS BREAKS IT, though when it's at the end of the file it works...
gem 'haml', '~> 3.1'
@lwe
lwe / hapi.js
Last active September 11, 2022 12:51
Server-sent-events with trial for hapi and one with a plain node.js http server.
var Hapi = require('hapi');
var stream = require('stream');
// Create a server
var server = Hapi.createServer('localhost', 8000);
// Add a route
server.route({
method: 'GET',
path: '/hello',

Keybase proof

I hereby claim:

  • I am lwe on github.
  • I am lwe (https://keybase.io/lwe) on keybase.
  • I have a public key ASBR3o4RHUCJWVKn-5UvI43Qry8SjTb6YzhWGhdK__YOYwo

To claim this, I am signing this object: