Skip to content

Instantly share code, notes, and snippets.

View jonlorusso's full-sized avatar
💭
Remotely Remoting

Jon Lorusso jonlorusso

💭
Remotely Remoting
View GitHub Profile
int digitToDisplay = 1234;
int latchPin = 1;
int clockPin = 3;
int dataPin = 0;
int digits[4][2] = {
{ B11111110, B01011111 },
{ B11110111, B01011111 },
@jonlorusso
jonlorusso / hello-world.s
Created February 26, 2020 02:17
clear display and return home
PORTB = $6000
PORTA = $6001
DDRB = $6002
DDRA = $6003
E = %10000000
RW = %01000000
RS = %00100000
.org $8000

Keybase proof

I hereby claim:

  • I am jonlorusso on github.
  • I am jonlorusso (https://keybase.io/jonlorusso) on keybase.
  • I have a public key ASD4daeOSOQvBDH5_m6vt89BOY_oAmggP3VY_VKLOcJHkwo

To claim this, I am signing this object:

use Try::Tiny;
use Test::More;
try {
die "expected failure";
fail "did not die";
}
catch {
ok;
};
#!/bin/bash
focused="%{U#FFdd7380+u}----------%{U-}"
active="%{U#FF1b1b1b+u}----------%{U-}"
normal="%{U#FF4b4b4b+u}----------%{U-}"
desktops() {
desktops=""
for e in $(echo $1 | cut -d':' -f2-6 | tr ':' '\n')
do
$ bmake
===> Installing dependencies for wmutilsnb20141218
=> Build dependency git-base>=1.6.4: found git-base-2.1.0
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.11
=> Build dependency xproto>=7.0.9: found xproto-7.0.26
=> Full dependency libxcb>=1.6: found libxcb-1.11
===> Overriding tools for wmutilsnb20141218
===> Extracting for wmutilsnb20141218
=> Extracting cached GIT archive wmutilsnb20141218-core-2014-12-18.tar.gz.
===> Patching for wmutilsnb20141218
WARN: Makefile:4: "wmutils" is not a valid package name. A valid package name has the form packagename-version, where version consists only of digits, letters and dots.
WARN: Makefile:13: GIT_REPOSITORIES is defined but not used. Spelling mistake?
WARN: Makefile:14: GIT_REPO.core is defined but not used. Spelling mistake?
WARN: PLIST:1: PLIST files shouldn't be empty.
One reason for empty PLISTs is that this is a newly created package
and that the author didn't run "bmake print-PLIST" after installing
the files.
Another reason, common for Perl packages, is that the final PLIST is
# $NetBSD$
DISTNAME= wmutils-fa84a88f03
PKGNAME= wmutils
CATEGORIES= x11
MASTER_SITES= https://github.com/wmutils/core
MAINTAINER= email@example.com
HOMEPAGE= https://github.com/wmutils/core
COMMENT= Set of window manipulation tools
@jonlorusso
jonlorusso / gist:796dabc117aefe5bd42f
Created September 17, 2014 13:46
userChrome.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* @-moz-document url(chrome://browser/content/browser.xul) { */
#TabsToolbar {
background: #181512 !important;
padding-top: 2px !important;
background-image: none !important;
}
File "/opt/socialflow/prod/batch/batch-v0.26.0/BatchServer/callbacks/trendingterm.py", line 16, in test
if not self.r.ping():
File "/opt/socialflow/prod/batch/current/env/lib/python2.7/site-packages/redis/client.py", line 497, in ping
return self.execute_command('PING')
File "/opt/socialflow/prod/batch/current/env/lib/python2.7/site-packages/redis/client.py", line 397, in execute_command
connection.send_command(*args)
File "/opt/socialflow/prod/batch/current/env/lib/python2.7/site-packages/redis/connection.py", line 306, in send_command
self.send_packed_command(self.pack_command(*args))
File "/opt/socialflow/prod/batch/current/env/lib/python2.7/site-packages/redis/connection.py", line 288, in send_packed_command
self.connect()