Skip to content

Instantly share code, notes, and snippets.

Philipp Spinnler philippspinnler

Block or report user

Report or block philippspinnler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tspycher
tspycher / simple_tournament.py
Last active May 12, 2016
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.
View simple_tournament.py
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 Jan 13, 2020
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
View api-provider.js
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (@jelbourn)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
You can’t perform that action at this time.