Skip to content

Instantly share code, notes, and snippets.

View dkapila's full-sized avatar

Dharam Kapila dkapila

View GitHub Profile
@dkapila
dkapila / slack_export_to_tft_tools.py
Last active October 1, 2021 21:22
Prepare Slack Export for Roam/Logseq/Obsidian
import pandas as pd
import json
import glob
import os
from pathlib import Path
import re
import datetime
from datetime import timezone
import pytz
;(function () {
// Don't show navigation controls on mobile
var initialize_back_forward_buttons = () => {
// Don't show navigation controls on mobile
if(/Android|iPhone/i.test(navigator.userAgent)){
return;
}
if(window.initialized_back_forward_buttons) {
@dkapila
dkapila / roam_back_forward_navigation.js
Last active September 29, 2020 00:02
Adds back forward buttons in Roam - useful when using it as an app
;(function () {
// Don't show navigation controls on mobile
if(/Android|iPhone/i.test(navigator.userAgent)){
return;
}
// Only show navigation controls when using Roam in app mode
if ((window.navigator.standalone == true) || (window.matchMedia('(display-mode: standalone)').matches)) {
const navigation_controls = document.createElement("div");
navigation_controls.id = 'roam-navigation-controls';
@dkapila
dkapila / dabblet.css
Created March 16, 2015 19:47
Untitled
#y {
height: 100px; width: 100px;
position :relative;
background: #ccc;
}
#y::before {
content: '';
position: absolute;
z-index: -1;
@dkapila
dkapila / dabblet.css
Created December 17, 2012 19:59
Untitled
dssd
77
vds
@dkapila
dkapila / dabblet.css
Created July 23, 2012 12:46
Untitled
#content {
width: 800px; margin: 0 auto;
}
.row {
border-style:solid;
overflow: auto;
height: auto;
padding : 8px;
margin : 5px;