När Miliam fyllde ett år, så lektes det med stora såpbubblor, och det var många som ville veta hur man gjorde en riktig såpbubblemix. Så här kommer receptet.
- ½ tsk guarkärnmjöl
- 2 tsk glycerin
- 1 liter vatten
- 2½ msk handdiskmedel
function NotImplementedError(message) { | |
this.message = message || ""; | |
} | |
NotImplementedError.prototype = Object.create(Error.prototype, { | |
constructor: { value: NotImplementedError }, | |
name: { value: 'NotImplementedError' }, | |
stack: { get: function() { | |
return new Error().stack; | |
}}, | |
}); |
(function() { | |
// Run this script in the console to add the foo cae event to the calendar. | |
'use strict'; | |
let url = document.location.href; | |
let title = document.querySelector('h1').textContent; | |
let timestamp = document.querySelector('.eventtime p').textContent.trim(); | |
let datematch = timestamp.match(/, (\w+) (\d+)/); | |
let from = new Date(); | |
from.setMonth('January Februari March April May June July August September October November December'.split(' ').indexOf(datematch[1])); |
function With( key, value ) { | |
this[key] = value; | |
return this; | |
}; | |
function Except( key ) { | |
delete this[key]; | |
return this; | |
}; | |
exports.augment = function() { |
(function() { | |
var a | |
setInterval(function() { | |
var a1 = document.activeElement | |
if (a !== a1) { | |
a = a1 | |
var s = a.nodeName.toLowerCase() | |
if (a.id) s += '#' + a.id | |
if (a.className.trim()) s += '.' + a.className.trim().split(/\s/g).join('.') | |
console.log('focused: %s %o', s, a) |
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<Header> | |
<Title>qv.testCase</Title> | |
<Author>Glenn Jorde</Author> | |
<Shortcut>qvt</Shortcut> | |
<Description>Snippet for a qv.testCase</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> |
<style> | |
body, html { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
background: #333; | |
} | |
#container { | |
position: relative; | |
margin: 100px auto; |
Held by Balázs Suhajda and Glenn Jorde in Malmö 2015-02-21 @ FooCafe. Sponsored by tretton37.
Permalink here: http://bit.ly/polymer-malmo
#ghx-work { | |
display: flex; | |
} | |
#ghx-work #ghx-pool-column { | |
display: block; | |
flex: 1; | |
} | |
#ghx-work #ghx-detail-view { | |
display: block; | |
} |
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;