Skip to content

Instantly share code, notes, and snippets.

Darkness navono

View GitHub Profile
navono /
Last active Mar 26, 2019 — forked from staltz/
The introduction to Reactive Programming you've been missing
navono /
Created Mar 18, 2019 — forked from roachhd/
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป


Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock,, Kandan,, Kippt, Redmine, JabbR, Trello, Hall,, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.


:bowtie: ๐Ÿ˜„

navono / etcd3-demo.go
Created Mar 15, 2019
A demo for etcd3 golang client
View etcd3-demo.go
package main
import (
View gist:1b97f623087184bbdea279478d791488
  • What do Etcd, Consul, and Zookeeper do?
    • Service Registration:
      • Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
    • Service Discovery:
      • Ability for client application to query the central registry to learn of service location.
    • Consistent and durable general-purpose K/V store across distributed system.
      • Some solutions support this better than others.
      • Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
      • Centralized locking can be based on this K/V store.
navono /
Created Dec 10, 2018
Install proto in ubuntu
# Make sure you grab the latest version
curl -OL
# Unzip
unzip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
navono / readJSON.bat
Created Nov 16, 2018
read JSON field by batch
View readJSON.bat
:: Read file "package.json" into variable string, removing line breaks.
set string=
for /f "delims=" %%x in (package.json) do set "string=!string!%%x"
rem Remove quotes
set string=%string:"=%
rem Remove braces
set "string=%string:~2,-2%"
rem Change colon+space by equal-sign
set "string=%string:: ==%"
navono / parsePathData.js
Created Nov 16, 2018
Canvas path render with pathdata
View parsePathData.js
define(function (require) {
// come from
function getLineLength(x1, y1, x2, y2) {
return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
function getPointOnCubicBezier(
navono / react-resizable.d.ts
Created Sep 28, 2018
A demo declaration file of react-resizable
View react-resizable.d.ts
declare module 'react-resizable' {
import * as React from 'react';
type Axis = 'both' | 'x' | 'y' | 'none';
type ResizeCallbackData = {
node: HTMLElement,
size: {width: number, height: number}
interface IResizableProps {
navono /
Created Sep 18, 2018 — forked from osowski/
Install Minikube, Kubectl, and Virtualbox on Ubuntu
#Installing VirtualBox
echo "Installing VirtualBox........................"
sudo apt-get install virtualbox
#Installing kubectl
echo "Installing kubectl..........................."
chmod +x kubectl
sudo mv kubectl /usr/local/bin/kubectl
navono / pathSector.js
Last active Sep 13, 2018
ไฝฟ็”จๅๆ ‡๏ผŒ่Žทๅ–ๆ‰‡ๅฝข๏ผˆSector๏ผ‰็š„Path data๏ผˆ่ตทๅง‹็‚นใ€็ป“ๆŸ็‚นใ€ๅŠๅพ„ใ€ๅผ€ๅฏ่ง’ๅบฆใ€็ป“ๆŸ่ง’ๅบฆ๏ผ‰
View pathSector.js
function describeArc(x, y, radius, startAngle, endAngle) {
var start = polarToCartesian(x, y, radius, endAngle);
var end = polarToCartesian(x, y, radius, startAngle);
console.log('start: ', start);
console.log('end: ', end);
var largeArcFlag = Math.abs(endAngle - startAngle) <= 180 ? "0" : "1";
const clockwise = endAngle < 0 ? 1 : 0;
You canโ€™t perform that action at this time.