Skip to content

Instantly share code, notes, and snippets.

View zhrivodkin's full-sized avatar

Max Tolkachev zhrivodkin

View GitHub Profile
function doSetTimeout(i) {
setTimeout(function() {
document.querySelectorAll('.flat_button.button_small.button_wide:not(.secondary):not(.button_disabled):not([style])')[i].click();
}, 1000);
};
for (index = 0; index < 21; ++index) {
doSetTimeout(index);
}
@zhrivodkin
zhrivodkin / data.tsv
Created July 21, 2015 14:27
data.tsv
letter frequency
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
///see also https://wiki.postgresql.org/wiki/Adventures_in_PostgreSQL%2C_Episode_1
======= Prolbem =================================================================================================================
I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute:
rake db:create , command I get:
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
HINT: Use the same encoding as in the template database, or use template0 as template.