This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'bundler/inline' | |
require 'securerandom' | |
require 'json' | |
require 'time' | |
require 'base64' | |
gemfile do | |
source 'https://rubygems.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'bundler/inline' | |
require 'json' | |
require 'time' | |
require 'date' | |
require 'active_support/core_ext/string/conversions' | |
gemfile do | |
source 'https://rubygems.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import json | |
# reading the csv file | |
df = pd.read_csv("c.csv") | |
df.fillna('{}', inplace=True) | |
for i, r in df.iterrows(): | |
json_object = json.loads(str(r['meta_data'])) | |
feature = 'new_feature_to_add' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE api/v1/part-inventory/:id | |
DELETE api/v1/assets/:id | |
DELETE api/v1/locations/:id | |
GET api/v1/part-inventory/ | |
GET api/v1/assets/ | |
GET api/v1/locations/ | |
Example using Parts | |
/api/v1/part-inventory/? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convert premium account status to AccountPlan: | |
"DEMO_MODE_ACTIVE" -> free | |
"STARTER_PLAN_ACTIVE" -> starter | |
"PROFESSIONAL_PLAN_ACTIVE" -> professional | |
"ENTERPRISE_ACTIVE" -> enterprise | |
"DEMO_EXPIRED_INACTIVE" -> free | |
"PLAN_EXPIRED_INACTIVE" -> free | |
Account plan order (I used an enum 0 - 3) | |
free < starter < professional < enterprise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"__comment": "ROW WITH 2 COLUMN", | |
"section": true, | |
"cols": [{ | |
"type": "static", | |
"label": "Introducing Thrive Market products", | |
"sublabel": "Find your favorites for 25-50% less", | |
"link": "https:\/\/thrivemarket.com\/brand\/thrive-market", | |
"cta": "view more", | |
"button": false, | |
"action": "ca9e41", |