// jQuery
$(document).ready(function() {
// code
})
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 remove a directory that contains other files or directories, use the following command | |
rm -r mydir | |
# Delete everything with no prompt messages | |
rm -rf mydir |
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
vagrant init geerlingguy/ubuntu1604 --box-version 1.1.7 |
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
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart |
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
# create working directory from trunk | |
svn checkout http://somedomain.com/repo/trunk | |
# create a branch | |
svn copy http://somedomain.com/repo/trunk \ | |
http://somedomain.com/repo//branches/feature-do-awesome-thing \ | |
-m "Created branch to implement feature do awesome thing." | |
# switch working copy | |
svn switch ^/repo/branches/feature-do-awesome-thing |
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
Acura | |
Aixam | |
Alfa Romeo | |
Alta | |
Aro | |
Aston Martin | |
Audi | |
Austin | |
Bentley | |
BMW |
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
Afghanistan | |
Albania | |
Algeria | |
Andorra | |
Angola | |
Antigua & Deps | |
Argentina | |
Armenia | |
Australia | |
Austria |
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
AED | |
AFN | |
ALL | |
AMD | |
ANG | |
AOA | |
ARS | |
AUD | |
AWG | |
AZN |
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
/** | |
* Get categories of the post | |
* Remove the links | |
* Output each category followed by a comma | |
* Comma is not added on the last item | |
* @param $arr e.g. get_the_category() | |
*/ | |
function get_cat_profile($arr) | |
{ | |
$counter = 0; |
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
/** | |
* Check if shortcode exists in page and echo something in Wordpress dashboard | |
*/ | |
function check_if_shortcode_exists_in_page_and_echo_something() | |
{ | |
global $post; | |
if (function_exists('get_current_screen') | |
&& function_exists('has_shortcode') | |
&& function_exists('is_admin') | |
) { |