Skip to content

Instantly share code, notes, and snippets.

Bruno Coelho brunocoelho

Block or report user

Report or block brunocoelho

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
@brunocoelho
brunocoelho / regex-string-whitelist.js
Created Jun 20, 2018 — forked from steveosoule/regex-string-whitelist.js
JavaScript Regular Expression Whitelist for String
View regex-string-whitelist.js
// in the regex, the carrot(^) negates the match, so if the stringToReplace contains something that is not a-z or 0-9 it will be replaced
// In this case the desired string will only be alpha numeric characters, stripping out spaces and symbols
// Help from: http://stackoverflow.com/questions/4374822/javascript-regexp-remove-all-special-characters
var desired = stringToReplace.replace(/[^a-zA-Z0-9]/gi, '')
View osx-setup.md

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

You can’t perform that action at this time.