Skip to content

Instantly share code, notes, and snippets.

# Run from the superproject root
git submodule foreach --recursive '
b=$(git config -f "$toplevel/.gitmodules" "submodule.$name.branch")
if [ -z "$b" ]; then
echo "No branch set in .gitmodules for $name (path: $path). Skipping."
else
echo "Updating $name at $path → branch: $b"
# Ensure the remote exists and fetch latest
git fetch --all --prune
# Checkout the branch (create local tracking if missing)
const fs = require('fs');
const htmlContent = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Side-by-side DIVs</title>
<style>
// Main cylinder/shaft
shaftW=10;
cylW=17;
cylH=28.23;
// Plate to affix to turntable
ttFixPlateW = 39;
ttFixPlateH = 3;
screwHoleW=3.5;
screwHoleOffset=15.3888;
@doctorbling
doctorbling / rc1.lua
Created September 9, 2012 07:43
turtle_scripts
function RCmaster()
while true do
local sEvent, param = os.pullEvent("key")
if(sEvent == "key") then
if(param == 200) then
rednet.broadcast("TS Forward")
elseif (param == 208) then
rednet.broadcast("TS Backward")
elseif (param == 203) then
rednet.broadcast("TS TurnLeft")
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>nDs</title>
<link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
<link href="nd.css" media="screen" rel="stylesheet" type="text/css">
<script src='http://brandonaaron.net/javascripts/plugins/mousewheel.js' type='text/javascript'></script>