nvm
is a version manager for node.js, It helps to easily switch between various versions of node very easily.
Follow the steps here.
FROM node:alpine | |
COPY . /app | |
WORKDIR /app | |
RUN npm install | |
CMD ["npm", "start"] |
nvm
is a version manager for node.js, It helps to easily switch between various versions of node very easily.
Follow the steps here.
#!/bin/bash | |
PAD_NAME=$(xsetwacom --list devices | grep pad | cut -f 1 | awk '{$1=$1;print}') | |
xsetwacom --set "${PAD_NAME}" Button 1 "key +ctrl +c -c -ctrl" | |
xsetwacom --set "${PAD_NAME}" Button 2 "key +ctrl +v -v -ctrl" | |
xsetwacom --set "${PAD_NAME}" Button 3 "key +ctrl +z -z -ctrl" | |
xsetwacom --set "${PAD_NAME}" Button 8 "key +ctrl +a -a -ctrl" | |
xsetwacom --set "${PAD_NAME}" Button 9 "key +BackSpace -BackSpace" | |
xsetwacom --set "${PAD_NAME}" Button 11 "key +ctrl + -ctrl" | |
xsetwacom --set "${PAD_NAME}" Button 12 "key +ctrl - -ctrl" |
#include <bits/stdc++.h> | |
using namespace std; | |
void insertBucket(vector<vector<float>> &buckets, float value, int n) { | |
int index = n * value; | |
buckets[index].push_back(value); | |
sort(buckets[index].begin(), buckets[index].end()); | |
} | |
void bucketSort(vector<float> &arr, vector<vector<float>> &buckets, int n, |
version: <version> | |
services: | |
mongodb: | |
image: mongo | |
container_name: mongodb | |
environment: | |
- MONGO_INITDB_ROOT_USERNAME=<root> | |
- MONGO_INITDB_ROOT_PASSWORD=<root_pass> | |
volumes: |
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "hello world!" | |
if __name__ == "__main__": | |
app.run(host="0.0.0.0") |
import base64 | |
import zlib | |
def b64encode(data): | |
encoded = base64.encodebytes(data) | |
return encoded | |
def b64decode(data, filename): | |
decoded = base64.decodebytes(data) | |
image = open(filename, 'wb') |
{ | |
"cmd": ["g++", "-std=c++17", "-Wextra", "-Wshadow", "-Wall", "-DLOCAL_MACHINE", "-fsanitize=undefined", "$file", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++, source.cxx, source.cpp", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"shell": true, |
NOTE: Make sure you add bin
to the path for you to be able to run the command.
$ sudo service postgress start