Profile
Achievement
luizlopes's Recent Snippets
- All /
« Prev 1 Next »
HTML Snippet for apple-touch-icon for all of the different iOS devices, and Android 2.0 supported Icon.
0
1084
posted 12 years ago by luizlopes
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0
1052
posted 12 years ago by luizlopes
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
0
974
posted 12 years ago by luizlopes
When you use the `+` operator on an Array, it converts it to a string.` [].toString()` is the same as `[].join(',')`, which gives an empty string in case the array value is `undefined` or `null`. This also works in Javascript `([undefined] + "b" ===...
0
592
posted 12 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0
765
posted 12 years ago by luizlopes
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0
843
posted 12 years ago by luizlopes
I took this out of an example in tutsplus, and I added a fadeIn action for aesthetic reasons.
0
1064
posted 13 years ago by luizlopes
after recording screen cast using recordmydesktop this is a fast way of converting the file to .avi so it can be uploaded to youtube or other video sharing sites.
0
759
posted 15 years ago by luizlopes
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1
1014
posted 15 years ago by luizlopes
My friend Jamal Fanaian showed me how to convert a string to its' ASCII value.
0
3172
posted 15 years ago by luizlopes
This can be used as a general function to get the value stored in any of the possible input sources.
use
0
837
posted 16 years ago by luizlopes
This was taken out of a presentation by eZ systems on PHP Best Practices
0
730
posted 16 years ago by luizlopes