Skip to content

Instantly share code, notes, and snippets.

Avatar
🚿
feeling dirty from being around all those bugs…

Harald Schilly haraldschilly

🚿
feeling dirty from being around all those bugs…
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am haraldschilly on github.
  • I am hasch (https://keybase.io/hasch) on keybase.
  • I have a public key ASC1l6LXHOn7f0fKqTq5LFtY2Q3UlwWlH6M_9EGqlsNwYgo

To claim this, I am signing this object:

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 <memmove+272>
0xffffffff814585dd <+13>: 48 39 fe cmp %rdi,%rsi
0xffffffff814585e0 <+16>: 7d 0f jge 0xffffffff814585f1 <memmove+33>
0xffffffff814585e2 <+18>: 49 89 f0 mov %rsi,%r8
0xffffffff814585e5 <+21>: 49 01 d0 add %rdx,%r8
@haraldschilly
haraldschilly / Objektorientierung.java
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
@haraldschilly
haraldschilly / Llabel.py
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
---------------
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);
@haraldschilly
haraldschilly / DataStructures.java
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<Student> studenten = new ArrayList<Student>();
@haraldschilly
haraldschilly / Complex.java
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.
*
* <ul>
* <li>{@link Complex#add(complexnumbers.Complex) addiert komplexe zahlen}</li>
* </ul>
*
* @author Harald Schilly
*/
@haraldschilly
haraldschilly / mma9rpy2-2.png
Created Nov 30, 2012
R/Rpy2 Plotting along a Mathematica 9 Demo
@haraldschilly
haraldschilly / countdown.py
Created Nov 25, 2012
Bitcoin Blockreward Estimation
View countdown.py
#!/usr/bin/env python
# Copyright Harald Schilly <harald.schil.ly>
# 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
You can’t perform that action at this time.