Skip to content

Instantly share code, notes, and snippets.

@thedod
thedod / README.md
Last active August 29, 2015 14:10
WebmentionDressing

Bl.ocks.org demo. (Example hashes: #Webmention #WebmentionDressing #2014/Online)

If you want to display relevant webmetion.io comments at your site, you can use this as an iframe. For example:

<iframe id="webmentiondressing"
    style="width:100%; height:600px; padding:0;margin:0;border:none"></iframe>
<!-- this should be at the bottom where jQuery is already defined, of course -->
<script type="text/javascript">
// Replace this with some https location, or it would break when https
@thedod
thedod / README.md
Last active August 29, 2015 14:08
Checkbox to "criminalizate" torcriminalbrowser.com :)
@thedod
thedod / README.md
Last active August 29, 2015 14:05
[Jitsi ugly tweak] Delete call log (and chat history while we're at it)
@thedod
thedod / README.md
Last active August 29, 2015 14:05
RTL flipbook (based on codrops) Demo: is.gd/rtlflipbook

כולנו צריכים כזה דבר לפעמים

نحن جميعا بحاجة إلى شيء من هذا القبيل في بعض الأحيان

Based on Bookblock code created by Codrops. License: http://tympanus.net/codrops/licensing/

The main difference is that we view 2 pages at a time (and each has a "full-screen" link).

bootstrap.rtl.min.css is not anything official. I just filtered a bootstrap.min.css via a dumb search/replace of right<->left ["copyleft" was manually fixed :)]. This gives it that "most probably responsive" seal of quality.

@thedod
thedod / README.md
Last active August 29, 2015 14:04
BattleForTheNet.com popup dialog

BattleForTheNet.com popup dialog

See it live at https://thedod.github.io Please Put it [or a better version of it :)] on your site (don't worry. Close button sets a "don't show again" cookie). This is urgent.

A Pen by The Dod on CodePen.

@thedod
thedod / README.md
Last active August 29, 2015 14:04 — forked from anonymous/README.md
Cron kludge for #xbmc #fourtwenty ticker

This tweak lets you see a ticker based on the [https://zzzen.com/420](global 4:20pm clock)'s feed, but with shorter phrasing (to minimize the damage of XBMC's merciless title truncation).

  • Run these cron lines on a machine that serves static pages at /PATH/TO/STATIC/WEB/FOLDER/ (you can even do this on the xbmc machine itself).
  • add the url of 420.rss as an RSS source. Update every minute (it's a cheap operation).

Enjoy

screenshot

Wallpaper credit: Ann Nocenti and Sean Phillips (Kid Eternity, issue #6, 1993).

@thedod
thedod / README.md
Last active August 29, 2015 14:03
XBMC keymap tweak: zoom with ff/rew (read comics with android remote)

Zooming is essential when you read comics. If you have the 0-9 keys on your remote control, it's really easy and intuitive, but how can you read comics with an Android remote control app?

Luckily, the ff/rew buttons are not needed when you're in slideshow mode, so we can use them for zooming: Just copy zoom-ff-rew.xml to userdata/keymaps/ and restart XBMC.

Ironically, by the time I got it going, the android ran out of battery. This made it look like a remote control from the 50s ;)

Stranded on an alien planet with no functioning remote control is something to be

@thedod
thedod / README.md
Last active August 29, 2015 14:03
webcomic2xbmc: feed enclosure tweak for xkcd, smbc, etc.

Some webcomics have RSS/ATOM feeds that include the images themselves. XBMC, however, require feeds to include the images as RSS enclosures. This script fetches a feed and prints an "XBMC-compliant" one to stdout. You can run a cron job that saves this to an http-accessible file on your pc. You can then use its URL as an rss picture source.

usaage: python webcomic2xbmc.py FEED_URL [IMG_URL_REGEXP]> myxbmcfeed.xml

Examples:

  • python webcomic2xbmc.py http://xkcd.com/rss.xml &gt; ~/public_html/feeds/xkcd.xml
/* Pin definitions for MilCandy boxes
http://www.seeedstudio.com/wiki/MilCandy
Notes:
* McGroveIn2 and McGroveOut2 aren't used in [most?] Grove components
but if you use a breakout-cable/screw-ternimal/etc. it's the white cable.
* McBattIn is battery level
* McLightIn is a light sensor
*/
// analog input(s) ("If" Grove jack)
@thedod
thedod / README.md
Last active May 10, 2024 15:23
16x2 LCD thermometer with S/M/H history graphs