Skip to content

Instantly share code, notes, and snippets.

View hellola's full-sized avatar

Ewoudt Kellerman hellola

  • E-Factor
  • Melbourne
View GitHub Profile
# Add the folder you choose in your config/application.rb
# example:
# config.autoload_paths << Rails.root.join('app/solargraph')
gen_directory = Rails.root.join("app", "solargraph")
# run the script as a rails runner:
# bundle exec rails r ./bin/generate_solar_models.rb
type_translation = {
decimal: "Decimal",
#!/usr/bin/env ruby
class LSystem
attr_accessor :axiom
attr_accessor :rules
def initialize(axiom, rules)
@axiom = axiom
@rules = rules
@layer = [axiom]
@hellola
hellola / gist:3634335
Created September 5, 2012 09:58
Shapes!
namespace MyGame
{
/// <summary>
/// The drawing class helps to manage shapes on a canvas.
/// There are helper methods like AddShape, SelectShapeAtPoint etc.
/// The drawing class can also draw all of the shapes that it contains.
/// </summary>
public class Drawing
{
/// <summary>