Skip to content

Instantly share code, notes, and snippets.

View ruphin's full-sized avatar

Goffert van Gool ruphin

View GitHub Profile
10 ┌───┐ 5
┌───────┤ A ├──────┐
│ └───┘ │
┌─┴─┐ 4 ┌─┴─┐
│ B ├──────────────┤ C │
└─┬─┘ └─┬─┘
│ │
2│ │ 14
0x747bE043AF4C0839EF2b98a53B4F165eD2676E4D
#!/usr/local/bin/node
const { soliditySha3 } = require("web3-utils");
const answer =
"0x820b25046cc144c5c0cff21af15e3387f538c5278cb097a77599041182b8ca17";
const disarmCode =
"A Yuletide number - 0x?2CD?b3a2DEDCb?b???E?Ca2????C??C2bCba?DE2D?C???????";
const missingChars = "gcg2efdgaebg3g2g3gadbc";
@ruphin
ruphin / Set vs WeakMap
Created August 25, 2018 20:40
Performance test Set vs WeakMap
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
var looper = function looper(callback) {
var n = 2000000;
while (n > 0) {
class MyElement extends GluonElement {
connectedCallback() {
super.connectedCallback();
loadingService.load().then(() => {
this.loaded = true;
})
}
template() {
@ruphin
ruphin / easing.css
Created June 20, 2017 08:30 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
https://docs.google.com/presentation/d/1xLqZ6FX5_BLfDtLtCi5Wj4E_n5OI3TiaZBQkkt9bjts/edit?usp=sharing
[Settings]
[Hotkeys]
PTT=
ArmySelect=
ControlGroupAppend0=Shift+ForwardMouseButton
ControlGroupAssign0=Control+ForwardMouseButton
ControlGroupRecall0=ForwardMouseButton
IdleWorker=Grave
TargetChoose=LeftMouseButton,Equals,D,Z,S,E,R,C
@ruphin
ruphin / gist:fb78fbbea0d1d7980b457cfe123e898c
Created April 25, 2016 08:54
MongoDB HostnameCanonicalizationWorker Fail
mongo:3.2 --configsvr --replSet blobConfig --dbpath /data/db --bind_ip mongo-blob-config-3 --port 27017
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=mongo-blob-config-3
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] db version v3.2.5
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] git version: 34e65e5383f7ea1726332cb175b73077ec4a1b02
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] allocator: tcmalloc
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] modules: none
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] build environment:
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] distmod: debian71
2016-04-25T08:41:52.532+0000 I CONTROL [initandlisten] distarch: x86_64
@ruphin
ruphin / gist:2dcc6b8ae0760f8b2075
Created November 20, 2015 20:14
Mongodb failed replica set init
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=mongo-main-config-1
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] db version v3.2.0-rc3
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] git version: bd58ea2ba5d17b960981990bb97cab133d7e90ed
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] allocator: tcmalloc
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] modules: none
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] build environment:
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] distmod: debian71
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] distarch: x86_64
2015-11-20T19:46:47.723+0000 I CONTROL [initandlisten] target_arch: x86_64