Skip to content

Instantly share code, notes, and snippets.

View mk0x9's full-sized avatar

Mikhail Kuryshev mk0x9

  • Berlin, Germany
  • 21:23 (UTC +02:00)
View GitHub Profile
@sritchie
sritchie / hslint
Created September 25, 2011 20:00
hslint!
#!/usr/bin/env perl
# Remember `chmod a+x hslint, after putting on path.
$ghc = '/usr/bin/ghc'; # where is ghc
@ghc_options = ('-Wall'); # e.g. ('-fglasgow-exts')
@ghc_packages = (); # e.g. ('QuickCheck')
### the following should not been edited ###
@dmj
dmj / gist:3944275
Created October 24, 2012 05:50
Support umlauts in ace-jump (hacky defadvice)
(defadvice ace-jump-char-category (around adv-ace-jump-support-umlauts activate)
(unless (= (char-syntax (ad-get-arg 0)) ?w)
ad-do-it)
(setq ad-return-value 'alpha))
@lox
lox / Makefile
Last active March 28, 2018 12:55
Replaced Grunt/Gulp with a Makefile
SASSC = sass --style compact
COMPSDIR = resources/assets/components
SASSDIR = resources/assets/css
JSDIR = resources/assets/js
DISTDIR = web/dist
CSSDIR = $(DISTDIR)/css
SASSINC = $(SASSDIR) \
$(COMPSDIR)/asimov/src/scss \
$(COMPSDIR)/asimov-contests/src/scss \
$(COMPSDIR)/asimovicons/src/scss
// tanuki 2019
havka = [];
s = __NEXT_DATA__.props.initialState.products.data
for (key of Object.keys(s)) {
p = s[key];
havka.push([p.title, p.weight/p.price, p.price, p.weight, p.calories])
}
havka = havka.sort(function(a, b){ var x=a[1]; var y=b[1]; return y-x; });
eblo = "";
@tummychow
tummychow / readme.md
Created June 19, 2014 06:03
Bugzilla on nginx (except without the questionable perl wrapper scripts)

Just a brief proof of concept for running bugzilla on nginx using fcgiwrap

Software development needs issue tracking cause there's too much stuff to remember. Raise issues and manage tasks. Get stuff done. Keep track of backlogs without losing yourself in the ocean of stuff that needs doing. Real life is quite similar, so lately I have been experimenting with small self-hosted instances of various issue tracking solutions. Bugzilla is one of the most mature and feature-complete foss options in this area so obviously I had to try it.

The server that I run all my personal toys on is using nginx exclusively (with passenger for my numerous ruby and python applications, more on that in another gist? perhaps!). Unfortunately bugzilla does not support nginx out of the box. It mainly targets apache's mod_perl (or mod_cgi). However since bugzilla is ultimately a cgi application, we can find ways to serve it on nginx.

Basically the solution is to wrap bugzilla's cgi scripts in a fastcgi server so that nginx can

@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing
@Olegas
Olegas / readme.md
Last active October 15, 2018 19:54
  1. Спецификация requestAnimationFrame: http://www.w3.org/TR/animation-timing/
  2. Справочник свойств, приводящих к reflow/restyle/repaint: http://csstriggers.com
  3. Ян Бородецкий, Оптимизация рендеринга веб-страницы: https://www.youtube.com/watch?v=-uMZDzIhcHQ
  4. Avoid Large, Complex Layouts and Layout Thrashing https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing#avoid-forced-synchronous-layouts
@bishboria
bishboria / springer-free-maths-books.md
Last active May 10, 2025 04:28
Springer made a bunch of books available for free, these were the direct links
@nl5887
nl5887 / readme.md
Created April 29, 2016 08:17
Modern.IE Windows XP download
@Rich-Harris
Rich-Harris / service-workers.md
Last active May 3, 2025 12:49
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.