⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
These reviews are very biased and reflect mostly my personal | |
preferences against the presented subjects. | |
Keynote videos are available at: http://velocityconf.com/velocity2012/public/schedule/proceedings | |
Breaking the mobile web (score: 2/5) | |
======================= | |
Estelle Weyl |
A palavra stream significa corrente. Em geral, qualquer conexão de rede é uma stream, e existem vários tipos de protocolos para streams. Esses protocolos definem como os dados fluem na corrente.
No PHP, vários protocolos são suportados de forma transparente:
<?php
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
Escrevo para compartilhar informações sobre o curso de Certificação ScrumMaster (CSM) que será realizado em TERESINA nos dias 01 e 02 de ABRIL. | |
Quem puder compartilhar com amigos e interessados, agradeço fortemente. | |
As inscrições já podem ser realizadas em www.goagil.com.br/inscricoes.php | |
Cordialmente, | |
Rodrigo Cursino | |
(81) 8849-1273 |
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() { | |
$('html,body').animate({scrollTop: $("#dataTable").offset().top},'slow'); | |
}); |
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
$('#enviaremail').on('click',function (e) { | |
var link = 'mailto:?body='+document.URL+'&subject='+document.title; | |
window.open(link, 'Enviar notícia por e-mail', 'width=600,height=600'); | |
e.preventDefault(); | |
}); |
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
#!/usr/bin/env php | |
# This function prints the difference between two php datetime objects | |
# in a more human readable form | |
# inputs should be like strtotime($date) | |
# Adapted from https://gist.github.com/207624 python version | |
function humanizeDateDiffference($now,$otherDate=null,$offset=null){ | |
if($otherDate != null){ | |
$offset = $now - $otherDate; | |
} |
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
- Composer/Packagist - A package and dependency manager.
- Composer Installers - A multi framework Composer library installer.
- Symfony2 - A framework comprised of individual components.
- Zend Framework 2 - Another framework comprised of individual components.
- Laravel 4 - A simple PHP framework.
- Lithium - Another framework of components.
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
if (window != top) top.location.href = location.href; | |
var id = 0; | |
var maxid = 0; | |
var zoom = false; | |
function addEvent(obj, method, func) { | |
if (obj.addEventListener) { | |
obj.addEventListener(method, func, false) | |
} else if (obj.attachEvent) { | |
if (!obj.events_size) obj.events_size = 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
DELIMITER $$ | |
DROP FUNCTION IF EXISTS `database`.`HTML_UnEncode`$$ | |
CREATE DEFINER=`root`@`127.0.0.1` FUNCTION `HTML_UnEncode`(x VARCHAR(255)) RETURNS varchar(255) CHARSET latin1 | |
BEGIN | |
DECLARE TextString VARCHAR(255) ; | |
SET TextString = x ; | |
#quotation mark |
OlderNewer