Skip to content

Instantly share code, notes, and snippets.

View baadaa's full-sized avatar
🥚
bald

Bumhan Yu baadaa

🥚
bald
View GitHub Profile
@baadaa
baadaa / Secret Santa
Created January 11, 2017 15:57 — forked from teabait/Secret Santa
Emulate the game "Secret Santa" where there are 3 or more participants, no participant can receive their own gift or receive more than one gift. Do this in JavaScript.
var participants = [];
function Participant(name, giftToGive) {
this.name = name;
this.giftToGive = giftToGive;
this.giftGiven = [];
this.secretSanta = [];
this.assigned = false;
}
@baadaa
baadaa / .gitignore
Created December 23, 2016 16:53 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #