Skip to content

Instantly share code, notes, and snippets.

@Zmetser
Zmetser / input.scss
Created April 29, 2022 09:59
Generated by SassMeister.com.
// https://sass-lang.com/
// Preprocessing
/*************
* Variables *
*************/
$base-color: #c6538c; // nincs kulonbseg a - es _ kozott $base_color == $base-color
$border-dark: rgba($base_color, 0.88);
@Zmetser
Zmetser / amp-ima-video.html
Created April 23, 2020 11:17
The parent tag of tag 'audio > track' is 'track', but it can only be 'audio'.
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<link rel="canonical" href="self.html" />
<meta name="viewport" content="width=device-width,minimum-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async="" custom-element="amp-ima-video" src="https://cdn.ampproject.org/v0/am
/* @flow */
type Slide = {| id: number |}
class Test {
slidesWithAds: Array<Slide> = [{id: 2}];
getNonAdSlideIndex(indexWithAds: number): ?Slide {
return this.slidesWithAds[indexWithAds];
}
}
/* @flow */
type Slide = {| id: number |}
class Test {
slidesWithAds: Array<Slide> = [{id: 2}, {id: 4}];
getNonAdSlideIndex(indexWithAds: number): ?Slide {
return this.slidesWithAds[indexWithAds];
}
}
/* @flow */
type Slide = {| id: number |}
class Test {
slidesWithAds: Array<Slide> = [{id: 2}, {id: 4}];
getNonAdSlideIndex(indexWithAds: number): ?Slide {
return this.slidesWithAds[indexWithAds];
}
}

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Zmetser
Zmetser / .babelrc
Created November 13, 2017 10:41
babelify, browserify, uglifyjs
{
"presets": [
[
"es2015"
]
]
}
@Zmetser
Zmetser / class-union.js
Last active April 10, 2018 14:09
This class union refinement with instanceof takes a lot longer that one'd think. (~10s)
// @flow
class Base {}
class A extends Base {}
class AA extends Base {}
class AB extends Base {}
class AC extends Base {}
class AD extends Base {}
class AE extends Base {}
class AF extends Base {}
{
"title" : "This new ASUS tablet pc is dope",
"score" : "A+",
"reviewData" : [
{
"title" : "Specs",
"content" : "Intel i7 CPU, very good, very good, also an NVidia GPU"
},
{
"title" : "Benchmark results",
@Zmetser
Zmetser / yarn_build_error.txt
Created March 23, 2017 11:31
The first is what I get after running `yarn build` under `packages/kinja-components` in the branch `components-topnav`
yarn build v0.21.3
$ ./.scripts/build.js
✓ Previous build cleaned up.
✓ Webpack config generated.
chunk {0} components/icon-set.js, components/icon-set.js.map (components/icon-set) 10.2 kB {4} [initial] [rendered]
chunk {1} components/network-nav.js, components/network-nav.css, components/network-nav.js.map, components/network-nav.css.map (components/network-nav) 3.08 kB {4} [initial] [rendered]
chunk {2} components/counter.js, components/counter.css, components/counter.js.map, components/counter.css.map (components/counter) 3.06 kB {4} [initial] [rendered]
chunk {3} components/icon.js, components/icon.js.map (components/icon) 902 bytes {4} [initial][