Skip to content

Instantly share code, notes, and snippets.

View seventy6's full-sized avatar

Nick W Forsberg seventy6

View GitHub Profile
@seventy6
seventy6 / reportwrapper-integration-collection-spec.json
Last active May 19, 2023 16:14
Specs for new integration specs
{
"slug": "grafana",
"integrationType": {
"formType": "embed", // embed, link, openAPI, MarkDown, Script, retool
"type": "reporting", //section
"status": "live", // live, preview, deprecated, testing
"nextPage": "", // ovveride the next page in the flow for specific integrations
"language": {
"noun": "report", // report, dashboard, visualization, page, application
"verb": "reporting" // reporting, visualizing, viewing, exploring, analyzing
@seventy6
seventy6 / welcome-to-colaboratory.ipynb
Created May 5, 2023 12:36
Welcome to Colaboratory
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//get your varcel
let outputString="";
fetch("https://vercel.com/api/v7/projects/[REPO_NAME]/env?decrypt=true", {
"headers": {
"accept": "*/*",
"accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
"authorization": "bearer [AUTH_TOKEN]", //<-- copy token from a prexisting request header
"sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"",
@seventy6
seventy6 / export-google-cloud-run.js
Created October 3, 2021 16:56
Export Google Cloud Run Environments
//paste into console when you're in the vars setting and hit return
//e.g. https://console.cloud.google.com/run/deploy/us-central1/[project]
var inputs, index, key =1, outputString="";
inputs = document.getElementsByTagName('input');
for (index = 0; index < inputs.length; ++index) {
if(key === 0) {
outputString += inputs[index].value + "=";
key = 1;
function locationHashChanged() {
let name = location.hash ? location.hash.substring(1) : "about"
document.title = "SITE NAME - " + name
}
window.onhashchange = locationHashChanged;
@seventy6
seventy6 / firebase-events-to-csv.js
Last active August 16, 2017 16:56
Download the Firebase Events into a CSV
var _data = [];
_data.push(['Event Name', 'Count', 'Users']);
$('.event-name').parent().parent().each(function(each){
var _name = $('.event-name', this).text().trim();
var _val = $('.data', this).text().split('-');
var _data_row = _name + ',' + _val.toString();
_data.push(_data_row.split(','));
});
@seventy6
seventy6 / dabblet.css
Created February 16, 2012 10:19
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #fff;
min-height:100%;