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
// Fragebogen v2.0 | |
let example = { | |
// Are you a Man / a Woman? | |
'sex': 'female', // one of: 'male', 'female', 'other' | |
// Age | |
'yearOfBirth': 1992, |
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
# A script to find plays in a group of N people where in one game k players plays | |
# To be executed in python 3 | |
# Written by Luca Naterop and Philippe frei | |
# January, 2019 | |
from itertools import combinations | |
import numpy as np | |
from random import randint | |
from operator import itemgetter |
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
import { Meteor } from 'meteor/meteor'; | |
import React from 'react'; | |
import { withTracker } from 'meteor/react-meteor-data'; | |
import { BrowserRouter, Route, Link, Redirect, withRouter, Switch} from "react-router-dom"; | |
// pages accessible to all users | |
import Home from './Home'; | |
import Login from './Login'; |
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
/* | |
usage: | |
Tables = new Stone.Collection('tables'); // create a stone collection | |
Profile = new Stone.Singleton(''); // create a stone singleton | |
------- shared API ------- | |
get() returns all in DB |
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
import React from 'react'; | |
import * as Na from 'native-base'; | |
import { View, Image } from 'react-native'; | |
import MapView, {PROVIDER_GOOGLE} from 'react-native-maps'; | |
import mapStyle from './mapStyle'; | |
/* | |
Google Maps iOS API Key: AIzaSyCORnMnmibA-blbUrcW4RRtrlr4xWu_G60 | |
Google Maps Android API Key: AIzaSyDe-trUbugoWigSlaOSQUWo6yQwRSaC1ns |
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
// BaseURL = 'http://localhost:3030'; | |
BaseURL = 'https://backend.bonobi.ch'; | |
BaseAPI = BaseURL + '/api/v1'; | |
// define authenticated and non-authenticated headers | |
Globals = { | |
authHeaders: { | |
'X-User-Id': localStorage.getItem('userId'), | |
'X-Auth-Token': localStorage.getItem('authToken'), | |
'Accept': 'application/json', |
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
# | |
# A minimalistic BatchLoader | |
# Written by Luca Naterop, Zuerich, 2016 | |
# | |
import math | |
import numpy as np | |
class BatchLoader: |
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
// ----------------- VECTOR CLASS EXAMPLE ---------------- | |
class Vector { | |
components: [number]; | |
constructor(components: [number]){ | |
this.components = components; | |
} |