Skip to content

Instantly share code, notes, and snippets.

@uadev
uadev / github-generate-notes.js
Last active August 29, 2015 14:11
Generate Release Notes from compare view
function getNotes() {
Array.prototype.map.call(
document.querySelectorAll('.comment-body > p'),
function(c) { return '\\' + c.innerHTML}
).join("\n")
};
@uadev
uadev / bitquest.level.12.js
Created January 14, 2014 01:11
Radar instead sensor. No changes to framework.
/*
* Do it.
*
*/
this.on('start', function() {
var directions = {
top: function() {
this.thrusters.bottom(true);
@uadev
uadev / bitsquest.level.11.js
Created January 14, 2014 00:49
This will work... after several iterations.
/*
* Open all three doors to exit.
*
* The answer is ?.
*/
/*
* Do it.
*
*/
@uadev
uadev / bitsquest.level.10.js
Created January 14, 2014 00:39
It's easy when you can create a map.
/*
* Do it.
*
*/
this.on('start', function() {
var directions = {
top: function() {
this.thrusters.bottom(true);
/*
* Open all three doors to exit.
*
* The answer is 5.
*/
this.on('start', function() {
var directions = {
top: function() {
/*
* This other bot is helping-- somewhat.
*/
this.on('start', function() {
var directions = {