This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
#!/usr/bin/env node | |
// babel's cli option --copy-files will override the --ignore setting | |
// so copy resources like this | |
require('fs-extra').copy( | |
process.argv.slice(-2).shift(), | |
process.argv.slice(-2).pop(), | |
{ filter: (src,dist)=>{ return (src.match(/\.js|\.jsx|stories|test/)===null)} }, | |
err => { if (err) return console.error (err); console.log ('Copy success!'); |
function changes -d "Generate a Markdown changelog from conventional commits" -a target | |
# Use fallback variables if no arguments were given. | |
if test (count $argv) -eq 0 | |
set target master | |
end | |
# Include commit message, author name, and the short hash in parentheses. | |
set -l log_format "%s (_%aN_) (%h)" |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
/* | |
Let us re-create `Promise.all` | |
`Promise.all` method returns a promise that resolves when all of the promises in the iterable argument have resolved, | |
or rejects with the reason of the first passed promise that rejects. | |
Read more about `Promise.all` on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all | |
A basic example would be something like this: | |
import React from 'react'; | |
import Counter from './counter'; | |
const mapProps = ({ state, dispatch }) => ({ | |
count: state, | |
increment: () => dispatch({ | |
type: 'increment', | |
}), | |
decrement: () => dispatch({ |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ [email protected]
// This is an advanced example! It is not intended for use in application code. | |
// Libraries like Relay may make use of this technique to save some time on low-end mobile devices. | |
// Most components should just initiate async requests in componentDidMount. | |
class ExampleComponent extends React.Component { | |
_hasUnmounted = false; | |
state = { | |
externalData: null, | |
}; |
In this talk we will be all discussing the origin of the furry fandom. How we will thogheter create a new furry-in-js framework. We will going over how they have changed the current fandom world, our hearts and the js world in 5 very awesome minutes! This talk is to prove a point that stars mean nothing in this case.
''' | |
Copyright (C) 2018 by Daniel Foose | |
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE | |
''' | |
import re | |
import docker |
if ('NodeList' in window && !NodeList.prototype.forEach) { | |
console.info('polyfill for IE11'); | |
NodeList.prototype.forEach = function (callback, thisArg) { | |
thisArg = thisArg || window; | |
for (var i = 0; i < this.length; i++) { | |
callback.call(thisArg, this[i], i, this); | |
} | |
}; | |
} |