sudo cp /private/etc/php.ini.default /private/etc/php.ini;
sudo php /usr/lib/php/install-pear-nozlib.phar;
pear config-set php_ini /private/etc/php.ini;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"items": [ | |
{ | |
"code": "+93", | |
"country": "Afghanistan" | |
}, | |
{ | |
"code": "+355", | |
"country": "Albania" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msgid "" | |
msgstr "" | |
"Project-Id-Version: \n" | |
"POT-Creation-Date: \n" | |
"PO-Revision-Date: \n" | |
"Last-Translator: Klederson Bueno <[email protected]>\n" | |
"Language-Team: \n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Pure Javascript implementation of Uniforum message translation. | |
Copyright (C) 2008 Joshua I. Miller <[email protected]>, all rights reserved | |
This program is free software; you can redistribute it and/or modify it | |
under the terms of the GNU Library General Public License as published | |
by the Free Software Foundation; either version 2, or (at your option) | |
any later version. | |
This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is a experimental and fun script/tutorial that demonstrates how to translate sites USING Gettext | |
* without use _() stuff ( or others ) in your html just by parsing all your html visible text. | |
* | |
* @author Klederson Bueno <[email protected]> | |
* @see http://jsgettext.berlios.de/doc/html/Gettext.html | |
* @see http://www.phpburn.com/ | |
* @version 0.1a | |
*/ | |
var iFindTranslator = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* MOVED TO: https://github.com/iFind/html5MultidimensionalStorage | |
* | |
* This methods extends the default HTML5 Storage object and add support | |
* to set and get multidimensional data | |
* | |
* @example Storage.setObj('users.albums.sexPistols',"blah"); | |
* @example Storage.setObj('users.albums.sexPistols',{ sid : "My Way", nancy : "Bitch" }); | |
* @example Storage.setObj('users.albums.sexPistols.sid',"Other songs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lineHeight = 26//parseInt($textarea.css('line-height'),10) || parseInt($textarea.css('font-size'),'10'), | |
minheight = 32 //|| lineHeight*3, | |
maxheight = parseInt($textarea.css('max-height'),10) || Number.MAX_VALUE, | |
goalheight = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var currentURL = metaphone(location.href); | |
var minPercent = 11.00; | |
var lastMatch = ''; | |
$('#mymenu > ul > li > a').each(function() { | |
var url = $(this).attr('href'); | |
var compare = metaphone(url); | |
var dist = levenshtein(currentURL,compare); | |
var percent = ( (dist/Math.max(currentURL.length,compare.length)) * 100 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Lendo o conteúdo oriundo do Banco de Dados | |
$data = $orderProduct->content; | |
//Criando uma imagem baseada em uma string | |
$dataImage = imagecreatefromstring($data); | |
//Se ocorreu tudo bem executar o processo de exibição da imagem | |
//Lembrar sempre que isso deve ser uma chamada a parte por ex: http://localhost/minhaImagem.php ou http://localhost/os/verImagem/1 |
NewerOlder