Skip to content

Instantly share code, notes, and snippets.

@hak8or
hak8or / readme.md
Last active August 29, 2015 14:19
Getting started with JD-beacon-board on ubuntu

Instructions

Download the latest Ubuntu (14.10 as of now) from the Ubuntu site and make a virtual machine using that ISO via virtualbox.

When you are done installing Ubuntu, run the following in a terminal to satisfy various dependancies. You can copy and paste this into the terminal fully or line by line.

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y ruby-dev git g++
sudo gem update # This one takes a while and generates an error, it's ok.
@mindplay-dk
mindplay-dk / jquery.order.js
Created October 4, 2013 12:52
jQuery plugin to sort/order a list of HTML elements (including lists, tables, any element type or structure)
/**
* Sort a list of elements and apply the order to the DOM.
*/
jQuery.fn.order = function(asc, fn) {
fn = fn || function (el) {
return $(el).text().replace(/^\s+|\s+$/g, '');
};
var T = asc !== false ? 1 : -1,
F = asc !== false ? -1 : 1;
this.sort(function (a, b) {