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 python3 | |
# Motivation: browse the "boards" created by InvokeAI as if they were subdirectories. | |
# To extend: do better than that. Basically, this is the idea: | |
# - root/ | |
# - UNSORTED | |
# - models | |
# - <model name1> | |
# - <"hashed" prompt1> |
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
;; Someone needs to lock me up... | |
(defun org-conceal-emph-pairs (limit) | |
(save-excursion | |
(org-conceal-pairs limit org-verbatim-re)) | |
(org-conceal-pairs limit org-emph-re) | |
) | |
(defconst org-conceal-vp-scale 0.7) ; as if scaling were a good idea. | |
(defconst org-conceal-distance 7) |
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
;;; org-pop.el --- Allow popping back up from a sublevel without a heading -*- lexical-binding: t -*- | |
;; Author: Mark Shoulson <mark@shoulson.com> | |
;; Url: XXXXXX | |
;; Package-Version: XXXX | |
;; Version: 0.01 | |
;; Package-Requires: ((emacs "24.4") (org "8.3.5")) | |
;; Keywords: hypermedia, outlines, Org | |
;;; Commentary: |
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
--[==[ | |
Calculations for the Islamic Calendar (for WatchMaker) | |
Calendar math from Edward M. Dershowitz and Nachum Reingold, | |
see http://emr.cs.uiuc.edu/~reingold/calendar-book/index.html | |
Translated into Lua from emacs-lisp by Mark Shoulson, mark@shoulson.com | |
The MIT License (MIT) | |
Copyright (c) 2015 Mark E. Shoulson |
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
--[==[ | |
Calculations for Hebrew dates and temporal hours (for WatchMaker). | |
Calendar math from Edward M. Dershowitz and Nachum Reingold, | |
see http://emr.cs.uiuc.edu/~reingold/calendar-book/index.html | |
Translated into Lua from emacs-lisp by Mark Shoulson, mark@shoulson.com | |
The MIT License (MIT) | |
Copyright (c) 2015 Mark E. Shoulson |
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
[mark@dev ~]$ cat A.c | |
#include <string.h> | |
int | |
main() { | |
} | |
[mark@dev ~]$ cc -g -c -o A32.o A.c | |
[mark@dev ~]$ cc -g -c -o A64.o +DD64 A.c | |
[mark@dev ~]$ cc -g -o A32 A32.o | |
[mark@dev ~]$ cc -g -o A64 +DD64 A64.o | |
[mark@dev ~]$ gdb ./A32 |
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
# Configuration file for dircolors, a utility to help you set the | |
# LS_COLORS environment variable used by GNU ls with the --color option. | |
# Copyright (C) 1996, 1999-2010 Free Software Foundation, Inc. | |
# Copying and distribution of this file, with or without modification, | |
# are permitted provided the copyright notice and this notice are preserved. | |
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the | |
# slackware version of dircolors) are recognized but ignored. | |
# Possibly useful emacs-lisp to show the colors: | |
# (font-lock-add-keywords nil '(("38;5;\\([1-9][0-9]+\\)" (1 `(face (:background ,((lambda (c) (let* ((x (- (string-to-int c) 16)) (arr '("00" "5f" "87" "af" "d7" "ff")) (blue (mod x 6)) (green (mod (/ x 6) 6)) (red (mod (/ x 36) 6))) (if (> x 215) (let* ((z (- x 216)) (s (nth z '("08" "12" "1c" "26" "30" "3a" "44" "4e" "58" "62" "6c" "76" "80" "8a" "94" "9e" "a8" "b2" "bc" "c6" "d0" "da" "e4" "ee" "ff")))) (concat "#" s s s)) (concat "#" (nth red arr) (nth green arr) (nth blue arr))))) (match-stri |
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
my $counter=0; | |
sub recur(Int $x) { | |
my $h; | |
$h="h" ~ $counter; | |
$counter++; | |
my @k=(1,6); | |
if ($x>0) { | |
recur($x-1); |
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
# setup.py | |
from distutils.core import setup | |
versionnum="0.30" | |
try: | |
import py2exe | |
except ImportError: | |
try: | |
import py2app | |
except ImportError: |
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
#!/bin/sh | |
if [ $# -gt 0 ] | |
then DIR="$1" | |
else DIR="." | |
fi | |
if [ -d "$DIR/.hg" ] | |
then echo hg status "$DIR" | |
hg status "$DIR" | |
elif [ -d "$DIR/.svn" ] |
NewerOlder