- pyenv curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash follow instructions and add PYENV_ROOT
edit ~/.bashrc
Add this to end
export PYENV_ROOT="$HOME/.pyenv"
edit ~/.bashrc
Add this to end
export PYENV_ROOT="$HOME/.pyenv"
import { generateSequence } form './simple' | |
class NumberTransfrormer { | |
transform = async function*(gen: AsyncGenerator<number>) { | |
for await (const n of gen) { | |
yield n * 2; | |
} | |
} | |
} |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters" : { | |
"MainDomainName": { | |
"Description": "public pretty FQDN for cloudfront", | |
"Type": "String", | |
"Default": "example.com" | |
}, | |
"AcmCertificateArn": { | |
"Description": "AWS certificate ID for cloudfront", |
version: '3.7' | |
services: | |
test-node: | |
image: node:10 | |
environment: | |
NODE_ENV: ${NODE_ENV:-dev} | |
PORT: 8080 | |
working_dir: /home/node/app | |
volumes: |
#!/usr/bin/env bash | |
i=0 | |
sp='/-\|' | |
n=${#sp} | |
STATUS='Created' | |
while [[ $STATUS == 'InProgress' || $STATUS == 'Created' ]] | |
do | |
sleep 1 |
stages: | |
- clean | |
- build | |
- check | |
variables: | |
## docker image names inside the YML file to use | |
CI_REGISTRY_IMAGE_c: $CI_REGISTRY_IMAGE/dev:${CI_COMMIT_SHORT_SHA} | |
CI_REGISTRY_IMAGE_l: $CI_REGISTRY_IMAGE/dev:latest | |
CI_REGISTRY_IMAGE_i: services_${CI_BUILD_ID}_api_v2 |
function abstractMethod() { | |
return function (target, propertyKey: string, descriptor: PropertyDescriptor) { | |
console.log("am(): called"); | |
function abstractMethod() { | |
throw new TypeError('It is abstract method, this error should never be thrown') | |
} | |
abstractMethod.__abstractMethod = true; | |
descriptor.value = abstractMethod; | |
} | |
} |
alias grep='grep --color=auto' | |
alias ls='ls --color=auto' | |
#PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' | |
git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; } | |
BRANCH='\033[00;33m$(git_branch)\033[0m' | |
PSC() { echo -ne "\[\033[${1:-0;38}m\]"; } | |
PR="1;36" # default color used in prompt is green | |
if [ "$(id -u)" = 0 ]; then |