Skip to content

Instantly share code, notes, and snippets.

View arjo129's full-sized avatar
💭
🦀

Arjo Chakravarty arjo129

💭
🦀
View GitHub Profile
------------------------------- MODULE hanoi -------------------------------
EXTENDS Integers, Sequences
\* Towers of hanoi problem
VARIABLES tower1, tower2, tower3
\* Initiallize the towers
Init == /\ tower1 = <<3,2,1,0>>
/\ tower2 = <<0>>
/\ tower3 = <<0>>
\* Transition rules
@chewwt
chewwt / chat.msg
Last active August 21, 2018 07:14 — forked from spaghetti-/chat.msg
std_msgs/Header header
std_msgs/String source_id
std_msgs/String message
@codebrainz
codebrainz / main.c
Created June 23, 2015 02:48
List include files using libclang
#include <stdio.h>
#include <stdlib.h>
#include <clang-c/Index.h>
enum CXChildVisitResult
onVisitCursor(CXCursor cursor, CXCursor parent, CXClientData client_data)
{
if (clang_getCursorKind(cursor) == CXCursor_InclusionDirective) {
CXFile file = clang_getIncludedFile(cursor);