This has been moved to https://github.com/hlissner/doom-emacs/blob/develop/docs/api.org#center-emacs-initial-frame-with-a-fixed-size
View capture.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env doomscript | |
;; An example script showing off how use Doom's CLI framework to write your own. | |
(defcli! (capture) | |
((key ("-k" "--key" key)) | |
&input input &args args) | |
"Open an org-capture window." | |
(exit! "emacsclient" "-a" "" "-e" | |
(format "(+org-capture/open-frame %S %S)" | |
(concat input (string-join args " ")) |
View synology-ddns.linode.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns | |
<?php | |
if ($argc !== 5) { | |
echo 'badparam'; | |
exit(); | |
} | |
// Entered into DSM (Control Panel > External Access > DDNS) | |
$username = (string) $argv[1]; // Resource ID |
View org-lazy-babel.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar +org-babel-mode-alist | |
'((cpp . C) | |
(C++ . C) | |
(D . C) | |
(sh . shell) | |
(bash . shell) | |
(matlab . octave) | |
(amm . ammonite)) | |
"An alist mapping languages to babel libraries. This is necessary for babel | |
libraries (ob-*.el) that don't match the name of the language. |
View custom-set-faces.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro custom-theme-set-faces! (theme &rest specs) | |
"Apply a list of face specs as user customizations for THEME. | |
THEME can be a single symbol or list thereof. If nil, apply these settings to | |
all themes. It will apply to all themes once they are loaded. | |
(custom-theme-set-faces! '(doom-one doom-one-light) | |
`(mode-line :foreground ,(doom-color 'blue)) | |
`(mode-line-buffer-id :foreground ,(doom-color 'fg) :background \"#000000\") | |
'(mode-line-success-highlight :background \"#00FF00\") |
View touch-bending.md
-
https://www.assetstore.unity3d.com/en/#!/content/3253 A unity asset that provides foliage with displacement shaders (among other things). If you have $20 to spare, this is the simplest way.
Here's a unity demo of the displacement shader at work: https://dl.dropboxusercontent.com/u/2322017/afs_v2/afs_v2_touchbending/afs_v2_touchbending_202.html
-
https://codea.io/talk/discussion/2465/my-grass-simulation-with-vertex-shaders An example of using vertex shaders to make thick grass "look" like it is swaying in wind/has something moving inside it, which could be useful for creating the illusion
View install-yay.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! command -v yay >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { rm -rf "$tmp"; } # clean up after yourself... | |
trap finish EXIT # ...no matter how you exist | |
git clone https://aur.archlinux.org/yay.git "$tmp" | |
pushd "$tmp" | |
makepkg -sri --noconfirm --needed | |
popd |
View hs-special-modes-alist.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun +data-hideshow-forward-sexp (arg) | |
(let ((start (current-indentation))) | |
(forward-line) | |
(unless (= start (current-indentation)) | |
(require 'evil-indent-plus) | |
(let ((range (evil-indent-plus--same-indent-range))) | |
(goto-char (cadr range)) | |
(end-of-line))))) | |
(map-put hs-special-modes-alist | |
'yaml-mode |
View install-pacaur.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ! command -v pacaur >/dev/null; then | |
tmp=$(mktemp -d) | |
function finish { | |
rm -rf "$tmp" | |
} | |
trap finish EXIT | |
pushd $tmp | |
for pkg in cower pacaur; do | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$pkg && \ |
NewerOlder