Skip to content

Instantly share code, notes, and snippets.

View jonasagx's full-sized avatar

Jonas Xavier jonasagx

  • Cambia Health
  • UTC-8
View GitHub Profile
@jonasagx
jonasagx / git-gpg.md
Created October 28, 2021 07:36 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
  1. brew install gnupg, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    

Keybase proof

I hereby claim:

  • I am jonasagx on github.
  • I am jagx (https://keybase.io/jagx) on keybase.
  • I have a public key ASAHmw3GaI955V-7hILCsFEQTl7-MZrL80XO-i5Yt_0ZgAo

To claim this, I am signing this object:

@jonasagx
jonasagx / xmlparser.go
Last active January 5, 2018 19:27 — forked from chrisfarms/xmlparser.go
Really rough example of using xml.Parser
package main
import (
"fmt";
"io"
"xml"
"strings"
)
@jonasagx
jonasagx / Makefile
Created April 5, 2017 00:42
Makefile for Go Projects
GOPATH=$(shell pwd)/vendor:$(shell pwd)
GOBIN=$(shell pwd)/bin
GOFILES=$(wildcard *.go)
GONAME=$(shell basename "$(PWD)")
PID=/tmp/go-$(GONAME).pid
build:
@echo "Building $(GOFILES) to ./bin"
@GOPATH=$(GOPATH) GOBIN=$(GOBIN) go build -o bin/$(GONAME) $(GOFILES)
mkdir venv
cd venv
virtualenv 3.4 -p $(which python3) --system-site-packages
cd ..
source venv/3.4/bin/activate
mkdir projects
cd projects
git clone https://jonasagx@github.com/wiki-ai/revscoring
cd revscoring
python -m nltk.downloader stopwords