Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@atok
atok / gist:329c8ec4fa7fe5d1ceb9
Created January 5, 2015 22:18
Java fast image generation and compression
package atk.videogen;
import java.io.*;
import java.nio.ByteBuffer;
/**
* Created by atok on 2015-01-05.
*/
public class PPMtest {
public static void main(String[] args) throws IOException {
@atok
atok / ReactiveContentResolver
Created December 10, 2014 16:06
ReactiveContentResolver - prototype
package com.github.atok.contentfun;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import com.github.atok.contentfun.model.ElementFactory;
import rx.Observable;
@atok
atok / gist:c0aa2befa51c3bc49094
Last active August 29, 2015 14:08
Userscript to disable alt-a capturing ("save the ą script")
// ==UserScript==
// @name anti key-grabber
// @description Prevent web apps from capturing and muting vital keyboard shortcuts
// @grant none
// @version 1.1
// ==/UserScript==
(function(){
window.document.addEventListener('keydown', function(e) {
if((e.keyCode === 65 || e.keyCode === 83) && e.altKey) {