Skip to content

Instantly share code, notes, and snippets.

View bcdavasconcelos's full-sized avatar

Bernardo C.D.A. Vasconcelos bcdavasconcelos

View GitHub Profile
@bcdavasconcelos
bcdavasconcelos / article-style.css
Last active January 6, 2020 23:54
Dracula Theme for GoldenDict. Based on the CSS provided by @babygau. #CSS #GoldenDict
body
{
background: #212121;
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
color: #f0f0f0;
font-family: EB Garamond;
line-height: 1.3;
@bcdavasconcelos
bcdavasconcelos / Bibdesk to DEVONthink Pro 3.scpt
Last active January 6, 2020 23:53
Script to link Bibdesk entries to DEVONthink Pro records along with custom metadata #Bibdesk #DEVONthink3 #Applescript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
-- Script to link Bibdesk entries to DEVONthink Pro records along with custom metadata - by Bernardo Vasconcelos (July 2019).
-- This script is based on Kyle Eggletons script for Bookends and DEVONthink, April 2019.
-- Use at your own risk
tell application "BibDesk"
@bcdavasconcelos
bcdavasconcelos / Add Reference Smart Rule for DT3.scpt
Last active March 17, 2020 21:11
Add ABNT Reference Smart Rule for DT3 #DEVONthink3 #Applescript
on performSmartRule(theRecords)
tell application id "DNtp"
try
set these_items to the selection
if these_items is {} then error "Please select some contents."
repeat with this_item in these_items
@bcdavasconcelos
bcdavasconcelos / DT3 and Zotero.scpt
Last active January 6, 2020 23:40
Still on test phase, so to speak. #Archive
tell application id "DNtp"
set theRecords to the selection
if theRecords is {} then error "Please select some contents."
repeat with theRecord in theRecords
set customMD to custom meta data of theRecord
try
set theBibkey to mdbibkey of customMD
@bcdavasconcelos
bcdavasconcelos / diogenes.css
Last active May 4, 2022 14:53
Dark mode theme for Diogenes #CSS #Diogenes
html {
height: 100%;
margin: 0;
}
body {
background-color: #434140;
color: #ffffff;
font-family: 'Gentium Plus';
font-synthesis: weight;
height: 100%;
@bcdavasconcelos
bcdavasconcelos / styles.css
Last active January 6, 2020 23:42
Dark mode theme for Learning with Texts (http://lwt.sourceforge.net) #CSS #LWT
/**************************************************************
"Learning with Texts" (LWT) is free and unencumbered software
released into the PUBLIC DOMAIN.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a
compiled binary, for any purpose, commercial or non-commercial,
and by any means.
@bcdavasconcelos
bcdavasconcelos / San Ho Light.css
Last active June 24, 2020 00:07
CSS style sheet for rendering Markdown in different apps (such as DEVONthink 3, nvUltra, MMD Composer) #CSS #Markdown
/* "Cormorant Garamond SemiBold" */
body {
font-family: "Alegreya";
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100% margin: 0;
padding: 50px 2rem 2rem;
width: auto;
/* max-width: 800px; */
}
@bcdavasconcelos
bcdavasconcelos / San Ho Dark.css
Last active October 15, 2021 13:38
CSS style sheet for rendering Markdown in different apps (such as DEVONthink 3, nvUltra, MMD Composer) #CSS #Markdown
/* San Ho Dark - https://www.dropbox.com/s/pbd8ka36rflz71c/Captura%20de%20tela%202020-01-06%2020.59.31.png?dl=0 */
body {
font-family: "EB Garamond";
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100% margin: 0;
padding: 50px 2rem 2rem;
max-width: 800px;
}
@bcdavasconcelos
bcdavasconcelos / Pisium Night.css
Last active December 12, 2023 17:12
Pisium CSS for Obsidian with several modifications
/* global */
:root
{
--font-size-normal: 26px;
--font-size-code: 22px;
--font-size-side-dock: 13.5px;
--font-size-side-dock-title: 15px;
--font-size-blockquote: 20px;
--font-size-status-bar: 12px;
--line-height-preview: 1.7em;
#!/usr/bin/env ruby
# frozen_string_literal: false
# bcdav 2021
# inspired by https://github.com/ltrgoddard/inliner
Encoding.default_external = Encoding::UTF_8
class String
def inline_mmd