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
#calendars_my div[class='calListRow']:last-child {display:none !important;} | |
div[id='currentDate:0'] {font-weight: bold;font-size:1.26em;} |
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
<!-- update "Object_Name__c" with your Object, and "Field_Name__c" with your Field --> | |
<apex:pageblocksectionitem helpText="{!$ObjectType.Object_Name__c.Fields.Field_Name__c.inlineHelpText}"> | |
<apex:outputlabel value="{!$ObjectType.Object_Name__c.fields.Field_Name__c.label}" /> | |
<apex:outputpanel layout="block" styleClass="requiredInput"> | |
<apex:outputpanel layout="block" styleClass="requiredBlock"/> | |
<apex:inputfield value="{!Object_Name__c.Field_Name__c}" /> | |
</apex:outputpanel> | |
</apex:pageblocksectionitem> |
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
/* | |
Disable Default Dashboard Widgets | |
@ http://digwp.com/2014/02/disable-default-dashboard-widgets/ | |
*/ | |
function disable_default_dashboard_widgets() { | |
global $wp_meta_boxes; | |
// wp.. | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); |
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
/* Hide switcher */ | |
div.aki.pp { | |
visibility: hidden; | |
} | |
/* Hide compose button */ | |
/* | |
div.aic { | |
display: none; | |
} |
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
tell application "System Events" | |
set frontMostApp to short name of the first process whose frontmost is true | |
end tell | |
try | |
set theDefault to ((do shell script "defaults read com.apple.finder CreateDesktop") as integer) as boolean | |
on error -- if the default value doesn't already exist, create it. | |
do shell script "defaults write com.apple.finder CreateDesktop 1" | |
set theDefault to ((do shell script "defaults read com.apple.finder CreateDesktop") as integer) as boolean | |
end try | |
do shell script "defaults write com.apple.finder CreateDesktop " & (((not theDefault) as integer) as string) |
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
property defaultFileName : "newFile.txt" | |
tell me to activate | |
set theFileName to text returned of (display dialog "Enter a file name:" default answer defaultFileName) | |
tell application "Finder" | |
activate | |
if the (count of windows) is not 0 then | |
set theFolder to (folder of the front window) as text | |
set theFolder to POSIX path of theFolder | |
else | |
set theFolder to POSIX path of (get path to desktop) |
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
-- choose files or folders to archive since AppleScript can't seem to allow both at once... | |
set archiveOption to button returned of (display dialog "Archive files or folders?" buttons {"Cancel", "Folders", "Files"} default button 3) | |
-- now let's choose what we want to archive... | |
if archiveOption is "Files" then | |
set selectedItems to choose file with prompt "Select files you want to compress:" with multiple selections allowed | |
else if archiveOption is "Folders" then | |
set selectedItems to choose folder with prompt "Select folders you want to compress:" with multiple selections allowed | |
else if archiveOption is "Cancel" then | |
return |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Remove the silly WordPress Emoji stuff... | |
function mnmlst_disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
// Exclude pingbacks from comment count | |
// change "slug" to your theme's domain | |
function slug_comment_count( $count ) { | |
global $id; | |
$comment_count = 0; | |
$comments = get_approved_comments( $id ); | |
foreach ( $comments as $comment ) { |
OlderNewer