Skip to content

Instantly share code, notes, and snippets.

View ewoudtm's full-sized avatar

Ewoud Wiering ewoudtm

  • Amsterdam area
View GitHub Profile
@ewoudtm
ewoudtm / Islive Api.md
Created July 24, 2018 11:16 — forked from ronaldbaltus/Islive Api.md
Korte handleiding voor het gebruikt van http://www.islive.nl/api

Available Arguments

Updated: 5th of May 2017

Fetch minimal

Use fetch=minimal to retrieve the following pre-defined properties: modelnaam,taal0,taal1,taal2,geslacht,decency,available_contact,online,leeftijd,waardering,uiterlijk,woonplaats,land.

Example: ?fetch=minimal

Fetch full

Use fetch=full to retrieve the following pre-defined properties:

@ewoudtm
ewoudtm / gist:208ed2f0fbbad4cefe4325d43927a020
Created March 17, 2017 16:29
refactoring TennisGame practice with Vanessa Ho
class TennisGame1
def initialize(name_player_1, name_player_2)
@name_1 = name_player_1
@name_2 = name_player_2
@points_1 = 0
@points_2 = 0
end
def won_point(name_player)
name_player == @name_1 ? @points_1 += 1 : @points_2 += 1