Skip to content

Instantly share code, notes, and snippets.

View LulzAugusto's full-sized avatar

Luiz Crisostomo LulzAugusto

  • Brasília, Brazil
View GitHub Profile
@LulzAugusto
LulzAugusto / gist:eff6a4db04af4cf3958f
Created October 31, 2015 17:12
binding to make paste and indent the default behaviour in sublime text
{ "keys": ["super+v"], "command": "paste_and_indent" }
'use strict';
const WALTER_PRICE = 0.53;
const TARE_PRICE = 0.08;
export default function WalterCalculator(money) {
const ret = { totalWalters: 0, leftoverMoney: 0 };
console.log('End');
return new Promise(function(resolve) {
@LulzAugusto
LulzAugusto / filmow_exporter.js
Created July 1, 2017 16:37
Scraps movie titles and ratings from your filmow profile and exports them to a .csv file. https://filmow.com/usuario/<your_username>/ja-vi/
const movies = []
$('#movies-list li').each(function () {
console.log('scrapping this:', this)
const $ratingEl = $(this).find('.star-rating')
const rating = $ratingEl.length > 0 ? $ratingEl.data('originalTitle').split(' ')[1] : ''
const title = $(this).find('a.cover img').attr('alt').split('(')[1].split(')')[0]
movies.push([title, rating])
})

Keybase proof

I hereby claim:

  • I am lulzaugusto on github.
  • I am luizaugusto (https://keybase.io/luizaugusto) on keybase.
  • I have a public key ASBF9AXRZ0Y9uhRQRSqtlkNDFpMdJpYjcTMfXPbn6ER0Jwo

To claim this, I am signing this object: