Skip to content

Instantly share code, notes, and snippets.

View Ice3man543's full-sized avatar
🏳️
Debugging

Ice3man Ice3man543

🏳️
Debugging
View GitHub Profile
// Forked from https://gist.github.com/MoOx/93c2853fee760f42d97f
// Only change i did was make it return proper color code
var labels = [];
[].slice.call(document.querySelectorAll(".js-label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
description: element.getAttribute("title"),
// using style.backgroundColor might returns "rgb(...)"
@Ice3man543
Ice3man543 / main.go
Created April 8, 2021 19:03
Golang MongoDB connection example
package main
import (
"context"
"time"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/mongo/readpref"
)