Skip to content

Instantly share code, notes, and snippets.

View hydrocat's full-sized avatar

Hydrocat hydrocat

View GitHub Profile
@juanpabloaj
juanpabloaj / logging_env.py
Last active March 1, 2024 13:09
python logging, log level with environment variable
import os
import logging
LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
logging.basicConfig(level=LOGLEVEL)
@CodyReichert
CodyReichert / react-es6-flow-emacs-configuration.md
Last active May 13, 2024 07:35
Configuring Emacs for react, es6, and flow

Configuring Emacs for react, es6, and flow

For a while, JSX and new es6 syntax had flaky support in emacs, but there's been huge work on a lot of packages. Using emacs for JavaScript with React, ES6, and Flow (or Typescript, etc) is really easy and powerful in Emacs these days.

This is how you can work on modern web development projects with full support for tooling like JSX, Flow types, live eslint errors, automatic prettier.js formatting, and more.

Set up web-mode

web-mode provides most of the underlying functionality, so a huge shout-out to the maintainer(s) there.

@hensou
hensou / BNF TPP
Last active April 20, 2017 04:52
BNF TPP
# Programa
<programa> ::= <declaracoes_definicoes>
# Declaracoes
<declaracoes_definicoes> ::= <declaracao_definicao> | <declaracao_definicao> <declaracoes_definicoes>
<declaracao_definicao> ::= <declaracao> | <definicao>
<definicao> ::= <definicao_funcao>
<declaracao> ::= <declaracao_variavel>
| <declaracao_condicional>
| <declaracao_expressao>