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
// ==UserScript== | |
// @name ModuleHider | |
// @namespace hem | |
// @description hides empty modules in the uspace overview | |
// @match https://uspace.univie.ac.at/web/studierende/pruefungspass* | |
// @include https://uspace.univie.ac.at/de/web/studierende/pruefungspass* | |
// @include https://uspace.univie.ac.at/en/web/studierende/pruefungspass* | |
// @author oerpli | |
// @version 1.2 | |
// @grant none |
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
(deftemplate person | |
(slot name) | |
(slot age) | |
(slot cantpay | |
(allowed-symbols yes no) | |
(default yes)) | |
(slot job | |
(default unemployed))) | |
(deftemplate parent |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Encoding { | |
class Program { | |
static double sum; | |
static Dictionary<char, double> Val, Low, High; | |
static string Input; |
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
ec _ [] = [] | |
ec bla ((a,b):r) = (bla*a+b):ec bla r | |
e base y = (ec base) . pair $ (map (\x -> toInteger $ (ord x) - (ord 'a') +1) y) | |
dc _ [] = [] | |
dc bla (a:r) = [div a bla, mod a bla] ++ dc bla r | |
d base y = map (\x -> " abcdefghijklmnopqrstuvwxyz" !! (length [1..x])) (dc base y) --- length [1..x] is an ugly (::Integer -> Int) hack | |
pair [] = [] | |
pair (a:b:r) = (a,b) : pair r |
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
No personal information will be collected or used. |
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
fillUp(int[] x){ | |
int total = 0; | |
for(int i = 0;i < x.length-1;i++){ | |
if(x[i] >= x[i+1]){ | |
continue; //if neighbor is higher or equal go to next column | |
} else { | |
int j = 2; //neighbor is known to be lower, so we can start at i+2 | |
bool pool = false; | |
while(i + j < x.length){ | |
if(x[i+j] >= x[i]){ //as soon as a column is at least as big as the reference column |
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
private int kinmc(int endtime, double eps) { | |
double m = 10; | |
double c = 0.01; | |
double time = 0; | |
int state = 0, nstate = 0; | |
double r01 = c * m; | |
double r02 = c; | |
double r1 = Math.Exp(-eps / 2); | |
double r2 = Math.Exp(-eps); |
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
client: | |
START: | |
get semaphors | |
P(cl_bl) | |
P(sv_ready) | |
new game // game with id# plx | |
V(sv_req) | |
P(sv_ready) | |
empfangen |
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
private void sort(ListElement l, ListElement r, DoublyLinkedList in) { | |
ListElement LastMoved = r; | |
ListElement FirstNotMoved = null; | |
while (l != r) { | |
ListElement next = l.next; | |
if (l.getKey() > r.getKey()) { | |
move(l, LastMoved, in); | |
LastMoved = l; | |
} else if (FirstNotMoved == null) | |
FirstNotMoved = l; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace flood { | |
class MainClass { | |
public static void Main(string[] args) { | |
while(true) { | |
Console.Clear(); |