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
#!/usr/bin/env bash | |
# | |
# see: https://gist.github.com/gregorynicholas/2160046ec6946a2ce0fa | |
# src: https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# updated: 2015-06-06 | |
# | |
# ask for the administrator password upfront | |
sudo -v |
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 | |
/** | |
* Insert an attachment from a URL address. | |
* | |
* @param string $url The URL address. | |
* @param int|null $parent_post_id The parent post ID (Optional). | |
* @return int|false The attachment ID on success. False on failure. | |
*/ | |
function wp_insert_attachment_from_url( $url, $parent_post_id = null ) { |
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
// When true, the form will be saved to DB after dynamic population | |
define('EO_SAVE_FORM_ON_PRE_RENDER', true); | |
// Adds a filter to form id 7. Replace 26 with your actual form id | |
add_filter('gform_pre_render_7', 'eo_populate_checkbox'); | |
add_filter('gform_admin_pre_render_7', 'eo_populate_checkbox'); | |
function eo_populate_checkbox($form) { | |
if (EO_SAVE_FORM_ON_PRE_RENDER) |
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
2000 || | |
2001 ||||||||| | |
2002 |||||||||| | |
2003 ||||||||| | |
2004 |||||||||||||| | |
2005 ||||||||||| | |
2006 |||||||| | |
2007 |||||||||| | |
2008 |||||||||||||| | |
2009 ||||||||||||||||||| |