Skip to content

Instantly share code, notes, and snippets.

View gcollazo's full-sized avatar

Giovanni Collazo gcollazo

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>magicFields</title>
<style type="text/css" media="screen">
.inlineLabel{
<Application preinitialize="systemManager.stage.scaleMode = 'showAll'">
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var origValue = 'Nombre';
var field = $('#smartField');
<?php
$str = mysql_real_escape_string('(777) 777-7777');
echo str_replace('-', '', str_replace(' ', '', str_replace(')', '', str_replace('(', '', $str))));
$(document).ready(function(){
$("#btnSend").click(function(){
mm();
$("<img src='pixel.gif' style='display:none'>").appendTo(document);
});
});
FB.login(function(response){
if(response.session){
//User logged in
} else {
//User canceled login
}
});
$.ajax({
url:'http://aaascraper.appspot.com/',
dataType:'json',
success:function(d){
console.log(d);
}
});
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="OUTPUTFILENAME"');
readfile(FILEPATH);
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
import sys
import site
import os
VIRTUALENV = '/var/virtualenvs/ponysite.example.com/lib/python2.4/site-packages'
WEBAPPS_PATH = '/var/webapps'
prev_sys_path = list(sys.path)