Skip to content

Instantly share code, notes, and snippets.

@wabu
wabu / square.rb
Last active February 8, 2016 07:50
loop do
puts"Gib eine Zahl ein, ich berechne dir dann die Quadradzahl deiner Zahl: "
i = gets.chomp.to_i
puts"Deine Zahl ist #{i}"
i = i*i
puts"Das Quadrat ist #{i}"
end
@wabu
wabu / utf8-test.py
Last active August 29, 2015 14:01
test for pandas hdf5 corruption (GH6505)
import numpy as np
import pandas as pd
pd.show_versions()
for i in range(100000):
print(i, end='\r')
strings = [np.random.bytes(20).decode('utf8', errors='ignore') for _ in range(100)]
encoded = [s.encode('utf8') for s in strings]
@wabu
wabu / gist:997698
Created May 29, 2011 11:59
stichpunkte go-unterweisung
== Vorblatt ==
- Spielregeln+Einfuehrung von Faltflyer (Klaus)
- Geschichtchen als Einfuehrungs ins Spiel ???
- Inhaltuebersicht fuer Vortrag
- Info zu Spieltreffs und Internet-Go
== Vortrag ==
- Was ist Go?
- Sinn des Spiels/Vorstellung
- Spielmaterial
// class that sould be affected
class A {
private void foo()
}
class B {
void bar() {
new A().foo(); // error, not public
// use :JavaCorrect here
// select make foo public