Skip to content

Instantly share code, notes, and snippets.

View juarezpaf's full-sized avatar

Juarez Filho juarezpaf

View GitHub Profile
@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 / 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);
#!/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
<!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
@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>
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:
[16:13] trevorgerzen: I had a piece of pizza just for you @ryancarson
[16:13] davearel: me hungry
[16:13] frankielaguna: Thanks trev! You're a trooper!
[16:13] urbenkeach: Ooo pizza. That's just cruel.
[16:13] nanoamp: Mmm. Pizza.
[16:13] trevorgerzen: Then my wife came home, brought me a sandwich and made me coffee
[16:13] trevorgerzen: Holy crap
[16:13] inkdotmedia: Pizza Hut isn't Pizza
[16:14] frankielaguna: Yeah I know it's not. But i want Dominos!
[16:14] frankielaguna: They'r ein the UK they don't know better.
/* margin values */
p { margin: 1em; } - order not critical
p { margin: 1em 2em; } - order critical (top/bottom left/right)
p { margin: 1em 2em 4em; } - order critical (top left/right bottom)
p { margin: 1em 2em 4em 3em; } - order critical (top right bottom left)
/* padding values */
p { padding: 1em; } - order not critical
p { padding: 1em 2em; } - order critical (top/bottom left/right)
p { padding: 1em 2em 4em; } - order critical (top left/right bottom)
Macintosh-2:local juarezpaf$ brew install -v node
Warning: It appears you have Macports or Fink installed
Although, unlikely, this can break builds or cause obscure runtime issues.
If you experience problems try uninstalling these tools.
==> Build Environment
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
/* Stylesheet generated from TextMate theme
*
* GitHub
*
*
*/
/* Mostly to improve view within the TextMate HTML viewer */
body {
margin: 0;