Skip to content

Instantly share code, notes, and snippets.

View michaelneale's full-sized avatar
😀
Not updating github status

Michael Neale michaelneale

😀
Not updating github status
View GitHub Profile
@michaelneale
michaelneale / belay-js-example.html
Last active September 11, 2015 06:58 — forked from jedwood/belay-js-example.html
Tiny helper for connecting two elements with SVG lines. Assumes jQuery (for now). Original by @johndilworth
<!DOCTYPE html>
<html>
<head>
<title>SVG Lines</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="belay.js"></script>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<style>
body{
@nkpart
nkpart / Yolo.hs
Last active September 5, 2018 13:50
{-# LANGUAGE GADTs #-}
module Yolo where
import System.IO.Unsafe
class Yolo f where
yolo :: f a -> a
instance Yolo Maybe where
yolo (Just x) = x
@mwotton
mwotton / stupid axe ad
Created August 3, 2013 23:45
whee, i made their pointless C compile!
typedef struct {
int girlfriend;
} holder;
typedef struct {
holder a;
} toplevel;
typedef struct {
int this;

This is more complex than necessary probably.

There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API.

{
@michaelneale
michaelneale / change_make
Created July 12, 2011 10:16
Call make when files change
#!/usr/bin/env ruby
#
# Will monitor a directory for changes, call make when picked up (after a tiny pause)
#
def new_timestamp()
timestamps = Dir.glob("./src/*.erl").map do |m| File.atime(m).to_i end
timestamps.inject { |i,j| i + j }
end
@thatdutchguy
thatdutchguy / gist:909211
Created April 8, 2011 03:05
jenkins/stapler/fog.hpi build notes
git clone https://github.com/cowboyd/fog.hpi
git clone https://github.com/jenkinsci/jenkins
git clone https://github.com/stapler/stapler.git
git clone https://github.com/cowboyd/jenkins.rb
STAPLER:
cd stapler
mvn install
cd jruby
mvn install