Skip to content

Instantly share code, notes, and snippets.

Fabio Neves fzero

  • Bitbang Interface Inc.
  • Toronto, ON
Block or report user

Report or block fzero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fzero / threads.rb
Last active Jul 30, 2018
Ruby skeleton for parallel iteration using threads with thread count
View threads.rb
# Thread count control
# This is the collection of data you need to process with threads
collection = []
# A nice array to store your thread objects
threads = []
fzero /
Created May 28, 2018
RBC Frontend fundamentals - Advanced CSS
fzero /
Last active May 24, 2018
RBC Frontend fundamentals - Flexbox
fzero /
Last active May 22, 2018
RBC - Lecture notes - May 22, 2018

Intro to CSS

This is the code we've worked on during May 22 class. Feel free to use it as reference!

fzero / voice-recog.js
Last active Mar 16, 2018
Google Voice Recognition API example
View voice-recog.js
// We've followed documentation links and played with the example code a bit:
// Start here:
// If you need an audio editor, try Audacity:
// usage: node voice-recog.js soundfile.flac en-US
// The second argument is the language code (e.g. en-US, pt-BR, fr-CA...)
fzero / keymap.cson
Created Jan 24, 2017
Fix atom keymap with vim-mode-plus
View keymap.cson
'ctrl-c': 'core:copy'
'ctrl-x': 'core:cut'
'ctrl-v': 'core:paste'
'ctrl-c': 'core:copy'
'ctrl-x': 'core:cut'
'ctrl-v': 'core:paste'
fzero /
Created Dec 7, 2016
Fix Postgres encoding issue

Is you attempt to do a bin/rails db:setup or something similar and it complains like this:

PG::InvalidParameterValue: ERROR:  encoding "UTF8" does not match locale "en_US"
DETAIL:  The chosen LC_CTYPE setting requires encoding "LATIN1".

Run these commands in your Vagrant box:

fzero /
Last active Mar 27, 2017
Bash prompt customizations for git use
# Git prompt goodness, adapted and curated from several sources.
# Just add this code to your .bash_profile/.bashrc to use it.
# It looks like this:
# ~/my/folder(my-git-branch)$
# There are variations if there are untracked files (a + will appear), uncommited changes
# (branch colour turns yellow) and if you need to pull/push (arrows will appear).
function parse_git_branch {
fzero /
Last active Aug 29, 2015 - Converts .wav files to 16bits/44khz (CD quality)
# - Converts .wav files to 16bits/44khz (CD quality)
# Many iPad audio apps need this, and it's a good size/quality ratio for
# uncompressed audio anyway. Fuck Neil Young and other clueless audiophiles.
# Download this to somewhere in your $PATH and make it exectutable with
# chmod a+x
# WAV conversion function - uses ffmpeg
function convertwav {
fzero / .vimrc.after.vim
Created Jul 16, 2014
.vimrc.after - My VIM configs on top of Janus
View .vimrc.after.vim
" Customizations
if has("gui_macvim")
" Get rid of toolbar buttons
set go=egmrLi
let macvim_hig_shift_movement=1
let g:solarized_termcolors=256
set t_Co=256
set background=dark
You can’t perform that action at this time.