Skip to content

Instantly share code, notes, and snippets.

Avatar

Jordan Arentsen blissdev

View GitHub Profile
@blissdev
blissdev / init.lua
Created May 6, 2022 — forked from nriley/init.lua
Hammerspoon script for ensuring Sidecar is active when iPad is plugged in (macOS 10.15)
View init.lua
hs.loadSpoon('SpoonInstall')
spoon.SpoonInstall.use_syncinstall = true
Install = spoon.SpoonInstall
log = hs.logger.new('init', 5)
-- function debugUI(msg, table)
-- log:d(msg)
-- log:d(hs.inspect(table))
-- end
@blissdev
blissdev / config
Created Feb 4, 2021 — forked from boj/config
VMWare NixOS
View config
// .config/termite/config
[options]
font = Liberation Mono 10
[colors]
foreground = #FFFFFF
background = #000000
@blissdev
blissdev / gist:6350d7d1bdc3f8be094c
Created Dec 30, 2015
clojure indentation in emacs
View gist:6350d7d1bdc3f8be094c
@blissdev: I believe you want to set `clojure-defun-style-default-indent` to a non-nil value to achieve this
@blissdev
blissdev / voiceover-intro.md
Created Dec 22, 2015 — forked from mpiotrowicz/voiceover-intro.md
getting started with VoiceOver
View voiceover-intro.md

A messy intro into VoiceOver - OS X's built-in screen reader

Browsers

  • works best with Safari!

Getting Started

  • cmd+f5 to turn on
  • Remember the "VoiceOver Key" (VO) opt + control
  • To navigate into a page, VO + shift + down arrow
  • To navigate all page links, hit tab throughout
View gist:f54a72f86bfc3d895c32
===========================================================================
The following directories are used by znc-1.0 and
have the wrong ownership and/or permissions:
/opt/local/etc/znc (m=755, o=root, g=root)
===========================================================================
===========================================================================
$NetBSD$
@blissdev
blissdev / error.txt
Last active Aug 29, 2015
transit-js writer issue
View error.txt
{ [Error: Cannot write ]
data: { obj: { property_id: 25, label: 'Age', key: 'age' }, type: '' },
domain:
{ domain: null,
_events: { error: [Function] },
_maxListeners: 10,
members: [] },
domainThrown: true }
Error: Cannot write
View bind-match-events.cljs
(defn subscribe-to-match [owner match-id]
(let [pusher (om/get-shared owner :pusher)
previous-channel (om/get-state owner :match-pusher-chan)
new-channel (.subscribe pusher (str "match-" match-id))
events-chan (om/get-shared owner :match-events-chan)
events-list ["draft_character" "begin" "update_score"
"set_turn_number" "add_target" "remove_target"
"change_round" "change_turn" "update_health"]]
(when previous-channel (.unbind previous-channel))
(doseq [event-name events-list]
View cursor.js
function (meta,cnt,arr,__hash){
this.meta = meta;
this.cnt = cnt;
this.arr = arr;
this.__hash = __hash;
this.cljs$lang$protocol_mask$partition0$ = 16647951;
this.cljs$lang$protocol_mask$partition1$ = 8196;
}
View example.cljs
(let [c (om/get-props owner)
v (deref c)]
(log v))
; Uncaught Error: Cannot manipulate cursor outside of render phase, only om.core/transact!, om.core/update!, and cljs.core/deref operations allowed
; from line 2
@blissdev
blissdev / client-id-gen.php
Created Oct 27, 2014
Client ID Generator
View client-id-gen.php
echo substr(hash('sha256', time()), 0, 32);