Skip to content

Instantly share code, notes, and snippets.

View luxarts's full-sized avatar
🇦🇷

Lucas M. Bacelo luxarts

🇦🇷
  • MODO
  • Argentina
View GitHub Profile
@luxarts
luxarts / oauth.go
Created October 13, 2023 06:58
Google OAuth2 Example
package main
import (
"bufio"
"context"
"crypto/sha256"
"encoding/base64"
"fmt"
"github.com/google/uuid"
"github.com/joho/godotenv"
@luxarts
luxarts / staccktrace.go
Created August 12, 2021 17:03
Golang stacktrace
func getStackTrace() string {
// Method stack trace
pc := make([]uintptr, 10) // Last traces
n := runtime.Callers(2, pc) // Discard first (callers) and second (this function) values
if n == 0 {
return ""
}
pc = pc[:n] // Apply some magic
let A = [3,8,2,3,3,2];
let B = [7,1,2,8,2];
let C = [3,1,4,1,5];
let D = [5,5,5,5,5];
let E = [0];
let F = [1];
let G = [2,2,2,1];
/* @brief Obtiene el mayor número de una lsita que se repite a si mismo la misma cantidad de veces que su valor.
* @param list: Lista de números enteros