I hereby claim:
- I am vjo on github.
- I am vjo (https://keybase.io/vjo) on keybase.
- I have a public key whose fingerprint is 6C63 6849 090B 71C1 FEC6 1A7D C7EB D57C 78B9 9F3C
To claim this, I am signing this object:
| " This will work: | |
| autocmd BufWritePre *.js,*.py :%s/\s\+$//e | |
| " This works too: | |
| func! DeleteTrailingWS() | |
| exe "normal mz" | |
| %s/\s\+$//ge | |
| exe "normal `z" | |
| endfunc |
I hereby claim:
To claim this, I am signing this object:
| var t = {'total': 0, 'detail': {}}; | |
| $.each(document.getElementsByClassName('folder'), | |
| function(k, v){ | |
| var date_str = v.getElementsByClassName('large-date')[0].title; | |
| var year = date_str.slice(-4); | |
| var price = parseFloat(v.getElementsByClassName('folder__price-label')[0].textContent.replace(/€/, '').replace(/ /, '').replace(',', '.')); | |
| if(!t.detail[year]){ | |
| t.detail[year] = {'total': 0, 'tickets': []}; | |
| } | |
| t.detail[year].tickets.push({'price': price, 'date_str': date_str}); |
| While developing website / webapp it's great to force your browser to reload when modifiying code. | |
| You have plenty of solutions like LiveReload. | |
| I wanted to be able to reload Firefox from vim and this is a simple way to achieve that: | |
| * Install MozRepl (https://github.com/bard/mozrepl/wiki) | |
| * Firefox > Tools > MozRepl > Start | |
| * Be sure you have netcat 'nc' installed | |
| * Add these line in your .vimrc: |
| f=$(curl -Ls twitter.com/y3ty | grep -Po '(?<=followers_count":)[0-9]+'); echo $f |
| $("#rsvp-list-waitlist h5") | |
| .map(function(i, el) {return {"pos": i, "name": $(el).text()}}) | |
| .filter(function(i, el) {return el["name"].indexOf("Your name") >= 0;}); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content="Company Homepage"> | |
| <meta name="author" content="Victor Jolissaint"> | |
| <title>Page title</title> | |
| <link rel="author" href="humans.txt"> |
| import re | |
| import operator | |
| ALPHA = 'abcdefghijklmnopqrstuvwxyz' | |
| d = {} | |
| pound = 1 | |
| score = 0 | |
| str = 'Good luck in the Facebook Hacker Cup this year!' | |
| str = str.lower() |
| <html> | |
| <!-- From http://ionicons.com/ --> | |
| <head> | |
| <style> | |
| body { | |
| box-sizing: border-box; | |
| padding-top: 136px; | |
| border-top: 1px solid #4F8EF7; | |
| color:#373737; | |
| text-align: center; |