Skip to content

Instantly share code, notes, and snippets.

@Deborah-Digges
Deborah-Digges / index.html
Last active April 28, 2017 21:01
Bar Graph using dimple.js to show the Average Divorce Rate in America
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="http://dimplejs.org/dist/dimple.v2.0.0.min.js"></script>
<script type="text/javascript">
function draw(data) {
/*
@Deborah-Digges
Deborah-Digges / d3.geo.min.js
Last active July 4, 2016 15:36
Indian Rainfall Chloropleth
(function(){function b(a,b){return function(c){return c&&c.type in a?a[c.type](c):b}}function c(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+ -2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function d(a,b){a.type in e&&e[a.type](a,b)}function f(a,b){d(a.geometry,b)}function g(a,b){for(var c=a.features,e=0,f=c.length;e<f;e++)d(c[e].geometry,b)}function h(a,b){for(var c=a.geometries,e=0,f=c.length;e<f;e++)d(c[e],b)}function i(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)b.apply(null,c[d])}function j(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)for(var f=c[d],g=0,h=f.length;g<h;g++)b.apply(null,f[g])}function k(a,b){for(var c=a.coordinates,d=0,e=c.length;d<e;d++)for(var f=c[d][0],g=0,h=f.length;g<h;g++)b.apply(null,f[g])}function l(a,b){b.apply(null,a.coordinates)}function m(a,b){for(var c=a.coordinates[0],d=0,e=c.length;d<e;d++)b.apply(null,c[d])}function n(a){return a.source}function o(a){return a.target}function p(b,c){function r(b){var c=Math.sin(p-(b*=p))/q,d=Math.sin(b)/q,g=c*h*e+d*n*k,j=c*h*f+d*n*l,m=c*i+d
const express = require('express')
const app = express()
const port = 3000
const bodyParser = require('body-parser');
var options = {
type: 'application/json'
};
app.use(bodyParser.raw(options));
@Deborah-Digges
Deborah-Digges / gist:0ae39b1302cb25a4d7aa1766986207db
Last active February 10, 2020 16:39
Internal API for querying daily stats data

Path

{tenant}/tlogs/stats?from={fromDate}&to={toDate}

Path Params

  • tenant
  • fromDate: Date string in YYYY-mm-dd format
  • toDate: Date string in YYYY-mm-dd format

Response

admin_update_launch,auth0_update_launched
api_limit,rate_limit_on_the_authentication_api
cls,code_or_link_sent
coff,connector_offline
con,connector_online
cs,code_sent
depnote,deprecation_notice
du,deleted_user
f,failed_login
fapi,failed_api_operation
@Deborah-Digges
Deborah-Digges / README.md
Last active August 11, 2020 18:46
Send logs to Splunk

Hacky script to send a bunch of logs to splunk directly

Currently, we don't have a tool that can send

  • a specific set of logs
  • with the right shape
  • to a tenant
  • in any environment

We have a bunch of separate tools that do different parts of this. We need a way to consolidate this functionality into fox-cli.

plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown-pages`,
path: `${__dirname}/src/markdown-pages`,
}
}]
@Deborah-Digges
Deborah-Digges / .travis.yml
Last active September 25, 2020 20:58
gatsby-deploy
language: node_js
before_script:
- npm install -g gatsby-cli
node_js:
- "10"
script: git config --global user.email $GH_EMAIL 2> /dev/null &&
git config --global user.name $GH_USERNAME 2> /dev/null &&
git remote set-url origin "https://${GH_USERNAME}:${GH_TOKEN}@github.com/deborah-digges/deborah-digges.github.io.git" 2> /dev/null &&
yarn install && yarn run deploy 2> /dev/null
git checkout -b gh-pages
gatsby build
# Temporarily move the public folder
mv public /tmp
# Remove all other files
rm -r *
@Deborah-Digges
Deborah-Digges / .travis.yml
Created September 25, 2020 21:17
Gatsby .travis.yml
language: node_js
before_script:
- npm install -g gatsby-cli
node_js:
- "10"
script: git config --global user.email $GH_EMAIL 2> /dev/null &&
git config --global user.name $GH_USERNAME 2> /dev/null &&
git remote set-url origin "https://${GH_USERNAME}:${GH_TOKEN}@github.com/deborah-digges/deborah-digges.github.io.git" 2> /dev/null &&
yarn install && yarn run deploy 2> /dev/null