I hereby claim:
- I am oelna on github.
- I am oelna (https://keybase.io/oelna) on keybase.
- I have a public key whose fingerprint is B272 7A56 6C45 01FF F2AE 1CF1 3F3E 3787 F05C 561B
To claim this, I am signing this object:
<?php | |
/* makes the 'Markdown" function and the 'Markdown_Parser' class available to your scripts */ | |
require( 'parsedown.php' ); | |
@define( 'MARKDOWN_PARSER_CLASS', 'Markdown_Parser' ); | |
@define( 'NEWLINE_TO_BREAK', true ); | |
function Markdown($text) { |
/* Arno Richter, May 2014 */ | |
- (NSNumber *)getIndexOf:(NSString *)c alphabet:(NSString*)string { | |
for(int i=0; i<[string length]; i++) { | |
if([c characterAtIndex:0] == [string characterAtIndex:i]) { | |
return [NSNumber numberWithInteger:i]; | |
} | |
} |
/* Arno Richter, May 2014 */ | |
- (NSString *)toBase10:(NSNumber *)fromValue withBase:(int)base { | |
char base_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
unsigned long int number_to_convert = [fromValue unsignedLongValue]; | |
int converted_number[64]; | |
int index = 0; | |
char return_string[64] = ""; | |
I hereby claim:
To claim this, I am signing this object:
Die .ics-Datei, die man von http://abfallkalender.mannheim.de/ bekommt, kann man mit ein bisschen Geduld und Arbeit im Code-Editor der Wahl recht gut aufhübschen. Die Notizen hier sind für mich selbst, aber wer mag, kann sich ja auch daran versuchen. Ich habe die Termine nicht in einem eigenen Kalender, sondern in einem allgemeinen Termine-Kalender, darum füge ich vor jeden der Einträge den Begriff Müllabfuhr
. Dann weiss man Bescheid.
UTF-8
;CHARSET=UTF-8
durch empty string (braucht man nicht, die ganze datei ist jetzt eh utf-8)#!/bin/bash | |
echo "Please enter your Github username" | |
read username | |
echo "Please enter your Github password" | |
read -s password | |
echo "What is the Github repo you'd like to download issues from?" | |
echo "Format is user/repo" |
#thanks to Gordon Davisson on SO: http://stackoverflow.com/a/35146562/3625228 | |
files=() | |
for f in "$@" | |
do | |
path=`dirname "$f"` | |
file=`basename "$f"` | |
files+=(-C "$path" "$file") |
<?php | |
//check for PHP version requirements | |
if(version_compare(phpversion(), '5.3.0', '<')) die('This requires at least PHP 5.3 to run.'); | |
date_default_timezone_set('Europe/Berlin'); | |
$conversions = array( | |
array( | |
'text' => 'UTF-8 Decode', | |
'function' => function($input) { | |
return utf8_decode($input); |
<?php | |
/* | |
This code is based heavily on the instructions given on http://egil.biz/migrate-e-mail-over-imap-with-php/ | |
Many hours on Stackoverflow have been spent trying to make this. | |
I tried to clean it up, make it readable, add a nicer UI and feedback about errors. | |
If you like this, use this or it helps you, I'm happy to hear about it. | |
Drop me a line if you have feedback, too. | |
2016-06-05, Arno Richter <[email protected]> |
*/20 * * * * php /path/to/your/fever/index.php refresh | |
# or, as in my case, with php-cgi | |
*/20 * * * * php-cgi /path/to/your/fever/index.php refresh |