Skip to content

Instantly share code, notes, and snippets.

View doochik's full-sized avatar

Aleksei Androsov doochik

View GitHub Profile
require 'formula'
class Imgo <Formula
url 'git://github.com/imgo/imgo.git'
homepage 'http://imgcomp.com'
md5 ''
version '0.4'
depends_on 'imagemagick'
depends_on 'pngout'
require 'formula'
class Imgo <Formula
url 'git://github.com/imgo/imgo.git'
homepage 'http://imgcomp.com'
md5 ''
version '0.4'
depends_on 'imagemagick'
depends_on 'pngout'
<form>
<input type="search" onfocus="onfocus1()"/>
<input type="submit"/>
</form>
<form>
<input type="search" onfocus="onfocus1()"/>
<input type="submit"/>
</form>
all: _index.ru.js
_index.%.js: index.%.js
touch $@
index.%.js:
touch $@
.PHONY: all
@doochik
doochik / dabblet.css
Created October 31, 2014 16:04
Untitled
.p:first-letter {
color: red;
}
function calcFletcherSum(data) {
var length = data.length, i = 0, sum1 = 0xFF, sum2 = 0xFF;
while (length) {
var tlen = length > 21 ? 21 : length;
length -= tlen;
do {
var ch = data.charCodeAt(i++);
if (ch > 255) {
var ch2 = ch >> 8;
ch &= 0xFF;
@doochik
doochik / gist:575b94b20765b028dc70
Created November 26, 2014 16:25
IE10/11 can't execute blob-js with 114688 bytes size
var text = "var a = '";
for (var i = text.length; i < 114686; i++) {
text += '1';
}
text += "';";
console.log('text size:', text.length);
var blob = new Blob([text], {type: 'text/javascript'});
var url = URL.createObjectURL(blob);
var script = document.createElement('script');
@doochik
doochik / dabblet.css
Created February 12, 2015 17:43
Untitled
.messages-thead {
display: flex;
flex-direction: column-reverse;
}
@doochik
doochik / dabblet.css
Last active August 29, 2015 14:17
Untitled
.popup {
position: absolute;
top: 10px;
left: 10px;
width: 150px;
height: 200px;
border: 1px solid #000;
overflow: hidden;
}