Skip to content

Instantly share code, notes, and snippets.

Matheus Silva Santos de Oliveira matheussilvasantos

View GitHub Profile
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.