Skip to content

Instantly share code, notes, and snippets.

View wezoalves's full-sized avatar

Weslley Alves wezoalves

View GitHub Profile
@wezoalves
wezoalves / nginx.conf
Created June 26, 2012 20:02 — forked from carlosfilho88/nginx.conf
Zend with nginx
server {
listen 80;
server_name www.zf.local zf.local;
index /index.php;
charset utf-8;
root "/home/workspace/zf/public";
access_log /var/log/nginx/zf/access.log;
error_log /var/log/nginx/zf/error.log;
@wezoalves
wezoalves / gist:3710417
Created September 12, 2012 22:23 — forked from pedroelsner/gist:3212276
Masked Input Celular
// jQuery Masked Input
$('#celular').mask("(99) 9999-9999?9").ready(function(event) {
var target, phone, element;
target = (event.currentTarget) ? event.currentTarget : event.srcElement;
phone = target.value.replace(/\D/g, '');
element = $(target);
element.unmask();
if(phone.length > 10) {
element.mask("(99) 99999-999?9");
} else {
@wezoalves
wezoalves / youtube-feeds.md
Created October 1, 2017 01:34 — forked from tracend/youtube-feeds.md
Youtube Feeds
https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID
https://www.youtube.com/feeds/videos.xml?user=USERNAME
https://www.youtube.com/feeds/videos.xml?playlist_id=PLAYLISTID

Notes:

You can get the channel id by searching for the attribute data-channel-external-id in the source code of the youtube page