Skip to content

Instantly share code, notes, and snippets.

🌱
Growing indie hacker

Vincent Voyer vvo

🌱
Growing indie hacker
Block or report user

Report or block vvo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View async-workers.js
var workers = [
{name: 'worker1', fn: function(task, cb) {/* some async processing */}},
{name: 'worker2', fn: function(task, cb) {/* some async processing */ }}
];
var tasks = ['one']; // this will be filled with a first task and then filled with more tasks from the workers
// I want to distribute tasks to workers, each worker can process only one task at a time
// workers will add more tasks while processing
// in some situations tasks may be empty and all workers processing
View gist:c1bc1849e82b4377e354329026aff8b3
README:
# TITLE
Small description
# Example
[STILL IMAGE] USAGE VIDEO on youtube
@vvo
vvo / .profile
Last active Nov 7, 2017
spr command line
View .profile
#!/usr/bin/env bash
function spr() {
remoteOrigin=$(git remote get-url origin)
originGitHubUser=${remoteOrigin#git@github.com:*}
originGitHubUser=${originGitHubUser%%/*}
if [[ $1 == "--"* ]] # spr --branch
then
params=(${@:1})
View react-instantsearch 2.0.0-beta.19 release notes.md
View superscript locations
ʳᵉᵐᵒᵗᵉ
ᵖᵃʳⁱˢ
ˢᶠ
ⁿʸ
ᵒᶠᶠ
@vvo
vvo / instantsearch.min.js
Created Jul 22, 2016
instantsearch.js issue 919
View instantsearch.min.js
/*! instantsearch.js UNRELEASED | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsearch=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(1),i=r(o);e.exports=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),n(2),n(3);var o=n(4),i=r(o),a=n(5),s=r(a),u=n(34),l=r(u),c=n(226),f=r(c),p=n(405),d=r(p),h=n(409),m=r(h),v=n(413),g=r(v),y=n(417),b=r(y),_=n(422),C=r(_),w=n(426),x=r(w),P=n(428),E=r(P),R=n(430),S=r(R),O=n(431),k=r(O),T=n
You can’t perform that action at this time.