Skip to content

Instantly share code, notes, and snippets.

View evityuk's full-sized avatar

Yevhen Vitiuk evityuk

  • Zhytomyr, Ukraine
View GitHub Profile
@evityuk
evityuk / smile.js
Last active February 12, 2021 01:11
smile enc protocol: v0.1
/**
Add this script to Chrome Dev Tools snippets and run in order to use from console.
*/
((exports)=>{
const alphabet = [/*extra*/0x1f916, 0x1F62C, 0x1F428,/*extraend*/0x2764, 0x1f606, 0x1f62e, 0x1f622, 0x1f620, 0x1f44d, 0x1f44e].map(e=>String.fromCodePoint(e)); //'❤️ 😆 😮 😢 😠 👍 👎'.split(' ')
const excludes = {
'A': String.fromCodePoint(0x2708),
'a': String.fromCodePoint(0x1F6A1)
}, rexcludes = {
import (
"math"
"math/big"
"strings"
)
// Singly-linked lists are already defined with this interface:
// type ListNode struct {
// Value interface{}
// Next *ListNode
// }