Skip to content

Instantly share code, notes, and snippets.

@maniankara
maniankara / http-put-request.go
Last active November 9, 2022 09:58
handling put request in golang
package fragments
import (
"net/http"
"io"
"log"
"strings"
"os"
"bytes"
)
@poindextrose
poindextrose / glcoud-signed-url.go
Last active January 22, 2024 22:59
Example on how to create a signed URL on Google Cloud Storage with Go
package main
import (
"fmt"
"time"
"google.golang.org/cloud/storage"
)
const (
@Ulrhol
Ulrhol / README.md
Last active September 2, 2016 08:14
Graphite support for Dashing

##Yet another gist to provide Graphite support for Dashing Pull data from Graphite and present in Dashing. Support both graph and number widget.

Quick install:

dashing install 5088efcc94de2fecad5e

Set the graphite host/port and names of metrics in jobs/graphite.rb

@luan-cestari
luan-cestari / DML.json
Last active August 29, 2015 14:02
JSon Schema for validation / proof of concept
{
"copyright": [
"Copyright 2013 Red Hat, Inc. and/or its affiliates.",
"This file is part of lightblue.",
"This program is free software: you can redistribute it and/or modify",
"it under the terms of the GNU General Public License as published by",
"the Free Software Foundation, either version 3 of the License, or",
"(at your option) any later version.",
"This program is distributed in the hope that it will be useful,",
"but WITHOUT ANY WARRANTY; without even the implied warranty of",
@swilcox
swilcox / _mgraph.md
Last active October 6, 2017 21:08
Multi-graph example widget for Shopify's Dashing dashboard

Multi-graph widget for Dashing

Description

Multi-graph widget for Shopify's dashing to display a comparison style graph (or stacked with a minor modification). Obviously, this is an example that is built heavily on the existing graph widget that is provided with dashing. This widget provides a more clear framework for expanding the graph for multiple series (or nodes) of data. After seeing the example code, it should be fairly easy to expand to 3 or more overlaid graphs (although colors might get tricky). And really, this is just a slightly greater use of the cool rickshaw graphs.

To use this widget: