Skip to content

Instantly share code, notes, and snippets.

View 0x46616c6b's full-sized avatar

0x46616c6b 0x46616c6b

  • Dresden
  • 08:01 (UTC +02:00)
View GitHub Profile
<?php
ini_set('default_charset', 'UTF-8');
$debug = 1;
$debug_cookie = 0;
$mode = NULL;
$matrikel = NULL;
$password = NULL;
<?php
ini_set('default_charset', 'UTF-8');
$debug = 1;
$mode = NULL;
function fetchsite($url = NULL, $matrikel = NULL, $password = NULL) {
global $debug, $mode;
<?php
ini_set('default_charset', 'UTF-8');
$debug = 1;
$mode = NULL;
function fetchsite($url = NULL, $matrikel = NULL, $password = NULL) {
global $debug, $mode;
@0x46616c6b
0x46616c6b / urls.py
Created January 13, 2011 21:56 — forked from enko/urls.py
def new_entry(request):
format = "json"
if ('format' in request.POST):
format = request.POST['format']
if ('submit' in request.POST):
# gives us a json: { "text" : "Dies ist eine Meldung", "isPublic" : 1 }
# entry_text =
# entry_isPublic =
# entry_published = datetime.now()
# -> save