Skip to content

Instantly share code, notes, and snippets.

@Velrok
Velrok / .gitignore
Created May 4, 2012 21:15
a javascript file that analyses the header structure of an html page and creates an overview
._*
@Velrok
Velrok / my license header
Created February 6, 2012 02:39
A typical license header for all my public projects. A combination of MIT and GPL.
/*
Copyright (c) <year> <copyright holders>
This software is dual licensed under:
- MIT license for non commercial usage (http://www.opensource.org/licenses/MIT)
- GPL license for commercial usage (https://www.gnu.org/licenses/gpl.txt).
If you want to use this software in a commercial project under another license contact me at <email> .
*/
@Velrok
Velrok / files2atom.py
Created March 5, 2011 20:34 — forked from zeisss/files2atom.py
Exports file changes as atom feed.
#!/usr/bin/python
import os.path
import os
import sys
import datetime
class AtomWriter:
def __init__ (self, title, link = "http://localhost"):
self.title = title
self.link = link
@Velrok
Velrok / auto link creater
Created May 16, 2010 01:39
cryptic file linking
tell application "Address Book"
repeat with contact in people
repeat with icq in ICQ handles of contact
set nimbuzzIcq to (value of icq) & "@icq.nimbuzz.com"
set nimbuzzIcqFound to no
repeat with jabber in Jabber handles of contact
if (value of jabber) = nimbuzzIcq then
set nimbuzzIcqFound to yes
end if
tell application "iTunes"
set playedBony to 2
set skippPanelty to 10
if not (user playlist "rate me" exists) then
display dialog "Dieses Script arbeitet auf der Playlist 'rate me' bitte erstellen Sie diese Liste.
Tipp:
Erstellen sie eine inteligente Wiedergabeliste die alle Audiodateien enthält die mehr als ein mal gespielt oder übersprungen wurden oder keine Wertung haben."
return