Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Brian Zhang atav32

🎯
Focusing
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
View keybase.md

Keybase proof

I hereby claim:

  • I am atav32 on github.
  • I am atav32 (https://keybase.io/atav32) on keybase.
  • I have a public key ASBki6eDRAf_eVHiR1PF_b_KoCOCQJzyeicxCOJa2_3_nAo

To claim this, I am signing this object:

@atav32
atav32 / post_hubspot_form.js
Created Aug 29, 2018
POST form data to HubSpot API
View post_hubspot_form.js
// API documentation, https://developers.hubspot.com/docs/methods/forms/submit_form
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;
@atav32
atav32 / convert_itermcolors.py
Last active Jul 13, 2019 — forked from MSylvia/convert_itermcolors.py
Convert .itermcolors file to html hex & rgb
View convert_itermcolors.py
#!/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
You can’t perform that action at this time.