Skip to content

Instantly share code, notes, and snippets.

Avatar

Walter walterrenner

View GitHub Profile
@walterrenner
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
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>
<html>
<head>
<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
walterrenner / unicode.py
Created Oct 11, 2017
Dealing with unicode and strings in Python
View unicode.py
# 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.
# https://stackoverflow.com/a/6048203
>>> s = 'abc'
>>> type(s)
<type 'str'>
>>> u = u'abc' # note the u prefix
@walterrenner
walterrenner / split_excel.py
Created Sep 13, 2017
Split large Excel files into chunks of n
View split_excel.py
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
walterrenner / hack.md
Created Jan 4, 2016
some useful bash commands
View hack.md

count history commands

history | cut -c8- | sort | uniq -c | sort -rn | head
View markdown.md

Typography

Headings

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

# h1 Heading
## h2 Heading
### h3 Heading
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

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'>
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
View hack.sh
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
View rest.php
<?php
require_once dirname(__FILE__) . "/bootstrap.php";
//Shop starten
$url_requestPRODUCT = 'http://student.mi.hs-offenburg.de:8080/sqlrest/PRODUCT';
$responsePRODUCT = file_get_contents($url_requestPRODUCT);
$xmldatPRODUCT = simplexml_load_string($responsePRODUCT);
You can’t perform that action at this time.