Skip to content

Instantly share code, notes, and snippets.

View rojoca's full-sized avatar

Rory Casey rojoca

  • Dovetail Studios
View GitHub Profile
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@rojoca
rojoca / machine.js
Last active June 3, 2020 21:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@rojoca
rojoca / machine.js
Last active March 4, 2020 20:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - assign
// - interpret
// - send
// - sendParent
// - spawn
// - raise
// - actions
Gallery
Loading Search
searchLoaded -> Searching
Searching
gotResults -> Results Loaded
Results Loaded
openDetail -> Detail Open
loadMore -> Searching
Detail Open
closeDetail -> Results Loaded
Auction
Ready State
monitor_auctions -> Auction Available
get_completed_jobs -> Completed Job
Auction Available
queue_scrape_auction -> Ready State
Completed Job
get_results -> Job Result Available
Job Result Available
process_result_trigger -> Got Trigger
Item
Tile*
click -> Loading
# load the detail in ajax
Loading
detail loaded -> Detail
detail failed -> Error
Detail
click close -> Tile
@rojoca
rojoca / tic_tac_toe.py
Last active December 19, 2015 15:59
This is a playable tic tac toe command line game developed via TDD. The AI is not terribly smart.
SPACE = " "
X = "X"
O = "O"
class Board(object):
"""
A tic-tac-toe board that determine if there
is a winner
"""

Keybase proof

I hereby claim:

  • I am rojoca on github.
  • I am rojoca (https://keybase.io/rojoca) on keybase.
  • I have a public key whose fingerprint is CD19 DDB1 4819 E209 8ACA 7250 2F39 5E82 EEF2 85E9

To claim this, I am signing this object: