Skip to content

Instantly share code, notes, and snippets.

import math
def invertPath(path):
CmdMoveRapid = ["G0", "G00"]
CmdMoveStraight = ["G1", "G01"]
CmdMoveCW = ["G2", "G02"]
CmdMoveCCW = ["G3", "G03"]
CmdDrill = ["G73", "G81", "G82", "G83"]
CmdMoveArc = CmdMoveCW + CmdMoveCCW
CmdMove = CmdMoveStraight + CmdMoveArc

Format:

IR's overlay gui framework is built with nested elements. You always start with a top level element, then add sub elements.

{
  "someattribute": "somevalue",
  "anotherattrib": 6,
  "elements: [
    {...},
    {...},
 {...}
[
{
"comment": "spedometer area",
"image": "immersiverailroading:tex/stuff/spedo.png",
"x": 0.01,
"y": 0.90,
"width": 0.10,
"height": 0.10,
"elements": [
{
@cam72cam
cam72cam / IR Controls.md
Last active January 23, 2024 14:15
IR Controls.md

Interactable Controls:

  • Can have a TL_ for each axis
Stock Changes
* Move j1a texas, t1, ps4, huskyline, autorack to Legend's resource pack
* Move gp-7, old boxcar, old flatcat, old tankcar to legacy resource pack
* Updates from all of the modelers to add missing components / tweak components
* Adjust steam loco firebox sizes
* Adjust loco/stock passenger bounds
Features
* Better static icon render system
* Add config option to enable older rendering pipeline
@cam72cam
cam72cam / custom world generator config
Created October 8, 2017 19:42
Immersive Railroading World Settings
{"coordinateScale":254.47887,"heightScale":1,"lowerLimitScale":1127.5352,"upperLimitScale":1268.352,"depthNoiseScaleX":212.16197,"depthNoiseScaleZ":212.16197,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":5000,"mainNoiseScaleY":5000,"mainNoiseScaleZ":5000,"baseSize":3.8732395,"stretchY":50,"biomeDepthWeight":1.1338028,"biomeDepthOffset":0,"biomeScaleWeight":1,"biomeScaleOffset":16.338028,"seaLevel":20,"useCaves":true,"useDungeons":true,"dungeonChance":8,"useStrongholds":true,"useVillages":true,"useMineShafts":false,"useTemples":true,"useMonuments":false,"useMansions":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":4,"useLavaLakes":true,"lavaLakeChance":90,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":5,"dirtSize":33,"dirtCount":10,"dirtMinHeight":0,"dirtMaxHeight":256,"gravelSize":33,"gravelCount":8,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":33,"graniteCount":10,"graniteMinHeight":0,"graniteMaxHeight":256,"dioriteSize":33,"dioriteCount":10,"dioriteMinHeight":0,"di
=> is depends upon
Foo => Zlib
Zlib => Bar
Bar => Foo(+no_zlib)
END ITERATION
Foo no longer depends on Zlib
for i in $(seq 2 30); do
curl "https://ajax.googleapis.com/ajax/services/feed/load?v=2.0&q=http://kingjamesprogramming.tumblr.com/page/$i/rss&num=" 2> /dev/null | python -m json.tool | grep '"content"' | \
sed -e 's/ *"content": //' | \
sed -e 's/<\/*[a-z]*>//g' | \
sed -e 's/"//g' | \
sed -e 's/\\n//g' | \
sed -e 's/,$//'
done
name="glib2"
iteration="3"
version="2.38.2"
desc="Common C routines used by GTK+ and other libs"
url="http://www.gtk.org/"
src=('http://ftp.gnome.org/pub/GNOME/sources/glib/2.38/glib-2.38.2.tar.xz')
bdeps=('libc(+dev)' 'pkg-config' 'zlib(+dev)' 'pcre(+dev)' 'libffi(+dev)' 'python2')
deps=('libc' 'libffi' 'zlib' '[-dev]pcre' '[+dev]python2' '[+dev]pcre(+dev)')
flags=('-dbg' '-dev' '-doc' '+locale')
srcdir="glib-$version"
@cam72cam
cam72cam / gist:f6253592faf5ee59be08
Created March 19, 2015 21:09
COSI Hist from JNM
Jeanna arrived in 2000
Jan had VR lab in 2nd floor SC
Negotiated to get space for graduate students prior to arrival, got 4th floor SC
There was a PC lab in ERC with cisco networking academy
Jeanna got a grant to repurpose that lab to be the ITL
First spring was in 2001, taught undergrad OS.
started using vmware for hands-on OS labs in the present-day ITL
Another professor suggested that COSI room be used as COSI.