Skip to content

Instantly share code, notes, and snippets.

View MaximOrlovsky's full-sized avatar

Maxim Orlovsky MaximOrlovsky

View GitHub Profile
@MaximOrlovsky
MaximOrlovsky / d3.sankey.js
Created September 14, 2020 16:49 — forked from emeeks/d3.sankey.js
Sankey Particles IV
d3.sankey = function() {
var sankey = {},
nodeWidth = 24,
nodePadding = 8,
size = [1, 1],
nodes = [],
links = [];
sankey.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
@MaximOrlovsky
MaximOrlovsky / apple-magic-mouse-2-speed.md
Last active April 13, 2019 08:32
Increase speed of Apple Magic Mouse 2 beyond OSX limit

Increase speed of Apple Magic Mouse 2 beyond OSX limit

Open Terminal and enter this: defaults write -g com.apple.mouse.scaling -float 15.0 then hit enter, close Terminal.

Logout and login again in your MacOs profile

/**
* Generate MD5-like string.
* @author MaximOrlovsky github.com
* @example stringLikeMd5.generate(16); //return 16 characters of md5-like string
* @type {{allowedSigns: string, generate: generate, getRandomSign: getRandomSign}}
*/
var stringLikeMd5 = {
allowedSigns: 'abcdef1234567890',
generate: function (limit) {
var limit = limit || 32,