Skip to content

Instantly share code, notes, and snippets.

View davidcroda's full-sized avatar

David Roda davidcroda

  • ZaiNar
  • Philadelphia, PA
View GitHub Profile
SELECT SQL_NO_CACHE COUNT(*) AS `count` FROM `posts` AS `Post` left JOIN `campaigns` AS `Campaign` ON (`Post`.`campaign_id` = `Campaign`.`id`) WHERE `Campaign`.`id` IN (1977, 779, 780, 782, 783, 784, 785, 786, 1750, 787, 1356, 790, 791, 792, 793, 794, 795, 796, 797, 799, 800, 802, 803, 804, 805, 806, 807, 808, 809, 810, 813, 814, 815, 730, 816, 819, 821, 822, 823, 824, 811, 827, 829, 731, 830, 831, 1425, 890, 832, 833, 835, 254, 837, 839, 841, 842, 843, 844, 845, 846, 847, 848, 1020, 849, 850, 851, 852, 853, 798, 812, 818, 825, 826, 836, 838, 856, 732, 828, 855, 857, 859, 860, 861, 862, 864, 865, 866, 867, 869, 871) AND `Post`.`updated_timestamp` BETWEEN 1392219518 AND 1394807918 AND `Post`.`from_cms` = 1
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
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
<?php
/**
* PHP Version 5
*
* @category Amazon
* @package Amazon_Mturk
* @version 2008-08-02
* @author Sandip Limbachiya([email protected])
*/
<?php
/**
* PHP Version 5
*
* @category Amazon
* @package Amazon_Mturk
* @version 2008-08-02
* @author Sandip Limbachiya([email protected])
*/
<?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>
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>
@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);
});
});
<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