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
#!/bin/bash | |
echo "Name, URL, Slug" | |
IFS=$'\n' # make newlines the only separator | |
for j in `curl https://wordpress.org/plugins/search.php?page=[1-12]\&q=gravity+forms | grep '<h4>.*</h4>'` | |
do | |
echo -n "$j" | awk 'BEGIN { FS = ">" } ; { print $3 }' | awk 'BEGIN { FS = "<" } ; { print $1 }' | sed 's/\&\;/\&/g' | tr -d "\n" | |
echo -n , | |
echo -n "$j" | awk 'BEGIN { FS = "\"" } ; { print $2 }' | tr -d "\n" | |
echo -n , |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
add_filter( 'gform_ip_address', 'filter_gform_ip_address' ); | |
function filter_gform_ip_address( $ip ) { | |
// Return the IP address set by the proxy. | |
// E.g. $_SERVER['HTTP_X_FORWARDED_FOR'] or $_SERVER['HTTP_CLIENT_IP'] | |
return $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} |
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
public function feed_settings_fields() { | |
return array( | |
array( | |
'title' => 'PDF Settings', | |
'fields' => array( | |
array( | |
'label' => 'Enable PDF Download', | |
'type' => 'checkbox', | |
'name' => 'enabled', | |
'tooltip' => 'Check this if you want a download link to the PDF to be displayed.', |
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 | |
echo 'testing gist stuff'; |
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
array( | |
// Require WordPress version 4.6.2 or higher. | |
'wordpress' => array( | |
'version' => '4.6.2' | |
), | |
// Require PHP version 5.3 or higher. | |
'php' => array( | |
'version' => '5.3', | |
OlderNewer