Skip to content

Instantly share code, notes, and snippets.

View maxchehab's full-sized avatar
🐝
explaining think to sand

Max Chehab maxchehab

🐝
explaining think to sand
View GitHub Profile
@maxchehab
maxchehab / browser.esm.js
Last active March 25, 2020 05:32
@roomservice/browser dist/browser.esm.js
import Automerge, { merge, load, save } from 'automerge';
import { Map } from 'immutable';
import invariant from 'invariant';
import { debounce, throttle } from 'lodash-es';
import { Peer } from 'manymerge';
import safeJsonStringify from 'safe-json-stringify';
import { get, set } from 'idb-keyval';
import uuid from 'uuid/v4';
import IO from 'socket.io-client';
import ky from 'ky-universal';
!(function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = (n[r] = { i: r, l: !1, exports: {} });
return e[r].call(o.exports, o, o.exports, t), (o.l = !0), o.exports;
}
var n = {};
(t.m = e),
(t.c = n),
(t.d = function(e, n, r) {
!(function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = (n[r] = { i: r, l: !1, exports: {} });
return e[r].call(o.exports, o, o.exports, t), (o.l = !0), o.exports;
}
var n = {};
(t.m = e),
(t.c = n),
(t.d = function(e, n, r) {
!(function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = (n[r] = { i: r, l: !1, exports: {} });
return e[r].call(o.exports, o, o.exports, t), (o.l = !0), o.exports;
}
var n = {};
(t.m = e),
(t.c = n),
(t.d = function(e, n, r) {

Keybase proof

I hereby claim:

  • I am maxchehab on github.
  • I am maxchehab (https://keybase.io/maxchehab) on keybase.
  • I have a public key whose fingerprint is 0B65 98A7 268F 8951 5259 6A1D 14E7 072D 5ECD 847C

To claim this, I am signing this object:

import bcrypt from 'bcrypt';
console.time('1 salt round');
bcrypt.hashSync('hello world', 1);
console.timeEnd('1 salt round');
console.time('10 salt round');
bcrypt.hashSync('hello world', 10);
console.timeEnd('10 salt round');
@maxchehab
maxchehab / main.go
Last active November 12, 2019 20:06
package main
import (
"database/sql"
"encoding/json"
"fmt"
"log"
"os/user"
_ "github.com/mattn/go-sqlite3"
import { apiResolver } from "next-server/dist/server/api-utils";
import axios from "axios";
import http from "http";
import listen from "test-listen";
import token from "./token";
const requestHandler = (req: any, res: any) =>
apiResolver(req, res, undefined, token);
@charset 'UTF-8';
/* Slider */
.slick-loading .slick-list
{
background: #fff url('./ajax-loader.gif') center center no-repeat;
}
/* Icons */
@font-face
{
#!/bin/bash
echo "hello world" > /dev/ttys001
echo "this goes to file"
# $ fancy.bash > log
# $ hello world
# $ cat log
# $ this goes to file