Skip to content

Instantly share code, notes, and snippets.

View thierryk's full-sized avatar

Thierry Koblentz thierryk

View GitHub Profile
Verifying that +thierrykoblentz is my blockchain ID. https://onename.com/thierrykoblentz
@thierryk
thierryk / bookmarklet.js
Created May 27, 2016 23:36
Bookmarklet to count number of characters per class attribute
javascript:%28function%28%29%7Bvar p%3Dprompt%28%27Enter a wrapper ID %28leave blank to check the entire page%29%3A%27%29%2Cwrapper%3Dp%3Fdocument.getElementById%28p%29%3Adocument.body%2CallTags%3Dwrapper.getElementsByTagName%28%27*%27%29%2CclassNames%3D%7B%7D%2CcharacterLength%3D0%2Ctag%2Cclasses%2CnodeWithClasses%3D0%2Cidentifier%2CuniqueClasses%3D%5B%5D%2Ci%2Cz%2Cbox%2CspaceSeparator %3D new RegExp%28/%5E%5Cs%24/%29%2Ccount%3D1%3Bfor%28i%3D0%3Bi<allTags.length%3Bi++%29if%28tag%3DallTags%5Bi%5D%2Ctag.className%29for%28nodeWithClasses+%3D1%2Cclasses=%28tag%20instanceof%20SVGElement%29%3F--nodeWithClasses:tag.className.split%28%27%27%29%2Cz%3D0%3Bz%3Cclasses.length%3Bz++%29identifier%3Dclasses%5Bz%5D%2Cidentifier.charAt%280%29%3D%3D%3Didentifier.charAt%280%29.toUpperCase%28%29%26%26%28uniqueClasses.indexOf%28identifier%29%3E-1%7C%7C%28uniqueClasses.push%28identifier%29%2C++count%29%29%2CcharacterLength+%3Didentifier.length%2C%28spaceSeparator.test%28identifier.charAt%280%29%29%29%3F--characterLength%3A%27%27%
@thierryk
thierryk / embed-10.html
Last active May 27, 2016 13:29
For reuse article on Medium
<!-- good -->
<div class="header">
<div class="basket">
<div class="product">
<div class="searchResults">
@thierryk
thierryk / embed-9.html
Last active May 27, 2016 13:28
For reuse article on Medium
<!-- bad -->
<div class="red pull-left">
<div class="grid row">
<div class="col-xs-4">
@thierryk
thierryk / embed-8.html
Last active May 27, 2016 13:25
For reuse article on Medium
<div id="contentCol" class="clearfix hasRightCol _5r-_ homeWiderContent homeFixedLayout hasExpandedComposer newsFeedComposer">
@thierryk
thierryk / embed-7.html
Last active May 27, 2016 13:24
For reuse article on Medium
<div class="clearfix pull-left red etc">
@thierryk
thierryk / embed-6.css
Created May 27, 2016 13:10
For reuse article on Medium
.Bgc\(\#0280ae\)\:h:hover {
background-color: #0280ae;
}
@thierryk
thierryk / embed-5.html
Last active May 27, 2016 13:22
For reuse article on Medium
<div class="Bgc(#0280ae):h"></div>
@thierryk
thierryk / embed-4.html
Last active May 27, 2016 13:20
For reuse article on Medium
<div class="someModule">
<div class="someModule-someComponent"></div>
<div class="someModule-someOtherComponent"></div>
</div>
@thierryk
thierryk / embed-3.html
Last active May 27, 2016 13:18
For reuse article on Medium
<div class="pull-sm-left">Float left on viewports sized SM (small) or wider</div>
<div class="pull-md-left">Float left on viewports sized MD (medium) or wider</div>
<div class="pull-lg-left">Float left on viewports sized LG (large) or wider</div>
<div class="pull-xl-left">Float left on viewports sized XL (extra-large) or wider</div>