This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"@version": 1.1, | |
"Passport": { | |
"@context": { | |
"@protected": true, | |
"@version": 1.1, | |
"@vocab": "https://big-plato.com/vocab#Passport", | |
"Surname": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@version": 1.1, | |
"@protected": true, | |
"@id": "https://big-plato.com/vocab/CustomVc", | |
"@context": { | |
"@protected": true, | |
"@vocab": "https://big-plato.com/vocab/CustomVc#", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"foo": { "@type": "xsd:string" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
{bash_runfiles} | |
runfiles_export_envvars | |
$(rlocation {cli}) --config $(rlocation {config}) {targets} | sed 's/^.*\.runfiles\/[^/]*\///g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const dictionary = new WeakMap(); | |
const fallbacks = new Map(); | |
const VALUE = '_value'; | |
function resolveLeaf(target, path) { | |
const tail = path.reduce((branch, item) => { | |
if (!branch.has(item)) branch.set(item, new Map()); | |
return branch.get(item); | |
}, target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Every render (without JssProvider) | |
"default" 0 0 | |
"secondary" 0 1 | |
"native" 0 2 | |
"default" 0 3 | |
"secondary" 0 4 | |
"native" 0 5 | |
".default-0-0:hover" 0 6 | |
".default-0-0:active" 0 7 | |
".default-0-0:visited" 0 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jest/module-transformer.js | |
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
const crypto = require('crypto'); | |
const { execSync } = require('child_process'); | |
const hashFiles = require('hash-files'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pageInfo = Array | |
.from(document.querySelectorAll('*')) | |
.map(element => { | |
const computedStyles = window.getComputedStyle(element); | |
const styles = ['color', 'background-color'].reduce((result, name) => { | |
result[name] = computedStyles.getPropertyValue(name); | |
return result; | |
}, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const defaults = { | |
filename: 'versions.json', | |
}; | |
class HashDictionaryPlugin { | |
constructor(options) { | |
this.options = Object.assign({}, defaults, options); | |
} | |
apply(compiler) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import stream from 'stream'; | |
import gulp from 'gulp'; | |
import {File} from 'gulp-util'; | |
import rename from 'gulp-rename'; | |
import through from 'through2'; | |
import buffer from 'vinyl-buffer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stateStream = new Bacon.Bus(); | |
const appState = stateStream | |
.filter(Boolean) | |
.scan({}, (a, b) => Object.assign({}, a, b)); | |
const incomingData = Bacon.fromBinder(createBinderToSockets(sockets)); | |
const topArrow = Bacon | |
.fromEvent(document.queryElement('#top'), 'click') |
NewerOlder