Skip to content

Instantly share code, notes, and snippets.

View brunomrpx's full-sized avatar

Bruno Mayer Paixão brunomrpx

  • Azion
  • Tramandaí/RS
View GitHub Profile
@brunomrpx
brunomrpx / .vimrc
Last active August 29, 2015 14:10
My .vimrc file
" Linhas do arquivo
set number
" Esquema de cores
colorscheme peachpuff
" Identação automática
set autoindent
" Tamanho da tecla TAB
@brunomrpx
brunomrpx / ajax.js
Last active December 3, 2015 00:44
Simple object to make Ajax requests
var ajax = (function() {
'use strict';
var xmlHttpRequest;
var states = {
UNSET: 0,
OPENED: 1,
HEADERS_RECEIVED: 2,
LOADING: 3,
@brunomrpx
brunomrpx / angular-remove-di.js
Last active February 23, 2016 14:25
Script to remove dependecy injection declaration of AngularJs files
#!/usr/bin/nodejs
var fs = require('fs');
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(data) {
var fileList = data.split('\n'),
file;
@brunomrpx
brunomrpx / remove-ds_store.sh
Created August 22, 2017 14:35
Remove all .DS_Store from project
# from: https://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch