Skip to content

Instantly share code, notes, and snippets.

View irvinebroque's full-sized avatar

Brendan Irvine-Broque irvinebroque

View GitHub Profile
@irvinebroque
irvinebroque / README.md
Created November 18, 2026 03:56
Minimal Cloudflare CLI and configuration type reproductions

Minimal Cloudflare CLI and type reproductions

These examples use synthetic names and data. Authenticate your CLI normally when running remote commands. Use disposable resources you own.

R2 SQL command exit status

Requires an R2 SQL-enabled catalog and permission to query it. Set CATALOG_ID to its identifier, then run r2-sql-exit.sh. Wrangler 4.164.0 prints error 40003 for SELECT 1 (which does not reference a table) but returns status 0.

RPC configuration type inference

@irvinebroque
irvinebroque / interview.md
Created December 30, 2025 00:31 — forked from robzolkos/interview.md
Claude Code Interview command by Thariq
description Interview me about the plan
argument-hint
plan
model opus

Read this plan file $1 and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious.

Keybase proof

I hereby claim:

  • I am irvinebroque on github.
  • I am irvinebroque (https://keybase.io/irvinebroque) on keybase.
  • I have a public key whose fingerprint is 0134 EE06 D8CD ED37 8154 7E83 F05E AE32 E1C6 AC4C

To claim this, I am signing this object:

function shortenUrl() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var longUrls = sheet.getRange("J3:J10").getValues();
var writeValues = []
for (var i =1 ; i <= numRows; i++) {
var row = []
var numRows = longUrls.getNumRows();
var numCols = longUrls.getNumColumns();
var React = require('react');
var myComponent = React.createClass({
getInitialState: function() {
return {
hover: false
};
},
@irvinebroque
irvinebroque / component.js
Created February 4, 2015 02:47
React.js Inline Styles
var React = require('react');
var myComponent = React.createClass({
getInitialState: function() {
return {
hover: false
};
},
@irvinebroque
irvinebroque / hotLoadServer.js
Created November 26, 2014 19:17
Simple webpackDevServer
// This little dev server is basically a wrapped express server that 'hot loads' our javascript for super fancy and fast live reload in development
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var port = process.env.HOT_LOAD_PORT || 3001;
new WebpackDevServer(webpack(config), {
publicPath: 'http://localhost:3001/build/',
hot: true
@irvinebroque
irvinebroque / hotLoadServer.js
Last active August 29, 2015 14:10
Server-side React-Router v0.11 + React-Hot-Loader
// This little dev server is basically a wrapped express server that 'hot loads' our javascript for super fancy and fast live reload in development
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var port = process.env.HOT_LOAD_PORT || 3001;
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true
@irvinebroque
irvinebroque / mailchimp.08.11.12
Created August 11, 2012 01:03
New Mailchimp Template 08/11/12
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Facebook sharing information tags -->
<meta property="og:title" content="*|MC:SUBJECT|*">
<title>*|MC:SUBJECT|*</title>