Skip to content

Instantly share code, notes, and snippets.

View cpicanco's full-sized avatar
🏠
Working from home

Rafael Picanço cpicanco

🏠
Working from home
View GitHub Profile
1. Install MSYS2 from https://msys2.github.io/
2. Install Mingw-W64 `pacman -S mingw-w64-i686-gcc`
3. Install git autoconf automake libtool make pkg-config
`pacman -S git`
`pacman -S autoconf`
`pacman -S automake`
`pacman -S libtool`
`pacman -S make`
`pacman -S pkg-config`
4. yasm:http://yasm.tortall.net/,change to yasm.exe,move to C:\msys32\usr\bin
@cpicanco
cpicanco / SDL Audio.cpp
Last active January 2, 2024 12:40 — forked from andraantariksa/SDL Audio.cpp
SDL simple record and playback
#include <SDL.h>
#include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
#include <sstream>
#include <ctime>
const int MAX_RECORDING_DEVICES = 10;
@cpicanco
cpicanco / kmeansExample.py
Created November 19, 2015 22:37 — forked from iandanforth/kmeansExample.py
A pure python implementation of K-Means clustering. Optional cluster visualization using plot.ly.
#############################################################################
# Full Imports
import sys
import math
import random
import subprocess
"""
This is a pure Python implementation of the K-Means Clustering algorithmn. The