Skip to content

Instantly share code, notes, and snippets.


Walter walterrenner

View GitHub Profile
walterrenner / german-iso-3166.csv
Last active Apr 10, 2019 — forked from malteos/german-iso-3166.csv
German ISO-3166 Country Codes CSV (deutsche Ländercodes)
View german-iso-3166.csv
AF Afghanistan
EG Ägypten
AL Albanien
DZ Algerien
AD Andorra
AO Angola
AI Anguilla
AQ Antarktis
AG Antigua und Barbuda
GQ Äquatorial Guinea
walterrenner / web-app.html
Created Nov 30, 2012 — forked from tfausak/ios-8-web-app.html
iOS web app - icons, startup images, install hints
View web-app.html
<!doctype html>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> <!-- values: default, black, black-translucent -->
<meta name="viewport" content="initial-scale=1.0">
<meta name="viewport" content="maximum-scale=1.0">
<meta name="viewport" content="user-scalable=no">
walterrenner /
Created Oct 11, 2017
Dealing with unicode and strings in Python
# Deal exclusively with unicode objects as much as possible
# by decoding things to unicode objects when you first get them and
# encoding them as necessary on the way out.
>>> s = 'abc'
>>> type(s)
<type 'str'>
>>> u = u'abc' # note the u prefix
walterrenner /
Created Sep 13, 2017
Split large Excel files into chunks of n
import argparse
import xlrd
import xlwt
def chunks(l, n):
"""Yield successive n-sized chunks from l."""
for i in range(0, len(l), n):
yield l[i:i + n]
walterrenner /
Created Jan 4, 2016
some useful bash commands

count history commands

history | cut -c8- | sort | uniq -c | sort -rn | head



Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading

Copied from

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
# This is a script with usefull tips taken from:
# Run in interactive mode with:
# $ sh -c "$(curl -sL"
# or run it without prompt questions:
View rest.php
require_once dirname(__FILE__) . "/bootstrap.php";
//Shop starten
$url_requestPRODUCT = '';
$responsePRODUCT = file_get_contents($url_requestPRODUCT);
$xmldatPRODUCT = simplexml_load_string($responsePRODUCT);
You can’t perform that action at this time.