Seeing if this is still a thing
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
(defclass backwards-compatible-class (standard-class) | |
()) | |
(defmethod sb-mop:validate-superclass ((class backwards-compatible-class) | |
(superclass standard-class)) | |
t) | |
(defmethod initialize-instance :before ((instance backwards-compatible-class) | |
&key (direct-slots)) | |
(:printv :initialize direct-slots)) |
Testing
If you load this in emacs and open a file with a JSON buffer, the command M-x fwoar/dive
will let you type a key
and replace the contents of the buffer with either the value of the corresponding key (if the JSON value of the buffer
is an object) or an array of the corresponding value for each object in an array (if the JSON value of the buffer is an
array). M-x fwoar/return
will pop the most recently used key off the stack and replace the buffer contents with the
corresponding contents of the original JSON object.
This is mainly a prototype, but it's already useful for quickly zooming in on large JSON documents.
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
First State& | |
Animation | |
AnimationRunning | |
animationDone -> AnimationDone | |
AnimationDone | |
refresh -> Animation | |
Screen | |
Idle | |
animationDone -> Ready | |
Ready |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) |
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
const ch = require("cheerio"); | |
const fetch = require("node-fetch").default; | |
const getLeadingNum = (v) => parseInt(v.split(" ")[0], 10); | |
function HNParser(html) { | |
if (! (this instanceof HNParser)) { | |
return new HNParser(html); | |
} | |
this.html = html; |
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
package co.fwoar.java.tree; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
public class Main { | |
static class Tree { | |
public int val; | |
public Tree left; | |
public Tree right; |
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
*.tar.gz | |
.sentinel.* |
NewerOlder