Skip to content

Instantly share code, notes, and snippets.

View wooters's full-sized avatar

Chuck Wooters wooters

View GitHub Profile
@wooters
wooters / go-compile-all.sh
Last active March 23, 2019 16:17
Small script to cross-compile a go package.
#!/usr/bin/env bash
# based on https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
package=$1
if [[ -z "$package" ]]; then
echo "usage: $0 <package-name>"
exit 1
fi
package_name=$(basename $package .go)
@wooters
wooters / find_outliers.py
Last active January 26, 2019 17:42
Find outliers in a set of points. This is based on: http://stackoverflow.com/a/22357811/8879 (with slight modifications)
import numpy as np
def is_outlier(points, thresh=3.5):
"""
Returns a boolean array with True if points are outliers and False
otherwise.
Parameters:
-----------
points : An numobservations by numdimensions array of observations
@wooters
wooters / git_collaboration_notes.md
Last active September 18, 2021 18:51
Notes on developing code collaboratively using git

Git+GitHub Collaboration

This gist provides some info on how to collaborate on software projects using git+GitHub. It is focused on the Fork & Pull collaboration model. This model is described as:

In the fork and pull model, anyone can fork an existing repository and push changes to their personal fork without needing access to the source repository.

Note: I mostly use GitHub. I haven't verified that these instructions will work for other hosting services such as GitLab. I suspect they will but I'd love some feedback on this.

@wooters
wooters / reactjs.md
Last active January 25, 2016 22:32
Notes from a beginner: React.js

Notes from a beginner: React.js

What is it?

A javascript library for building user interfaces

Useful references

Read these (in order):

  1. Getting Started
@wooters
wooters / LBFGSonOSX_10.8.2.md
Last active December 14, 2015 13:48
Compiling LBFGS on Mac OSX (10.8.2). Also includes some info about how to integrate the library with the SRI LM Toolkit.

Installing libLBFGS on Mac OSX 10.8.2

(Note: this assumes that you have XCode and the XCode command line tools installed.)

Download

The libLBFGS source code can be found here.