A Pen by Hart Liddell on CodePen.
A Pen by Secret Sam on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.setAllToMaxHeight = function() { | |
var that = this; | |
$(this).css({'height': 'auto'}); | |
setTimeout(function() { | |
return that.height(Math.max.apply(that, $.map(that, function(e) { | |
return $(e).height(); | |
}))); | |
}, 500); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Function migrateV2 updates Database tables values: site_ul, home, domain, post url | |
* | |
* @param string $urlToReplace migrate from http://xsite.com to htttp://ysite.com | |
*/ | |
function migrateV2($urlToReplace){ | |
global $table_prefix; | |
$error = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Data from WeatherUnderground for | |
* forecast_for("NY","New York") | |
*/ | |
{ | |
"response" => { | |
"version" => "0.1", | |
"termsofService" => "http://www.wunderground.com/weather/api/d/terms.html", | |
"features" => { | |
"forecast" => 1 |
A Pen by Hart Liddell on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Puppies!"); |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
You should be able to just open index.html
in your browser and test locally.
However if there are some permissions errors you can make a quick html server with python
. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer
. By default this creates a local server at localhost:8000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Infinite scrolling loader, fires off a button click | |
// | |
// Sample HTML: | |
// <div id="infinite-scroll" class="js-infinite-scroll"> | |
// POSTS HERE | |
// <a href="/url-to-more-content" class="js-infinite-scroll-next-button">Load More</a> | |
// </div> | |
// <div class="js-infinite-scroll-loading">...</div> |
OlderNewer