Skip to content

Instantly share code, notes, and snippets.

View Benbinbin's full-sized avatar

Ben Benbinbin

View GitHub Profile
@Benbinbin
Benbinbin / index.js
Created February 7, 2021 04:32 — forked from stephanbogner/index.js
Create tree structure from paths array
var paths = [
["Account"],
["Account", "Payment Methods"],
["Account", "Payment Methods", "Credit Card"],
["Account", "Payment Methods", "Paypal"],
["Account", "Emails"],
["Account", "Emails", "Main Email"],
["Account", "Emails", "Backup Email"],
["Account", "Devices"],
["Account", "Devices", "Google Pixel"],
@Benbinbin
Benbinbin / rescuetime_export.py
Created June 16, 2020 08:27 — forked from jnnt/rescuetime_export.py
Export script for RescueTime data. Saves user's activity data in a CSV file for every month between START_DATE and END_DATE, with the highest available resolution (minutes).
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# RescueTime Data Export
import os
import requests
from datetime import date, datetime
from dateutil.rrule import rrule, MONTHLY
from dateutil.parser import parse
@Benbinbin
Benbinbin / markdown-details-collapsible.md
Created February 8, 2020 02:15 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets