This file contains 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
{ | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Source Code Pro", | |
"font_size": 13.0, | |
"highlight_line": true, | |
"line_padding_bottom": 1, | |
"line_padding_top": 0, | |
"soda_folder_icons": true, |
This file contains 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
<?php | |
get_header(); | |
?> | |
<div id="container"> | |
<a name="top"></a> | |
<?php | |
$args = array( | |
'sort_order' => 'ASC', | |
'sort_column' => 'menu_order', //post_title | |
'hierarchical' => 1, |
This file contains 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
http://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/K%C3%96LN.json?includeTimeseries=true&includeCurrentMeasurement=true | |
{ | |
"uuid": "a6ee8177-107b-47dd-bcfd-30960ccc6e9c", | |
"number": "2730010", | |
"shortname": "KÖLN", | |
"longname": "KÖLN", | |
"km": 688.0, | |
"agency": "WSA DUISBURG-RHEIN", | |
"longitude": 6.9633224437726255, |
This file contains 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
from random import shuffle | |
from re import match | |
def stringshuffle(s): | |
''' | |
Shuffles a string but keeps the first and last letter of every word at their original position. | |
''' | |
splitted = s.split() | |
shuffled = [] | |
for str in splitted: |
This file contains 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
''' | |
Die Aufgaben aus der Python Bee aus M28_040 | |
Daniel: Eine Funktion, die prüft, ob ein String ein Palindrom ist (Nicht richtig gelöst) | |
Max: Eine Funktion, die prüft, ob jeder erste Buchstabe eines Wortes in einem String großgeschrieben ist (Nicht richtig gelöst) | |
''' | |
def palindrom(s): | |
l = len(s) / 2 | |
for x in xrange(l): |
This file contains 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
virtualenv -p /usr/local/bin/python3.3 venv | |
. venv/bin/activate | |
pip install gunicorn | |
./venv/bin/gunicorn -b 127.0.0.1:62782 kommtdanielheute:app |
This file contains 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
var defaultDiacriticsRemovalMap = [ | |
{'base':'A', 'letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g}, | |
{'base':'AA','letters':/[\uA732]/g}, | |
{'base':'AE','letters':/[\u00C6\u01FC\u01E2]/g}, | |
{'base':'AO','letters':/[\uA734]/g}, | |
{'base':'AU','letters':/[\uA736]/g}, | |
{'base':'AV','letters':/[\uA738\uA73A]/g}, | |
{'base':'AY','letters':/[\uA73C]/g}, | |
{'base':'B', 'letters':/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g}, | |
{'base':'C', 'letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g}, |
This file contains 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
Pierre Carlet de Chamblain de Marivaux, geboren als Pierre Carlet am 4. Februar 1688 in Paris, wächst in eher bescheidenen Verhältnissen auf. Zwar gehört die Familie seine Mutter Marie-Anne Bullet dem wohlhabenden Bürgertum an, zwar pflegen sein Onkel Pierre Bullet und sein Cousin Jean-Baptiste Bullet de Chamblain als die einflussreichsten Architekten ihrer Zeit Kontakt zu den höchsten Gesellschaftsschichten Frankreichs, sein Vater Nicolas Carlet aber entstammt, so wird vermutet, einer wenig begüterten Pariser Handwerkerfamilie und verdient den Lebensunterhalt für seine Familie zunächst als Verwalter eines Heereslagers in Deutschland, später als verbeamteter Inspektor bzw. Direktor des Münzwesens in Riom, dem Verwaltungszentrum der Auvergne. Dass Marivaux diesen gesellschaftlich eher mittelmäßigen Verhältnissen zu entkommen strebt und sich nach Höherem sehnt, zeigt sich nicht zuletzt darin, dass er später den adligen Namen seiner Verwandtschaft in den Namen integriert, unter dem er später bek |
This file contains 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
private void sepiaImage(int[] origPixels, int[] pixels, int width, int height) | |
{ | |
for (int y=0; y<height; y++) { | |
for (int x=0; x<width; x++) { | |
int pos = y*width + x; | |
int argb = origPixels[pos]; // Lesen der Originalwerte | |
int r = (argb >> 16) & 0xff; | |
int g = (argb >> 8) & 0xff; | |
int b = argb & 0xff; |
OlderNewer