This file contains hidden or 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 '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 | |
| */ |
This file contains hidden or 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
| /* | |
| 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 |
This file contains hidden or 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
| main(List<String> args) { | |
| List functions = []; | |
| int value = 3; | |
| functions.add(()=>print(value)); | |
| value = 4; | |
| functions.add(()=>print(value)); | |
| for(var fn in functions){ |
This file contains hidden or 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
| 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)); |
This file contains hidden or 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
| 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)); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| { | |
| "nbformat": 4, | |
| "nbformat_minor": 0, | |
| "metadata": { | |
| "colab": { | |
| "provenance": [] | |
| }, | |
| "kernelspec": { | |
| "name": "python3", | |
| "display_name": "Python 3" |