Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Lospinoso JLospinoso

View GitHub Profile
View keybase.md

Please publicly post the following Gist, and name it keybase.md

Keybase proof

I hereby claim:

  • I am jlospinoso on github.
  • I am jlospinoso (https://keybase.io/jlospinoso) on keybase.
  • I have a public key ASDWMxFL1-NPPitPCMXyE4sfiPNdh1KqdJV0pPVFcsLZ6Ao
@JLospinoso
JLospinoso / mattermost-driver.go
Created Jun 18, 2016
Example of using the mattermost golang driver
View mattermost-driver.go
package main
import (
"log"
"time"
mattermost "github.com/mattermost/platform/model"
)
func printTeams(client *mattermost.Client) {
r, e := client.GetAllTeams()
View main.cpp
#include <iostream>
#include <memory>
#include "MemoryPrinter.h"
#define MEM_SIZE 32
#define HEADER "\x01\x02\x03\x04\x05\x06\x07\x08\x09"
#define HEADER_LENGTH 9
#define ALIGNMENT 8
#define BUFFER "\x10\x11\x12\x13\x14\x15\x16\x17"
#define BUFFER_LENGTH 8