This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meshes = [ | |
{ | |
name = "plane" | |
materials = [ | |
{ | |
name="default" | |
textures=[ | |
"diffuse" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coalesce(L, R[n], occurrences = 1): | |
if L == R[0]: | |
return coalesce(L, R[1..n], occurrences + 1) | |
else: | |
A = coalesce(L, R[1..n], occurrences) | |
B = coalesce(R[0], R[1..n]) | |
if A occurs more often than B: | |
return A | |
else if B occurs more often than A: | |
return B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct v3_octree_lod { | |
unsigned level; | |
v3_voxel_t voxels[0]; | |
} v3_octree_lod_t; | |
V3_API void v3_octree_lod_coalesce( | |
const v3_octree_lod_t *coalesee, | |
v3_octree_lod_t *coalesed, | |
const v3_voxel_t *(*select)(const v3_voxel_t *V, const size_t V_n)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFINES += -DGAME_VERSION="\"$(shell build/version.sh)\"" | |
DEFINES += -DENGINE_VERSION="\"$(shell cd engine; ../build/version.sh)\"" | |
DEFINES += -DCONTENT_VERSION="\"$(shell cd data_src; ../build/version.sh)\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct renderable { | |
struct renderable *prev, *next; | |
bool (*render)(const struct renderable *r, ...); | |
}; | |
static struct renderable *render_list_head_ = ...; | |
static struct renderable *render_list_tail_ = ...; | |
void render(...) { | |
const struct renderable* r = render_list_tail_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Compilation error on file lib/socket/socks.ex == | |
** (CompileError) lib/socket/socks.ex:50: function size/1 undefined | |
(stdlib) lists.erl:1336: :lists.foreach/2 | |
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6 | |
(elixir) src/elixir.erl:170: :elixir.erl_eval/3 | |
(elixir) src/elixir.erl:158: :elixir.eval_forms/4 | |
(elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/2 | |
(elixir) src/elixir.erl:170: :elixir.erl_eval/3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings = { | |
shadows = { | |
dynamic = { | |
atlas = { | |
dimensions = { | |
min = [1024, 1024] | |
max = [4096, 4096] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(BUILD)/lib/agl.lib: $(BUILD)/bin/agl.dll | |
@echo "[AR] $@" | |
@mkdir -p ${@D} | |
@dumpbin -exports "$(call posix-to-windows,$<)" > $(@:%.lib=%.exports) | |
@echo EXPORTS >> $(@:%.lib=%.def) | |
@tail -n +20 $(@:%.lib=%.exports) | awk -F" " '{print $$4}' | sed '/^$$/d' >> $(@:%.lib=%.def) | |
@rm $(@:%.lib=%.exports) | |
@lib $(ARFLAGS) -DEF:"$(call posix-to-windows,$(@:%.lib=%.def))" -OUT:"$(call posix-to-windows,$@)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker -v | |
Docker version 1.6.2, build 7c8fca2 | |
$ docker-compose --version | |
docker-compose 1.2.0 | |
$ docker-compose up | |
Creating meetwalter_web_1... | |
Creating meetwalter_api_1... | |
Creating meetwalter_identity_1... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
attr_reader :meaning_of_life, | |
:how_long_do_i_have, | |
def initialize(three_score_and_ten=70) | |
@meaning_of_life = 42 | |
@how_long_do_i_have = three_score_and_ten | |
end | |
end |
OlderNewer