Skip to content

Instantly share code, notes, and snippets.

View atotic's full-sized avatar

Aleksandar Totic atotic

View GitHub Profile
@atotic
atotic / PicasaToXMP.py
Created November 28, 2012 17:31
Convert Picasa star ratings to XMP format
#!/usr/bin/python
# prerequisite: http://www.exiv2.org/download.html
import sys
import os.path
import re
import subprocess
def process_ini(fname):
# print "found ini " + fname + "\n"
@atotic
atotic / palibrary.user.js
Last active January 26, 2020 19:00
Tampermonkey: link Amazon Books to Palo Alto Library
// ==UserScript==
// @name Palo Alto Library And Amazon
// @namespace http://www.totic.org/
// @version 1.0.1
// @description Link Amazon Books to Palo Alto library
// @copyright 2012+ [email protected]
// @match http://www.amazon.com/*
// @match https://www.amazon.com/*
// @require http://code.jquery.com/jquery-1.9.1.min.js
// ==/UserScript==
@atotic
atotic / randomString.js
Created July 13, 2015 04:16
js randomString
exports.randomString = function (len, charSet) {
charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var randomString = '';
for (var i = 0; i < len; i++) {
var randomPoz = Math.floor(Math.random() * charSet.length);
randomString += charSet.substring(randomPoz,randomPoz+1);
}
return randomString;
};
import re
import itertools
import gdb
from gdb.FrameDecorator import FrameDecorator
from gdb.FrameDecorator import SymValueWrapper
#
# Pretty printing for layoutng
#
# 1) NGBlockNode -> prints layout_box_->debugName()
@atotic
atotic / TablesNG_demo.html
Created January 19, 2021 22:33
Demo for Chrome's TableNG project
<!doctype html>
<title>NGTable layout examples</title>
<style>
h3 {
font-size: medium;
border-top: 1px solid gray;
padding-top: 6px;
}
table {
border: 1px solid black;