Skip to content

Instantly share code, notes, and snippets.

View luisabarca's full-sized avatar
🏠
Working from home

Luis Abarca luisabarca

🏠
Working from home
View GitHub Profile
@luisabarca
luisabarca / gist:963975
Created May 10, 2011 05:58
Cambiar permisos a varios archivos o carpetas / Chmod to any file or folder
# Para Archivos
find . -type f -print0 | xargs -0 chmod 644
# Para carpetas
find . -type d -print0 | xargs -0 chmod 755
@faisalman
faisalman / print_r.js
Last active September 13, 2021 02:57
PHP-like print_r() & var_dump() equivalent for JavaScript
/**
* PHP-like print_r() equivalent for JavaScript Object
*
* @author Faisalman <[email protected]>
* @license http://www.opensource.org/licenses/mit-license.php
* @link http://gist.github.com/879208
*/
var print_r = function (obj, t) {
// define tab spacing
@ScottPhillips
ScottPhillips / createqrcode.php
Created February 1, 2011 20:55
Create a QR Code using PHP and Google
function createQR($url,$size ='150',$evLevel='L',$margin='0') {
$url = urlencode($url);
return '<img src="http://chart.apis.google.com/chart?chs=' . $size . 'x' . $size . '&cht=qr&chld=' . $evLevel . '|' . $margin . '&chl=' . $url . '" alt="QR code" width="' . $size . '" height="' . $size . '"/>';
}
echo createQR('http://www.wickedbrilliant.com',150);