Skip to content

Instantly share code, notes, and snippets.

👮
this is the police

Mike Taylor miketaylr

👮
this is the police
Block or report user

Report or block miketaylr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8827e0b916ade6883adf71a9a7ec2c2b
mitaylor at omg-5 in ~/dev/webcompat-metrics on issues/28
🐓 npm run test
> webcompat-metrics@1.0.0 test /Users/mitaylor/dev/webcompat-metrics
> npm run lint && npm run test:jest
> webcompat-metrics@1.0.0 lint /Users/mitaylor/dev/webcompat-metrics
> npm run lint:JS && npm run lint:CSS
View cssPropToIDL.js
function cssPropToIDL(prop, lowercaseFlag = false) {
let output = "";
let uppercaseNext;
if (lowercaseFlag) {
prop = prop.slice(1);
}
for (let char of prop) {
if (char === String.fromCodePoint("0x002D")) {
View gist:b0a4ad86ee440e2788b035472eebb3a7
[
{
"K": 0,
"id": null,
"lang": "und",
"contentType": "video",
"b": false,
"f": false,
"c": "rotated_cubemap",
"s": [
View gist:3c11c8c36e3592f93191c17268b4f47d
<div class="parsys pagestage section hidden-mobile">
<style type="text/css">
@media screen and (min-width: 960px) {
.inline-page-stage-contentwwwupccablecomchenteasersdefaultjcrcontentpromofullwidth1pagestage {
}
}
@media screen and (min-width: 640px) and (max-width: 959px) {
.inline-page-stage-contentwwwupccablecomchenteasersdefaultjcrcontentpromofullwidth1pagestage {
background: #FFFFFF;
background: -webkit-linear-gradient(left, #FFFFFF 0%, #FFFFFF 100%);
View milestones.json
[{"url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2","html_url":"https://github.com/webcompat/webcompat-tests/milestone/2","labels_url":"https://api.github.com/repos/webcompat/webcompat-tests/milestones/2/labels","id":2744173,"number":2,"title":"needsdiagnosis","description":"Issues in the process of being diagnosed","creator":{"login":"karlcow","id":505230,"avatar_url":"https://avatars0.githubusercontent.com/u/505230?v=4","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlc
View gist:749fb790af7283c78cf55014d3bae107
Process: Python [6503]
Path: /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.14 (2.7.14)
Code Type: X86-64 (Native)
Parent Process: Python [6479]
Responsible: Python [6503]
User ID: 501
Date/Time: 2017-09-29 17:17:26.356 -0500
View gist:7ee41d84fdf22aadcb5fe33c4cc0acb4
Index: Source/JavaScriptCore/runtime/LiteralParser.cpp
===================================================================
--- Source/JavaScriptCore/runtime/LiteralParser.cpp (revision 221395)
+++ Source/JavaScriptCore/runtime/LiteralParser.cpp (working copy)
@@ -272,7 +272,7 @@ template <ParserMode mode> TokenType Lit
if (*m_ptr == ';') {
token.type = TokSemi;
token.end = ++m_ptr;
- return TokAssign;
+ return TokSemi;
View gist:4becab632120c9bf83463f2eabf1272d
🐓 cd /Users/miket/dev/compat/webcompat.com; sleep 2; intern
The reporter ID "console" is deprecated. Use "Console" instead.
PASS: firefox on any platform - Reporting (non-auth) - Submit buttons are disabled (342ms)
PASS: firefox on any platform - Reporting (non-auth) - Wyciwyg bug workaround (200ms)
PASS: firefox on any platform - Reporting (non-auth) - Report button shows via GitHub (5196ms)
PASS: firefox on any platform - Reporting (non-auth) - URL validation (1564ms)
PASS: firefox on any platform - Reporting (non-auth) - Problem type validation (776ms)
PASS: firefox on any platform - Reporting (non-auth) - (optional) browser + os validation (691ms)
PASS: firefox on any platform - Reporting (non-auth) - Image extension validation (610ms)
PASS: firefox on any platform - Reporting (non-auth) - Submits are enabled (834ms)
View gist:52696a79a1c95d200c20bee2863e4df2
function a(e, n, t) {
var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}
, a = e.url
, i = e.type
, u = o.tryForceFlash
, d = !!o.reuseElements
, l = d ? C : M
, f = s.default.parse(a);
f.protocol && f.hostname || b.trace("Received relative URL as audio source! Might not work as expected: ", a);
var m = d ? T : new Audio;
View gist:96eabfe89a57f02bfe29e04f85a532d0
window.jwplayer = function(e) {
function t(n) {
if (i[n]) return i[n].exports;
var r = i[n] = {
exports: {},
id: n,
loaded: !1
};
return e[n].call(r.exports, r, r.exports, t), r.loaded = !0, r.exports
}
You can’t perform that action at this time.