About me I've been a computer programmer since I first started typing in program listings on a Commodore Vic 20 when I was about 8. My hobbies include electronics, CNC manufacturing, photography, beer and winemaking.
I live with my wife and lots of left-over parts from unfinished projects in Lincoln, Nebraska, USA.]
Blog
26 November 2025, 16:09 UTCJunk drawer & embedding
I have been working on leaving github.
One thing I liked from github was gist, including command-line upload and the ability to embed it.
I want to replace this but with codeberg. And, I think I've gotten close.
More polish wouldn't hurt, but ehhh...
First, here's the script for uploading:
And here's an example of embedding:
19 February 2015, 19:31 UTCCheating at incremental games using angularjs
I don't know a thing about javascript frameworks, but I like to cheat at
incremental games. So it's frustrating when a game is made with some framework
that seems to leave everything inaccessible. (I think this is more about
the framework trying to be hygenic than anti-cheating)
So I was happy to learn enough about angularjs to cheat at my favorite
incremental game of the moment, Swarm Simulator.
var sc = angular.element(document.querySelector('.ng-scope')).scope()
sc.env.isDebugEnabled = 1
sc.game._units.byName.nexus.prodByName.energy.val = new Decimal(1000)
sc.game.unit('mutagen')._addCount(new Decimal(1e100))
13 August 2008, 13:01 UTCMarking anchors in HTML with a javascript bookmark
To send links to internal anchors in HTML documents, use this bookmarklet.
I find this bookmarklet very useful when sending people links to emc
documentation and the wiki, because there are often more anchors available than
those that are actually linked to in tables of contents.
11 September 2005, 18:15 UTC in softwareglif: generate client-side gif files from javascript
It probably won't be the biggest thing since AJAX, but I hit upon the
idea of generating images client-side. The current ways to do this seem to
involve using tables or absolute-positioning of very small DIVs. (See, for
example, http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm) My
technique, which I call glif (for GIF and glyph),
generates a gif-format image on the client side.
One application for this that comes immediately to mind is client-side
generation of sparklines-type images, possibly from an AJAX source.
glif.html is a small demo which draws a sine wave in an image (Known not to work in IE) Update: SparGlif demo
Junk drawer & embedding
I have been working on leaving github.
One thing I liked from github was gist, including command-line upload and the ability to embed it. I want to replace this but with codeberg. And, I think I've gotten close. More polish wouldn't hurt, but ehhh...
First, here's the script for uploading:
And here's an example of embedding:
Cheating at incremental games using angularjs
I don't know a thing about javascript frameworks, but I like to cheat at incremental games. So it's frustrating when a game is made with some framework that seems to leave everything inaccessible. (I think this is more about the framework trying to be hygenic than anti-cheating)
So I was happy to learn enough about angularjs to cheat at my favorite incremental game of the moment, Swarm Simulator.
var sc = angular.element(document.querySelector('.ng-scope')).scope()
sc.env.isDebugEnabled = 1
sc.game._units.byName.nexus.prodByName.energy.val = new Decimal(1000)
sc.game.unit('mutagen')._addCount(new Decimal(1e100))
Marking anchors in HTML with a javascript bookmark
To send links to internal anchors in HTML documents, use this bookmarklet.
I find this bookmarklet very useful when sending people links to emc documentation and the wiki, because there are often more anchors available than those that are actually linked to in tables of contents.
glif: generate client-side gif files from javascript
It probably won't be the biggest thing since AJAX, but I hit upon the idea of generating images client-side. The current ways to do this seem to involve using tables or absolute-positioning of very small DIVs. (See, for example, http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm) My technique, which I call glif (for GIF and glyph), generates a gif-format image on the client side.
One application for this that comes immediately to mind is client-side generation of sparklines-type images, possibly from an AJAX source.
glif.html is a small demo which draws a sine wave in an image (Known not to work in IE) Update: SparGlif demo
All older entries
Website Copyright © 2004-2024 Jeff Epler