Skip to content

Instantly share code, notes, and snippets.

View agenda.el
(defun +org-notes-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)
jsntn /
Created Feb 25, 2020 — forked from stopyoukid/
Script that takes a git diff and outputs an html file in GitHub style
# Convert diff output to colorized HTML.
# (C) Mitch Frazier, 2008-08-27
# Modified by stopyoukid
html="<html><head><meta charset=\"utf-8\"><title>Pretty Diff</title><style>body {text-align: center;}#wrapper {display: inline-block;margin-top: 1em;min-width: 800px;text-align: left;}h2 {background: #fafafa;background: -moz-linear-gradient(#fafafa, #eaeaea);background: -webkit-linear-gradient(#fafafa, #eaeaea);-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa',endColorstr='#eaeaea')\";border: 1px solid #d8d8d8;border-bottom: 0;color: #555;font: 14px sans-serif;overflow: hidden;padding: 10px 6px;text-shadow: 0 1px 0 white;margin: 0;}.file-diff {border: 1px solid #d8d8d8;margin-bottom: 1em;overflow: auto;padding: 0.5em 0;}.file-diff > div {width: 100%:}pre {margin: 0;font-family: \"Bitstream Vera Sans Mono\", Courier, monospace;font-size: 12px;line-height: 1.4em;text-indent: 0.5em;}.file {color:
jsntn / anki_mobile_card.html
Created Jun 6, 2018 — forked from sartak/anki_mobile_card.html
HTML used by AnkiMobile to render card templates; a reference for creating advanced Anki card templates with special HTML/CSS. When used by AnkiMobile, the card's HTML replaces the `<!-- (Card contents) -->` comment in this gist, with the shared styles dropped inline inside a `<style>` tag.
View anki_mobile_card.html
<!doctype html>
<html class=" webkit safari mobile iphone js">
<meta name="viewport" content="width=device-width;">
<style id="ss"></style>
body {
text-align: center;
font-size: 1em;
-webkit-transform: translate3d(0,0,0);
jsntn / howto-install-jekyll_homebrew-rbenv.txt
Created Jan 10, 2018 — forked from r-brown/howto-install-jekyll_homebrew-rbenv.txt
How to install Jekyll using Homebrew and rbenv
View howto-install-jekyll_homebrew-rbenv.txt
# install Homebrew:
$ su ruby -e "$(curl -fsSL"
# show brew commands
$ brew help
# check current user
$ echo $(whoami)
# grant access to the folders
jsntn / _config.yml
Created Oct 21, 2017 — forked from agarrharr/feed.rss
Jekyll Podcast Feed
View _config.yml
license: CC-BY-SA
jsntn /
Created Jul 20, 2016 — forked from bollwyvl/
A fishbone editor
  • Make a bulleted Markdown list in the top left to update the list
  • Press edit to hide the editor
  • Press save to use [SVG Crowbar][crowbar] to save a copy
  • Click to drag nodes

This is an integration of [this implementation][orig] of a [Fishbone or Ishikawa][ish] diagram, which shows contributions of different levels of a hierarchy to a main concept, with a Markdown editor for making quick diagrams.

The diagram is implemented in [d3.js][d3], while rich-text editing is provided by [CodeMirror][cm], and [marked][mkd] handles Markdown processing.