Skip to content

Instantly share code, notes, and snippets.

Avatar

Luiz Aoqui lgfa29

View GitHub Profile
View draggable.js
(function(dragClass, dropZoneId) {
//
// Classes
//
// Point is a representation of (X, Y) coordinates
function Point(x, y) {
this.x = x;
this.y = y;
}
@lgfa29
lgfa29 / minecraft.hcl
Created Mar 26, 2020
Nomad job for running a Minecraft server
View minecraft.hcl
job "minecraft" {
datacenters = ["dc1"]
group "minecraft" {
volume "minecraft" {
type = "host"
source = "minecraft"
}
task "eula" {
View README.md

How to use it

  1. Create a GitHub Personal Access Token with the read:org permission.
  2. Copy the contents of bookmarklet.js and replace the placeholders with your specific values.
  3. Add a new bookmark to your browser using that as the URL.
View cloudant-query.json
[
{
"id": "cbb0ae9a.092cd8",
"type": "http in",
"z": "9358b649.b981c8",
"name": "",
"url": "/search",
"method": "get",
"upload": false,
"swaggerDoc": "",
View cloudant-test-flow.json
[
{
"id": "6db6830e.09ccfc",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
View node-red-cloudant-multiple-dbs.json
[
{
"id": "74b54544.7661ec",
"type": "switch",
"z": "a482186c.51edb8",
"name": "",
"property": "database",
"propertyType": "msg",
"rules": [
{
View nore-red-cloudant-attachments.json
[
{
"id": "c1349e90.38499",
"type": "inject",
"z": "255c3a8b.88f8a6",
"name": "",
"topic": "",
"payload": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAH3wAHAAIACQArADhhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAM