Skip to content

Instantly share code, notes, and snippets.

View ericjuta's full-sized avatar

Eric Juta ericjuta

View GitHub Profile
@ericjuta
ericjuta / Badger Academy Week 9 - Auth
Last active August 29, 2015 14:08
Badger Academy Week 9 - Auth
def authenticate
@user = Token.validate request.headers['AUTH-TOKEN']
end
@ericjuta
ericjuta / index.jsx
Created May 20, 2016 12:57
Mobx HMR ES6 stores
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory, match } from 'react-router'
import createStore from '../shared/lib/create-store.js'
import ContextProvider from '../shared/lib/context-provider.js'
import { fetchDataOnLocationMatch } from '../shared/lib/fetch-data.js'
import Root from './Root.jsx'
import routes from '../shared/routes.jsx'
import { AppContainer } from 'react-hot-loader'
import { observable, computed, autorun } from 'mobx'
@ericjuta
ericjuta / SketchSystems.spec
Last active September 21, 2018 13:34
Collection Created
Collection Created
Add Collection Sections*
Click Add section button -> Editing other section
Click Submit Create Collection Button -> Collection Created
Drag and drop sections IF more than one -> Sections reordered
Editing other section
Untouched other section*
Click Remove section button -> Default editing section 1
Same as Default editing section 1
Sections reordered
import * as ccxt from 'ccxt';
import * as functions from 'firebase-functions';
const exchangeId = 'binance',
exchangeClass = ccxt[exchangeId],
exchange = new exchangeClass({
apiKey: functions.config().binance.apikey,
secret: functions.config().binance.secret,
timeout: 30000,
enableRateLimit: true

Keybase proof

I hereby claim:

  • I am rej156 on github.
  • I am ericjuta (https://keybase.io/ericjuta) on keybase.
  • I have a public key ASC57yvZave82zTnt6w-PoIN5OiLIJoMJmwv9iuFKiteQQo

To claim this, I am signing this object:

@ericjuta
ericjuta / _template.md
Created January 1, 2026 15:45
spec driven development - markdown template

<Title>:

  • Branch:
  • Status: Draft | In Progress | Ready for Review | Merged
  • Owner(s): <name(s)>
  • Created:
  • Last Updated:
  • Links: Issue · PR · Design/Doc

Purpose

@ericjuta
ericjuta / git.md
Created January 2, 2026 16:12
git spice ai doc

Git Workflow (git-spice)

  • NEVER use git commit - use gs commit create -m "message" instead

  • NEVER use git push - use gs stack submit instead

  • Before implementing multi-step features, present the stack structure for approval

  • Use conventional commits: type(scope): description

@ericjuta
ericjuta / devcontainer.json
Created January 4, 2026 11:33
devcontainer.json
{
"name": "Claude Code",
"build": {
"dockerfile": "Dockerfile",
"args": {
#!/usr/bin/env bun
import { $ } from "bun";
console.log("Updating pi...");
await $`bun update -g @mariozechner/pi-coding-agent`.quiet();
console.log("✓ pi updated\n");
@ericjuta
ericjuta / channel-registry.ts
Last active February 8, 2026 20:12
redis effect TS subscriptions.ts
import { Context, Effect, Layer, Ref, Runtime, type Scope } from "effect";
import type { RedisMessageHandler } from "@/lib/clients/redis-types";
import { redisMetrics } from "@/lib/telemetry/metrics";
import { type RedisError, redisErrorFromUnknown } from "./errors";
import { RedisCircuitBreaker } from "./circuit-breaker";