Skip to content

Instantly share code, notes, and snippets.

View aulizko's full-sized avatar

Alexander Ulizko aulizko

  • Currently seeking a new opportunity
  • Cherepovets, Russian Federation
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aulizko on github.
  • I am aulizko (https://keybase.io/aulizko) on keybase.
  • I have a public key whose fingerprint is 2B15 3E78 238C 4606 5A19 1E12 56F2 EB3D 1694 9CF9

To claim this, I am signing this object:

@aulizko
aulizko / server.es6.js
Last active September 8, 2015 08:21
SSR with react-router@1.0.0-beta4
// That variant actually works with 1.0.0-beta4
// Link to the previous (1.0.0-beta3) version:
// https://github.com/cdebotton/react-universal/blob/master/src/server.js#L49
import createLocation from 'history/lib/createLocation';
import createHistory from 'history/lib/createMemoryHistory';
import ReactDOM from 'react-dom/server';
import {Router} from 'react-router';
import Layout from './views/Layout';
import Application from './containers/Application';
@aulizko
aulizko / daily-geek-show-fix.js
Last active September 12, 2015 01:36
Внизу тэга head есть <script>, в котором старая функция play(). Вот вместо нее надо вставить это.
// Убираем старый обработчик нажатий
var forEach = Array.prototype.forEach;
forEach.call(document.getElementsByClassName('glyphicon-volume-up'),
removeAllEventListeners);
function play(e) {
if (!e) {
return;
}
var target = e.target;