Skip to content

Instantly share code, notes, and snippets.

View davidcroda's full-sized avatar

David Roda davidcroda

  • ZaiNar
  • Philadelphia, PA
View GitHub Profile
$(document).ready(function(){
// Get text from form input and display on list
$(".add").on("click", function(){
event.preventDefault(); // lets the user hit "enter" instead of having to click the "+" block
var item = $("input[name=item]").val();
// If no letters are entered, an alert message will pop up
if (item <= 0) {
alert ("Please add an item")
} else {

Keybase proof

I hereby claim:

  • I am davidcroda on github.
  • I am thefreeman (https://keybase.io/thefreeman) on keybase.
  • I have a public key whose fingerprint is CCC5 21BB 7F53 7610 1540 C5B1 2A5B 6946 9FCB E532

To claim this, I am signing this object:

<div id="enews-ext-2" class="widget enews-widget"><div class="widget-wrap"><div class="enews"><h4 class="widget-title widgettitle">Connect with us your way</h4>
<p>Sign up to receive news and updates<br>
from Castle Management!</p>
<form id="subscribe" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open( 'http://feedburner.google.com/fb/a/mailverify?uri=CastleManagement', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true" name="Connect with us your way">
<label for="subbox" class="screenread">Enter your email address...</label><input type="text" value="Enter your email address..." id="subbox" onfocus="if ( this.value == 'Enter your email address...') { this.value = ''; }" onblur="if ( this.value == '' ) { this.value = 'Enter your email address...'; }" name="email">
<input type="hidden" name="uri" value="CastleManagement">
<input type="hidden" name="loc" value="en_US">
<input type="submit" value="Go" id="subbutton">
<inp
@davidcroda
davidcroda / gist:126a45ef6c858231cad3
Last active August 29, 2015 14:14
ajax submit form
var form = $('form');
form.bind('submit', function(ev) {
$.post(form.attr('action'), form.serialize(), function(data, status) {
console.log(data, status);
});
});
HTTP/1.1 503 Service Unavailable Cache-Control: no-cache, no-store Content-Type: text/html; charset=utf-8 Date: Wed, 09 Jul 2014 20:30:16 GMT Server: MochiWeb/1.0 (Any of you quaids got a smint?) Content-Length: 498 Connection: Close <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html, body, iframe { margin: 0; padding: 0; height: 100%; } iframe { display: block; width: 100%; border: none; } </style> <title>Application Error</title> </head> <body> <iframe src="https://respage-static.s3.amazonaws.com/error/error.html"> <p>Application Error</p> </iframe> </body> </html>
HTTP/1.1 503 Service Unavailable Cache-Control: no-cache, no-store Content-Type: text/html; charset=utf-8 Date: Wed, 09 Jul 2014 20:30:16 GMT Server: MochiWeb/1.0 (Any of you quaids got a smint?) Content-Length: 498 Connection: Close <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html, body, iframe { margin: 0; padding: 0; height: 100%; } iframe { display: block; width: 100%; border: none; } </style> <title>Application Error</title> </head> <body> <iframe src="https://respage-static.s3.amazonaws.com/error/error.html"> <p>Application Error</p> </iframe> </body> </html>
<?php if($listing['guest_card_id']) {
// ***** GUEST CARDS *****
// add Guest Card button styles below. Just make sure the <a> tag has a class of showContactUs
// ***********************
?>
<script type="text/javascript">
jQuery.contactUsOptions.pingUrl = "https://corsa.dynamicleadsolutions.com/onsite_firstlink.asp";
</script>
<script language="JavaScript" type="text/javascript" src="https://www.on-site.com/extras/js_corsaManagementPrequalify.js"></script>
<li><a href="#" class="showContactUs">Apply Online</a></li>
<?php
/**
* PHP Version 5
*
* @category Amazon
* @package Amazon_Mturk
* @version 2008-08-02
* @author Sandip Limbachiya(sandip2451984@gmail.com)
*/
<?php
/**
* PHP Version 5
*
* @category Amazon
* @package Amazon_Mturk
* @version 2008-08-02
* @author Sandip Limbachiya(sandip2451984@gmail.com)
*/
var XXHash = require('xxhash'),
seed = 1, // Seed doesn't matter because we aren't using the hash cryptographically
path = require('path')
exports.utils = function(grunt, options) {
return {
getHash: function(file) {
return XXHash.hash(grunt.file.read(file, {
encoding: null