Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import sqlite3
from os import path
"""
Script to update the library base path in the mixxx database.
useful for keeping crates and playlists sycned across computers with
different base paths for the music collection.
@timrae
timrae / FullscreenDrawerActivity.java
Last active July 3, 2018 17:35
Immersive fullscreen example
package com.mikepenz.materialdrawer.app;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.GestureDetector;
import android.view.MenuItem;
@timrae
timrae / FuriganaTools.java
Last active August 29, 2015 14:20
Convert a kanji and its reading into furigana in the format which Anki expects for Ruby text
/****************************************************************************************
* Copyright (c) 2015, Timothy Rae *
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted provided that the following conditions are met: *
* * Redistributions of source code must retain the above copyright *
* notice, this list of conditions and the following disclaimer. *
* * Redistributions in binary form must reproduce the above copyright *
* notice, this list of conditions and the following disclaimer in the *