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
.myclass { font: bold italic small-caps 1em/1.5em verdana,sans-serif; } | |
/* or */ | |
.myclass { | |
font-weight: bold; | |
font-style: italic; | |
font-variant: small-caps; | |
font-size: 1em; | |
line-height: 1.5em; | |
font-family: verdana,sans-serif | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Thickborder</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link href="../reset-min.css" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="thickborder.css" media="screen" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<nav> |
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 | |
//Frontend AJAX in WordPress //http://codex.wordpress.org/AJAX_in_Plugins | |
define('DOING_AJAX', true); | |
/* Assuming you will put this file in your plugin's directory */ | |
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'wp-load.php'); | |
if(!isset($_REQUEST['action']) || trim($_REQUEST['action'])=='') | |
{ | |
die('-1'); | |
} | |
@header('Content-Type: text/html; charset='.get_option('blog_charset')); |
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 | |
// ADD CUSTOM POST TYPES TO THE 'RIGHT NOW' DASHBOARD WIDGET | |
function wph_right_now_content_table_end() { | |
$args = array( | |
'public' => true , | |
'_builtin' => false | |
); | |
$output = 'object'; | |
$operator = 'and'; |
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 | |
/** | |
* Safe Pasting for TinyMCE (automatically clean up MS Word HTML) | |
*/ | |
function tinymce_paste_options($init) { | |
$init['paste_auto_cleanup_on_paste'] = true; | |
$init['paste_convert_headers_to_strong'] = true; | |
return $init; | |
} | |
if( is_admin() ) add_filter('tiny_mce_before_init', 'tinymce_paste_options'); |
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
// install PDFTK | |
$ sudo apt-get install pdftk | |
// compress pdf | |
$ pdftk source.pdf output destination.pdf compress | |
// convert PNG to PDF | |
$ convert *.png file.pdf |
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
Show hidden characters
# ~/.config/sublime-text-3/Packages/User/ | |
{ | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"Color Highlighter", | |
"EditorConfig", | |
"Git", |
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
// To install the Java Runtime Environment (jre) | |
// First, check if the JRE is not installed: | |
$ java -version | |
// Install default-jre: | |
$ sudo apt-get install default-jre |
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
{ | |
"font_size": 10.0, | |
"save_on_focus_lost": true, | |
"hot_exit": false, | |
"ignored_packages": ["Vintage"], | |
"remember_open_files": false, | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".sass-cache"], | |
"indent_guide_options": ["draw_normal","draw_active"], | |
"default_encoding": "UTF-8", | |
"enable_tab_scrolling": false, |
OlderNewer