Skip to content

Instantly share code, notes, and snippets.

View Tomen's full-sized avatar
🔨
building Polkalytics

Tommi Enenkel | Alice und Bob Tomen

🔨
building Polkalytics
View GitHub Profile
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
class GmailClient:
def __init__(self, config):
self._email = config["email"]
self._password = config["password"]
def send_email(self, receiver_emails, subject, body):
sender_email = self._email
#https://security.google.com/settings/security/apppasswords
password = self._password
if(data["kontakt-historie"]){
var foo = data["kontakt-historie"];
for(var i = 0; i < foo.length; i++){
element = foo[i];
var coveredElements = ["Veranstaltung"];
if(coveredElements.indexOf(element.channel) === -1){
console.log(element.channel + " " + coveredElements.indexOf(element.channel));
}
}
}
Vector2 center = new Vector2(0.0,-300.0);
List<Entity> targets = createTrainingTargets(gameServer, center);
ai.scriptFactories.add(()=>new RespawnTargetScript(targets, center, AI_TRAINING_FRAMES));
center = new Vector2(0.0,400.0);
targets = createDemoRaceTrackTargets(gameServer, center);
ai.scriptFactories.add(()=>new RaceTargetScript(targets, targets.first.position, 36000~/15));
main(List<String> args) {
List functions = [];
int value = 3;
functions.add(()=>print(value));
value = 4;
functions.add(()=>print(value));
for(var fn in functions){
@Tomen
Tomen / gist:cf1b1916a4e380dc60ef
Created May 29, 2015 08:01
TheGrid API test in Dart
/*
The MIT License (MIT)
Copyright (c) 2015 Tommi Enenkel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Tomen
Tomen / webgl-demo.dart
Last active December 17, 2015 07:39 — forked from martinsik/webgl-demo.dart
import 'dart:html';
import 'dart:web_gl';
import 'dart:typed_data';
/**
* WebGL Demo made in Dart. It works in http://try.dartlang.org/
* Updated: 2013-05-14
* created by: http://martinsikora.com/dart-webgl-simple-demo
* updated by: https://plus.google.com/u/0/117240004279526018872
*/