Skip to content

Instantly share code, notes, and snippets.

@david0
david0 / strip-autocomplete.user.js
Created March 3, 2014 15:26
Greasymonkey/Tampermonkey script that strips "autocomplete" attributes from username and password fields
// ==UserScript==
// @name Strip autocomplete attributes
// @namespace david0
// @version 0.1
// @description This plugin gives the control about your passwords back to your browser and allows the browser to store every password.
// @include http://*
// @include https://*
// @copyright 2014, David
// ==/UserScript==
@david0
david0 / timatrix2csv.py
Created March 21, 2013 15:04
Converts matrices from Texas Instruments Calculators (TI89, TI Voyage 200) to CSV.
#!/usr/bin/python
# Reads matricies files build by the TI Voyage 200/TI82+ (*.v2m-files)
# and outputs csv
#
# Example:
# $ ./timatrix2csv.py main.test.v2p > test.csv
from struct import pack, unpack, calcsize
from collections import namedtuple
from sys import argv, stdout
@david0
david0 / tigcc-atanh-bug.c
Created March 15, 2013 19:00
Bug with TIGCC 0.96: atanh(-0.9) returns 1.4722 instead of -1.4722
#include <math.h>
#include <stdio.h>
#include <tigcclib.h>
#define RETURN_VALUE
void _main() {
push_END_TAG();
push_Float(atanh(-0.9));
}