This file contains hidden or 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 | |
/* Add site_name as a column */ | |
add_filter( 'wpmu_blogs_columns', 'add_useful_columns' ); | |
function add_useful_columns( $site_columns ) { | |
$site_columns['site_name'] = 'Site Name'; | |
return $site_columns; | |
} | |
/* Populate site_name with blogs site_name */ |
This file contains hidden or 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
GREP thousands comma, replace with space | |
# https://community.adobe.com/t5/indesign/grep-find-change-decimal-and-thousands/m-p/6130240 | |
Find: (?<=\d)[., ](?=\d\d\d) | |
Replace: ' '; |
This file contains hidden or 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
convert image.jpg -resize 1200x\> -pointsize 18 -draw "gravity southwest text 20, 20 'Title of the image'" out-image.jpg; |
This file contains hidden or 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
{Description of your company, target audience, and goal of marketing campaign} | |
We're searching for a talented designer to help us bring our next branding campaign to life. We're looking for someone to design {asset types}. Please see the attached document for examples of our past campaigns. | |
Deliverables needed: | |
- {List of assets needed} | |
Special skills needed for this project: | |
- Advanced knowledge of {Sketch, Invision Studio, Figma, Adobe Creative Cloud or other software} | |
- {Other requirements for industry, marketing or acquisition campaign experience, software, design principles} |
This file contains hidden or 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
in_thread do | |
live_loop :harm do | |
with_fx :bitcrusher, sample: 100, bits: 2, mix: 1, amp: 0.7 do | |
a = 2.4 | |
use_synth :chipbass | |
play chord(:b3,:add9).tick, decay: a | |
sleep a | |
end | |
end | |
end |
This file contains hidden or 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 | |
/** | |
* Removing the useless Dashboard from Wordpress | |
* | |
* Required: Wordpress, Woocommerce | |
*/ | |
/** | |
* Class Dashboard Resolver |
This file contains hidden or 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
504b 0304 1400 0000 0000 0000 2100 552d | |
4bfd ff00 0000 ff00 0000 1d00 0000 6372 | |
6561 6c69 7479 5f63 7231 3073 355f 6578 | |
7472 615f 6661 7374 5f23 325b 6765 6e65 | |
7261 6c5d 0a76 6572 7369 6f6e 203d 2034 | |
0a6e 616d 6520 3d20 4578 7472 6120 4661 | |
7374 2023 320a 6465 6669 6e69 7469 6f6e | |
203d 2066 646d 7072 696e 7465 720a 0a5b | |
6d65 7461 6461 7461 5d0a 7365 7474 696e | |
675f 7665 7273 696f 6e20 3d20 370a 7175 |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Brand taxonomy | |
* Plugin URI: https://drivdigital.no | |
* Description: Force a brand taxonomy to thrive | |
* Version: 1.0.0 | |
*/ | |
class brand_taxonomy { | |
// Nope. brand is still a taxonomy |
This file contains hidden or 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 | |
// Used within a PDF template | |
// [...] | |
$invoice_date = date( $date_format, strtotime( $form_data['misc']['date_time'] ) ); | |
// Fetch last payment date in database | |
global $wpdb; | |
$last_payment_date = $wpdb->get_var( $wpdb->prepare( "SELECT date_created FROM {$wpdb->prefix}gf_addon_payment_transaction WHERE lead_id=%d ORDER BY date_created DESC", $entry['id'] ) ); |
This file contains hidden or 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
letsencrypt --authenticator webroot --webroot-path . --installer nginx -d hello.com |