Skip to content

Instantly share code, notes, and snippets.

View runemadsen's full-sized avatar

Rune Skjoldborg Madsen runemadsen

View GitHub Profile
if node['gitlab']['env'] == "production"
[node['gitlab']['repos_path'], node['gitlab']['satellites_path']].each do |f|
directory f do
owner node['gitlab']['user']
group node['gitlab']['group']
mode 00644
action :create
recursive true
end

Figures

Figures in Atlas is straight up HTML:

<figure id="figure1-1">
 <img src="../../figures/18333fig0101-tn.png"/>
  <figcaption>Local version control diagram.</figcaption>
</figure>
void setup()
{
size(640, 360, P3D);
background(0);
background(0);
noStroke();
translate(200, 100, 0);
rotateY(radians(50));
void setup()
{
size(640, 360, P3D);
background(0);
smooth();
}
void draw()
{
background(0);
import processing.opengl.*;
import processing.pdf.*;
//import geomerative.*;
import toxi.color.*;
import toxi.util.datatypes.*;
void setup()
{
size(640, 360, P3D);
beginRaw(PDF, "ITPlogo01.pdf");
void setup()
{
size(500, 500);
background(255);
smooth();
translate(0, 20);
for(int i = 20; i > 0; i--)
{
void setup()
{
size(600, 800);
background(22, 117, 200);
noStroke();
int numCircles = 3;
int y = 0;
while (y < height)
void setup()
{
ArrayList<Integer> myNumbers = new ArrayList<Integer>();
for(int i = 0; i < 20; i++)
{
myNumbers.add(i);
}
for(int i = 0; i < 10; i++)
void setup()
{
size(1000, 800);
translate(0, height/2);
float x = 0;
while(x < width)
{
float y = sin(x/50.0) * 50;
ellipse(x, y, 10, 10);
int maxLevel;
void setup() {
size(600, 800);
background(0);
stroke(255);
smooth();
noFill();