Joined March 2012
·
Posted to
[PHP] String Length, The Right Way
over 1 year
ago
Take a look at the mbstring.func_overload
php.ini setting too: http://us1.php.net/manual/en/mbstring.overload.php
Posted to
Generate a .gitignore file right from the command-line
over 1 year
ago
You mentioned github, anyone working on a project they're going to host on github you should know that when you create a new repository, you can create it with a .gitignore
file that you select for the particular language/platform you're going to use.
Posted to
Reuse parts of previous command
over 1 year
ago
Awesome, I didn't know about that. I also recently discovered that there's even a var that gets set: $_
is set to the last arg of the previous command.
Posted to
'git pull' is evil!
over 1 year
ago
Thank you @jugyo and @nevir - git pull
is hardly evil if you use it properly.
Posted to
Only digits: Regex and filter_var
over 1 year
ago
$simpler_regex = preg_replace( '/\D/', '', $str);
Posted to
Random string generator, Bash
over 1 year
ago
Found I needed LC_ALL on bash v4.2 in OSX Terminal
Achievements
253 Karma
10,866 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Octopussy
Have a repo followed by a member of the GitHub team
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Ashcat
Make Ruby on Rails better for everyone by getting a commit accepted
If you make two commits, then other users will also be fine.