Docker cheatsheet.
-
To get the list of commands:
$ docker
-
To search for images in docker index:
$ docker search tutorial
module.exports = { | |
// ... all your other configs | |
plugins: [ | |
// ... all your other plugins | |
{ | |
resolve: `gatsby-source-contentful`, | |
options: { | |
spaceId: process.env.CONTENTFUL_SPACE_ID, | |
accessToken: process.env.CONTENTFUL_API_KEY, | |
environment: process.env.CONTENTFUL_SPACE_ENVIRONMENT, |
[{ "Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup", "Country": "Afghanistan", "ISO": "AF", "Format": "NNNN", "Regex": "^\\d{4}$" }, { "Note": "With Finland, first two numbers are 22.", "Country": "Åland Islands", "ISO": "AX", "Format": "NNNNN", "Regex": "^\\d{5}$" }, { "Note": "Introduced in 2006, gradually implemented throughout 2007.", "Country": "Albania", "ISO": "AL", "Format": "NNNN", "Regex": "^\\d{4}$" }, { "Note": "First two as in ISO 3166-2:DZ", "Country": "Algeria", "ISO": "DZ", "Format": "NNNNN", "Regex": "^\\d{5}$" }, { "Note": "U.S. ZIP codes (range 96799)", "Country": "American Samoa", "ISO": "AS", "Format": "NNNNN (optionally NNNNN-NNNN or NNNNN-NNNNNN)", "Regex": "^\\d{5}(-{1}\\d{4,6})$" }, { "Note": |
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls |
Docker cheatsheet.
To get the list of commands:
$ docker
To search for images in docker index:
$ docker search tutorial
import colr from 'colr'; | |
let colorTemperature = function(t) | |
{ | |
// Map the temperature to a 0-1 range | |
var a = (t + 30)/60; | |
a = (a < 0) ? 0 : ((a > 1) ? 1 : a); | |
// Scrunch the green/cyan range in the middle | |
var sign = (a < .5) ? -1 : 1; |
<p data-overflow>Olá Daniel Nass, como está você meu filho?</p> |
{ | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"dev": "webpack-dev-server --config webpack.dev.js" | |
}, | |
"devDependencies": { | |
"babel-core": "^6.14.0", | |
"babel-loader": "^6.2.5", | |
"babel-preset-es2015": "^6.14.0", | |
"html-webpack-plugin": "^2.22.0", |
HTMLElement.prototype.css = function (style) { | |
for (let k in style) { | |
this.style[k] = style[k]; | |
} | |
}; | |
// Example 1 | |
document.body.css({ | |
backgroundColor: 'rgb(20,20,20)', | |
fontFamily: 'Arial, sans-serif', |
{ | |
"config": { | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "upper", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, |
<?php | |
/** | |
* The page permalink by slug | |
* @param string $slug The page slug | |
* @return string The permalink | |
*/ | |
function page_permalink_by_slug($slug) { | |
return get_permalink( get_page_by_path( $slug ) ); | |
} |