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
currentVolume = 50; | |
function volumeDown() { | |
currentVolume = currentVolume + 15 | |
if (currentVolume >= 150) { | |
soundManager.setVolume('loop',200); | |
setSiteOnFire = setInterval( blowUpBackground, 150); | |
$("#volume").hide(); | |
} else { | |
soundManager.setVolume('loop',currentVolume); | |
} |
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
jannis@Antarctica Downloads $ grep -wc tire llogs.txt | |
67 | |
jannis@Antarctica Downloads $ grep -wc tyre llogs.txt | |
44 |
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
jannis@Antarctica Downloads $ cat words | xargs -L 1 ./compare | |
realize: 575, realise: 642 | |
mom: 473, mum: 260 | |
pyjamas: 15, pajamas: 10 | |
titbit: 4, tidbit: 25 | |
cipher: 113, cypher: 43 | |
draft: 595, draught: 10 | |
grey: 375, gray: 184 | |
phony: 25, phoney: 11 | |
story: 3388, storey: 13 |
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
void ftoa(double f, char *output) | |
{ | |
int m = log10(f); | |
int digit; | |
double precision = .0001; | |
while (f > 0 + precision) | |
{ | |
double weight = pow(10.0, m); | |
digit = floor(f / weight); |
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
a = int(input("a: ")) | |
b = int(input("b: ")) | |
P = 0 | |
C = 0 | |
D = 1 | |
while (a > 0) or (b > 0) or (C > 0): | |
X = a % 2 | |
Y = b % 2 |
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
size_t Parser::integerNumber(size_t index) { | |
char *c_term = term.c_str(); | |
if (c_term[index] == '+' || c_term[index] == '-') | |
index++; | |
while (digit(index)) | |
index++; | |
return index; | |
} |
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
Sie können Ihre Domain über diese Funktion intern an einen anderen Robot-Kunden übertragen. Wir möchten Sie noch einmal darauf hinweisen, dass das komplette Vertragsverhältnis bezüglich der Domain unverändert übertragen wird. Alle bereits gestellten Zahlungsforderungen bleiben bei Ihnen, alle neu gestellten Forderungen übernimmt der neue Kunde (mit Übernahme des Fälligkeitsdatums zum Zeitpunkt der Übertragung). | |
Ankündigungen und sonstige Mitteilungen zur Domain müssen Sie dem neuen Kunden weiterleiten. | |
Ablauf der Übertragung: | |
Mit dem Button "Token anlegen" können Sie sich einen Token für die Domainübertragung anlegen. Dieser hat eine Gültigkeit von 7 Tagen. Den Token teilen Sie bitte selbstständig dem Robot-Kunden mit, der die Domain übernehmen möchte. Weisen Sie ihn darauf hin, dass er die Übertragung in seinem Robot unter "Domains; Domainübertragungen; Domainübertragung starten" einleiten kann. | |
Der neue Kunde kann über seinen Robot-Zugang mit Angabe des Tokens den Übertragungsauftrag einsehen. Ihm werden |
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
divides :: Int -> Int -> Bool | |
d `divides` n = n `mod` d == 0 | |
schaltjahr :: Int -> Bool | |
schaltjahr n | 400 `divides` n = True | |
| 100 `divides` n = False | |
| 4 `divides` n = True | |
| otherwise = False |
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
int compare_some_strings (char *a, char *b) | |
// compare some strings, return -1 if equal, otherwise the position of the first difference. | |
{ | |
int i; | |
for (i = 0; a[i] != 0 && b[i] != 0; i++) | |
if (a[i] != b[i]) | |
return i; | |
// wenn wir hier angekommen sind, sind sie bis zum Punkt i gleich | |
if (a[i] == 0 && b[i] == 0) // sie sind ganz gleich |