Skip to content

Instantly share code, notes, and snippets.

View flurischt's full-sized avatar

Flurin Ineichen flurischt

  • Bern, Switzerland
View GitHub Profile
### Keybase proof
I hereby claim:
* I am flurischt on github.
* I am flurin (https://keybase.io/flurin) on keybase.
* I have a public key whose fingerprint is 5885 72DC 299E 9463 D9DC 3E70 8F1E 934C 951E 634F
To claim this, I am signing this object:
@flurischt
flurischt / take_this.py
Created February 8, 2012 21:49
just nonsense (as usual)
#!/usr/bin/env python
import cookielib, urllib, urllib2, sys
from BeautifulSoup import BeautifulSoup
### some constants... ###
SERVER = 'http://lurinfacts.ch'
API = '/api/vote'
TOP = '/facts/top'
RECENT = '/facts/recent'
@flurischt
flurischt / google_reader.css
Created November 5, 2011 20:47
makes google reader usable again. use it with the firefox stylish extension
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document regexp("^https?://www.google.com/reader/view/.*") {
#chrome-title {
padding: 0px 0px 0px 0px !important;
line-height: 13px !important;
}
#viewer-header {
height: 28px !important;
@flurischt
flurischt / gist:994795
Created May 27, 2011 07:23
vba macro to automatically mark outlook events as private
Private Sub Application_Startup()
Set nms = Application.GetNamespace("MAPI")
Set fld = nms.GetDefaultFolder(9)
Set itms = fld.Items
'lngCount = itms.Count
' counter fuer die anzahl verarbeiteter Termine
Dim i
i = 0
@flurischt
flurischt / CLOI_PUT_SIGN_IN_FRONT
Created May 24, 2011 08:17
in ABAP the sign is placed on the right side. to print/export it correctly you have to use the following snippet...
* Code to put the SIGN in front:
* VALUE holds your number (in character like format)
DATA: TEXT1(1) TYPE C.
SEARCH VALUE FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
SPLIT VALUE AT '-' INTO VALUE TEXT1.
CONDENSE VALUE.
CONCATENATE '-' VALUE INTO VALUE.
ELSE.