Skip to content

Instantly share code, notes, and snippets.

View Xennis's full-sized avatar

Fabian Rosenthal Xennis

View GitHub Profile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX_Vorlage_Uebungsblatt.tex
% Source: https://gist.github.com/Xennis/9637696
% Documentation: https://gist.github.com/Xennis/9637696#file-readme-md
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt,a4paper]{exercisesheet}
% ------------------------- packages ------------------------------------------
% encoding and language
#!/bin/bash
BASEDIR=`dirname $0`
# --------------------------- Settings ----------------------------
USER=root
HOST=
# --------------------------- Include gernal scripts ------------------------
#source general_functions.sh
@Xennis
Xennis / alleMeineEntchen.nqc
Created March 1, 2014 15:39
Lego Spybot - "Alle meine Entchen" (NQC (Not Quite C))
/*
* Platform: Lego Spybot
* Version: 1.0
* Author: Xennis
* Doc: http://xennis.org/wiki/Lego_Spybot_-_Alle_meine_Entchen
*/
#define __NOTETIME 10
#define __WAITTIME 12
#define turn_right(s,t) SetPower(OUT_AB,s);OnFwd(OUT_A);OnRev(OUT_B);Wait(t);
@Xennis
Xennis / HttpClient.js
Last active July 17, 2020 22:08
JavaScript jQuery HTTP Client
/*
* Perform an asynchronous HTTP (Ajax) request.
*/
(function ($, undefined) {
window.HttpClient = function() {
}
HttpClient.prototype = {
httpPost: function (url, authorization, data, success_callback, fail_callback) {
@Xennis
Xennis / ApacheHttpClient.java
Last active November 11, 2016 13:38
Java HTTP Client (httpGet and httpPost with OAuth)
package org.example.sampleapi;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ConnectException;
import java.net.HttpURLConnection;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
<?php
/**
* Interpretiert den "User Agent" des Browser richtig.
*
* Supported Browser: Chrome, Firefox, IE, Opera, Safari
*
*/
class x11_detectBrowser
{