Instantly share code, notes, and snippets.

🚿
feeling dirty from being around all those bugs…

# Harald Schillyharaldschilly

🚿
feeling dirty from being around all those bugs…
• Sort options
Created Oct 24, 2012
Shekel Function
View shekel.m
 %Shekel-(4,5) function y = sh5(x) % % Shekel function % Matlab Code by A. Hedar (Nov. 23, 2005). % The number of variables n = 4 % The parameter m should be adjusted m = 5,7,10. % The default value of m = 10. % m = 5;
Created Nov 25, 2012
Bitcoin Blockreward Estimation
View countdown.py
 #!/usr/bin/env python # Copyright Harald Schilly # License: Apache 2.0 # Hint: run it periodically via: watch -d -n 30 python countdown.py # (sorry blockexplorer ...) # which halfing? 1, 2, ... nb_halfing = 2 quot = 2 ** nb_halfing reward = 50. / quot
Created Nov 30, 2012
R/Rpy2 Plotting along a Mathematica 9 Demo
Last active Dec 17, 2015
.equals() mit hashCode() und JavaDoc in Java
View Complex.java
 /** * Das ist eine Klasse für Komplexe Zahlen, * welche die {@link Double} Klasse verwendet. * *
*
• *
* * @author Harald Schilly */
Last active Dec 17, 2015
Demo Data Structures for Students & Exams
View DataStructures.java
 import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class DataStructures { static List studenten = new ArrayList();
Last active Dec 17, 2015
Parsing Online Data
Created Jun 5, 2013
Custom Exceptions in Java
View CustomExceptions.java
 package customexceptions; public class CustomExceptions { public static void main(String[] args) throws NegativerWertException { Rechner r = new Rechner(); try { double wert1 = r.rechnung1(22.2); System.out.println("wert1: " + wert1); double wert2 = r.rechnung2(-5);
Created Sep 16, 2013
Llabel demo class for constructing class objects with different constructors and exporting them in different ways
View Llabel.py
 #!/usr/bin/env python # -*- coding: utf8 -*- class Llabel(object): """ Lfunction Label ---------------
Last active Aug 29, 2015
Vorlesung und Studierende als Einführungsbeispiel für OOP
View Objektorientierung.java
 package oop; import java.util.Arrays; /** * Beispielprogramm zur Einführung in Objektorientiertes Programmieren (OOP) * * 2014-04-14 * * @author Harald Schilly
Created Oct 6, 2017
vmlinux-4.10.0-35-generic / memmove
View gist:66397f35919aed654976bf6e064a250c
 \$ gdb -batch -ex 'file vmlinux-4.10.0-35-generic' -ex 'disassemble /r memmove' > /tmp/vmlinux-4.10.0-35-generic-memmove.txt \$ cat /tmp/vmlinux-4.10.0-35-generic-memmove.txt Dump of assembler code for function memmove: 0xffffffff814585d0 <+0>: 48 89 f8 mov %rdi,%rax 0xffffffff814585d3 <+3>: 48 83 fa 20 cmp \$0x20,%rdx 0xffffffff814585d7 <+7>: 0f 82 03 01 00 00 jb 0xffffffff814586e0 0xffffffff814585dd <+13>: 48 39 fe cmp %rdi,%rsi 0xffffffff814585e0 <+16>: 7d 0f jge 0xffffffff814585f1 0xffffffff814585e2 <+18>: 49 89 f0 mov %rsi,%r8 0xffffffff814585e5 <+21>: 49 01 d0 add %rdx,%r8
You can’t perform that action at this time.