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
[ | |
{ "keys": ["super+alt+7"], "command": "encode_html_entities" }, | |
{ "keys": ["shift+ctrl+u"], "command": "title_case" }, | |
{ "keys": ["super+enter"], "command": "insert", "args": {"characters": "<br>\n"} }, | |
{ "keys": ["super+alt+l"], "command": "insert_snippet", "args": {"contents": "<li>${0:$SELECTION}</li>" } }, | |
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } }, | |
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } }, | |
{ "keys": ["super+alt+n"], "command": "insert_snippet", "args": {"contents": "<span>${0:$SELECTION}</span>" } }, | |
{ "keys": ["super+alt+down"], "command": "insert_snippet", "args": {"contents": "<sub>${0:$SELECTION}</sub>" } }, |
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
WordPress is actually one of the most secure pieces of software available. It powers 17% | |
of the 1,000,000 most visited websites, so it is being constantly tested both internally | |
and by hackers. When an issue is discovered, an update is released which you can install | |
with one click in the dashboard. | |
The vast majority of hacked WordPress websites are running an out-of-date version of | |
WordPress. Once WordPress is updated, any vulnerabilities that are patched are now publicly | |
known, so old versions are vulnerable. | |
The next most likely source of hacking is your host. If your server isn't secure, it doesn't |
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 | |
// New query | |
$%filltext:name=Query Name:default=myquery%_args = array( | |
'post_type' => '%filltext:name=Post Type:default=post%', | |
'order' => '%fillpopup:name=popup 7:default=ASC:DESC%', | |
'orderby' => '%fillpopup:name=popup 9:default=date:ID:rand:title:author:menu_order%', | |
'post_status' => 'publish', | |
'posts_per_page' => %filltext:name=Posts Per Page:default=-1% | |
); | |
$%filltext:name=Query Name:default=myquery% = new WP_Query( $%filltext:name=Query Name:default=myquery%_args ); |
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
tell application "iTerm" | |
activate | |
set t to (make new terminal) | |
tell t | |
tell (make new session at the end of sessions) | |
exec command "tail -f /Applications/MAMP/logs/php_error.log" | |
end tell | |
end tell | |
end tell |
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
cd wpstarter | |
git init | |
touch README.md | |
git submodule add git://github.com/WordPress/WordPress.git wp | |
cd wp | |
git fetch --tags | |
git checkout 3.4 | |
cd .. | |
git add . | |
git commit -m 'core files, checkout 3.4' |
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
// Animate scroll to top | |
$('.top').on('click', function() { | |
$('body,html').animate({ | |
scrollTop: 0 | |
}, 600); | |
return false; | |
}); |
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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
NewerOlder