$ brew cleanup --prune=all
Once the cache is cleared, brew cask will see the latest versions of all Casks.
| import { Injectable } from '@nestjs/common'; | |
| import * as ExcelJS from "exceljs"; | |
| @Injectable() | |
| export class AppService { | |
| getHello(): string { | |
| let wb = new ExcelJS.Workbook(); | |
| let ws = wb.addWorksheet("sample_worksheet"); | |
| ws.columns = [ |
Handling empty data types in the service layer of a TypeScript + NestJS web service involves several strategies to ensure robustness and clarity in your application. Here's a structured approach to managing empty or null data types:
| (require '[clojure.core.async :as a]) | |
| (def xform (comp (map inc) | |
| (filter even?) | |
| (dedupe) | |
| (flatmap range) | |
| (partition-all 3) | |
| (partition-by #(< (apply + %) 7)) | |
| (flatmap flatten) | |
| (random-sample 1.0) |
| (defn bytes-to-int | |
| ([bytes] | |
| (bytes-to-int bytes 0)) | |
| ([bytes offset] | |
| (reduce + 0 | |
| (map (fn [i] | |
| (let [shift (* (- 4 1 i) | |
| 8)] | |
| (bit-shift-left (bit-and (nth bytes (+ i offset)) | |
| 0x000000FF) |
| ....... | |
| :todo-api.middleware/wrap-cors | |
| {:access-control-allow-origin [#todo-api/regex ".*"] | |
| :access-control-allow-methods [:get :put :post :delete]} | |
| :duct.handler/root | |
| {:middleware [#ig/ref :todo-api.middleware/wrap-cors]} | |
| ........ |
| sudo lsof -nPi -sTCP:LISTEN | |
| kill -9 <pid> |
| $ git remote rm origin | |
| $ git remote add origin <git_repo> | |
| $ git config master.remote origin | |
| $ git config master.merge refs/heads/master |
| sudo apt-get install jq | |
| curl -s "https://api.github.com/users/kno3comma14/repos?per_page=100" | jq -r ".[].git_url" | xargs -L1 git clone |