Skip to content

Instantly share code, notes, and snippets.

View sillygwailo's full-sized avatar
💭
Looking for collaborators.

Richard Eriksson sillygwailo

💭
Looking for collaborators.
View GitHub Profile
@sillygwailo
sillygwailo / random-runkeeper-route.md
Created February 6, 2014 01:57
Create a Random Route in RunKeeper
  1. Punch in an address or intersection as a starting (and ending) point at http://www.routeloops.com/
  2. Type in a route length in miles. You might need to convert from km if you're metric like me. You can change the units of measurement in the settings.
  3. Click "Creat a route of this Length"
  4. Click "Import/Export"
  5. Choose GPX (you don't need a large number of points for a route).
  6. This will open GPX output in a new window/tab. Use the save function of your browser, and give the file a name with the extension .gpx
  7. If you haven't already, install the RunKeeper GPX bookmarklet at http://jacqueminv.github.io/rkrace-bookmarklet/
  8. Login to RunKeeper.
  9. Visit http://runkeeper.com/new/route
  10. Now click the RunKeeper GPX bookmarklet installed in step #7. You should see a GPX icon on the left side.
@sillygwailo
sillygwailo / gist:8950520
Created February 12, 2014 05:34
Open a Random Safari Reading List Item in Your Default Browser from the Command Line

Requirements:

  1. git clone https://github.com/anoved/ReadingListReader.git
  2. brew install coreutuils
  3. sudo brew link coreutils
  4. cd ReadingListReader
  5. chmod +x readinglistreader.py

Command to run:

@sillygwailo
sillygwailo / open-in-tweetbot.js
Created February 12, 2014 19:35
Open Tweets in Tweetbot
// javascript:l%20=%20document.location.href;l%20=%20l.replace(%27https://twitter.com/%27,%20%27tweetbot://%27);l%20=%20l.replace(%27statuses%27,%20%27status%27);l%20=%20l.replace(%27http://twitter.com/%27,%20%27tweetbot://%27);l%20=%20l.replace(%27http://mobile.twitter.com/%27,%20%27tweetbot://%27);l%20=%20l.replace(%27https://mobile.twitter.com/%27,%20%27tweetbot://%27);window.location=l;
//
// based on http://www.macstories.net/tutorials/convert-twitter-com-urls-to-tweetbot-links/
// (ported to JavaScript; the bookmarklet on one line is commented out in the first line above)
l = document.location.href;
l = l.replace('https://twitter.com/', 'tweetbot://');
l = l.replace('statuses', 'status');
l = l.replace('http://twitter.com/', 'tweetbot://');
l = l.replace('http://mobile.twitter.com/', 'tweetbot://');
l = l.replace('https://mobile.twitter.com/', 'tweetbot://');
@sillygwailo
sillygwailo / mobify-drupal.md
Created February 13, 2014 22:07
Mobify Your Drupal SIte

Mobify Your Drupal Site

Integrating Mobify is not as simple as adding a module. There's no getting around it: you have to hack your theme. Here are the instructions on Mobifying your Drupal site.

  1. Login or sign up for https://cloud.mobify.com/login/
  2. Mobify your site. https://support.mobify.com/customer/portal/articles/747219-getting-started-with-mobify-studio has good instructions on that.
  3. Publish your Mobified site.
  4. On your project page, copy the Mobify Tag
  5. In your theme's code, paste the tag just after the tag. In Drupal 6 or earlier, do this in page.tpl.php. In Drupal 7, do this in html.tpl.php.
  6. Clear your site's cache.
@sillygwailo
sillygwailo / scotiabank-5k-route.geojson
Last active August 29, 2015 13:57
Scotiabank Vancouver 5k route
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sillygwailo
sillygwailo / random-kerrisdale-route.geojson
Created March 6, 2014 06:16
Random run through Kerrisdale
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sillygwailo
sillygwailo / north-vancouver-random-running-route.geojson
Created March 21, 2014 18:01
North Vancouver Random Running Route
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sillygwailo
sillygwailo / metafilter.css
Last active August 29, 2015 14:04
User CSS to remove the static header from websites
/* If you know how to edit User CSS using a browser plugin, use http://*.metafilter.com/* as the URLs for this CSS. */
header.site-header.fixed.visible {
display: none !important;
}
@sillygwailo
sillygwailo / vancouver-biennale-english-bay-tour.json
Last active August 29, 2015 14:06
Vancouver Biennale Tours in GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sillygwailo
sillygwailo / vancouver-biennale-english-bay-tour.gpx
Created September 8, 2014 06:19
Vancouver Biennale Tours in GPX
<?xml version="1.0"?>
<gpx creator="GPS Visualizer http://www.gpsvisualizer.com/" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="49.27434" lon="-123.15394">
<name>49.27435,-123.15396</name>
</wpt>
<wpt lat="49.27871" lon="-123.14401">
<name>49.27872,-123.14401</name>
</wpt>
<wpt lat="49.28001" lon="-123.13944">
<name>49.28001,-123.13945</name>