Profile
Achievement
mattkenefick's Recent Snippets
- All /
« Prev 1 Next »
I should've wrote this function a LONGGG time ago.
foreach($myArray, function($k, $v){
console.log($k + " :: " + $v);
});
3
873
posted 14 years ago by mattkenefick
Returns an array of files that match a search term in a certain directory.
1
690
posted 14 years ago by mattkenefick
Removes trailing slashes from URLs, forces all urls to index.php
0
666
posted 14 years ago by mattkenefick
find . | xargs grep 'string' -sl
The -s is for summary and won't display warning messages such as grep: ./directory-name: Is a directory
The -l is for list, so we get just the filename and not all instances of the match displayed in the results...
2
1069
posted 15 years ago by mattkenefick
Just to include and implement the SWFObject to an HTML body from a generic "/js/" directory with some basic varibles.
[applies to OLD version of SWF Object]
1
657
posted 16 years ago by mattkenefick