Skip to content

Instantly share code, notes, and snippets.

Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@thewheat
thewheat / bookmarklet-raw.js
Created June 11, 2016 10:36
Show number of online records in Intercom. Use http://mrcoles.com/bookmarklet/ to convert raw JS to bookmarklet
/* raw JS file -1 */
var num_online = $(".avatar__activity-indicator.o__on").length;
var users_displayed = $(".ember-view.tbl__user-list-row").length;
var msg = num_online + " online" + (num_online == users_displayed ? " but there could be more, scroll down to load more records":"");
/* alert(msg); */
var className = "bookmarklet_message";
var element = $("." + className);
@thewheat
thewheat / functions.php
Last active September 19, 2019 22:06
Intercom Wordpress plugin customisations
////////////////////////////////////////////////////////////////////////////////////////////////////
// Customise functionality of the default Intercom Wordpress plugin
// https://github.com/intercom/intercom-wordpress
////////////////////////////////////////////////////////////////////////////////////////////////////
// This code can be added to a plugin or a theme
// Simplest install would be in your theme's function.php file
////////////////////////////////////////////////////////////////////////////////////////////////////
// customise the current Intercom script
// - add custom attributes https://docs.intercom.io/configuring-intercom/send-custom-user-attributes-to-intercom
@thewheat
thewheat / map 21.geojson
Last active July 2, 2016 03:29
Bus Route 21. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 34.geojson
Last active July 2, 2016 03:47
Bus Route 34. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 35.geojson
Last active July 2, 2016 04:10
Bus Route 35. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 33.geojson
Created July 2, 2016 06:24
Bus Route 33. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 46.geojson
Last active July 7, 2016 01:03
Bus Route 46. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 44.geojson
Created July 7, 2016 01:03
Bus Route 44. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 43.geojson
Last active July 7, 2016 05:49
Bus Route 43. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.