Ccheatsheetmakerincheatsheetmaker.hashnode.dev·Jun 28, 2021 · 2 min readJQ cheatsheetJQ is a lightweight and flexible command-line JSON processor. This is a cheatsheet of commands and function that I’ve found useful for quick reference. You can get full JQ Cheat Sheet Here . Common usages Here are some common ways jq is utilized. Pi...00
Ccheatsheetmakerincheatsheetmaker.hashnode.dev·Jun 15, 2021 · 1 min readDplyr Cheat SheetDplyr cheat sheet is a quick reference for dplyr that is a grammar of data manipulation, providing a consistent set of verbs that help you solve the most common data manipulation challenges. Summary Installation [Data Transformation] Combine Tables...00
Ccheatsheetmakerincheatsheetmaker.hashnode.dev·Jun 7, 2021 · 1 min readGolang Cheat SheetFiles Embedding package main import ( "embed" "log" "net/http" ) // content holds the static content (2 files) or the web server. //go:embed a.txt b.txt var content embed.FS func main() { http.Handle("/", http.FileServer(http.FS(co...00
Ccheatsheetmakerincheatsheetmaker.hashnode.dev·Jun 7, 2021 · 1 min readPySpark Cheat SheetSort >>> rdd2.sortBy(lambda x: x[1]).collect() #Sort RDD by given function [('d' ,1), ('b' ,1), ('a',2)] >>> rdd2.sortByKey().collect() #Sort (key, value) RDD by key [('a' ,2), ('b' ,1), ('d' ,1)] Mathematical Operations >>> rdd.subtract(rdd2)....00
Ccheatsheetmakerincheatsheetmaker.hashnode.dev·Jun 7, 2021 · 1 min readBookshelf.Js Cheat SheetCRUD Book.create({ title: '..' }).save() new Book({ title: '..' }).save() new Book({ id: 1 }).fetch() Book.where({ id: 1 }).fetch() Book.where('favorite_color', 'red').fetch() Book.where('favorite_color', '<>', 'red').fetch() Book .query((q) => q...00