Skip to content

Instantly share code, notes, and snippets.

View justmarkup's full-sized avatar
👨‍🚀
...

Michael Scharnagl justmarkup

👨‍🚀
...
View GitHub Profile
remove: function( key ) {
try {
localStorage.removeItem( storagePrefix + key );
return this;
} catch( e ) {
return false;
}
},
get: function( key ) {
@justmarkup
justmarkup / SassMeister-input-HTML.html
Created January 15, 2015 17:02
Generated by SassMeister.com.
<div class="background"></div>
# Test 1:
1) Cloned the repo
2) Started Server via
```
npm install http-server -g
http-server -c-1
'''
3) Opened page https://localhost:8080/
4) Reloaded - got console message "This page is controlled by a ServiceWorker"
@justmarkup
justmarkup / response
Created February 17, 2015 10:04
script.js
Request URL:http://localhost/sw/2/simple-serviceworker-tutorial/script.js
Request Method:GET
Status Code:200 OK (from ServiceWorker)
Request Headers
Provisional headers are shown
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
Response Headers
accept-ranges:bytes
content-encoding:gzip
Remote Address:127.0.0.1:80
Request URL:http://localhost/sw/2/simple-serviceworker-tutorial/script.js
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en,en-US;q=0.8,de-DE;q=0.6,de;q=0.4
Cache-Control:no-cache
Connection:keep-alive
@justmarkup
justmarkup / readme.md
Created August 18, 2015 16:32
List of performance optimization techniques
@justmarkup
justmarkup / SassMeister-input-HTML.html
Created September 8, 2015 08:46
Generated by SassMeister.com.
<div class="background"></div>
@justmarkup
justmarkup / dabblet.css
Created January 7, 2012 20:01
My name is ... 12s animation
/**
* My name is ... 12s animation
*/
/*
* currently only works in Firefox cause there is a bug in Webkit https://bugs.webkit.org/show_bug.cgi?id=23209
*/
p,
h1 span {
@justmarkup
justmarkup / dabblet.css
Created January 8, 2012 14:21
slider menu (css only)
/**
* slider menu (css only)
*/
/**
* its not usable nowadys as it
* only works in Firefox and Webkit (should also work in IE10 but not tested)
* and even there you can not select the subnavi via keyboard
*/
@justmarkup
justmarkup / dabblet.css
Created January 31, 2012 19:28
Loading...
/**
* Loading...
*/
/**
* An attempt of an accessible and crossbrowser loading bar.
* Remove the animations from the pseudo elements to see how it looks like in old browsers, simple eh?
*/
@keyframes load {