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
// NOT WORKING! // | |
.dc-button { | |
// common styles | |
a& { | |
// styles for <a> element | |
} |
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
.dc-button { | |
/* common styles */ | |
} | |
a.dc-button { | |
/* styles for <a> element */ | |
} | |
button.dc-button { | |
/* styles for <button> element */ |
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
server { | |
listen 80 default_server; | |
root /var/www; | |
location / { | |
set $cors ''; | |
set $cors_allowed_methods 'OPTIONS, HEAD, GET'; | |
if ($http_origin ~ '^https?://(www\.)?example.com$') { | |
set $cors 'origin_matched'; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Cache Test Redirect</title> | |
</head> | |
<body> |
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
import {runCLI} from 'jest-cli'; | |
import ProjectConfig = jest.ProjectConfig; | |
const projectRootPath = '/path/to/project/root'; | |
// Add any Jest configuration options here | |
const jestConfig: ProjectConfig = { | |
roots: ['./dist/tests'], | |
testRegex: '\\.spec\\.js$' |
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 Metalsmith = require('metalsmith'); | |
const inPlace = require('metalsmith-in-place'); | |
Metalsmith(__dirname) | |
.source('./src') | |
.destination('./build') | |
.use(inPlace({ | |
pattern: '**/*.njk', | |
engineOptions: { |
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 requests = [ | |
{requestId: 't2', startedAt: 1489744808, ttl: 8}, | |
{requestId: 't3', startedAt: 1489744803, ttl: 3}, | |
{requestId: 't1', startedAt: 1489744806, ttl: 12}, | |
{requestId: 't4', startedAt: 1489744810, ttl: 1} | |
]; | |
let min = requests[0].startedAt; |
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 numbers = [2, 4, 6, 8, 9, 15]; | |
// Expected result: [4, 16, 64] | |
// Sorting numbers ascending. | |
numbers.sort((n1, n2) => n1 > n2); | |
const firstNumber = numbers[0]; | |
const lastNumber = numbers[numbers.length - 1]; |
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
server { | |
listen 80 default_server; | |
root /var/www; | |
location /health-check { | |
try_files /health-check.html =404; | |
} |
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
$ systemd-resolve --status | |
Global | |
DNSSEC NTA: 10.in-addr.arpa | |
16.172.in-addr.arpa | |
168.192.in-addr.arpa | |
17.172.in-addr.arpa | |
18.172.in-addr.arpa | |
19.172.in-addr.arpa | |
20.172.in-addr.arpa | |
21.172.in-addr.arpa |