for your convinience this instuction is available as:
gist
git repo
# settings
require 'mustache' | |
class Layout < Mustache | |
self.template = "Header | |
{{{yield}}} | |
Footer" | |
end | |
class Index < Mustache | |
self.template = "The Index." |
raycast3D = function(pos, dir, callback) | |
local base = {x=math.floor(pos.x), y=math.floor(pos.y), z=math.floor(pos.z)} | |
local stepx, stepy, stepz = 0, 0, 0 | |
local componentx, componenty, componentz = 0, 0, 0 | |
local intersectx, intersecty, intersectz = 0, 0, 0 | |
if dir.x == 0 then | |
intersectx = math.huge | |
elseif dir.x > 0 then | |
stepx = 1 |
the | |
of | |
to | |
and | |
a | |
in | |
is | |
it | |
you | |
that |
# Copyright 2012 Erlware, LLC. All Rights Reserved. | |
# | |
# This file is provided to you under the Apache License, | |
# Version 2.0 (the "License"); you may not use this file | |
# except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, |
#!/bin/bash | |
# How to install Graphite as a user on CentOS 5.5 (with neither internet access and root account) | |
# -------------------------------------------------------------------------------- | |
# Tomasz Kalkosiński - refaktor.blogspot.com | |
# | |
# Graphite is a Scalable Realtime Graphing (http://graphite.wikidot.com/) | |
# This script is based on two excellent tutorials: | |
# http://community.webfaction.com/questions/10038/how-to-install-pycairo-in-python27-thanks |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
Tips about implementing parse_transform
erlc -S
to check what the compiled forms look like#include<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#include<sys/mman.h> | |
typedef void V;typedef int I;typedef double F;typedef unsigned char C,*S;typedef long L; | |
#define O printf | |
#define R return | |
#define I(a...) if(a) | |
#define W(a...) while(a) |