Skip to content

Instantly share code, notes, and snippets.

@mgebundy
mgebundy / import_to_mongo.py
Created April 12, 2019 01:49 — forked from robballou/import_to_mongo.py
Import delicious bookmark XML to mongodb
#!/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
@mgebundy
mgebundy / cloudSettings
Last active July 23, 2019 16:09
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-07-23T16:09:22.740Z","extensionVersion":"v3.3.1"}
@mgebundy
mgebundy / example.html
Last active December 9, 2021 03:26
AngularJS Countdown Directive
<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>
@mgebundy
mgebundy / wp-xml-rpc.php
Last active May 4, 2016 04:08
Building custom XML-RPC methods in WordPress
<?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();