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:6a443e2f4113b3ee26bf8e772ae44d4d
https://owners.hyundaiusa.com/etc/designs/ownercommon/us/clientlib-hyundai-all.min.ACSHASH38387dacd0dd8fb621fa3d02d70944c1.css
.interior-image-wrapper .slick-arrow {
-webkit-appearance: menulist-textfield;
background: url(clientlib-hyundai-site/css/clientlib-hyundai-site/images/arrows-sprite.png) #fff !important;
background-repeat: no-repeat !important;
background-size: auto !important;
background-position: 0 0;
padding-top: 3px;
padding-left: 0;
View gist:3eb6c5804b9ba7bce4cdcfd7757810f9
(function(u){var m="embeddedServiceHelpButton";var x=[".salesforce.com",".force.com",".sfdc.net"];var ad="esw_storage_iframe";var V="4.0";var F=100;var y="__snapinsLoginCallback";var t="__snapinsLogoutCallback";var Z="snapins_invite";function j(){var ae=false;this.settings={appendHelpButton:true,displayHelpButton:true,isExternalPage:true,devMode:false,targetElement:document.body,elementForOnlineDisplay:undefined,elementForOfflineDisplay:undefined,defaultMinimizedText:"",disabledMinimizedText:"",loadingText:"Loading",enabledFeatures:[],entryFeature:"FieldService",storageDomain:document.domain,language:undefined,linkAction:{feature:undefined,name:undefined,valid:false},linkActionParameters:{}};this.featureScripts={};this.eventHandlers={};this.messageHandlers={};this.storageKeys=["ESW_BODY_SCROLL_POSITION","ESW_IS_MINIMIZED","ESW_MINIMIZED_TEXT"];this.defaultSettings={};this.eswFrame=undefined;this.availableFeatures=["script","session"];this.pendingMessages={};this.iframeScriptsToLoad=[];this.domInitInProgress=f
View pixel.js
/*! 2018-06-28 */
!function (a) {
function b(d) {
if (c[d]) return c[d].exports;
var e = c[d] = {
exports: {
},
id: d,
loaded: !1
};
View one.py
#!/usr/bin/python3
import webbrowser
# starting from http://www.pythonchallenge.com/pc/def/0.html
new_path = 2 ** 38
new_url = "http://www.pythonchallenge.com/pc/def/{}.html".format(new_path)
webbrowser.open(new_url)
# takes me to http://www.pythonchallenge.com/pc/def/map.html
View jquery.benchmark.js
// based on methodology developed by PPK:
// http://www.quirksmode.org/blog/archives/2009/08/when_to_read_ou.html
(function($){
$.benchmark = function(times, result_selector, func){
var startTime = new Date().getTime();
while (times != 0){
func();
times--;
}
View 0001-Issue-2288.-Add-0.json-fixture.patch
From 817df78e5995b12908f5b758ccb68ea14f1f63b8 Mon Sep 17 00:00:00 2001
From: Mike Taylor <miketaylr@gmail.com>
Date: Thu, 26 Apr 2018 22:58:14 -0500
Subject: [PATCH] Issue #2288. Add "0.json" fixture.
---
.gitignore | 1 -
tests/fixtures/api/issues/0.json | 74 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 1 deletion(-)
create mode 100644 tests/fixtures/api/issues/0.json
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: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
You can’t perform that action at this time.