Cosmos http://ppw-team6.test.cloud.bbc.co.uk/
- Bad documentation
- Crazy view system
- Lots of magic
- Hard to test because of complicated bootstraping
<?php | |
/* | |
** Converts HSV to RGB values | |
** ––––––––––––––––––––––––––––––––––––––––––––––––––––– | |
** Reference: http://en.wikipedia.org/wiki/HSL_and_HSV | |
** Purpose: Useful for generating colours with | |
** same hue-value for web designs. | |
** Input: Hue (H) Integer 0-360 | |
** Saturation (S) Integer 0-100 |
#Main | |
vbell off | |
escape `` | |
startup_message off | |
autodetach on | |
mousetrack on | |
#Caption | |
caption always "%{kw}%-w%{wr}%n %t %{-}%+w" |
Cosmos http://ppw-team6.test.cloud.bbc.co.uk/
waitForPromise: function(defer, expectations, failureHandle, timeout) { | |
var fired = false, | |
results = false, | |
failure = null; | |
timeout = timeout === undefined ? 10000 : timeout; | |
defer.done(function (r) { | |
fired = true; | |
results = r; |
@live_panel = Css[entry.downcase.gsub(' ', '_')] | |
live_panel_data.should have_css @live_panel | |
#! /usr/bin/env bash | |
# check branches created from and merged to this branch | |
REMOTE=upstream | |
COMPAREBRANCH=develop | |
MASTER=refs/remotes/$REMOTE/$COMPAREBRANCH | |
git fetch $REMOTE | |
# for each remote branch... | |
for BRANCH in $(git for-each-ref --format='%(refname)' refs/heads/); do | |
# ...except the $MASTER branch and the current HEAD |
#!/bin/bash | |
$NAME=joshrp | |
git log --since=14.days --format='%h %cr %s' upstream/develop | grep -P "Merge pull request #\d+ from $NAME" |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
A Pen by Josh Priestley on CodePen.
var githubhook = require('githubhook'); | |
var github = githubhook({/* options */}); | |
github.listen(); | |
var mergeRegex = /^Merge pull request (#\d)+ from/; | |
github.on('*', function (event, repo, ref, data) { | |
console.log('Hook received for',repo); | |
var head = data.head_commit; |