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 / git-utils
Created March 11, 2017 21:06
git utils
count lines of code
git ls-files | grep pas | xargs wc -l
[Experimento]
Pesquisador.Nome=Thais
Nome=Teste 1.Estudo 1.MC1
Objetivo=Testar a microcultura 1 do Estudo 1.
Jogadores.Novos.Enviar_Histórico_do_BatePapo=0
Jogadores.GerarAutomaticamente=0
Pesquisador.PodeJogar=0
Pesquisador.BatePapo=0
TipoDePontuação=1
TipoDaMatrix=CORES,LINHAS,
@cpicanco
cpicanco / Monokai.xml
Last active March 27, 2024 21:42
Dark theme for Lazarus IDE. Copy to "userschemes" inside primary config path
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<Lazarus>
<ColorSchemes Version="11">
<Names Count="1">
<Item1 Value="Monokai"/>
</Names>
<Globals Version="11">
<SchemeMonokai>
<ahaGutter Background="2238503"/>
@cpicanco
cpicanco / gaze_positions.txt
Last active October 15, 2016 00:22
Data Sample
time x_norm y_norm
0.000000000 679.069 -9.932
0.031957695 679.238 -12.210
0.068050574 676.819 -12.154
0.100027332 676.453 -12.683
0.132040243 674.701 -12.623
0.168026488 675.431 -12.521
0.200026816 675.696 -11.634
0.232030647 674.571 -10.161
0.268027329 675.868 -8.231
@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