make sure ./assets/static
exists:
for angular, its should be located in ./src/assets/static
# fuck you starter pack ICANT ALERT | |
npm create vite | |
npm i | |
npm install -D tailwindcss postcss autoprefixer | |
npx tailwindcss init -p | |
npm i jquery | |
npm i --save-dev @types/jquery |
<div class="grid items-center justify-center"> | |
<div>centered</div> | |
</div> |
<label for="serial-no" class="flex"> | |
<span>serial no</span> | |
<div class="flex-1"><input id="serial-no" class="w-full h-full" placeholder="serial-no"></div> | |
</label> |
func main() { | |
r := chi.Router() | |
r.Use(Basic()) | |
r.Use(Static("/static", "server2/static")) | |
http.ListenAndServe(":3000", r) | |
} | |
type Middleware func(next http.Handler) http.Handler | |
func Basic() Middleware { |
.git/ |
function readBody(req) { | |
return new Promise((resolve, reject) => { | |
let body = ""; | |
req.on("data", (chunk) => { body += "" + chunk; }); | |
req.on("end", () => { resolve(body); }); | |
req.on("error", (err) => { reject(err); }); | |
}); | |
} |
import sys | |
class BinTree(): | |
def __init__(self, value): | |
self.__value = value | |
self.__left = None | |
self.__right = None | |
def value(self): | |
return self.__value |
ng serve --host $(hostname -I | cut -f1 -d' ') |