Skip to content

Instantly share code, notes, and snippets.

View LulzAugusto's full-sized avatar

Luiz Crisostomo LulzAugusto

  • Brasília, Brazil
View GitHub Profile

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:

@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])
})
'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 / 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" }
@LulzAugusto
LulzAugusto / gist:06cfd32433b4b797e226
Created June 18, 2015 20:01
CSS arrow without with shadow/borders
.tago-infobox-arrow {
position: absolute;
width: 32px;
height: 32px;
left: 50%;
margin-left: -16px;
bottom: -32px;
overflow: hidden;
&:before {
function fadeOut(el){
el.style.opacity = 1;
(function fade() {
el.style.opacity -= 0.1;
if (el.style.opacity < 0) {
el.style.display = "none";
el.classList.add('tago-playerbox-hide');
} else {
requestAnimationFrame(fade);
@LulzAugusto
LulzAugusto / es.js
Last active August 29, 2015 14:16
ES6 presentation
function myFnc() {
if (true) {
let a = 'oi';
console.log(a + ' gdg'); // oi gdg
}
console.log(a); // a is not defined
}
// myFnc();
@LulzAugusto
LulzAugusto / NSManagedObject+isNew.m
Created October 22, 2014 18:41
Snippet that tells you if a core data object is new or not.
//
// NSManagedObject+IsNew.m
// eduexpos
//
// Created by Luiz Augusto on 8/29/14.
// Copyright (c)
//
#import "NSManagedObject+IsNew.h"
@LulzAugusto
LulzAugusto / jquery.sitef.paginator.js
Last active August 29, 2015 14:04
Just a little widget to handle pagination in one of the projects of the company I work for. May be useful or not, idk.
/*=====================================================
*
* jQuery Sitef Paginator
* Inform Sistemas LTDA.
*
======================================================*/
;(function ($, window, document, undefined) {
$.widget("sitef.paginator", {
@LulzAugusto
LulzAugusto / template.js
Created July 11, 2014 16:43
Template engine with underscore.js
function render(tmpl_name, tmpl_data) {
if ( !render.tmpl_cache ) {
render.tmpl_cache = {};
}
if ( ! render.tmpl_cache[tmpl_name] ) {
var tmpl_dir = '/templates';
var tmpl_url = tmpl_dir + '/' + tmpl_name + '.html';
var tmpl_string;