Skip to content

Instantly share code, notes, and snippets.

View karlcow's full-sized avatar
⛩️
Working from … anywhere

Karl Dubost karlcow

⛩️
Working from … anywhere
View GitHub Profile
From Japan
→ http HEAD https://farm3.staticflickr.com/2502/3962240223_d9aec47123_o.jpg
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 2147588
Cache-Control: max-age=315360000,public
Connection: keep-alive
Content-Length: 3004684
Content-Type: text/plain; charset=utf-8
@karlcow
karlcow / 0.txt
Created March 2, 2015 23:53
Some findings on URL in Tech Evangelism Bugzilla.
http -b GET "https://bugzilla.mozilla.org/rest/bug?include_fields=url,status&component=Desktop&product=Tech%20Evangelism" > bugzilla-urls-desktop.txt
http -b GET "https://bugzilla.mozilla.org/rest/bug?include_fields=url,status&component=Mobile&product=Tech%20Evangelism" > bugzilla-urls-mobile.txt
We get a JSON file that we can clean up to get only the domain names.
@karlcow
karlcow / gBack.js
Created February 6, 2015 02:04
gBack: code for making the opposite of webcompat to github and come back to the issue page. This can't work as a bookmarklet because github is HTTPS. We need to make it as an Addon extension (unfortunately less universal).
javascript:
l=document.location;
if(l.origin==='https://github.com'){
githubPathname=l.pathname;
pathArray=githubPathname.split('/');
webcompatLocation='https://webcompat.com/'+pathArray[3]+'/'+pathArray[4];
document.location.href=webcompatLocation;
}
else{
alert('not%20github%20here');
@karlcow
karlcow / 0-intro.md
Last active August 29, 2015 14:13
Routing and Flask for redirects.

Exploration for understanding what is the best way to manage routing in Flask in terms of performance, maintainability, use cases.

Started with a question on stackoverflow.

Flask allows for redirect. It helps for managing operational redirects. But I haven't found any elegant way to manage URI persistence (aka the fabric of time) on a long term.

from flask import redirect

@app.route('/shiny')

@karlcow
karlcow / pulse
Created January 13, 2015 23:45
html marktup for pulse on github
<li>
<span class="state state-closed">Closed</span>
<span class="num">#153</span>
<a href="/webcompat/web-bugs/issues/153" class="title">www.ovoid.org - WebGL demo redirects to error page</a>
<time datetime="2015-01-12T07:17:52Z" is="relative-time">Jan 12, 2015</time>
</li>

Pagination Issues

We created a pagination project, following the discussion. Check the issues

This is a long standing discussion in the French community about pagination issues. These are a list of issues for collecting feedback and eventually publish an article on http://www.openweb.eu.org/ or somewhere. Feel free to write in English or French. Consider this place as a draft. UX, code, accessibility thoughts are welcome.

Issues

@karlcow
karlcow / 1.md
Last active August 29, 2015 14:10
Silly parsing
@karlcow
karlcow / parisweb-2015.md
Last active August 29, 2015 14:07
ParisWeb 2015 - Talk ideas

ParisWeb 2015 - Talk ideas

What are the things that could be addressed at Paris Web 2015? 10th anniversary. I will add little by little what comes to my mind.

How To Contact Web sites?

Sometimes sites are broken. There is WebCompat.com for helping to record, but what are the techniques for finding the right contacts? Learn how to find contacts on Web site. What is working, not working, maximize the chances to get the issue fixed. It's not 100% bullets proof, but it helps a lot to be more effective.

HTTP2

@karlcow
karlcow / mainpage.js
Last active August 29, 2015 14:07
It doesn't start well inside the JS of m.futureshop.ca
var env = {
uagent: navigator.userAgent.toLowerCase(),
isWebkit: false,
isiPhone: false,
isiPad: false,
isAndroid: false,
isAndroidCromeMobile: false,
isBlackberry: false,
isWindowsPhone: false,
isTouchpad: false,
@karlcow
karlcow / 404-issues.txt
Created September 22, 2014 08:40
Some issues with our issues
200 1
200 2
200 3
200 4
200 5
200 6
200 7
200 8
200 9
200 10