Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo| <?php | |
| //copy lines 5 onwards into your PMPro customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| add_filter( 'gettext', 'change_my_pmpro_account_text', 20, 3 ); | |
| /** | |
| * Change words for pmpro account page | |
| * | |
| * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
| */ |
| <?php | |
| /** | |
| * Copy the function below into your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| * This function uses the gettext filter which will change all text occurences of Billing Address to Address in Paid Memberships Pro. | |
| */ | |
| function change_text_billing_pmpro( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Billing Address' : | |
| $translated_text = __( 'Address', 'paid-memberships-pro' ); | |
| break; |
| Journal | Total Citations | Citations to Retracted Articles Post Retraction | % of citations to retracted articles | |
|---|---|---|---|---|
| plos one | 12783331 | 2959 | 0.02% | |
| scientific reports | 6295134 | 1227 | 0.02% | |
| oncology letters | 802286 | 898 | 0.11% | |
| journal of biological chemistry | 10712422 | 866 | 0.01% | |
| biomed research international | 1789456 | 806 | 0.05% | |
| oncotarget | 1353740 | 791 | 0.06% | |
| international journal of molecular sciences | 2380553 | 766 | 0.03% | |
| proceedings of the national academy of sciences | 9984417 | 704 | 0.01% | |
| molecular medicine reports | 754664 | 646 | 0.09% |
| <?php | |
| /** | |
| * This recipe will redirect you to the levels page after registration | |
| * | |
| * You can add this recipe to your site by creating a custom plugin | |
| * or using the Code Snippets plugin available for free in the WordPress repository. | |
| * Read this companion article for step-by-step directions on either method. | |
| * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function my_pmpro_redirect_after_register( $user_id ){ |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repoReplace empty-branch with your desired branch name.
git checkout --orphan empty-branch
Then you can remove all the files you'll have in the staging area (so that they don't get committed):
git rm -rf .
At this point you have an empty branch, on your machine.
| Collections of scripts harvested mainly from Pete, but also picked up from the forums | |
| TOC | |
| Accessing dynamic measurements.groovy - Most annotation measurements are dynamically created when you click on the annotation, and | |
| are not accessible through the standard getMeasurement function. This is a way around that. | |
| Affine transformation.groovy - access more accurate measurements for the affine transformation used in the image alignment (m5/m6+) | |
| Alignment of local cells.groovy - check neighborhood for similarly aligned cells |
| /** | |
| * QuPath script to calculate areas (e.g. of tumor) based upon classified cells only. | |
| * | |
| * It works by using a distance transform applied to binary images generated from the | |
| * objects of each class, and then assigns each pixel to the closest object. | |
| * | |
| * Having done this, new annotations are generated for these regions. | |
| * | |
| * WARNINGS! | |
| * - This will remove *all* previous annotations & replace them with new annotations |
| <?php | |
| /* | |
| Add bcc for checkout emails | |
| */ | |
| function my_pmpro_email_headers_admin_emails($headers, $email) | |
| { | |
| //bcc checkout emails | |
| if($email->template == "membership_expiring" || $email->template == "membership_expired") | |
| { | |
| //add bcc |