Skip to content

Instantly share code, notes, and snippets.

@lynnaloo
lynnaloo / nodebots-install.sh
Last active July 10, 2018 00:24
NodeBots Development Environment Install Script
#!/bin/bash
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:webupd8team/atom
sudo apt-get update -y
sudo apt-get install -y -qq git curl vim bluetooth
sudo apt-get install -y -qq libbluetooth-dev build-essential openssh-client bluez
sudo apt-get install -y atom
curl -L https://git.io/n-install | bash -s -- -y
. /home/admin/.bashrc
# update to versions compatible with Johnny-Five
@ajfisher
ajfisher / 0x00000.bin
Last active October 10, 2021 00:51
ESP8266 Transparent bridge to J5
@qwo
qwo / meetup.js
Last active August 29, 2015 14:03
Meetup Raffle Script
//pass in number of winners
//todo UNIQUE winners and prize mapping
var pickWinners = function(numberOfWinners){
var meetup = $(".member-name");
var winners = [];
var picked_numbers = {};
while (numberOfWinners){
var winner = Math.floor(Math.random() * meetup.length);
////bug in duplciates ins winners array