Skip to content

Instantly share code, notes, and snippets.

View thiagoramos23's full-sized avatar

Thiago Ramos thiagoramos23

View GitHub Profile
@thiagoramos23
thiagoramos23 / init.vim
Created November 27, 2021 03:37
initvim-organized.vim
" set runtimepath^=~/.vim runtimepath+=~/.vim/after
" let &packpath = &runtimepath
" source ~/.vimrc
"'' VIM PRE-PLUG ''"
set nocompatible
filetype off
syntax enable
" PLUGINS
@thiagoramos23
thiagoramos23 / kitty.conf
Created July 9, 2021 17:15
Kitty Configuration
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family JetBrains Mono
bold_font auto
" set runtimepath^=~/.vim runtimepath+=~/.vim/after
" let &packpath = &runtimepath
" source ~/.vimrc
"'' VIM PRE-PLUG ''"
filetype plugin indent on
set exrc
set hidden
set nobackup
set nocompatible
@thiagoramos23
thiagoramos23 / advent_code_day_2.rb
Created December 3, 2020 03:17
Advent of Code Day 2
# PART 01
class Password
attr_accessor :min, :max, :letter, :value
def initialize(min:, max:, letter:, value:)
@min = min.to_i
@max = max.to_i
@letter = letter
@value = value
end
@thiagoramos23
thiagoramos23 / .vimrc
Last active November 25, 2020 13:09
Last vimrc
syntax on
set nocompatible " be iMproved, required
filetype off " required
set clipboard+=unnamed "Yanks go on clipboard instead.
set history=256 "Number of things to remember in history.
set autowrite "Writes on make/shell commands
set ruler "Ruler on
set nu "Line numbers on
set nowrap "Line wrapping off
let mapleader=","
set nocompatible " be iMproved, required
filetype off " required
set cf " Enable error files & error jumping.
set clipboard+=unnamed " Yanks go on clipboard instead.
set history=256 " Number of things to remember in history.
set autowrite " Writes on make/shell commands
set ruler " Ruler on
@thiagoramos23
thiagoramos23 / cloudSettings
Last active June 22, 2020 15:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-20T22:30:42.934Z","extensionVersion":"v3.4.3"}
@thiagoramos23
thiagoramos23 / transiftion-cross-effect.swift
Last active February 9, 2020 18:26 — forked from swiftui-lab/transiftion-cross-effect.swift
Transition in wich include the CircleShape Transition
// Advanced SwiftUI Transitions
// https://swiftui-lab.com
// https://swiftui-lab.com/advanced-transitions
import SwiftUI
struct CrossEffectDemo: View {
let animationDuration: Double = 2
let images = ["photo1", "photo2", "photo3", "photo4"]
@State private var idx = 0
@thiagoramos23
thiagoramos23 / links.md
Last active November 7, 2019 18:47 — forked from akitaonrails/links.md
Links de referência pro Episódio 66 do Canal Akitando
@thiagoramos23
thiagoramos23 / where_is.rb
Created May 13, 2019 18:57 — forked from wtaysom/where_is.rb
A little Ruby module for finding the source location where class and methods are defined.
module Where
class <<self
attr_accessor :editor
def is_proc(proc)
source_location(proc)
end
def is_method(klass, method_name)
source_location(klass.method(method_name))