Skip to content

Instantly share code, notes, and snippets.

View doneWorker's full-sized avatar
🎯
Focusing

Kirill Anikin doneWorker

🎯
Focusing
View GitHub Profile
@quasilyte
quasilyte / channels.go
Created November 8, 2018 09:44
Channel vs mutex vs atomic for synchronized counter
package benchmark
import (
"context"
"runtime"
"sync"
"sync/atomic"
"testing"
"time"
)
@greyscaled
greyscaled / README.md
Last active August 8, 2025 14:11
Sequelize + Express + Migrations + Seed Starter
@gaearon
gaearon / slim-redux.js
Last active September 7, 2025 15:41
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
package main
import (
"net/http"
"database/sql"
"fmt"
"log"
"os"
)
@amalkov
amalkov / hack.sh
Created April 17, 2012 09:35
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#