This file contains hidden or 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
.no-ligature { | |
font-variant-ligatures: none; | |
} |
This file contains hidden or 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
// our GraphQL Query, | |
// get the name and ID of some Starships | |
export const getStarships = gql` | |
query getStarships { | |
starshipList { | |
items { | |
name | |
id | |
} |
This file contains hidden or 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
# deprecate a single version | |
npm deprecate [email protected] "this version is not supported any more, pelase update" | |
# deprecate everything below a version | |
# mind the double-qoutes around the version information! | |
npm deprecate my-module@"< 1.0.4" "critical bug fixed in 1.0.4, please update" |
This file contains hidden or 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
// using strict mode | |
var fn3 = function (a) { | |
"use strict"; | |
a = "foo" | |
console.log(arguments[0]) | |
} | |
// arguments, and the arguments object no longer track each other | |
fn3(2) // 2 |
This file contains hidden or 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
# cache this kind of resource for an hour | |
type Person@cacheControl(maxAge: 3600) { | |
id: ID! | |
name: String! | |
height: Int | |
bio: String | |
# cache the image field for a week | |
picture: String @cacheControl(maxAge: 10080) |
This file contains hidden or 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
// our GraphQL Query, | |
// get the name and ID of some Starships | |
export const getStarships = gql` | |
query getStarships { | |
starshipList { | |
items { | |
name | |
id | |
} |
This file contains hidden or 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
div.registration_billing_address_vat_number:after { | |
display: block; | |
content: "If you buy your ticket as an individial, or you don\'t have an EU VAT number, please enter a number 0 here"; | |
width: 100%; | |
color: #777; | |
margin-top: 4px; | |
margin-bottom: 4px; | |
font-size: 12px; |
This file contains hidden or 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 crypto = require('crypto') | |
const fs = require('fs') | |
const util = require('util') | |
const writeFile = util.promisify(fs.writeFile) | |
const randomBytes = util.promisify(crypto.randomBytes) | |
void async function () { | |
const data = await randomBytes(1024) |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Binary streaming using Fetch</title> | |
</head> | |
<body> | |
<h1>Binary streaming using Fetch</h1> | |
<img src=""> |