Skip to content

Instantly share code, notes, and snippets.

View philippspinnler's full-sized avatar

Philipp Spinnler philippspinnler

View GitHub Profile
@tspycher
tspycher / simple_tournament.py
Last active May 12, 2016 11:50
A fellow just asked me how simple it would be to create the most simple tournament application. this is what came out in a couple of minutes.
import random
import math
teamof = 2
def teams(people):
teams = []
for i in range(len(people) / teamof):
team = []
for i in range(teamof):
p = random.choice(people)
@jelbourn
jelbourn / api-provider.js
Last active February 25, 2024 12:51
Example of using an angular provider to build an api service. Subject of August 20th 2013 talk at the NYC AngularJS Meetup. http://www.meetup.com/AngularJS-NYC/events/134578452/See in jsbin: http://jsbin.com/iWUlANe/5/editSlides: https://docs.google.com/presentation/d/1RMbddKB7warqbPOlluC7kP0y16kbWqGzcAAP6TYchdw
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (@jelbourn)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/