This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
/* Column Classes | |
Link: Link: http://wpsmith.net/2013/wp/genesis-2-0-drops-fifths-from-column-classes/ | |
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css | |
--------------------------------------------- */ | |
.five-sixths, | |
.four-sixths, | |
.four-fifths, | |
.one-fifth, | |
.one-fourth, |
$(window).on("scroll", function() { | |
var scrollHeight = $(document).height(); | |
var scrollPosition = $(window).height() + $(window).scrollTop(); | |
if ((scrollHeight - scrollPosition) / scrollHeight === 0) { | |
// when scroll to bottom of the page | |
} | |
}); |
<?php | |
add_filter( 'genesis_comment_list_args', 'custom_genesis_comment_list_args' ); | |
/** | |
* Callback for Genesis 'genesis_comment_list_args' filter. | |
* | |
* Override the comment callback and implement custom comment. | |
* | |
* @package Genesis | |
* @category comments |
curl -u ${1} https://api.bitbucket.org/1.0/users/${1} > repoinfo | |
for repo_name in `grep \"name\" repoinfo | cut -f4 -d\"` | |
do | |
repo="${repo_name}.git" | |
git clone [email protected]:${1}/$repo | |
done |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
<?php | |
/* | |
Plugin Name: R Debug | |
Description: Set of dump helpers for debug. | |
Author: Andrey "Rarst" Savchenko | |
Author URI: https://www.rarst.net/ | |
License: MIT | |
*/ |
These set of scripts are for Magento 1. For Magento 2, see this Gist.