Skip to content

Instantly share code, notes, and snippets.

View benmoss's full-sized avatar
🙈

Ben Moss benmoss

🙈
View GitHub Profile
{
"name": "rsvp",
"namespace": "RSVP",
"version": "3.0.11",
"description": "A lightweight library that provides tools for organizing asynchronous code",
"main": "dist/rsvp.js",
"directories": {
"lib": "lib"
},
"devDependencies": {
; -*- mode: clojure; -*-
; vim: filetype=clojure
(logging/init {:file "/var/log/riemann/riemann.log"})
; Listen on the local interface over TCP (5555), UDP (5555), and websockets
; (5556)
(let [host "0.0.0.0"]
(tcp-server {:host host})
(udp-server {:host host})
@benmoss
benmoss / result
Last active August 29, 2015 14:12
set -e semantics
#!/bin/bash
set -e
function log_exit {
echo "exiting with status $?"
}
trap log_exit EXIT
function check_documentation_coverage {
WARNING: protocol? already refers to: #'clojure.core/protocol? in namespace: byte-streams.graph, being replaced by: #'byte-streams.graph/protocol?
WARNING: protocol? already refers to: #'clojure.core/protocol? in namespace: potemkin.types, being replaced by: #'potemkin.types/protocol?
WARNING: protocol? already refers to: #'clojure.core/protocol? in namespace: potemkin.collections, being replaced by: #'potemkin.types/protocol?
@benmoss
benmoss / deps
Last active August 29, 2015 14:15
aleph/manifold resource leak
[aleph "0.4.0-beta2"]
[byte-streams "0.2.0-alpha8"]
[clj-tuple "0.1.7"]
[primitive-math "0.1.4"]
[io.aleph/dirigiste "0.1.0-alpha6"]
[io.netty/netty-all "4.0.25.Final"]
[manifold "0.1.0-beta9"]
[riddley "0.1.7"]
[org.clojure/tools.logging "0.3.1"]
[potemkin "0.3.11"]
@benmoss
benmoss / manifest.yml
Last active August 29, 2015 14:20
manifest
---
applications:
- name: simple-go-web-app111
disk: 256M
memory: 128M
@benmoss
benmoss / pipeline.yml
Created May 6, 2015 20:24
custom manifest for a cf app
---
jobs:
- name: job-deploy-app
public: true
serial: true
plan:
- aggregate:
- get: resource-web-app
- get: manifest
- aggregate:
@benmoss
benmoss / gist:d119a4f590c4ce4865b4
Last active August 29, 2015 14:25
shared memory accounting
// handles-play.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <iostream>
#include <map>
using namespace std;
$(window).load(function() {
$(".carousel").each(function() {
id = "#" + $(this).attr("id");
$(id + " .carousel").jCarouselLite({
btnNext: id + " .next-gallery",
btnPrev: id + " .previous-gallery",
visible: 1
});
});
});
@benmoss
benmoss / AuthenticationHelpers.rb
Created April 22, 2011 18:54
Authlogic UserSessionsController
module AuthenticationHelpers
private
def current_user_session
return @current_user_session if defined?(@current_user_session)
@current_user_session = UserSession.find
end
def current_user