Skip to content

Instantly share code, notes, and snippets.

Result* GetExistingRouteChunk<Count>(batchStart, start, end)
{
bool results[Count];
bool found = false;
for ( int r = 0; r < Count; r++)
{
const bool isActive = bActive[batchStart + r]
//I am assuming isActive == false means pr is still OK to read
def create_section(game, attrs \\ %{}) do
section = Ecto.build_assoc(game, :sections)
IO.puts("SECTION: #{inspect(section, pretty: true)}")
section = Proj23.Level.Section.changeset(section, attrs)
IO.puts("SECTION: #{inspect(section, pretty: true)}")
end
RESULTS
;------------------------------------------------
; Playing around with Racket
;------------------------------------------------
(define app
(lambda (lst1 lst2)
(if (null? lst1)
lst2
(cons (car lst1) (app (cdr lst1) lst2 )))))
<skeleton bone_count="47" name="rabb_01_milkshape.ms3d.ao">
<bone rot_w="0.04288221895694733" rot_x="0.007575079798698425" rot_y="-0.6707315444946289" rot_z="-0.7404207587242126" loc_x="-0.0016643102280795574" loc_y="0.01176845096051693" parent="-1" name="Bip01"/>
<bone rot_w="0.5905253887176514" rot_x="0.06274251639842987" rot_y="0.8038658499717712" rot_z="0.03380664065480232" loc_x="0.0037542120553553104" loc_y="0.0016684429720044136" parent="0" name="Bip01 Spine"/>
<bone rot_w="0.5514950752258301" rot_x="0.2046426236629486" rot_y="0.8079349994659424" rot_z="-0.034868400543928146" loc_x="0.08710502088069916" loc_y="-0.04411271959543228" parent="1" name="Bip01 Neck"/>
<bone rot_w="0.5471541881561279" rot_x="0.32147669792175293" rot_y="-0.4863934814929962" rot_z="-0.600580096244812" loc_x="0.07493352890014648" loc_y="-0.00017682835459709167" parent="2" name="Bip01 L Clavicle"/>
<bone rot_w="0.6224683523178101" rot_x="-0.06390891969203949" rot_y="-0.7041863203048706" rot_z="-0.3355152010917
Armature found: rabb_01_milkshape.ms3d.ao
Bip01 ID: 0 Parent: -1
-Bip01 Spine ID: 1 Parent: 0
--Bip01 Neck ID: 2 Parent: 1
---Bip01 L Clavicle ID: 3 Parent: 2
----Bip01 L UpperArm ID: 4 Parent: 3
-----Bip01 L Forearm ID: 5 Parent: 4
------Bip01 L Hand ID: 6 Parent: 5
-------Bip01 L Finger1 ID: 7 Parent: 6
--------Bip01 L Finger1Nub ID: 8 Parent: 7
'''
======================
3D surface (color map)
======================
Demonstrates plotting a 3D surface colored with the coolwarm color map.
The surface is made opaque by using antialiased=False.
Also demonstrates using the LinearLocator and custom formatting for the
z axis tick labels.
2017-08-03 11:55:21.104 example-16-shadowmapsDebug[243:17096] /Users/james/bgfx_new/bgfx/src/bgfx.cpp (2680): BGFX Init...
2017-08-03 11:55:21.125 example-16-shadowmapsDebug[243:17096] /Users/james/bgfx_new/bgfx/src/bgfx.cpp (1353): BGFX Application called bgfx::renderFrame directly, not creating render thread.
2017-08-03 11:55:21.125 example-16-shadowmapsDebug[243:17096] /Users/james/bgfx_new/bgfx/src/bgfx.cpp (1369): BGFX Running in multi-threaded mode
2017-08-03 11:55:21.352 example-16-shadowmapsDebug[243:17052] /Users/james/bgfx_new/bgfx/src/glcontext_eagl.mm (197): BGFX Screen size: 960 x 640
2017-08-03 11:55:21.366 example-16-shadowmapsDebug[243:17052] /Users/james/bgfx_new/bgfx/src/glcontext_eagl.mm (349): BGFX Import:
2017-08-03 11:55:21.367 example-16-shadowmapsDebug[243:17052] /Users/james/bgfx_new/bgfx/src/glimports.h (462): BGFX 0x26308ac9 glVertexAttribIPointer (glVertexAttribIPointer)
2017-08-03 11:55:21.367 example-16-shadowmapsDebug[243:17052] /Users/james/bgfx_new/bgfx/src/glimports.h (463):
2017-08-03 11:48:32.018 example-16-shadowmapsDebug[240:15925] /Users/james/bgfx/bgfx/bgfx/src/bgfx.cpp (2650): BGFX Init...
2017-08-03 11:48:32.036 example-16-shadowmapsDebug[240:15925] /Users/james/bgfx/bgfx/bgfx/src/bgfx.cpp (1329): BGFX Application called bgfx::renderFrame directly, not creating render thread.
2017-08-03 11:48:32.036 example-16-shadowmapsDebug[240:15925] /Users/james/bgfx/bgfx/bgfx/src/bgfx.cpp (1345): BGFX Running in multi-threaded mode
2017-08-03 11:48:32.140 example-16-shadowmapsDebug[240:15877] /Users/james/bgfx/bgfx/bgfx/src/glcontext_eagl.mm (197): BGFX Screen size: 480 x 320
2017-08-03 11:48:32.150 example-16-shadowmapsDebug[240:15877] /Users/james/bgfx/bgfx/bgfx/src/glcontext_eagl.mm (349): BGFX Import:
2017-08-03 11:48:32.151 example-16-shadowmapsDebug[240:15877] /Users/james/bgfx/bgfx/bgfx/src/glimports.h (462): BGFX 0x26308ac9 glVertexAttribIPointer (glVertexAttribIPointer)
2017-08-03 11:48:32.152 example-16-shadowmapsDebug[240:15877] /Users/james/bgfx/bgfx/bgfx/src/glimports.h

Keybase proof

I hereby claim:

  • I am jamesmintram on github.
  • I am jamesmintram (https://keybase.io/jamesmintram) on keybase.
  • I have a public key ASCnq8mErt5CZZi07XPUZDAw5QgdNlBQ01c0ZO_7wiZqygo

To claim this, I am signing this object:

# -----------------------------
# PipelineDB configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed