Skip to content

Instantly share code, notes, and snippets.

@garyhodgson
garyhodgson / Echo.java
Created September 30, 2014 12:07
Fabric8 Property Update Issue
package com.garyhodgson.test.echofabric8profile;
public class Echo {
public static void main(String[] args) {
long i = 0;
String msg = (args.length > 0)?args[0]:"Nothing.";
while (true) {
@garyhodgson
garyhodgson / examplejob.yml
Created August 21, 2014 18:00
rundeck bug report
- id: 8c9ea3c2-4906-4bf6-83e6-dcb26b813dc6
project: project1
loglevel: INFO
sequence:
keepgoing: false
strategy: node-first
commands:
- type: localexec
nodeStep: true
configuration:

Keybase proof

I hereby claim:

  • I am garyhodgson on github.
  • I am garyhodgson (https://keybase.io/garyhodgson) on keybase.
  • I have a public key whose fingerprint is B0A7 8FB7 3BF6 3282 FE4A E862 26D2 5FD3 1317 6D47

To claim this, I am signing this object:

{
"$schema":"http://json-schema.org/draft-03/schema#",
"type":"object",
"properties":{
"id":{
"type":"string"
},
"version":{
"type":"number"
},
diff --git a/printrun/projectlayer.py b/printrun/projectlayer.py
index 0288782..f51b377 100644
--- a/printrun/projectlayer.py
+++ b/printrun/projectlayer.py
@@ -275,49 +275,49 @@ class SettingsFrame(wx.Frame):
# Left Column
fieldsizer.Add(wx.StaticText(self.panel, -1, "Layer (mm):"), pos=(0, 0), flag=wx.ALIGN_CENTER_VERTICAL)
- self.thickness = wx.TextCtrl(self.panel, -1, str(self._get_setting("project_layer", "0.1")), size=(80, -1))
+ self.thickness = wx.TextCtrl(self.panel, -1, str(self._get_setting("_project_layer", "0.1")), size=(80, -1))
"""
A plugin providing a web app for generating a
TiddlyWiki-based editor for a single tiddler.
"""
from httpexceptor import HTTP400, HTTP404
from tiddlyweb.control import determine_bag_from_recipe
from tiddlyweb.model.bag import Bag
from tiddlyweb.model.collections import Tiddlers
@garyhodgson
garyhodgson / gist:5477631
Created April 28, 2013 17:31
FREP-CSG script to create an example microstructure.
var sphereradius = 10;
var lattice = new CSG({sphereradius:sphereradius}, {color:[0.7,0.7,0.9]}, function(coords, params, attrs) {
var sphere = CSG.sphere({center:[0,0,0],radius:params.sphereradius});
var sphereval = sphere.call(coords)[0];
var lx = 0.55;
var ly = lx;
function main(){
return CSG.cube({center: [0,0,0],radius: [5,17.5,4.125], resolution: 16}).subtract([CSG.cube({center: [3,3,4.135],radius: [3,3,4.135], resolution: 16}).subtract([CSG.cylinder({start: [0,0,0], end: [0,0,8.27],radiusStart: 3, radiusEnd: 3, resolution: 12})]).translate([-3,-3,-4.135]).translate([5,17.5,0]).rotateX(0).rotateY(0).rotateZ(0).union([CSG.cube({center: [0,0,5.01],radius: [0,0,5.01], resolution: 16}).translate([0,0,-5.01]).translate([4.125,17.5,0]).rotateX(0).rotateY(-90).rotateZ(0),CSG.cube({center: [0,0,5.01],radius: [0,0,5.01], resolution: 16}).translate([0,0,-5.01]).translate([4.125,17.5,0]).rotateX(360).rotateY(90).rotateZ(0)]).union([CSG.cube({center: [3,3,4.135],radius: [3,3,4.135], resolution: 16}).subtract([CSG.cylinder({start: [0,0,0], end: [0,0,8.27],radiusStart: 3, radiusEnd: 3, resolution: 12})]).translate([-3,-3,-4.135]).translate([17.5,5,0]).rotateX(0).rotateY(0).rotateZ(90),CSG.cube({center: [0,0,17.51],radius: [0,0,17.51], resolution: 16}).translate([0,0,-17.51]).tra
gear (circular_pitch=700,
gear_thickness = 12,
rim_thickness = 15,
hub_thickness = 17,
circles=8);
pi=3.1415926535897932384626433832795;
module gear (
{
"type": "object",
"properties": {
"things": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uuid": {
"type": "string",