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
var Base = require('./Base'); | |
module.exports = Base.extend({ | |
}); |
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
var http = require('http'); | |
var getTime = function() { | |
var d = new Date(); | |
return d.getHours() + ':' + d.getMinutes() + ':' + | |
d.getSeconds() + ':' + d.getMilliseconds(); | |
} | |
var respond = function(res, str) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end(str + '\n'); | |
console.log(str + ' ' + getTime()); |
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 useState = React.useState; | |
const App = function () { | |
const [ count, change ] = useState(0); | |
console.log(`count is: ${ count }`); | |
return ( | |
<section> | |
<h1>Counter: { count }</h1> | |
<button onClick={ () => change(count + 1) }> | |
Click me |
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 spawn = require("child_process").spawn; | |
const KEEP_AT_LEAST = 2; | |
const CONTAINER_REGISTRIES = [ | |
"gcr.io/<your project name>", | |
"eu.gcr.io/<your project name>/gcf/europe-west3" | |
]; | |
async function go(registry) { | |
console.log(`> ${registry}`); |
OlderNewer