Skip to content

Instantly share code, notes, and snippets.

View SpencerCooley's full-sized avatar

Spencer Cooley SpencerCooley

View GitHub Profile
<!doctype html>
<html>
<head>
<!-- This is where you put any scripts or stylesheets-->
</head>
<body>
<!doctype html>
<html>
<head>
<!-- This is where you put any scripts or stylesheets-->
</head>
<body>
require 'sinatra'
def print_that
"Happy Birthday OpenStack"
end
get '/' do
print_that
end
$xmlData .= <FL val="Firma">$firma</FL> //this is not a string
$xmlData .= "<FL val=\"Firma\">{$firma}</FL>"; //this is a string with a interpolated variable. {$variable}
//inserts the correct data on keyup
// $('input[name=leadFirstName], input[name=leadLastName], input[name=leadEmail], input[name=leadPhoneArea], input[name=leadPhonePrefix], input[name=leadPhoneSuffix]').keyup(function(){
// var initValues, firstNameVal, lastNameVal, emailVal;
// //initializes values
// initValues = new values();
//defines value for first name
// firstNameVal = initValues.firstName;
// lastNameVal = initValues.lastName;
// emailVal = initValues.emailAddress;
// phoneVal = initValues.phone;
"<Leads><row no=\"1\"><FL val=\"Lead Source\">Web Download</FL><FL val=\"First Name\">contacto 1</FL><FL val=\"Last Name\">apellido</FL><FL val=\"Email\">[email protected]</FL><FL val=\"Title\">Manager</FL><FL val=\"Phone\">1234567890</FL><FL val=\"Home Phone\">0987654321</FL><FL val=\"Other Phone\">1212211212</FL><FL val=\"Fax\">02927272626</FL><FL val=\"Mobile\">292827622</FL></row></Leads>";
//notice how I am escaping all of the double quotation marks by puting a \ in front. Also notice that There are no line breaks. This is just on long string.
<div id="controls">
<a href="#" id="bold"></a>
<a href="#" id="italic"></a>
<a href="#" id="underline"></a>
<a href="#" id="justifyLeft"></a>
<a href="#" id="justifyCenter"></a>
<a href="#" id="justifyRight"></a>
</div><!--end of controlls div-->
@SpencerCooley
SpencerCooley / gist:2786004
Created May 25, 2012 05:44
wp-config.php in wordpress development mode.
<?php
/**
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
$('#show_icon').click(function(){
$(this).hide();
$('#hide_icon').show();
$(this).parent().parent().find('div[class^="content_box_one"]').slideDown('slow');
$.cookie('content_box_one', 'extended');
})
$('hide_icon').click(function(){
$(this).hide();
$('#show_icon').show();
$(document).ready(function(){
$('.show_icon').click(function()
{
$(this).parent().parent().find('div[class^="right_side_content"]').slideDown('slow');
$(this).css('display','none');
$('.hide_icon').css('display','block');
$.cookie('content', 'extended');
});
$('.hide_icon').click(function()