Skip to content

Instantly share code, notes, and snippets.

View brunnurs's full-sized avatar

Ursin Brunner brunnurs

View GitHub Profile
import requests
payload = {'lang': 'de',
'org-nr': '1070',
'topic': '0',
'start_date': '2021-12-03',
'end_date': '2021-12-17'}
r = requests.get('https://www.newsd.admin.ch/newsd/feeds/rss', params=payload)
http://todowebexample.azurewebsites.net/todos
@brunnurs
brunnurs / gist:e8400a992eb3a6ef5a77
Created February 16, 2015 09:00
iOS FileLogger
using System;
using Drallo.Mobile.Lib.Helper;
using System.IO;
using System.Diagnostics;
namespace Drallo.Mobile.LibrarySpecializations.Logging
{
public class TouchFileLogger : ILogger
{
static object locker = new object();
[2014-07-24T13:45:40+00:00] Started POST "/api/v1/challenge_attempts" for 188.62.5.105 at 2014-07-24 13:45:40 +0000
[2014-07-24T13:45:40+00:00] Processing by Api::V1::ChallengeAttemptsController#create as JSON
[2014-07-24T13:45:40+00:00] Parameters: {"uuid"=>"bec66002-23f2-4057-812d-91d36beb9314", "challenge_id"=>"983347c3-02af-4c68-8935-63b4c0829701", "segments"=>[{"uuid"=>"bf9d82ab-71aa-4d0e-a9b1-0354540dd885", "activity_type"=>"Walking", "activity_records"=>["07d37679-25f6-4dd1-bd0f-a9534e321abd"]}], "activity_events"=>nil, "points"=>0.0, "progress"=>0, "challenge_attempt"=>{"progress"=>0, "points"=>0.0, "challenge_id"=>"983347c3-02af-4c68-8935-63b4c0829701", "uuid"=>"bec66002-23f2-4057-812d-91d36beb9314"}}
[2014-07-24T13:45:40+00:00] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."authentication_token" = 'cRjWxRdNSExxEDsNghxa' LIMIT 1
[2014-07-24T13:45:40+00:00] (1.8ms) BEGIN
[2014-07-24T13:45:40+00:00] Challenge Load (2.5ms) SELECT "challenges".* FROM "challenges" WHERE "challe
@font-face {
font-family: "DeliciousRoman";
src: url('file:///android_asset/Fonts/Delicious-Roman.otf');
}
@font-face {
font-family: "DeliciousSmallCaps";
src: url('file:///android_asset/Fonts/Delicious-SmallCaps.otf');
}
Incident Identifier: A2905B2C-65AC-4E46-AFF5-C501E657C43C
CrashReporter Key: 8b2b6e9d431724d7ce37f3fac93b3b3e2442c7f9
Hardware Model: iPhone3,1
Process: DralloTouch [992]
Path: /var/mobile/Applications/174C0EBC-DB6E-4670-B074-CDF83EA77437/DralloTouch.app/DralloTouch
Identifier: ch.challengeearth.drallo
Version: 0.4.5 (1.0.3)
Code Type: ARM (Native)
Parent Process: launchd [1]
Incident Identifier: A2905B2C-65AC-4E46-AFF5-C501E657C43C
CrashReporter Key: 8b2b6e9d431724d7ce37f3fac93b3b3e2442c7f9
Hardware Model: iPhone3,1
Process: DralloTouch [992]
Path: /var/mobile/Applications/174C0EBC-DB6E-4670-B074-CDF83EA77437/DralloTouch.app/DralloTouch
Identifier: ch.challengeearth.drallo
Version: 0.4.5 (1.0.3)
Code Type: ARM (Native)
Parent Process: launchd [1]
Incident Identifier: A653DAFD-AED1-4433-8F05-4D14BCE55BF2
CrashReporter Key: 8b2b6e9d431724d7ce37f3fac93b3b3e2442c7f9
Hardware Model: iPhone3,1
OS Version: iPhone OS 7.0.4 (11B554a)
Kernel Version: Darwin Kernel Version 14.0.0: Fri Sep 27 23:07:56 PDT 2013; root:xnu-2423.3.12~1/RELEASE_ARM_S5L8930X
Date: 2014-03-10 16:02:09 +0100
Time since snapshot: 174 ms
Free pages: 1391
Active pages: 3319
Incident Identifier: 40B5D543-B680-4719-B7BB-C0F7B8DC25B7
CrashReporter Key: 8b2b6e9d431724d7ce37f3fac93b3b3e2442c7f9
Hardware Model: iPhone3,1
Process: DralloTouch [685]
Path: /var/mobile/Applications/CD0DE298-3B91-49BC-8F1F-2C0EC3267BA2/DralloTouch.app/DralloTouch
Identifier: ch.challengeearth.drallo
Version: 0.4.5 (1.0.3)
Code Type: ARM (Native)
Parent Process: launchd [1]
Incident Identifier: DC8E8D0B-F667-499C-88E7-2981375EF374
CrashReporter Key: 8b2b6e9d431724d7ce37f3fac93b3b3e2442c7f9
Hardware Model: iPhone3,1
Process: DralloTouch [374]
Path: /var/mobile/Applications/2AB6262A-3763-497D-BDD2-4F463C596684/DralloTouch.app/DralloTouch
Identifier: ch.challengeearth.drallo
Version: 0.3.65 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]