Skip to content

Instantly share code, notes, and snippets.

View miketaylr's full-sized avatar
🌭

Mike Taylor miketaylr

🌭
View GitHub Profile
diff --git a/webcompat/static/js/lib/comments.js b/webcompat/static/js/lib/comments.js
index ba03c93..56eee1e 100644
--- a/webcompat/static/js/lib/comments.js
+++ b/webcompat/static/js/lib/comments.js
@@ -7,14 +7,14 @@ var issues = issues || {};
issues.CommentsCollection = Backbone.Collection.extend({
model: issues.Comment,
url: function() {
- return '/api/issues/' + issueNumber + '/comments?page=' + this.param;
+ return '/api/issues/' + issueNumber + '/comments?page=' + this.pageNumber;
/*
* Copyright (c) 2015 by Marfeel Solutions (http://www.marfeel.com)
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Marfeel Solutions S.L and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Marfeel Solutions S.L and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
this.set_box_blur = function(t) {
var i = t.getOffsetParent()
, r = i.select("div.graphic_image_warning")[0]
, a = t.select("video.graphic_image")[0]
, s = null
, o = t.select(".sub_buzz_content__mp4")
, n = "img.graphic_image"
, l = i.select(".click_to_blur")[0]
, u = Prototype.Browser.WebKit && !isSafari5() || isIE9()
, _ = Prototype.Browser.Gecko && !isIE11()
history | awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n ",a[i],i}}' | sort -rn | head
4183 git
637 ls
486 cd
343 ./mach
341 j
288 python
279 pep8
273 nosetests
182 cat
#!/bin/bash
# Replace this value with your add-on name
XPI=screenshots.xpi
# Replace this value to push to different release channels.
# Nightly = org.mozilla.fennec
# Aurora = org.mozilla.fennec_aurora
# Beta = org.mozilla.firefox_beta
# Release = org.mozilla.firefox
{
"action": "opened",
"issue": {
"url": "https://api.github.com/repos/webcompat/webcompat-tests/issues/357",
"repository_url": "https://api.github.com/repos/webcompat/webcompat-tests",
"labels_url": "https://api.github.com/repos/webcompat/webcompat-tests/issues/357/labels{/name}",
"comments_url": "https://api.github.com/repos/webcompat/webcompat-tests/issues/357/comments",
"events_url": "https://api.github.com/repos/webcompat/webcompat-tests/issues/357/events",
"html_url": "https://github.com/webcompat/webcompat-tests/issues/357",
"id": 144769471,
getScreenshot: (tab) => {
Task.spawn(function* () {
let win = tab.window;
let dpr = win.devicePixelRatio;
let canvas = win.document.createElement("canvas");
let ctx = canvas.getContext("2d");
// Grab the visible viewport coordinates
let x = win.document.documentElement.scrollLeft;
let y = win.document.documentElement.scrollTop;
let w = win.innerWidth;
export PATH="/Applications/Firefox.app/Contents/MacOS:$PATH"
alias intern="node_modules/.bin/intern-runner reporters=console config=tests/intern user=USER pw=PASSWORD"
# Run functional tests for webcompat.com
# Requires that the firefox binary be in $PATH
testw () {
echo "Hold on to your butts."
wd="/Users/miket/dev/compat/webcompat.com"
@miketaylr
miketaylr / applicationCache.txt
Created March 3, 2016 18:18
results for "applicationCache" from top 25591 Alexa sites. These are *just* home pages,
This file has been truncated, but you can view the full file.
./be/akhbaralahly.com.html: return !!e.applicationCache
./be/eldiario.es.html: return !!a.applicationCache
./be/epochtimes.com.html: return !!a.applicationCache
./be/ezcardinfo.com.html: return !!n.applicationCache
./80/brasil247.com.html: return !!window.applicationCache;
./80/elimparcial.com.html: return !!a.applicationCache
./80/mmo-champion.com.html: return !!i.applicationCache
./80/leeds.ac.uk.html: return !!e.applicationCache
./80/stylowi.pl.html: return !!window.applicationCache;
./80/openstudy.com.html: return !!ay.applicationCache
mouseover
mouseenter (1ms)
mousemove (0ms)
mousemove (5ms)
mousemove (10ms)
mousemove (1ms)
mousemove (17ms)
mousemove (0ms)
mousemove (16ms)
mousemove (1ms)