This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |