Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View multiplemonomials's full-sized avatar

Jamie Smith multiplemonomials

  • USC Rocket Propulsion Lab
View GitHub Profile
@multiplemonomials
multiplemonomials / CommandLine.cpp
Last active March 7, 2024 14:41
Cross-platform C++ class to execute programs on both Unix and Windows. Handles program paths and arguments containing spaces. Does not require C++11.
#include <string>
#include <cstring>
#include <vector>
#include <sstream>
#include <cstdio>
#include <iostream>
#ifdef WIN32
# include <fcntl.h>
# include <windows.h>
@multiplemonomials
multiplemonomials / Drunken Noodles.md
Last active March 9, 2023 02:57
Drunken Noodles: A vegan thai stir fry recipe brimming with flavor
@multiplemonomials
multiplemonomials / BundleOSXDependencies.cmake
Created September 3, 2018 23:40
BundleOSXDependencies
# Script run at install-time to:
# * locate dependencies of executables and libraries
# * copy them to the install directory
# * fix the install_name of the depender to point to the dependency on the RPATH
# * add a new RPATH entry on the dependency for its new location and remove its old install name
# * repeat above for dependencies of the dependency, and all other dependencies
# arguments:
# PACKAGE_PREFIX -- root of a UNIX-structure package to operate on
# CMAKE_SHARED_LIBRARY_SUFFIX -- pass this variable in from your CMake script

Indonesian Steamed Rice (Nasi Goreng) with Tofu

This is my twist on thevegetarianhannibal's recipe for Nasi Gorang, which is a sort of flavored, steamed dish of rice and veggies. I like this recipe because it has a fairly mild flavor, nothing too spicy or bold, but it still manages a to have a complex taste that'll leave you wanting more! I clarified/edited some parts of that recipe, and also added in some peppery pan-fried tofu that goes well with the salt-and-pepper flavor of the dish. It may not be super authentic but it sure does taste good!

Modified From:

thevegatarianhannibal's Nasi Goreng recipe

Tofu recipe from The Korean Vegan p. 243

Yield:

4-5 servings

20211217_091233 (2)

Modified From:

Cake: Chloe Flavor p. 234 Icing: TODO find citation

Yield:

1 cake layer plus icing (can double recipe to make a two layer cake)

Ingredients:

@multiplemonomials
multiplemonomials / Attempting to Connect the Wii Remote's Infrared Sensor to a Microcontroller.md
Last active July 6, 2022 08:28
Attempting to Connect the Wii Remote's Infrared Sensor to a Microcontroller

Attempting to Connect the Wii Remote's Infrared Sensor to a Microcontroller (+ Mouse Version)

Original blog post by Kako: http://www.kako.com/neta/2008-009/2008-009.html

Hand-translated to English by multiplemonomials


Last year (2007), I analyzed the Wii remote's infrared pointing sensor and tested out a method of controlling it from another machine. Continuing that, this time I attempted to make circuits to connect it to an Arduino dev kit that uses an AVR microcontroller. (4/13/2008)

1. Hardware

Yield

~40 cookies (2 sheets)

Ingredients

  • 281 g all-purpose flour
  • 20 g almond flour (helps with crispyness though you can replace with regular flour in a pinch)
  • 1 tsp baking soda
  • 1 tsp salt
  • 88 g vegetable shortening
  • 88 g fake butter (e.g. Earth Balance)
@multiplemonomials
multiplemonomials / Garlic Pepper Cashew Noodles.md
Last active March 27, 2022 05:59
Adapted version of a New York Times recipe that makes it vegan and adds crispy tofu.
@multiplemonomials
multiplemonomials / FindMKL.cmake
Last active May 6, 2021 23:03
CMake script to find MKL. A MKL Link Line Advisor in your pocket! (Does not work on Windows, yet) Heavily modified from the original (by hanjianwei), and battle tested across many different distros and computers, including the SDSC supercomputer Comet. Requires my other CMake gists, LibraryUtils.cmake and CheckLinkerFlag.cmake.
# - Find Intel MKL
# modified for AMBER
# Find the MKL libraries
#
# NOTE: MKL_MULTI_THREADED requires the patched FindOpenMPFixed module from the Amber-MD/cmake-buildscripts repository.
#
# Options:
#
# MKL_STATIC : use static linking. Requires linker support for the -Wl,--start-group flag.
# MKL_MULTI_THREADED: use multi-threading. Requires the FindOpenMP module

Analysis of the Infrared Pointing Sensor in the Wii Remote

Original blog post by Kako: http://www.kako.com/neta/2007-001/2007-001.html

Hand-translated to English by multiplemonomials


I took the infrared sensor from the PCB inside the remote, and I tried attaching an 8 pin (4 pins in two rows) connector to it.