Skip to content

Instantly share code, notes, and snippets.

View Gozala's full-sized avatar
😱
Oh well

Irakli Gozalishvili Gozala

😱
Oh well
View GitHub Profile
// @flow strict
type SourceMapConsumer = {}
type Mapping = {}
type RawSourceMap = {}
type SourceMapGenerator = {}
type AcceptedPlugin = Plugin<any> | Transformer | {
postcss: TransformCallback | Processor;
} | Processor;
@Gozala
Gozala / freeze-dry.js
Created April 11, 2019 23:02
Lazy freeze-dry
// @flow strict
import { extractLinksFromDom, extractLinksFromCss } from './extract-links/index.js'
import { documentOuterHTML, pathForDomNode, domNodeAtPath, postcss } from './package.js'
import { Interface } from 'readline';
import { makeLinksAbsolute } from './dry-resources.js';
import makeDomStatic from './make-dom-static/index.js';
import setMementoTags from './set-memento-tags.js'
import setContentSecurityPolicy from './set-content-security-policy/index.js'
interface Format<a> {
format:Format;
defaultHashAlgorithm: string;
encode(a):Promise<Bytes<a>>;
decode(Bytes<a>):Promise<a>;
}
opaque type Bytes<a>:Uint8Array = Uint8Array
type BlockData<a> = Concat<Format, Bytes<a>>
opaque type Concat<a:Uint8Array, b:Uint8Array>:Uint8Array = Uint8Array
@Gozala
Gozala / buld
Created January 16, 2019 22:45
Build error
0:06.40 js/src/rust/force-cargo-library-build
0:06.40 toolkit/library/rust/force-cargo-library-build
0:06.40 js/src/frontend/binsource/force-cargo-host-program-build
0:06.49 toolkit/crashreporter/rust/force-cargo-host-library-build
0:07.90 Blocking waiting for file lock on build directory
0:07.90 Blocking waiting for file lock on build directory
0:08.10 Finished release [optimized] target(s) in 1.56s
0:08.19 testing/geckodriver/force-cargo-program-build
0:08.22 Finished release [optimized] target(s) in 1.73s
0:08.32 mfbt
Check out this DApp I'm using on Status: https://get.status.im/browse/peepeth.com
@Gozala
Gozala / lunet.log
Last active December 14, 2018 18:12
This file has been truncated, but you can view the full file.
2018-12-14 18:12:18.701654 UTC - [Parent 7175: Main Thread]: D/nsHttp nsHttpHandler::NewProxiedChannel [proxyInfo=0x0]
2018-12-14 18:12:18.701764 UTC - [Parent 7175: Main Thread]: V/nsHttp Creating HttpBaseChannel @0x12fdb0000
2018-12-14 18:12:18.701787 UTC - [Parent 7175: Main Thread]: D/nsHttp Creating nsHttpChannel [this=0x12fdb0000]
2018-12-14 18:12:18.701809 UTC - [Parent 7175: Main Thread]: E/nsHttp HttpBaseChannel::Init [this=0x12fdb0000]
2018-12-14 18:12:18.701824 UTC - [Parent 7175: Main Thread]: E/nsHttp host=lunet.link port=-1
2018-12-14 18:12:18.701837 UTC - [Parent 7175: Main Thread]: E/nsHttp uri=https://lunet.link/planet
2018-12-14 18:12:18.701855 UTC - [Parent 7175: Main Thread]: E/nsHttp nsHttpChannel::Init [this=0x12fdb0000]
2018-12-14 18:12:18.707281 UTC - [Parent 7175: Main Thread]: D/nsHttp nsHttpHandler::Observe [topic="net:current-toplevel-outer-content-windowid"]
2018-12-14 18:12:18.707526 UTC - [Parent 7175: Main Thread]: D/nsSocketTransport STS dispatch [0x13093bc40]
2018-12-14 18:12
Verifying my Blockstack ID is secured with the address 1BYXhnj3VhU8ndrdsbn329Y2TEHxEMn3gt https://explorer.blockstack.org/address/1BYXhnj3VhU8ndrdsbn329Y2TEHxEMn3gt
@Gozala
Gozala / popup.js
Created October 12, 2018 00:24
narrate hack
var extension = {id:"7cc71529-5b04-d84b-8473-aca5e6791051"}
var panel = document.createXULElement("panel")
panel.classList.add("popup-notification-panel");
panel.setAttribute("followanchor", true)
panel.setAttribute("type", "arrow")
popupnotification = document.createXULElement("popupnotification")
popupnotification.setAttribute("label", "");
popupnotification.setAttribute("name", "label name");
@Gozala
Gozala / task.js
Created October 10, 2018 17:53
Flow generator hackery to make it make it infer types
/* @flow strict */
type Future<x, a> = () => Task<x, a>
type Task<x, a> = {
@@iterator(): $Iterator<empty, a, empty>;
next(empty): IteratorResult<empty, a>;
return(a): IteratorResult<empty, a>;
throw(x): IteratorResult<empty, a>;

Keybase proof

I hereby claim:

  • I am gozala on github.
  • I am gozala (https://keybase.io/gozala) on keybase.
  • I have a public key ASC1p7w_BQybiSNmeAzX3PuBVbPHyvp8j8Kc3wKZF_Xw5Qo

To claim this, I am signing this object: