View slugify.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var slugify function(str) { | |
var from = "ąàáäâãåæćęèéëêìíïîłńòóöôõøśùúüûñçżź", | |
to = "aaaaaaaaceeeeeiiiilnoooooosuuuunczz", | |
regex = new RegExp('[' + from.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + ']', 'g'); | |
if (str == null) return ''; | |
str = String(str).toLowerCase().replace(regex, function(c) { | |
return to.charAt(from.indexOf(c)) || '-'; | |
}); |
View extractTwitterUsernames.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('.username > b').map(n => n.textContent ? '@' + n.textContent : '').filter(t => t).join(', ') |
View dabblet.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #2e3338; //#3c434a; | |
background: linear-gradient(0deg, #262a2e, #2e3338); | |
min-height: 100%; | |
//background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAYnUlEQVR4nIXdwXXjyBJEUTjAHb2hDzKH3sgIekNv9Bczgb58Dc1f6LREAoWszMiIyKI0czyfz9v9fr99f3/fvr6+bs/n8/b19XX7/v6+PR6P2+PxuN3v99vr9bo9n8/z6ziO2/P5vL3f79v9fr/d7/eP+76/v2/3+/32fr9v7/f79v39ffv+/j7veTwet/f7fXu9Xudzt8ZxHOdz99qeuXV3/dYwxq+vr9vr9bodx/HxrMfjcd7n+q/X6/b9/X07juP8/vF4fORj97jW8macj8fj9nq9zrjc8+v1Ot//+vq6vd/vM2db8ziO46+FluS97r/bpInf9Qv2/X5/JOz5fJ7Xul4TYkIt+L7vz9vY1lrC9t4Kt+cXRK61OBZT97D1jXX3LLHLzZJ/HMfHur5WwJ3xbANLZgNdJV1sDx0SV3kRuNfbXSvIghiCFlwR1qSYLNG/193cumrI3+YX955hIdyjHbh7VoxdtyIs9j1/yF9XC/R11Tpwebnf77fDyu6Bu3GJHuJsPx+wpCzIBT+E7t4WYYnaM6S5AWKdtUQY27630OuExWS3FBy7fveuOIJs8bQLl7fFIahbJLtewO3+FebxeNyObbZoW7Amzg3toduwG2iXLIifn5+/kLznlCLk1xVKTWgXShV22r5WcMFit45Olyh1S4qR9vYM0d79CxQLbFwf62+hUsQ2IFK36Sve9b6t1eu9xo3YMUNRu8ZnNGYRtjil2iVkSTdmkd/Yd30ps91XitUE2C0Ku3ok4 |