Skip to content

Instantly share code, notes, and snippets.

View hernanhrm's full-sized avatar
🏠
Working from home

Hernan Reyes hernanhrm

🏠
Working from home
View GitHub Profile
vim.g.base46_cache = vim.fn.stdpath('data') .. '/base46_cache/'
  • Make sure nvconfig module is in your path ( remove last line's chadrc stuff )

Install plugin

  • Base46 just compiles your theme + settings into bytecode , so its not a startup plugin.
@alexyslozada
alexyslozada / download-from-browser.js
Created June 21, 2022 22:24
How to export / download data as text / csv file
// This data is a mock from your real data
const data = [{"name": "apple"}, {"name": "onion"}, {"name": "banana"}]
// We want to write this data into a string
const dataToString = data => {
let resp = ""
data.forEach(e => resp += e.name + "\n")
return resp
}
@jpillora
jpillora / smtp-gmail-send.go
Last active March 5, 2024 21:26
Send email using Go (Golang) via GMail with net/smtp
package main
import (
"log"
"net/smtp"
)
func main() {
send("hello there")
}