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
#!/usr/bin/env python | |
""" | |
Python script to copy a delicious XML file into a mongodb. | |
Essentially saves all attributes from the XML as-is, but I do make the following changes: | |
- Added a "tags" attribute to the saved document that separates the tags into a list | |
- Converted the "time" attribute to a datetime |
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
{"lastUpload":"2019-07-23T16:09:22.740Z","extensionVersion":"v3.3.1"} |
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
<time ng-countdown="1411225200" ng-countdown-finished="toggle()"> | |
<ul class="timer_wrap"> | |
<li class="days"> | |
<span class="value" ng-bind="days">-</span> | |
<span class="label">days</span> | |
</li> | |
<li class="hours"> | |
<span class="value" ng-bind="hours">--</span> | |
<span class="label">hours</span> | |
</li> |
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 | |
// Include the XML-RPC files | |
include_once(ABSPATH . WPINC . '/class-IXR.php'); | |
include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php'); | |
class my_xmlrpc extends wp_xmlrpc_server { | |
function __construct() { | |
// This filter will add the new methods we're building | |
add_filter('xmlrpc_methods', array($this, 'my_xmlrpc_methods')); | |
parent::__construct(); |