Skip to content

Instantly share code, notes, and snippets.

@cwalston
cwalston / lint-using
Last active February 9, 2018 02:23
Linter for Factor USING: ... ; forms
! Copyright (C) Charles Alston
! See http://factorcode.org/license.txt for BSD license
USING: accessors arrays fry io io.backend io.directories.search
io.encodings.utf8 io.files io.pathnames kernel parser regexp
sequences tools.crossref vocabs vocabs.refresh wrap.strings ;
IN: lint-using
! gist title: Linter for Factor USING: ... ; forms
! gist URL:
! https://gist.github.com/cwalston/f6da9cca0105f5d67483935380001d84
@cwalston
cwalston / Warning- Calling 'depends_on -python3' is deprecated!.txt
Last active January 22, 2018 23:14
brew doctor Warning: Calling 'depends_on :python3' is deprecated!
Hi - For the past few days, 'brew doctor' and 'brew services list' have been coughing up
warnings that 'brew upgrade/update' seem not to have fixed:
==> Warning: Calling 'depends_on :python3' is deprecated!
Use 'depends_on "python3"' instead.
Warnings from 'brew upgrade/update' & 'brew services list' point to two locations,
/usr/local/Homebrew/Library/Homebrew/dependency_collector.rb:88:in `parse_spec'
and
@cwalston
cwalston / spotlight.factor
Created November 12, 2013 04:26
Searching on OS X via Spotlight MetaData index, & managing indexing from Factor
! (C) 2013 Charles Alston.
USING: accessors arrays byte-arrays fry google.search io
io.encodings.utf8 io.launcher kernel locals make namespaces
sequences simple-tokenizer splitting strings unicode.categories
webbrowser wordtimer ;
IN: spotlight
! *** SEARCHING ON OS X VIA SPOTLIGHT METADATA INDEX, & MANAGING INDEXING FROM FACTOR ***
! *** MAC OS X 10.6.8 & LATER: IMPLEMENTING mdfind, mdls, mdutil, mdimport ***
! mdfind, mdls, mdutil, mdimport TAKE A QUERY ON THE STACK & RETURN A SEQUENCE OF RESULT STRINGS
! (C) 2013 Charles Alston.
USING: accessors arrays byte-arrays fry google.search io
io.encodings.utf8 io.launcher kernel locals make namespaces
sequences splitting strings unicode.categories vectors ;
FROM: webbrowser => open-file open-url ;
IN: spotlight
! *** searching on os x via spotlight metadata index, & managing indexing from factor ***
! *** mac os x 10.6.8 & later: implementing mdfind, mdls, mdutil, mdimport ***
! mdfind, mdls, mdutil, mdimport take a query on the stack
@cwalston
cwalston / Factor interface to OS X Spotlight
Last active January 19, 2021 01:12
SEARCHING ON OS X VIA SPOTLIGHT METADATA INDEX, & MANAGING INDEXING FROM FACTOR
! (C) 2013 Charles Alston.
USING: accessors arrays byte-arrays fry google.search io
io.encodings.utf8 io.launcher kernel locals make namespaces
sequences simple-tokenizer splitting strings unicode.categories
webbrowser wordtimer ;
IN: spotlight
! *** SEARCHING ON OS X VIA SPOTLIGHT METADATA INDEX, & MANAGING INDEXING FROM FACTOR ***
! *** MAC OS X 10.6.8 & LATER: IMPLEMENTING mdfind, mdls, mdutil, mdimport ***
! mdfind, mdls, mdutil, mdimport TAKE A QUERY ON THE STACK & RETURN A SEQUENCE OF RESULT STRINGS