Skip to content

Instantly share code, notes, and snippets.

View despairblue's full-sized avatar
🍸
I always let my imagination run away from me! Then it comes back..... with cake!

Danny Martini despairblue

🍸
I always let my imagination run away from me! Then it comes back..... with cake!
View GitHub Profile
#!/usr/bin/env ruby
# Invoke with `ruby md2cre.rb filename.md`
#
# Setup: `gem install redcarpet`
require 'rubygems'
require 'redcarpet'
class Creole < Redcarpet::Render::Base
def normal_text(text)

Roughly Chronological Game Development Bucket List

  • Be inspired
  • Have an idea for a game
  • Throw out a game idea
  • Have an idea for a game you can actually make
  • Create a paper prototype
  • Create a digital prototype
  • Design a game
  • Program a game

The prep-script.sh will setup the latest Node and install the latest perf version on your Linux box.

When you want to generate the flame graph, run the following (folder locations taken from install script):

sudo sysctl kernel/kptr_restrict=0

perf record -i -g -e cycles:u -- ~/sources/node/node --perf-basic-prof script.js

perf script | egrep -v "( __libc_start| LazyCompile | v8::internal::| Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | sed 's/ LazyCompile:[*~]\?/ /' | ~/sources/FlameGraph/stackcollapse-perf.pl > out.perf-folded