Skip to content

Instantly share code, notes, and snippets.

@quasiyoke
quasiyoke / rename.py
Created July 31, 2014 23:37
FB2 library management helper
#!/usr/bin/env python
'''
Tool for renaming books. Unpacks zipped books and prompts to rename them.
'''
import os
import platform
import zipfile
function setResult(n){
var interval = setInterval(
function(){
var qe = $('#question');
var ae = $('#answer');
var q=qe.text();
var m = /^(\d+)\s(.)\s(\d+)/.exec(q);
var v1 = m[1] - 0;
var op = m[2];
var v2 = m[3] - 0;