Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

luiz tanure letanure

🎯
Focusing
Block or report user

Report or block letanure

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ievms.sh
#!/usr/bin/env bash
# Caution is a virtue.
set -o nounset
set -o errtrace
set -o errexit
set -o pipefail
# ## Global Variables
@letanure
letanure / fun.js
Last active Jul 24, 2019
create array months in any language 😛
View fun.js
[...Array(12)].map((item, index) => ( new Date(Date.UTC(0, ++index, 0, 0, 0, 0)).toLocaleDateString('de-DE', { month: 'long' }) ))
Object.assign(...[...Array(12)].map((item, index) => new Date(Date.UTC(0, ++index, 0, 0, 0, 0)).toLocaleDateString('pt-BR', { month: 'long' })).map((month, index) => ({[index]: month})))
@letanure
letanure / ai-for-humans.md
Created May 17, 2018 — forked from codepo8/ai-for-humans.md
Link collection for the "AI for humans" talk
View ai-for-humans.md

Slides

Intro and history of ML on the web

  • Autodraw by Google is a tool that allows you to doodle what you want to paint and turns it into a proper icon by detecting the outline and making an ML based assumption what it could be.
  • Quickdraw by Google is a game they created a few years before Autodraw to train the model.
  • ReCaptcha is a CAPTCHA engine that feeds the data back into Google's ML systems. For example, currently being asked to detect street signs or cars is a good indicator that this data will go into the self-driving cars project.
  • Amazon's Mechanical Turk is a service by Amazon to get humans to do things for you. A lot of the data accumulated with that one could be used to train models. One very famous examples back then was to ask people to [p
View buttons.styl
/*
# Core/Buttons
Basic definitions of how use the grid and its containers
.button - Main container
Markup:
<button class="button {{modifier_class}}">
Button
View markdown-demo.md

This a test of all markdown possibilities:


Headings

h1 Heading 1

h2 Heading 2

h3 Heading 3

h4 Heading 4

@letanure
letanure / css_regression_testing.md
Created Mar 8, 2018 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools
View css_regression_testing.md

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@letanure
letanure / string_html_list_to_array.js
Last active Jan 31, 2018
string_html_list_to_array.js
View string_html_list_to_array.js
const myHtml = '<p>Atesto para os devidos fins que o paciente este internado por três principais motivos:</p> <ol><li> Esta com fome</li><li>Esta com Sede</li><li>Esta com Frio</li></ol>'
const arrayItems = myHtml
.replace('</ol>', '')
.replace(/<\/li>/gi, '')
.split('<ol>')[1]
.split('<li>')
.map(item => item.replace('</li>', '').trim())
.filter(item => item !== '')
@letanure
letanure / README.md
Created Jan 3, 2018 — forked from brianboyko/README.md
VueJS Best Practices Guide
View README.md

Deverus Vue.js Style Guide

Guide for developing Vue.js applications.

v. 0.0.1

Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.

However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.

View mobile-era.md
@letanure
letanure / ribbon.js
Created Sep 25, 2017
ribbon via gtm
View ribbon.js
var docCookies = {
getItem: function (sKey) {
if (!sKey) { return null; }
return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null;
},
setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return false; }
var sExpires = "";
if (vEnd) {
switch (vEnd.constructor) {
You can’t perform that action at this time.