Skip to content

Instantly share code, notes, and snippets.

View alecrajeev's full-sized avatar

Alec Rajeev alecrajeev

View GitHub Profile
@alecrajeev
alecrajeev / colorBuilder.js
Last active April 27, 2017 17:54
House 2018 Election
// this is the javascript file that has all the functions that regarding color
var color = d3.scale.linear() // initial color scale for the demographic data
.range(['rgb(247,252,245)','rgb(229,245,224)','rgb(199,233,192)','rgb(161,217,155)','rgb(116,196,118)','rgb(65,171,93)','rgb(35,139,69)','rgb(0,109,44)','rgb(0,68,27)']);
var eleven_domain = [-1.0,-0.3,-0.2,-0.1,-0.05,0.0,0.05,0.1,0.2,0.3,1.0];
var color1;
var stateColor = ["#A94588","#D76940","#D13F46","#23A5C5", "#F0A851", "#F0A851", "#726198", "#23A5C5", "#228947", "#2B6AA1", "#D13F46", "#A94588", "#A94588",
"#2B6AA1", "#F0A851", "#D76940", "#D13F46", "#D13F46", "#6EAE51", "#A94588", "#A94588", "#D76940", "#D13F46", "#F0A851", "#228947", "#D76940", "#23A5C5",
"#23A5C5", "#D13F46", "#6EAE51", "#A94588", "#2B6AA1", "#23A5C5", "#2B6AA1", "#6EAE51", "#2B6AA1", "#2B6AA1", "#D13F46", "#23A5C5", "#6EAE51", "#6EAE51",
@alecrajeev
alecrajeev / add_account_v3.py
Last active January 23, 2018 03:29 — forked from dancaps/add_account_v3.py
Why is this not working?
import requests
import json
# add the Admin API access key where it says access key in the headers value
cc_api_url = 'https://api.cloudcheckr.com/api/account.json/add_account_v3'
headers = {'Content-Type': 'application/json', 'access_key': ''}
params = {'account_name': 'test_account'}
@alecrajeev
alecrajeev / output.yaml
Created March 12, 2021 18:42
Output helm template
---
# Source: fluent-bit/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
@alecrajeev
alecrajeev / outpute-windows.yaml
Created March 12, 2021 18:44
Output windows helm template
---
# Source: fluent-bit/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME