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
body::before{ | |
content: "481-767"; | |
font-weight: bold; | |
display: block; | |
text-align: center; | |
background: rgba(255,0,0, 0.5); /* Semi-transparent yellow */ | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 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
function category_slug($print = true) { | |
$cat = get_category(get_query_var('cat')); | |
if ($print) { | |
echo $cat->slug; | |
} else { | |
return $cat->slug; | |
} | |
} |
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
function category_id($print = true) { | |
$cat = get_category(get_query_var('cat')); | |
if ($print) { | |
echo $cat->cat_ID; | |
} else { | |
return $cat->cat_ID; | |
} | |
} |
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
@mixin debugmessage($message, $color: rgba(255,255,0, 0.9) ){ | |
body::before{ | |
content: $message; | |
font-weight: bold; | |
display: block; | |
text-align: center; | |
background: #{$color}; | |
position: fixed; | |
right: 0; | |
left: 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
<?php | |
$domain = $_SERVER[HTTP_HOST]; | |
if ($domain === '') : // If is live enviroment | |
define('DB_NAME', 'our_live_db'); | |
define('DB_USER', 'our_live_user'); | |
define('DB_PASSWORD', 'our_live_password'); | |
define('DB_HOST', 'localhost'); | |
elseif () : // If is staging enviroment |
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
@mixin pte($pixels, $context:16) { | |
@return { $pixels / $context}em; | |
} |
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
backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql | |
restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql |
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
<script src="[url goes here]/jquery-2.0.0.min.js"></script> | |
<script> | |
if (typeof jQuery == 'undefined') { | |
document.write(unescape("%3Cscript src='/js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E")); | |
} | |
</script> |
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
INSERT INTO node_access | |
(nid ,gid ,realm ,grant_view, grant_update , grant_delete) | |
VALUES ( '0', '0', 'all', '1', '0', '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
#resize | |
convert img.gif -resize 64x64 resized_img.gif | |
# resize image | |
convert -resize 50% source.png dest.png | |
# convert from one format to another | |
convert image.gif image.jpg | |
#resize |
OlderNewer