Skip to content

Instantly share code, notes, and snippets.

View Olegas's full-sized avatar

Oleg Elifantiev Olegas

  • Russia, Yaroslavl
View GitHub Profile
@Olegas
Olegas / post-update
Created December 10, 2012 07:21 — forked from dchest/post-update
Git post-update hook to checkout working copy and publish it with jekyll (put it into .git/hooks and chmod +x post-update)
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
@Olegas
Olegas / amd.js
Created July 9, 2015 10:42 — forked from ipoddubny/amd.js
define(['cjs'], function (cjs) {
console.log('amd module loaded');
console.log('cjs exported:', cjs);
return 'AMD';
});
@Olegas
Olegas / files.js
Last active July 4, 2017 12:17 — forked from kvasdopil/files.js
const files = [/* file names here */];
const limit = 100;
async function main() {
var runningWorkers = 0;
function continuationHandler() {
runningWorkers--;
loadWorkers();
}