Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
I saw that there's a markdown-live-preview-mode and the var
markdown-live-preview-window-function which was set to the function
markdown-live-preview-window-eww. That function looks like this:
(defun markdown-live-preview-window-eww (file)
"Preview FILE with eww.
To be used with `markdown-live-preview-window-function'."| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Terminal notifier | |
| ;; requires 'sudo gem install terminal-notifier' | |
| ;; stolen from erc-notifier | |
| (defvar terminal-notifier-command (executable-find "terminal-notifier") "The path to terminal-notifier.") | |
| ; (terminal-notifier-notify "Emacs notification" "Something amusing happened") | |
| (defun terminal-notifier-notify (title message) |
| set imap_user="[email protected]" | |
| set imap_pass=`/usr/bin/security find-generic-password -w -a '[email protected]' -s 'Gmail'` | |
| set folder=imaps://imap.gmail.com/ | |
| set spoolfile=+INBOX | |
| set record="+[Gmail]/Sent Mail" | |
| set postponed="+[Gmail]/Drafts" | |
| # https://www.neomutt.org/guide/reference search sleep_time for additional info | |
| set sleep_time=0 # be faster |
| ;; Keybonds | |
| (global-set-key [(hyper a)] 'mark-whole-buffer) | |
| (global-set-key [(hyper v)] 'yank) | |
| (global-set-key [(hyper c)] 'kill-ring-save) | |
| (global-set-key [(hyper s)] 'save-buffer) | |
| (global-set-key [(hyper l)] 'goto-line) | |
| (global-set-key [(hyper w)] | |
| (lambda () (interactive) (delete-window))) | |
| (global-set-key [(hyper z)] 'undo) |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| package org.linux.X11; | |
| import com.sun.jna.Native; | |
| import com.sun.jna.NativeLong; | |
| import com.sun.jna.platform.unix.X11; | |
| import java.awt.*; | |
| /** | |
| * Author: Vladimir Kravets |
| # calculating RSI (gives the same values as TradingView) | |
| # https://stackoverflow.com/questions/20526414/relative-strength-index-in-python-pandas | |
| def RSI(series, period=14): | |
| delta = series.diff().dropna() | |
| ups = delta * 0 | |
| downs = ups.copy() | |
| ups[delta > 0] = delta[delta > 0] | |
| downs[delta < 0] = -delta[delta < 0] | |
| ups[ups.index[period-1]] = np.mean( ups[:period] ) #first value is sum of avg gains |
| The MIT License (MIT) | |
| Copyright (c) <year> <copyright holders> | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #include <cstddef> | |
| #include <cstdint> | |
| #include <cstdio> | |
| namespace util { | |
| struct funcs; | |
| template <typename S> struct mh3_internal; | |
| template <typename S, S default_seed> struct mh3; | |
| typedef mh3<uint32_t, 0> mh3_default; |