Skip to content

Instantly share code, notes, and snippets.

View joaolucasl's full-sized avatar

João Lucas Lucchetta joaolucasl

  • São Paulo
View GitHub Profile
@joaolucasl
joaolucasl / westminster-shorter-pt-br.json
Last active February 14, 2023 19:43
Catecismo Menor de Wesminster PT-BR em json
[{
"numero": "1",
"pergunta": "Qual é o fim principal do homem?",
"resposta": "O fim principal do homem é glorificar a Deus, e gozá-lo para sempre.",
"refs": "Rm 11.36; 1Co 10.31; Sl 73.25-26; Is 43.7; Rm 14.7-8; Ef 1.5-6; Is 60.21; 61.3."
}, {
"numero": "2",
"pergunta": "Que regra deu Deus para nos dirigir na maneira de o glorificar e gozar?",
"resposta": "A Palavra de Deus, que se acha nas Escrituras do Velho e do Novo Testamentos, é a única regra para nos dirigir na maneira de o glorificar e gozar.",
"refs": "Lc 24.27, 44; 2Pe 3.2, 15-16; 2Tm 3.15-17; Lc 16.29-31; Gl 1.8-9; Jo 15.10-11; Is 8.20; Hb 1:1 comparado com Lc 1.1-4 e Jo 20.30-31."
@joaolucasl
joaolucasl / keybase.md
Created April 12, 2021 13:41
keybase.md

Keybase proof

I hereby claim:

  • I am joaolucasl on github.
  • I am joaolucasluc (https://keybase.io/joaolucasluc) on keybase.
  • I have a public key ASA1BxSGDppv9GSDaGWyseu4Bz5Nny6n-8o7uPdLAQfc9go

To claim this, I am signing this object:

@joaolucasl
joaolucasl / foo.bar
Last active July 25, 2017 11:55
Moip Logo Asset for Github READMEs
a
@joaolucasl
joaolucasl / vdom.js
Last active January 31, 2017 16:02
VDOM THINGO
//Criar um micro-framework simples que forneça a seguinte API:
// Cria um nó virtual que é utilizado na função render
function h(tagName, props, children) {}
// Recebe um nó virtual e um nó do DOM e renderiza o elemento dentro desse nó.
function render(vNode, domNode) {}
// Exemplo:
import { h, render } from './build.js'
@joaolucasl
joaolucasl / callback-refs.jsx
Last active January 11, 2017 20:22
Comunicacao de Componentes React
class ParentComponent extends React.Component
{
render() {
return (
<input type="text" ref={(field) => this.editText = field} />
)
}
componentDidMount() {
if (this.editText !== null) {
this.editText.focus()
@joaolucasl
joaolucasl / stream.go
Last active November 6, 2016 02:49
Go lang tail and print to terminal
package main
import (
"fmt"
"github.com/hpcloud/tail"
)
func main() {
t, _ := tail.TailFile("/var/log/syslog", tail.Config{Follow: true})
for line := range t.Lines {
@joaolucasl
joaolucasl / script.js
Created September 19, 2016 17:35
anti-marcelo.js
setInterval(() => {
Array.from(document.getElementsByTagName('ts-message')).forEach(item => { item.innerHTML = item.innerHTML.includes('Marcelo Camargo') ? '' : item.innerHTML } )
}, 3000)
@joaolucasl
joaolucasl / calculator.f90
Created March 18, 2016 02:13
Fortran 95 Calculator YOLO
PROGRAM calculator
! YOLO Doing Fortran in 2016
!
! Hibb is Illuminatti /<o>\
REAL :: num1 ! The target number 1
REAL :: num2 ! The target number 2
REAL :: res ! The result
CHARACTER(1) :: op ! The operation
@joaolucasl
joaolucasl / README.md
Created February 28, 2016 01:37
Rails Asset Pipeline

I have the following configuration/SCSS files related to my Asset Pipeline. The need is to have a custom CSS file for each controller, such as the home stylesheet below.

Inside those controller specific stylesheet, several variables, extends, and includes are used. If the SCSS file is imported inside application.scss, such as:

@import "home"

the variables work fine. But once I remove that declaration and declare the file inside the asset pipeline, the applications runs into an error:

Undefined variable: "$LatoFamily"

@joaolucasl
joaolucasl / ngrok-install.sh
Created December 6, 2015 10:47
Ngrok install script
#!/bin/bash
pushd /tmp
echo "Downloading ngrok"
rm -f /tmp/ngrok.zip
curl --silent https://dl.ngrok.com/ngrok_2.0.19_linux_amd64.zip -o /tmp/ngrok.zip
echo "Downloaded"
tar -xvf /tmp/ngrok.zip
if echo "$PATH" | grep /usr/local/bin; then
echo -e "\n Enter pwd if prompted"