moved to https://github.com/springmeyer/campus-map-tech so that pull requests and comments are better
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
#!/usr/bin/env python | |
''' | |
Usage: | |
./transform <path-to-facebook-export.json> | |
This will transform everything using granary and then place | |
individual files into a directory called "mf2." |
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
export default function (htmlString, url) { | |
let rels = {}; | |
let baseUrl = url; | |
const doc = new DOMParser().parseFromString(htmlString, 'text/html'); | |
const baseEl = doc.querySelector('base[href]'); | |
const relEls = doc.querySelectorAll('[rel][href]'); | |
if (baseEl) { | |
const value = baseEl.getAttribute('href'); |
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
module Jekyll | |
class PodcastRssPage < Page | |
def initialize(site, base, dir, post) | |
@site = site | |
@base = base | |
@dir = dir | |
@name = 'feed.rss' | |
self.process(@name) |
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
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk | |
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these | |
> steps thoroughly. | |
Reset Steps: | |
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds. | |
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass. | |
3. Release both buttons. | |
4. Press the down buttons until the desk beeps one more time or 20 seconds pass. |
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
$("#button").click(function(){ | |
var list = cy2.filter(function (i, ele) { | |
return (parseInt(ele.id().slice(1), 10) % 2 === 0); | |
}); | |
var nodes = []; | |
// Create new parent | |
nodes.push({group: "nodes", data: {id: "n0"}, position: {x: 0, y: 0}}); | |
// Create copies of old nodes |
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
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |