Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| foreground: #c5c8c6 | |
| background: #1d1f21 | |
| cursorColor: #aeafad | |
| color0: #000000 | |
| color1: #912226 | |
| color2: #778900 | |
| color3: #ae7b00 | |
| color4: #1d2594 | |
| color5: #682a9b | |
| color6: #2b6651 |
| <?php | |
| /* | |
| Plugin Name: PMPro Customizations | |
| Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
| Description: Customizations for Paid Memberships Pro (14 day trial on level 1) | |
| Version: .1 | |
| Author: Stranger Studios | |
| Author URI: http://www.strangerstudios.com | |
| */ |
| CREATE EXTENSION tablefunc; | |
| CREATE TABLE sales(year int, month int, qty int); | |
| INSERT INTO sales VALUES(2007, 1, 1000); | |
| INSERT INTO sales VALUES(2007, 2, 1500); | |
| INSERT INTO sales VALUES(2007, 7, 500); | |
| INSERT INTO sales VALUES(2007, 11, 1500); | |
| INSERT INTO sales VALUES(2007, 12, 2000); | |
| INSERT INTO sales VALUES(2008, 1, 1000); | |
| INSERT INTO sales VALUES(2009, 5, 2500); |
| #!/bin/bash | |
| echo "$1" | |
| mkdir /tmp/"$1"/ | |
| gst-launch-1.0 filesrc location="$1" ! decodebin ! videoconvert ! pngenc ! multifilesink location="/tmp/$1/%04d.png" | |
| echo "Trim files manually, and press enter to generate the GIF" | |
| nautilus /tmp/"$1"/ & | |
| read | |
| echo "Generating GIF..." | |
| convert -delay 5 /tmp/"$1"/*.png /tmp/"$1"/animation.gif |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
| # if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
| # https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
| add_header X-Frame-Options SAMEORIGIN; | |
| # when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
| # to disable content-type sniffing on some browsers. | |
| # https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
| # currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
| -- This is a custom writer for pandoc for http://linux.org.ru | |
| -- markup language. It has been dirty-hacked from the sample custom | |
| -- writer which produced HTML output. | |
| -- | |
| -- Invoke with: pandoc -t sample.lua | |
| -- | |
| -- Note: you need not have lua installed on your system to use this | |
| -- custom writer. However, if you do have lua installed, you can | |
| -- use it to test changes to the script. 'lua sample.lua' will | |
| -- produce informative error messages if your code contains |
| //set price | |
| function pmprodon_pmpro_donation_recurring($level) | |
| { | |
| if(isset($_REQUEST['donation'])) | |
| $donation = preg_replace("[^0-9\.]", "", $_REQUEST['donation']); | |
| else | |
| return $level; | |
| if(!empty($donation)) | |
| { |
| /* | |
| Plugin Name: Register Helper Customizations | |
| Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
| Description: Register Helper Customizations | |
| Version: 1.0.0 | |
| Author: StrangerStudios | |
| Author URI: http://www.paidmembershipspro.com/ | |
| */ | |
| //we have to put everything in a function called on init, so we are sure Register Helper is loaded |
| <?php | |
| /* | |
| This function simply edits the text 'Make a Gift' for PMPRO Donations Add-On | |
| Please paste this function in your functions.php or custom plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function pmpro_donations_change_text( $change_text, $text, $domain ) { | |
| switch ( $change_text ) { | |
| case 'Make a Gift' : | |
| $change_text = __( 'This will change Make A Gift', 'pmpro-donations' ); //edit 'This will change Make A Gift' to edit the text output of 'Make a Gift' |