Skip to content

Instantly share code, notes, and snippets.

Avatar
Charged

Sasha Koss kossnocorp

Charged
View GitHub Profile
View 1.js
var errorsStash = []
var errorListener = function(e) {
errorsStash.push(e.error)
}
var unhandledRejectionListener = function(e) {
errorsStash.push(e.reason)
}
window.addEventListener('error', errorListener)
window.addEventListener('unhandledrejection', unhandledRejectionListener)
window.__passOnToSentry__ = function() {
@kossnocorp
kossnocorp / Makefile
Last active Oct 13, 2019
Demo of the problem for a Stack Overflow questions
View Makefile
SHELL := /bin/bash
PATH := $(shell yarn bin):$(PATH)
test:
which ts-node
${shell yarn bin}/ts-node --version
ts-node --version
View asd.diff
diff --git a/tsconfig.json b/tsconfig.json
index 42d6d90..b64255d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
/* Basic Options */
- "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
+ "target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
View enso.ts
export type Setter<State> = (currentState: State) => State
export type Listener<State> = (
newState: State,
prevState: State | undefined
) => void
export default function createState<State>() {
let currentState: State
let listener: Listener<State>
View illustration.js
var h = __webpack_require__(/*! preact */ "preact").h;
module.exports = function Svg() {
return h("svg", {
viewBox: "0 0 366 398",
version: "1.1",
xmlns: "http://www.w3.org/2000/svg",
xmlnsXlink: "http://www.w3.org/1999/xlink"
}, h("defs", null, h("path", {
d: "M169.849194,128.128173 C168.329645,126.029695 165.902417,128.128173 165.902417,128.128173 C165.902417,128.128173 120.674538,107.869797 134.940882,18.4020305 L98.2131611,7.82893401 L80.3047607,2.98629442 L78.483327,2.38096447 L70.2878886,0.24213198 L69.9843839,0.564974619 C69.9843839,0.564974619 52.6829929,28.9751269 32.649654,54.0761421 C9.8843673,82.1634518 9.58086256,119.976396 9.58086256,119.976396 C9.58086256,119.976396 3.51036256,117.232234 1.08191943,120.581726 C-1.34611848,124.213706 1.08191943,127.522843 1.08191943,127.522843 L51.7724787,152.906345 C51.7724787,152.906345 56.0219502,148.386548 55.4149408,146.247716 C54.8075261,144.149239 54.5040213,141.122589 54.5040213,141.122589 C54.5040213,141.122589 64.8243981,112.38
View index.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var index_js = require('./addBusinessDays/index.js');
var index_js$1 = require('./addDays/index.js');
var index_js$2 = require('./addHours/index.js');
var index_js$3 = require('./addISOWeekYears/index.js');
var index_js$4 = require('./addMilliseconds/index.js');
var index_js$5 = require('./addMinutes/index.js');
View spacing.css
@import '#app/imports';
.H,
.V,
.El {
display: grid;
}
.H,
.El-horizontal {
@kossnocorp
kossnocorp / v2-pre-releases.md
Last active Oct 3, 2019
date-fns v2 pre-releases change log
View v2-pre-releases.md
You can’t perform that action at this time.