Fredrik

About Fredrik

A tumblr theme coded whilst live streaming :)

Search

Tumblr Links

  • RSS
  • Archive
  • Random
  • Ask

Pages

  • Documentation
  • Purchase Theme
  • Blog Based Index
  • Change Log
  • Select Page
    • Documentation
    • Purchase Theme
    • Blog Based Index
    • Change Log

Social Links

  • Skype
  • Twitter

Dribbble

    Loading...

Latest Tweet

  • Post Tags:
  • article

A regular text post

Date: 30 June 2012 Shares: 0

So let’s say I write a text-only post. Since there’s no photo attached to the post (to be used on the front page), it could be optional to put one in here using inline HTML.An HTML graphic or a static image could be used on the front page where projects are being presented.

The problem

Fusce orci dolor, suscipit eu mollis et, tincidunt vitae ligula. Duis congue tincidunt tortor, sed tempor nulla suscipit rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut porttitor feugiat arcu. Pellentesque dignissim mauris in nisl lacinia quis aliquet dolor fermentum. Sed malesuada ante id nulla tincidunt cursus. Aliquam eget nisi quis odio tempus ultrices eget ac nibh.

And this is what prettyprint looks like:

tell application "Terminal"
	do script with command "python /path/to/your/script.py"
end tell

The solution

Fusce orci dolor, suscipit eu mollis et, tincidunt vitae ligula. Duis congue tincidunt tortor, sed tempor nulla suscipit rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut porttitor feugiat arcu. Pellentesque dignissim mauris in nisl lacinia quis aliquet dolor fermentum. Sed malesuada ante id nulla tincidunt cursus. Aliquam eget nisi quis odio tempus ultrices eget ac nibh.

But this time, prettyprint with linenums:

// DISTANCE BETWEEN PARTICLE AND CAMERA
vector $camPosition = <>;
vector $particlePosition = particleShape1.worldPosition;
particleShape1.distanceToCamPP = mag($particlePosition-$camPosition);

// DEPTH DISTANCE (GREEN)
float $depthDistance = cameraShape1.farClipPlane-cameraShape1.nearClipPlane;

// DEPTH DISTANCE CONVERSION (RANGE NODE FORMULA)
float $oldMin = 0;
float $oldMax = $depthDistance;
float $min = 0;
float $max = 1;
float $outValueDepth = $min + (((particleShape1.distanceToCamPP-$oldMin)/($oldMax-$oldMin)) * ($max-$min));

// HEIGHT DISTANCE (RED)
vector $floorLocation = <>;
vector $heightColor = (particleShape1.worldPosition - $floorLocation) / (roofLoc1.translateY-$floorLocation);
$outValueHeight = $heightColor.y;

// SET COLOR
particleShape1.rgbPP = <>;

But sometimes you need sub-headlines too

I usually go with h4

Let’s say unordered lists…

  • Unordered List 1
  • Unordered List 2
  • Unordered List 3

Yeah h4 is pretty nice

But also ordered ones…

  1. Ordered List 1
  2. Ordered List 2
  3. Ordered List 3

Nested lists!

  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk

Quoting Steve Jobs

A lot of people in our industry haven’t had very diverse experiences. So they don’t have enough dots to connect, and they end up with very linear solutions without a broad perspective on the problem. The broader one’s understanding of the human experience, the better design we will have. 

This is a H1 Heading

This is a H2 Heading

This is a H3 Heading

This is a H4 Heading

This is a H5 Heading
This is a H6 Heading
  •  
  • Index
  • Next Post

Fin