Skip to content

Instantly share code, notes, and snippets.

View Glatharth's full-sized avatar
💭
:)

Paulo Henrique Lisboa Glatharth

💭
:)
View GitHub Profile
@Glatharth
Glatharth / lua.json
Last active July 19, 2023 17:13
Canary snippet
{
"action:onUse": {
"prefix": "action:onUse(callback)",
"body": [
"${1:action}:onUse(${2:callback})"
],
},
"action:register": {
@Glatharth
Glatharth / ipcalc.go
Created May 11, 2022 22:27 — forked from kotakanbe/ipcalc.go
get all IP address from CIDR in golang
package main
import (
"net"
"os/exec"
"github.com/k0kubun/pp"
)
func Hosts(cidr string) ([]string, error) {
@Glatharth
Glatharth / #__vscode_functions.lua
Created August 18, 2021 23:36 — forked from Zbizu/#__vscode_functions.lua
Visual Studio Code globals for Lua scripting in TFS 1.3
-- what is it:
-- this is a file designed to make vs code's Lua extension intellisense working properly
-- it contains placeholders for Lua content defined by C++ files
-- how to use:
-- download vs code
-- install sumneko's lua extension
-- drop this file to your data/scripts folder
-- make sure it starts with # so it won't get loaded by the tfs
-- open folder in vs code
-- https://www.youtube.com/watch?v=o5_mqZKhTvw&t=308s&ab_channel=CarlosMingoto
-- local clock = os.clock()
local cartesian = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
@Glatharth
Glatharth / cloudSettings
Last active August 19, 2019 20:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-08-19T20:29:41.492Z","extensionVersion":"v3.4.1"}