View gist:57363e6422839d320f32f729a7b43bfe

Usefule Git commands

push a newly created branch up to master

git push --set-upstream origin dev.ash.whatever_the_branchname_is

View StaticMeshSpawner.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "StaticMeshSpawner.h"
#include "UObject/ConstructorHelpers.h"
#include "Engine/StaticMesh.h"
#include "Engine/CollisionProfile.h"
#include "Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h"
// Sets default values
View unity_bezier.cs
public class BezierCurve
float[] sampledLengths;
Vector3[] points;
public BezierCurve(Vector3[] points)
this.points = points;
View metrics.fbs
namespace metrics;
enum Type : byte {
INT = 0,
table Metric {

Installation in Vagrant

If you are running a Vagrant based VM (Virtualbox) and have mounted folders in which you wish to intialize a virtualenv, you need to add the --always-copy flag, like so:

virtualenv venv --always-copy

Otherwise, you'll end up with an OSError: [Errno 71] blah blah blah symlink



If you forked, you will have a remote branch named origin which points to the version of your repository as it currently exists on the GitHub servers. Note, however, that your fork is disconnected from Epic's version of the repository -- we need to remedy that.

If you have not already done so, define a new remote branch pointing to Epic's UnrealEngine repo:

git remote add upstream

A simple cheatsheet for Emacs


  C- = Ctrl + additional key
  M- = Alt + additional key(s)

Pane commands

   Key        | Description

TMUX cheatsheet

Starting and connecting to tmux

To create an initial tmux instance:


With a session name:

View unixy.txt
# list the terminal emulators instaleld
$ find /lib/terminfo /usr/share/terminfo -name "*256*"
View early_vs_not
// The question is - which makes more sense in a general case:
// early outs or single entry/exit.
// Note mystringcopy() returns the number of characters actually copied. mystringcopy()
// should also be considered functionally irrelevant - this question is more about
// early outs vs single entry/exit.
const unsigned int fixedlength = 255;
bool destTest01(const char *const valueA,
const char *const valueB)