Skip to content

Instantly share code, notes, and snippets.

View cadrev's full-sized avatar

Felan Carlo Garcia cadrev

View GitHub Profile
/**
* Like, basically PERFECT scrollbars
*/
/*
It's pure CSS.
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars...
this has no fade-out effect.
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting.
@cadrev
cadrev / psql.md
Last active August 29, 2015 14:25 — forked from schaternik/pg_hba.conf
Postgresql

PSQL -- PostgreSQL interactive terminal

sudo -u postgres psql -> postgres=#

CREATE DATABASE test_database;

CREATE USER test_user WITH password 'qwerty';

GRANT ALL privileges ON DATABASE test_database TO test_user;

@cadrev
cadrev / gist:10506216e36777d3bfdf
Last active September 19, 2015 07:38 — forked from codinguncut/gist:c4359d9bc6f36549b625
kaggle collection
  1. feature engineering (most important by far)!!!!!
  2. simple models
  3. overfitting leaderboard
  4. ensembling
  • predict the right thing!
  • build pipeline and put something on the leaderboard
  • allocate time to play with data, explore
  • make heavy use of forums
  • understand subtleties of algos, know what tool to use when
@cadrev
cadrev / gist:fe766c8ec5ec40ec8a9c
Created September 24, 2015 14:44 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@cadrev
cadrev / waveform.py
Created October 30, 2015 16:07 — forked from mixxorz/waveform.py
Generate waveform images from audio files
# Requires pydub (with ffmpeg) and Pillow
#
# Usage: python waveform.py <audio_file>
import sys
from pydub import AudioSegment
from PIL import Image, ImageDraw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cadrev
cadrev / songs.ipynb
Created December 16, 2015 14:10 — forked from carlward/songs.ipynb
Songs from API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cadrev
cadrev / 123 datasets.csv
Created December 16, 2015 14:19 — forked from octaviomtz/123 datasets.csv
123 machine learning databases
Problem File Name Relation Name nRows TestMethod nTrain nTest nVars nTargets
abalone/abalone.arff abalone 4177 test-set cross-validation 4077 100 8 3
acute-inflammation/acute-inflammation.arff acute-inflammation 120 leave-one-out cross-validation 119 100 6 2
acute-nephritis/acute-nephritis.arff acute-nephritis 120 leave-one-out cross-validation 119 100 6 2
adult/adult_train.arff adult 32561 test-set cross-validation 32461 100 14 2
annealing/annealing_train.arff annealing 798 test-set cross-validation 698 100 31 5
arrhythmia/arrhythmia.arff arrhythmia 452 leave-one-out cross-validation 451 100 262 13
audiology-std/con_patrons_repetidos/audiology-std_train.arff audiology-std 194 leave-one-out cross-validation 193 100 59 18
audiology-std/audiology-std_train.arff audiology-std 171 leave-one-out cross-validation 170 100 59 18
balance-scale/balance-scale.arff balance-scale 625 test-set cross-validation 525 100 4 3