Skip to content

Instantly share code, notes, and snippets.

View joennlae's full-sized avatar
🏗️

Jannis Schönleber joennlae

🏗️
View GitHub Profile
package u9a2;
import java.util.ArrayList;
import reversi.*;
public class MinMaxPlayer implements ReversiPlayer
{
package u9a2;
import java.util.ArrayList;
import reversi.*;
public class Alpha implements ReversiPlayer
{
../../jars/janniss Warning: mkdir(): No space left on device in /local/reversi/html/user/jar_upload.php on line 51 Warning: move_uploaded_file(../../jars/janniss/pizza.jar): failed to open stream: No such file or directory in /local/reversi/html/user/jar_upload.php on line 130 Warning: move_uploaded_file(): Unable to move '/tmp/phpmMbH3t' to '../../jars/janniss/pizza.jar' in /local/reversi/html/user/jar_upload.php on line 130 File could not be saved. ../../jars/janniss/pizza.jar --- tmp_filename: /tmp/phpmMbH3t
@joennlae
joennlae / led_blink.c
Created October 10, 2017 15:48
MSP430 LED Blink
@joennlae
joennlae / plott_h_gln
Created August 27, 2018 21:25
plotting
#!/usr/bin/env python
# make a horizontal bar chart
# ATTENTION python3 for execution ATTENTION!!!!!!!!
from pylab import *
val = 14 # the bar lengths
pos = arange(1) # the bar centers on the y axis
figure(figsize=(9,1))
plt.gca().xaxis.grid(True)
@joennlae
joennlae / test 2.js
Last active January 23, 2019 14:26 — forked from thomascuriger/test 2
test 32
import React from 'react';
import { View, ScrollView, Platform, Dimensions, StyleSheet } from 'react-native';
import { Icon } from 'react-native-elements';
import { Toolbar, ThemeContext, getTheme } from 'react-native-material-ui';
import Pdf from 'react-native-pdf';
export class StreckenScreen extends React.Component {
constructor (props) {
const navigationobject = createDrawerNavigator({
'Home': HomeScreen,
'News': NewsScreen,
'Startliste': StartlistScreen,
'Liveresultate': LiveScreen,
'Livestream': StreamScreen,
'Strecke': StreckenScreen,
'Zeitplan': {
screen: ZeitScreen,
navigationOptions: () => ({
import { AfterViewInit, Directive, ElementRef, EventEmitter, forwardRef, Inject, Injectable, InjectionToken, Injector, Input, NgZone, OnInit, Output } from '@angular/core';
import { AbstractControl, ControlValueAccessor, FormControl, NG_VALUE_ACCESSOR, NgControl, Validators } from '@angular/forms';
import { Http } from '@angular/http';
declare const grecaptcha : any;
declare global {
interface Window {
grecaptcha : any;
reCaptchaLoad : () => void
@joennlae
joennlae / Main.java
Created October 29, 2019 20:30
Selina Day of the year
import java.io.IOException;
import java.util.Scanner;
public class Main {
/**
* @param year a year greater or equal to 1900
* @return whether that year was a leap year
*/
static boolean isLeapYear(int year) {
// ...
@joennlae
joennlae / answer1.xml
Last active February 26, 2020 10:21
getHotelData_master
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getMasterDataResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://export.ws">
<getMasterDataReturn xsi:type="ns2:Document"
xmlns:ns2="http://xml.apache.org/xml-soap">
<results