- Block scopes with
let
andconst
let
infor
loop rebinds variable on each iteration
- lexical
this
(instead of dynamic one) with arrow functions - method definitions ?
- shorthand object properties
var = {foo, bar}
- computed property names
{ [name()]: value }
- getter & setter methods
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
#!/usr/bin/env bash | |
# based on https://jamielinux.com/docs/openssl-certificate-authority/index.html | |
# TODO: check if root | |
set -e | |
ROOT_STORE=/etc/ssl/caroperator-svc/root | |
ROOT_KEY=$ROOT_STORE/private/ca.key | |
ROOT_CERT=$ROOT_STORE/certs/ca.cert |
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 fs = require('fs'); | |
const path = require('path'); | |
const solc = require('solc'); | |
const Web3 = require('web3'); | |
const web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
function compile(src) { |
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> | |
<head> | |
<meta charset="utf-8"> | |
<link href='https://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'> | |
<style> | |
@page { | |
size: landscape; | |
} |
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> | |
<head> | |
<meta charset="utf-8"> | |
<link href='https://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'> | |
<style> | |
@page { | |
size: landscape; | |
} |
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> | |
<head> | |
<meta charset="utf-8"> | |
<link href='https://fonts.googleapis.com/css?family=Raleway:500' rel='stylesheet' type='text/css'> | |
<style> | |
@page { | |
size: landscape; | |
} |
Here is a query adopted from blog.jooq.org:
explain analyze with
dates(d) as
(select distinct date(ctime)
from "Event"
where modelname='Partner'
and type = 'Update'
and userid = 193
TODO: split by topic (code quality, process quality), order by stars
- ★★★ Act with prudence
- technical debt is like a loan: the longer you have it, the worse it gets
- Martin Fowler distinguishes
- deliberate technical debt
- inadvertent technical debt
- add a ticket and ensure it does not get forgotten
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
with | |
events as | |
(select | |
modelid as ctr, | |
ctime, | |
(patch->>'isActive')::bool as isActive | |
from "Event" | |
where modelname = 'Contract' | |
and type = 'Update' | |
and (patch->>'isActive')::bool is not null |
https://university.mongodb.com/courses/M202/about
- Memory model
- mmap (deprecated after introducing WiredTiger engine)
- Working set (portion of data that is accessed most often)
- indexes
- subset of data