This file contains hidden or 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
| //Code retrieved at brianjohnsondesign.com | |
| //http://blog.brianjohnsondesign.com/use-ftp-to-create-new-admin-user-in-wordpress/ | |
| function add_admin_acct(){ | |
| $login = 'myacct1'; | |
| $passw = 'mypass1'; | |
| $email = 'myacct1@mydomain.com'; | |
| if ( ! username_exists( $login ) && ! email_exists( $email ) ) { | |
| $user_id = wp_create_user( $login, $passw, $email ); | |
| $user = new WP_User( $user_id ); |
This file contains hidden or 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
| html { | |
| background: url(images/bg.jpg) no-repeat center center fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| } |
This file contains hidden or 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
| <div class="box"></div> | |
| <style> | |
| .box { | |
| width: 200px; height: 100px; | |
| background-size: 100% 200%; | |
| background-image: linear-gradient(to bottom, red 50%, black 50%); | |
| -webkit-transition: background-position 1s; | |
| -moz-transition: background-position 1s; | |
| transition: background-position 1s; |
This file contains hidden or 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
| //HTML ==> | |
| <table> | |
| <tr> | |
| <td class="colorizeMe">foooo_bar</td> | |
| </tr> | |
| <tr> | |
| <td class="colorizeMe">hello_world</td> | |
| </tr> | |
| <tr> | |
| <td class="colorizeMe">dubidubi_doo</td> |
This file contains hidden or 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
| var words = ["A", "B", "C", "D"]; | |
| var showwords = function() { | |
| var newword = words[Math.floor((Math.random() * words.length))] | |
| $("#words").fadeOut( 1000, function() { | |
| $("#words").text(newword).fadeIn(1000); | |
| }); | |
| } | |
| setInterval(showwords, 3000) |
This file contains hidden or 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
| div { | |
| width: 200px; | |
| height: 200px; | |
| display: block; | |
| position: relative; | |
| } | |
| div::after { | |
| content: ""; | |
| background: url(image.jpg); |
This file contains hidden or 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
| /*Filter styles*/ | |
| .saturate {-webkit-filter: saturate(3);} | |
| .grayscale {-webkit-filter: grayscale(100%);} | |
| .contrast {-webkit-filter: contrast(160%);} | |
| .brightness {-webkit-filter: brightness(0.25);} | |
| .blur {-webkit-filter: blur(3px);} | |
| .invert {-webkit-filter: invert(100%);} | |
| .sepia {-webkit-filter: sepia(100%);} | |
| .huerotate {-webkit-filter: hue-rotate(180deg);} | |
| .rss.opacity {-webkit-filter: opacity(50%);} |
This file contains hidden or 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 add_admin_acct(){ | |
| $login = 'myacct1'; | |
| $passw = 'mypass1'; | |
| $email = 'myacct1@mydomain.com'; | |
| if ( !username_exists( $login ) && !email_exists( $email ) ) { | |
| $user_id = wp_create_user( $login, $passw, $email ); | |
| $user = new WP_User( $user_id ); | |
| $user->set_role( 'administrator' ); | |
| } |
This file contains hidden or 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
| var MultiString = function(f) { | |
| return f.toString().split('\n').slice(1, -1).join('\n'); | |
| } | |
| var ms = MultiString(function() {/** | |
| line one | |
| line two | |
| line 'three' | |
| **/}); |