Skip to content

Instantly share code, notes, and snippets.

View ritesh-pandey's full-sized avatar

Ritesh Pandey ritesh-pandey

View GitHub Profile
@ritesh-pandey
ritesh-pandey / licenses.py
Last active May 1, 2020 11:08
cc-license-parsing
import os
import sys
from rdflib import Graph, Namespace
from rdflib.namespace import DC, DCTERMS
from rdflib.resource import Resource
CC = Namespace('http://creativecommons.org/ns#')
settings = {
'LICENSE_RDF_PATH': os.path.realpath(sys.argv[1])
}
@ritesh-pandey
ritesh-pandey / Rdio.user.js
Created August 27, 2015 12:20
Prevent Rdio from stopping when used with uBlockOrigin
// ==UserScript==
// @name Rdio
// @namespace Rdio
// @description Rdio - Keep listening to rdio with uBlockOrigin/ABP
// @version 1
// @grant none
// ==/UserScript==
setInterval(function () {
console.log('Executing Rdio greasy script');
if (R && !R.player) {