I hereby claim:
- I am arockwell on github.
- I am alexrockwell (https://keybase.io/alexrockwell) on keybase.
- I have a public key ASAfWQFL_oX3tYueOlCBe14OrpANgsBgAY2qQUxEL2l67wo
To claim this, I am signing this object:
| var express = require('express'); | |
| var graphqlHTTP = require('express-graphql'); | |
| var { buildSchema } = require('graphql'); | |
| var fetch = require('node-fetch'); | |
| // Construct a schema, using GraphQL schema language | |
| var schema = buildSchema(` | |
| type User { | |
| first_name: String | |
| last_name: String |
I hereby claim:
To claim this, I am signing this object:
| // Handle scientific notation (e.g., 1.23e45 or 1e-10) | |
| } else if grapheme == "e" || grapheme == "E" { | |
| if is_scientific { | |
| self.errors.push(LexError::new( | |
| graphemes.concat(), | |
| self.line, | |
| self.column, | |
| "number may not contain multiple exponential parts".to_owned(), | |
| )); | |
| return; |
| // BEFORE: Complex, nested conditionals with inconsistent flow | |
| // AFTER: State machine approach with clear phases | |
| fn number(&mut self, graphemes: &[&str]) { | |
| let token_col = self.column - 2; | |
| let mut number = graphemes[self.column - 2].to_string(); | |
| // Use an enum to track parsing state | |
| enum NumberState { | |
| Digits, // Consuming integer digits |
| fn number(&mut self, graphemes: &[&str]) { | |
| let token_col = self.column - 2; | |
| let mut is_float = false; | |
| let mut number = graphemes[self.column - 2].to_string(); | |
| // Part 1: Handle integer part (required) | |
| while self.consume_digits(&mut number, graphemes) {} | |
| // Part 2: Handle decimal part (optional) | |
| if self.column - 1 < graphemes.len() && graphemes[self.column - 1] == "." { |
| #!/usr/bin/env python3 | |
| """ | |
| Hello World v2.0 - Now with 100% more snazz! ✨ | |
| """ | |
| import random | |
| import time | |
| from datetime import datetime | |
| def typewriter_effect(text, delay=0.05): |
A blazing-fast markdown document management system built with PostgreSQL and Fish shell. Handles everything from personal notes to millions of documents with smart tab completion and beautiful mdcat rendering.
A powerful command-line tool for managing your personal knowledge base with SQLite full-text search, Git integration, and a beautiful terminal interface.
emdx command with intuitive subcommandstmux_command = f"claude-code --file {temp_path}"tags = get_document_tags(doc_id)
if '🎯' in tags: # Gameplan
tmux_command = f"claude-code --execute-plan {temp_path}"
elif '🔍' in tags: # Analysis
tmux_command = f"claude-code --analyze {temp_path}"