Skip to content

Instantly share code, notes, and snippets.

View Sasha-hk's full-sized avatar
🏠
Working from home

Oleksandr Petryk Sasha-hk

🏠
Working from home
  • Ukraine
  • 14:40 (UTC +02:00)
View GitHub Profile

Html

Base structure

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
@Sasha-hk
Sasha-hk / assembler-example.md
Last active June 14, 2022 18:57
Hello world on assembler

Assembler on Linux

Hello world:

section     .text
global      _start 
_start: 
    mov     edx,len   
 mov ecx,msg 

PostgreSQL on Linux

installation

One of the possible options:

apt install postgresql

Git tutorial

Create repository

Create repository:

git init

Make file example

CC=g++
CFLAGS=-g -w -Wall

main: main.o
	$(CC) $(CFLAGS) -o main main.o

main.o: ./src/main.cpp algorithm.o cli.o

Debugging C++ with VS Code on linux

Launch.json:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",

GitHub Actions continuous deployment workflow

Workflow config:

name: CD

on:
  push:
 branches:

Good design tips for your README file

Describe:

  • what is your project about
  • tech stack
  • APIs you use
  • database structure on the chart
  • API reference
  • requirements document

Input function in pure Node.js

Code:

const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});