Skip to content

Instantly share code, notes, and snippets.

View juarezpaf's full-sized avatar

Juarez Filho juarezpaf

  • Dublin City, Ireland
View GitHub Profile
To build plpython against a specific Python, set PYTHON prior to brewing:
PYTHON=/usr/local/bin/python brew install postgresql
See:
http://www.postgresql.org/docs/9.0/static/install-procedure.html
If this is your first install, create a database with:
initdb /usr/local/var/postgres
If this is your first install, automatically load on login with:
@juarezpaf
juarezpaf / gist:707799
Created November 20, 2010 12:52
Primeira aula do curso de Imersão Front-end com Cleiton no Treinatom
<!DOCTYPE html>
<html>
<head>
<title>Oi, essa é minha página</title>
</head>
<body>
<article>
<header>
<hgroup>
<h1>Apple admite problemas em antena e oferece "capinha" grátis para iPhone 4</h1>
<!DOCTYPE html><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://ryanscherf.net/demos/swipe/"><div style="margin:-1px -1px 0;padding:0;border:1px solid #999;background:#fff"><div style="margin:12px;padding:8px;border:1px solid #999;background:#ddd;font:13px arial,sans-serif;color:#000;font-weight:normal;text-align:left">This is Google&#39;s cache of <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">http://ryanscherf.net/demos/swipe/</a>. It is a snapshot of the page as it appeared on 21 Nov 2010 05:48:08 GMT. The <a href="http://ryanscherf.net/demos/swipe/" style="text-decoration:underline;color:#00c">current page</a> could have changed in the meantime. <a href="http://www.google.com/intl/en/help/features_list.html#cached" style="text-decoration:underline;color:#00c">Learn more</a><br><br><div style="float:right"><a href="http://webcache.googleusercontent.com/search?q=cache:o0JlW6UUorUJ:ryanscherf.net/demos/swipe/+jquery+swipe&amp;hl
#!/usr/bin/expect -f
# Password change shell script, tested on Linux and FreeBSD
# ----------------------------------
# Copyright (c) 2006 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# display usage
@juarezpaf
juarezpaf / app.js
Created February 10, 2011 03:56 — forked from nickpettit/app.js
$(function() {
$("a.reset").toggle();
$("a.play").click(function () {
$(".color").toggleClass("on");
window.setTimeout(function() {
$("div").toggleClass("rounded");
}, 1000);
@juarezpaf
juarezpaf / gist:895975
Created March 31, 2011 07:41
Wordpress with Google Calendar Integration got from http://www.e-dynamics.be/bbpress/topic.php?id=586#post-3402
Here's the code for the Google Calendar sync. Keep in mind that I still haven't added much error checking yet (and I did have to make a couple of small changes to the core to get things working (I'm hoping they can be included in future releases):
eme_events.php
LINE 2811
added event ID to array so that the google calendar edit URL can be added to the attributes for future updates/deletes
$event['event_id'] = $event_ID;
LINE 1405
Remove Google URL from duplicated event
@juarezpaf
juarezpaf / JavaScriptMVC.md
Created June 8, 2011 17:49 — forked from jupiterjs/JavaScriptMVC.md
JavaScriptMVC Overview

The following is a VERY rough draft of an article I am working on for Alex MacCaw's @maccman's Book. It is very rough, but even now a worthwhile read. Suggestions / comments are very welcome! Please help me :-)

Introduction

JavaScriptMVC (JMVC) is an open-source jQuery-based JavaScript framework. It is nearly a comprehensive (holistic) front-end development framework, packaging utilities for testing, dependency management, documentation, and a host of useful jQuery plugins.

Yet every part of JavaScriptMVC can be used without every other part, making the library lightweight. Its Class, Model, View, and Controller combined are only 7k minified and compressed, yet even they can be used independently. JavaScriptMVC's independence lets you start small and scale to meet the challenges of the most complex applications on the web.

This chapter covers only JavaScriptMVC's $.Class, $.Model, $.View, and $.Controller. The following describes each component:

@juarezpaf
juarezpaf / gist:1018265
Created June 10, 2011 05:09
Um Brilho Saiu Do Seu Olhar...
http://www.midiagospel.com.br/variedades/poesias/um-brilho-saiu-do-seu-olhar.html
Um brilho saiu do seu olhar e inundou com alegria meu coração;
Um sonho tão doce para sonhar que desperta em nós a emoção;
Um sorriso abriu em meu viver com a voz que traz paz ao meu coração;
E por isso contigo eu quero ser um só corpo e com Deus estar em união;
O amor é assim, não dá pra explicar...
O amor é assim, nos faz sonhar;
O amor verdadeiro entre um homem e uma mulher é puro;
Eu sei que foi Deus que fez você para mim;
jQuery(function($) {
/*Simple Tabs*/
//When page loads...
$(".tab_container > div").hide();
$("ul.tabs li:first").addClass("selected").show();
$(".tab_container > div:first").show();
//On Click Event
$("ul.tabs li").click(function() {
@juarezpaf
juarezpaf / gist:1081506
Created July 13, 2011 22:45
Stylesheets
Compressed file
all.css
Downloaded from internet
reset.css
By me
courses.css
home.css
lectures.css