Skip to content

Instantly share code, notes, and snippets.

View luizcarvalho's full-sized avatar
🟢
Dev and beer

Luiz Carvalho luizcarvalho

🟢
Dev and beer
View GitHub Profile
@luizcarvalho
luizcarvalho / open_issue.fish
Last active September 15, 2023 13:45
Script to open or create issue in Gitlab using fish shell for WSL
function open_issue
set DISPLAY :0
set BROWSER /usr/bin/wslview
set -g ISSUE_ID (git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/[^0-9]*//g')
set -g PROJECT_NAME (basename $PWD)
set -g GITLAB_BASE_URL https://gitlab.com
if test $ISSUE_ID
@luizcarvalho
luizcarvalho / binance_trade_history.js
Created June 26, 2019 17:45
Script to export binance trade history
function doit(date) {
document.querySelector("body > div.wrap > div > div > div.filters > div > a").click();
var date_field = document.getElementById("dateRange")
date_field.value = date;
document.getElementsByClassName("btn btn-orange btn-block ng-binding")[0].click()
}
/*
{
"messaging_type": "<MESSAGING_TYPE>",
"recipient": {
"id": "101"
},
"message": {
"text": "Bom astral para trabalhar em equipe. Assuntos financeiros podem trazer tensão a uma amizade."
}
}
{
"signo_previsao": "Bom astral para trabalhar em equipe. Assuntos financeiros podem trazer tensão a uma amizade."
}
{
"signo_nome": "sagitario",
"signo_id": "12"
}
'{
"messaging_type": "<MESSAGING_TYPE>",
"recipient": {
"id": "101"
},
"message": {
"text": "Bom astral para trabalhar em equipe. Assuntos financeiros podem trazer tensão a uma amizade."
}
}'
{
"object": "page",
"entry": [
{
"id": "104870476784835",
"time": 1531931630179,
"messaging": [
{
"sender": {

Ruby

sudo apt-get install gawk g++ gcc autoconf automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool libyaml-dev make sqlite3 zlib1g-dev libgmp-dev libreadline-dev libssl-dev

curl -sSL https://get.rvm.io | bash -s stable --ruby
  • Instalar git
  • Configurar SSH, clonas projetos, atualizar dependências

#FISH

  • Fish
// CONHECIMENTO E TECNICA
var conhecimento_ctx = document.getElementById("conhecimento_chart");
var data = {
datasets: [{
data: [ 2, 1, 2, 2, 1, 1, 1],
backgroundColor: [
'#7E1abc9c', '#2ecc717E', '#3498db7E','#9b59b67E', '#f1c40f7E', '#e67e227E', '#e74c3c7E'
],
def handle_payloads
case current_message.payload
when 'MAIN_MENU'
step_to flow: 'hello', state: 'main_menu'
when 'DIRECTIONS'
step_to flow: 'informations', state: 'directions'
when 'GENERAL'
step_to flow: 'informations', state: 'general'
when 'MENU'
step_to flow: 'informations', state: 'menu'