Skip to content

Instantly share code, notes, and snippets.

Matheus Silva Santos de Oliveira matheussilvasantos

Block or report user

Report or block matheussilvasantos

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
matheussilvasantos / Dockerfile
Created May 8, 2019
Dockerfile for CodeBuild
View Dockerfile
FROM ruby:2.6.3
RUN curl -sL | sudo -E bash - &&
curl -sS | sudo apt-key add - &&
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list &&
sudo apt-get update &&
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common \
libffi-dev nodejs yarn
View handler.rb
require 'json'
@acordes ||= {|h,k| h[k] = [] }
def lambda_handler(event:, context:)
@acordes ||= {|h,k| h[k] = [] }
params = JSON.parse(event["body"])
puts "[LOGGER] #{params}"
session = params["session"]
acorde = params["queryResult"]["parameters"]["acorde"]
matheussilvasantos / search_form.rb
Last active Jan 18, 2019
Hanami validations using an optional array with Hashs in it.
View search_form.rb
require 'hanami/validations/form'
class SearchForm
include Hanami::Validations::Form
validations do
optional(:filter).maybe do
schema do
optional(:category).each do
schema do
View .vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'jistr/vim-nerdtree-tabs'
View gulpfile.js
var gulp = require("gulp");
var sass = require("gulp-sass");
var useref = require("gulp-useref");
var uglify = require("gulp-uglify");
var gulpIf = require("gulp-if");
var cssnano = require("gulp-cssnano");
var imagemin = require("gulp-imagemin");
var cache = require("gulp-cache");
var del = require("del");
var browserSync = require("browser-sync").create();
View nasa.rb
ints = ["[3604 Available]", "[3608 Available]", "[3612 Available]", "[3615 Invoiced]"]
You can’t perform that action at this time.