links for 2009-06-09

June 10, 2009
  • <blockquote>
    <p style="text-align: justify;">The Maine Senate has given final approval to a measure intended to put Maine's Dirigo Health Insurance program on a healthier financial footing.&nbsp; The House approved the bill Friday, and Gov. John Baldacci, the bill's sponsor, is expected to sign it.</p>
    <p style="text-align: justify;">The bill provides an alternative to the Dirigo Health Program's current funding mechanism, a so-called "savings offset" fee assessed on insurers, which is based on how much health care savings the program generates.&nbsp; Because the amount of savings is difficult to accurately nail down, the system has led to court battles.</p>
    <p style="text-align: justify;">Instead of relying on savings estimates, the new system will assess a fixed 2.14 percent fee on paid claims.&nbsp; The Maine House passed the measure Friday by a vote of 83 to 53, and the Senate followed suit today by a vote to 20 to 15.</p>
    </blockquote>
  • <blockquote>
    <pre>
    void branch(float h) {

    h *= (float) $('#val_size_1').val();

    // All recursive functions must have an exit condition!!!!
    // Here, ours is when the length of the branch is 2 pixels or less
    if (h > 5) {
    pushMatrix(); // Save the current state of transformation (i.e. where are we now)
    rotate(theta); // Rotate by theta
    line(0,0,0,-h); // Draw the branch
    translate(0,-h); // Move to the end of the branch
    //ellipse(0, 0, 40, 40);
    branch(h); // Ok, now call myself to draw two new branches!!
    popMatrix(); // Whenever we get back here, we "pop" in order to restore the previous matrix state

    // Repeat the same thing, only branch off to the "left" this time!
    pushMatrix();
    rotate(-theta);
    line(0,0,0,-h);
    translate(0,-h);
    branch(h);
    popMatrix();
    }
    }
    </pre>
    </blockquote>

  • <blockquote>
    <pre>
    // just type here
    // and click "submit" when done

    void setup(){
    size(301,301);
    }

    void draw() {
    background(290, mouseX, 50);
    noStroke();

    fill(mouseX, 139, mouseY);
    rect(45, 45, 45, 45);
    fill(20, mouseY, mouseX);
    rect(50, 50, 35, 35);

    fill(mouseX, 139, mouseY);
    rect(100, 100, 100, 100);
    fill(mouseX, 20, mouseY);
    rect(50, 50, 35, 35);

    fill(mouseX, mouseY, 139);
    rect(200, 200, 200, 200);
    fill(20, mouseY, mouseX);
    rect(50, 50, 35, 35);

    fill(mouseX, mouseY, mouseY);
    rect(100, 100, 100, 100);
    fill(20, mouseY, mouseX);
    rect(50, 50, 35, 35);

    }
    </pre>
    </blockquote>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: