(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
Watch out, os.IsExist(err) != !os.IsNotExist(err) | |
They are error checkers, so use them only when err != nil, and you want to handle | |
specific errors in a different way! | |
Their main purpose is to wrap around OS error messages for you, so you don't have to test | |
for Windows/Unix/Mobile/other OS error messages for "file exists/directory exists" and | |
"file does not exist/directory does not exist" |
'use strict'; | |
const later = require('later'); | |
const logger = require('./logger')('guard'); | |
const pm2 = require('pm2'); | |
const schedule = later.parse.recur().every(10).second(); | |
// set local timezone | |
later.date.localTime(); |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
[colors] | |
black = #1A1D45 | |
bblack = #2c3073 | |
white = #D7B7BB | |
red = #FF4EA5 | |
green = #7EB564 | |
yellow = #F5B569 | |
blue = #7A89EC | |
magenta = #B66CDC | |
cyan = #6CAC99 |