Skip to content

Instantly share code, notes, and snippets.


Brian Zhang atav32

Block or report user

Report or block atav32

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
atav32 /
Last active Feb 18, 2020 — forked from MSylvia/
Convert .itermcolors file to html hex & rgb
#!/usr/bin/env python
# Convert .itermcolors files to hex colors for html
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb

Keybase proof

I hereby claim:

  • I am atav32 on github.
  • I am atav32 ( on keybase.
  • I have a public key ASBki6eDRAf_eVHiR1PF_b_KoCOCQJzyeicxCOJa2_3_nAo

To claim this, I am signing this object:

atav32 / post_hubspot_form.js
Created Aug 29, 2018
POST form data to HubSpot API
View post_hubspot_form.js
// API documentation,
const convertToFormData = (data) => Object.entries(data).reduce((formData, entry) => {
const [key, value] = entry;
if (value !== null && typeof value === 'object') {
formData.append(key, JSON.stringify(value));
} else {
formData.append(key, value);
return formData;
You can’t perform that action at this time.