Skip to content

Instantly share code, notes, and snippets.

Janne Mareike Koschinski justjanne

Block or report user

Report or block justjanne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9916857
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
text-align: center;
background: #7c7c7c;
}
.block {
View Merge-Sort
; Takes two sorted lists
; Returns a sorted list with all elements from the first 2 lists
; (Works like the set union from a previous series)
(: merge-lists ((list-of number) (list-of number) -> (list-of number)))
(define merge-lists
(lambda (xs ys)
(cond
[(empty? xs) ys]
[(empty? ys) xs]
[(< (first xs) (first ys))
View CoreConnService.java
/**
* Handler of incoming messages from CoreConnection, since it's in another
* read thread.
*/
class IncomingHandler extends Handler {
public boolean disabled = false;
@Override
public void handleMessage(android.os.Message msg) {
if (msg == null || coreConn == null || disabled) {
View gist:b6e53dd9559660df9c92
/*
* The addIrcUser function in the Network class is called whenever a new
* IRC user appears on a given network.
*/
} else if (className.equals("Network")) {
switch(function) {
case "addIrcUser":
String nick = (String) packedFunc.remove(0).getData();
IrcUser user = new IrcUser();
user.nick = nick.split("!")[0];
View Aufgabe 1
Aufgabe 1 (a)
=============
> Wie kann man einen Addierer als Subtrahierer verwenden?
Ein Addierer kann als Subtrahierer verwendet werden, indem das zweite Argument
negiert wird.
$a - b = a + (-b)$
Im Zweierkomplement können wir eine Zahl negieren, indem wir alle ihre Bits
View file
.server-msg-reconnect {
display: block !important;
}
.user-dropdown {
top: 100%!important;
border: none !important;
margin-top: 1px !important;
border-radius: 1px !important;
background: rgba(20,20,20,0.95) !important;
View Serene
html {
position: relative;
}
body {
background: #eee;
}
body>.content {
margin: 0 20px 20px 10px;
View script.js
// Some text to get the charset autodetection right: äöüßäöüßæ
if (window.location.hash === "#debug") {
$.getScript('http://localhost.kuschku.de/custom.js');
} else if (window.location.hash === "#old") {
/*
* The following code is for the sole use of the channel located at http://cytu.be/r/yepityha
*/
var CUSTOM_RULES = {
@justjanne
justjanne / ffab.user.js
Last active Sep 20, 2015
Fuck-FuckAdBlock
View ffab.user.js
// ==UserScript==
// @name fuck-fuckadblock
// @namespace de.kuschku.ffab
// @version 1
// @grant none
// ==/UserScript==
var eventCallback = function () {
if (window.fuckAdBlock) window.fuckAdBlock._options.baitClass = "kjdftriuhdiuhiuohiuehue";
if (window.blockAdBlock) window.blockAdBlock._options.baitClass = "kjdftriuhdiuhiuohiuehue";
@justjanne
justjanne / cytube.d.ts
Last active Sep 20, 2015
Cytube TypeScript Typings
View cytube.d.ts
///<reference path="typings/jquery/jquery.d.ts"/>
interface CytubeMessage {
username: string;
msg: string;
time: number;
meta: {
addClass?: string;
addClassToTimestampAndUsername?: string;
};
You can’t perform that action at this time.