Skip to content

Instantly share code, notes, and snippets.

View zinosama's full-sized avatar
🎯
zzz

Zino zinosama

🎯
zzz
  • Chicago, IL
View GitHub Profile

When working with RSpec at Chowbus, we get failures like this (especially on our ubuntu CI server) from time to time:

# assuming persons table has created_at and updated_at
person = create(:person)
expect(Person.all).to contain_exactly(person)

This is because database (postgres in our case) and Ruby (ActiveRecord)

@zinosama
zinosama / c_question.md
Last active September 12, 2018 23:04
C question about array of structs
typedef struct transition* Transition;
typedef struct state* State;

struct state {
  int goal;
  int transition_cnt;
  Transition transitions; // points to a transition[]
};

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: