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
// http://digitizor.com/add-target-blank-author-wp/ | |
add_filter( 'get_the_author_description', 'amtf_target_blank_author_desc' ); | |
/** | |
* Add target _blank to links in author description | |
* Drop-in fix (workaround) for: https://core.trac.wordpress.org/ticket/12056 | |
*/ | |
function amtf_target_blank_author_desc( $desc ) { | |
return str_replace( '<a', '<a target="_blank" ', $desc ); | |
} |
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 this to your theme's style.css file, or put this css block in the header | |
*/ | |
body .syntaxhighlighter table td.code .container textarea { | |
white-space: pre-wrap !important; | |
} | |
body .syntaxhighlighter .line { | |
white-space: pre-wrap !important; | |
/* Uncomment the line below and adjust its value if after double click highlight, | |
* the content moves, up or down. em units only |
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/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/usr/local/sublime-text-3/sublime_text | |
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
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/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/usr/local/sublime-text-3/sublime_text | |
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
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/sh | |
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 2 | |
Comment=Edit text files | |
Exec=/usr/local/sublime-text-2/sublime_text | |
Icon=/usr/local/sublime-text-2/Icon/128x128/sublime_text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="autohint"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
<!-- Enable sub-pixel rendering --> | |
<match target="font"> |
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 | |
$appId = "PUT UR APP ID"; | |
$pageName = ""; | |
$secret = "Put YOUR APP SECRET"; | |
$pageurl = "https://www.facebook.com/digitizormedia/app_".$appId; | |
$baseurl = "http://digitizormedia.com/fbapps/demos/getuseridtab/"; | |
$redirurl = $baseurl."redir.php"; //this page redirects user back to the required tab, | |
//after they authorize the Facebook tab app, you cannot | |
//specifiy the fanpage tab url directly as the redirect URL | |
$installappurl = "https://www.facebook.com/dialog/pagetab?app_id=".$appId."&next=".$baseurl; |