Skip to content

Instantly share code, notes, and snippets.

@Flolagale
Flolagale / dabblet.css
Created April 29, 2013 18:17
The first commented line is your dabblet’s title
/**
* 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
@Flolagale
Flolagale / extractTwitterUsernames.js
Created December 17, 2015 11:21
Extract Twitter username list from twitter research
$$('.username > b').map(n => n.textContent ? '@' + n.textContent : '').filter(t => t).join(', ')
@Flolagale
Flolagale / slugify.js
Created August 20, 2013 16:55
Slugify
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)) || '-';
});
@Flolagale
Flolagale / incremental_tags.vim
Last active May 25, 2020 00:25
Generate ctags incrementally in vim. Juste paste this into your .vimrc.
function! GenerateTagsIncrementally()
python << EOF
import os
print('Generating tags incrementally.')
# Walk the file tree, if a file has an mtime more recent than the tag file,
# add it to the list of files to index.
tags_mtime = os.stat('tags').st_mtime
with open('list', 'w') as fp:
for dirpath, dirnames, filenames in os.walk(os.getcwd()):
for filename in filenames: