Skip to content

Instantly share code, notes, and snippets.

View TranQuocToan1996's full-sized avatar
💻
Hey! Lets Code!

Tran Quoc Toan TranQuocToan1996

💻
Hey! Lets Code!
View GitHub Profile
@psygo
psygo / nginx.md
Created April 15, 2021 00:48
NGINX Fundamentals

nginx

NGINX Fundamentals: High Performance Servers from Scratch | Udemy

About NGINX

  • Developed by Igor Sysoev in 2005 out of frustrations with Apache.
  • It can handle tens of thousands of concurrent connections.
  • Has quickly surged in popularity.
  • It's usually used as a web server, but it's actually a broader type of server: reverse proxy server.
@thomaspoignant
thomaspoignant / Makefile
Last active April 5, 2024 08:50
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@Mohamed2del
Mohamed2del / 3.1.py
Created June 9, 2018 15:06
Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75). You should use input to read a string and float()…
hrs = input("Enter Hours:")
h = float(hrs)
xx = input("Enter the Rate:")
x = float(xx)
if h <= 40:
print( h * x)
elif h > 40:
print(40* x + (h-40)*1.5*x)
@denvaar
denvaar / traversal.go
Created February 12, 2017 21:47
Depth and Breadth-first traversal in a binary tree, implemented in Golang
package main
import "fmt"
type node struct {
value string
left *node
right *node
}