$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
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
| app.run(function ($rootScope, $location, AuthenticationModel) { | |
| // Register listener to watch route changes. | |
| $rootScope.$on('$routeChangeStart', function (event, next, current) { | |
| if (!AuthenticationModel.isSignedIn() && next.requireAuthentication === true) { | |
| $location.path('/signin'); | |
| } | |
| }); | |
| }); |
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
| INITIALISATION | |
| ============== | |
| load wp-config.php | |
| set up default constants | |
| load wp-content/advanced-cache.php if it exists | |
| load wp-content/db.php if it exists | |
| connect to mysql, select db | |
| load object cache (object-cache.php if it exists, or wp-include/cache.php if not) | |
| load wp-content/sunrise.php if it exists (multisite only) |
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
| <?php | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; // Exit if accessed directly | |
| } | |
| /** | |
| * Login | |
| */ | |
| class Custom_CPF_Login { |
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
| rest_avatar_sizes | |
| rest_prepare_attachment | |
| rest_pre_insert_comment | |
| rest_comment_type_trashable | |
| comment_text |
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
| .waves-effect { | |
| position: relative; | |
| cursor: pointer; | |
| display: inline-block; | |
| overflow: hidden; | |
| user-select: none; | |
| transition: all 0.3s ease-out; | |
| } | |
| .waves-effect .waves-ripple { | |
| position: absolute; |
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
| #overlay { | |
| background: #000; | |
| background: rgba(0, 0, 0, 0.3); | |
| display: block; | |
| float: left; | |
| height: 100%; | |
| left: 0; | |
| position: fixed; | |
| top: 0; | |
| width: 100%; |
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
| /* | |
| Uploading images is a two step process (from https://github.com/WP-API/WP-API/issues/1768#issuecomment-160540932): | |
| POST the data to /wp/v2/media - this can either be as the request body, or in multipart format. This will upload the file, and give you a 201 Created response with a Location header. This header points to the post object for the attachment that has just been created. | |
| PUT the post data to the endpoint returned in the Location header (which will look something like /wp/v2/media/{id}). | |
| I do step 2 (PUT), if POST is a success, in myDropzone.on("success", function(file, response){} | |
| */ | |
| // dropzoneWordpressRestApiForm is the configuration for the element that has an id attribute |
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
| <?php | |
| // ADD NEW ADMIN USER TO WORDPRESS | |
| // ---------------------------------- | |
| // Put this file in your Wordpress root directory and run it from your browser. | |
| // Delete it when you're done. | |
| require_once('wp-blog-header.php'); | |
| require_once('wp-includes/registration.php'); | |
| // ---------------------------------------------------- |
NewerOlder