Skip to content

Instantly share code, notes, and snippets.

View miketaylr's full-sized avatar
🌭

Mike Taylor miketaylr

🌭
View GitHub Profile
(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
/*! 2018-06-28 */
!function (a) {
function b(d) {
if (c[d]) return c[d].exports;
var e = c[d] = {
exports: {
},
id: d,
loaded: !1
};
#!/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
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
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
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")) {
[
{
"K": 0,
"id": null,
"lang": "und",
"contentType": "video",
"b": false,
"f": false,
"c": "rotated_cubemap",
"s": [
<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%);
[{"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
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