Skip to content

Instantly share code, notes, and snippets.

View nassor's full-sized avatar

Nassor Paulino da Silva nassor

View GitHub Profile
@nassor
nassor / compressor.go
Last active March 16, 2021 20:15
Zlib Compress in Go -> Redis List -> Zlib Uncompress in Ruby
package main
import (
"bytes"
"compress/zlib"
"fmt"
"time"
"github.com/vmihailenco/msgpack"
redis "gopkg.in/redis.v5"
@nassor
nassor / .gitattributes
Created August 20, 2019 14:25
.gitattributes for Unity (from github plugin)
* text=auto
# Unity files
*.meta -text merge=unityyamlmerge diff
*.unity -text merge=unityyamlmerge diff
*.asset -text merge=unityyamlmerge diff
*.prefab -text merge=unityyamlmerge diff
*.mat -text merge=unityyamlmerge diff
*.anim -text merge=unityyamlmerge diff
*.controller -text merge=unityyamlmerge diff
@nassor
nassor / Program.cs
Created May 5, 2021 15:55 — forked from andrewloable/Program.cs
Use a library compiled in Go in c# (.net)
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace GoSharedDLL
{
class Program
{
[DllImport("shared.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
private static extern IntPtr ReturnReversedString(byte[] input);