Skip to content

Instantly share code, notes, and snippets.

View jeremy-code's full-sized avatar

Jeremy Nguyen jeremy-code

View GitHub Profile
@jeremy-code
jeremy-code / README.md
Created May 24, 2025 07:27
Desk of the Presiding Officer of the United States Senate 1858 - 1949
  • Designed by Thomas U. Walter in 1858
  • Historic walnut desk
  • Occupied by the presiding officer of the United States Senate since 1858 - 1949
  • First user was Vice President John Breckenridge (1857-1861)
  • Last user was Vice President Alben W. Barkley from January 3, 1949 to July 1949

A color photo of the Research/ Reading Room in Margaret I. King North Library. The desk at the left was Vice President Barkley's desk from the United States Senate. Photographer: Terry Warth, 1985, University of Kentucky, University of Kentucky general photographic prints

@jeremy-code
jeremy-code / README.md
Created May 24, 2025 10:33
Moore & Ward

Pioneer Photographers from the Mississippi to the Continental Divide: A Biographical Dictionary, 1839-1865, Peter E. Palmquist, Thomas R. Kailbourn, 2005, Page 447

[Justus E. Moore and Captain Ward] received official permission to set up their daguerreian apparatus in the Capitol, including in the private chambers of Vice President Johnson and in the chamber of the Senate Committee on Military Affairs. In early March, Moore wrote that he and Ward had "taken many likenesses of the most distinguished members of the Senate and the House of Representatives." Even newly elected President William Henry Harrison sat for Moore and Ward in early March; their portrait of Harrison is thought to have been the first ever taken of a president, and probably was the last portrait taken of him before his death in April 1841.

Sources:

  1. Thomas M. Weprich, "The Pencil of Nature in Washington, D.C.: Daguerre-otyping the President," Daguerreian Annual 1995 (Pittsburgh: Daguerreian Society,1995), pp. 115, 117 nn. 1-3; New Yor
@jeremy-code
jeremy-code / package.json
Last active June 2, 2025 00:35
husky + lint-staged package.json
{
"name": "libxslt-wasm-demo",
"private": true,
"version": "0.0.0",
"dependencies": {
"husky": "^9.1.7",
"lint-staged": "^16.1.0"
}
}
@jeremy-code
jeremy-code / README.md
Last active June 2, 2025 08:22
Promises resolve to the same value

The title kind of sounds like gibberish but wait let me explain.

const main = async () => {
  const promise1 = Promise.resolve(Math.round(Math.random() * 100));
  const promise2 = promise1.then((value1) => value1 + 1);

  const [value1, value2] = await Promise.all([promise1, promise2]);
  // Value 1: 49, Value 2: 50
 console.log(`Value 1: ${value1}, Value 2: ${value2}`);