Skip to content

Instantly share code, notes, and snippets.

View xoebus's full-sized avatar
🤖
beep beep

Christopher Brown xoebus

🤖
beep beep
  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am xoebus on github.
  • I am xoebus (https://keybase.io/xoebus) on keybase.
  • I have a public key whose fingerprint is 97F2 36CC 4C40 52FC 9901 3AEE AB41 B42A D217 21A1

To claim this, I am signing this object:

academicism
accidentalist
accidentalism
accidentiality
accidential
accidented
accidentalness
accidentality
accidency
accidence
@xoebus
xoebus / gist:991475c25d7ba7660e26
Last active August 29, 2015 14:13
Tahoe Ideas

Ideas

Web UI, CLI & API

Other CI systems already have a good idea of how this should be done. Jenkins has excellent support for configuration changes and the Travis console output is pretty much incredible. Something that they both lack is performance. Taking more than quarter of a second to load a page is unacceptable an infuriating.

A good command line interface has been missing from all CI systems I've used. It

{-# OPTIONS -fno-warn-missing-signatures #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Config
-- Copyright : (c) Spencer Janssen 2007
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : dons@galois.com
-- Stability : stable
-- Portability : portable
@xoebus
xoebus / printers.py
Created November 9, 2009 17:25
A script to check the printers in AT.
#!/usr/bin/env python
import subprocess
good_colour = "\033[0;32m"
bad_colour = "\033[0;31m"
clear_colour = "\033[0m"
class Printer(object):
"""
@xoebus
xoebus / Courses
Created December 22, 2009 21:21
Course Choices
Course Choices
==============
Semester 1
----------
CS/SE Individual Practical 10 Credits
Algorithms and Data Structures 10 Credits
Software Engineering with Objects and Components 10 Credits
Operating Systems 10 Credits
Computer Communications and Networks 10 Credits
@xoebus
xoebus / reccomend.py
Created January 22, 2010 18:21
Diatance between Feature Vectors
# Inf2B
Guardian = (6,4,1,6,6,2,4)
Times = (8,4,4,6,6,6,8)
Telegraph = (10,4,6,6,6,2,9)
Independent = (8,4,3,4,3,3,6)
def dist(vec1, vec2):
vectors = zip(vec1, vec2)
total = 0
@xoebus
xoebus / gist:343792
Created March 25, 2010 16:43
Vertical and Horizontal Swipes for iPhone
UITouch *touch = [touches anyObject];
CGPoint currentPosition = [touch locationInView:[self view]];
CGFloat deltaX = fabsf(gestureStartPoint.x - currentPosition.x);
CGFloat deltaY = fabsf(gestureStartPoint.y - currentPosition.y);
if (deltaX >= kMinimumGestureLength && deltaY <= kMaximumVariance) {
[label setText:@"Horizontal swipe detected"];
[self performSelector:@selector(eraseText) withObject:nil afterDelay:2];
} else if (deltaY >= kMinimumGestureLength && deltaX <= kMaximumVariance) {
@xoebus
xoebus / colours.rb
Created April 4, 2010 22:34
ANSI Colours for Ruby
class String
[:gray, :red, :green, :yellow, :blue, :purple, :cyan, :white].each_with_index do |color, i|
define_method color do "\033[1;#{30+i}m#{self}\033[0m" end
define_method :"#{color}ish" do "\033[0;#{30+i}m#{self}\033[0m" end
end
end
@xoebus
xoebus / cascaders.md
Created April 14, 2010 13:38
Example output for the cascader command.
$ cascader
Searching for cascaders...

There is 1 cascader in this lab:
    Chris Brown     raycroft (Level 5 - West)       Git, Python, Django, 1st Year, 2nd Year

There is 1 other cascader on this floor:

Joe Bloggs jak (Level 5 - North) Maths, Graphics, 1st Year, Ruby