Skip to content

Instantly share code, notes, and snippets.

View danilolic's full-sized avatar

Danilo de Lima danilolic

  • Brazil
View GitHub Profile
@danilolic
danilolic / py_sheet.py
Last active November 7, 2019 19:35
Simple pyhton Sheet
# Tipos:
# Inteiro: int()
# Decimal: float()
# Texto: str()
# booleano: bool()
# Pega do teclado e salva na variável
# variavel = input()
# Pega do teclado e converte para número
Rails:
Enabled: true
Metrics/LineLength:
Max: 120
Style/Documentation:
Enabled: false
AllCops:
// preferences
{
"files.autoSave": "afterDelay",
"files.insertFinalNewline": true,
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"editor.tabSize": 2,
"breadcrumbs.enabled": true,
"explorer.compactFolders": false,
"workbench.colorTheme": "Dracula",
@danilolic
danilolic / matchers_rspec.rb
Created December 17, 2018 13:03 — forked from hpjaj/gist:ef5ba70a938a963332d0
RSpec - List of available Expectation Matchers - from Lynda.com course 'RSpec Testing Framework with Ruby'
## From Lynda.com course 'RSpec Testing Framework with Ruby'
describe 'Expectation Matchers' do
describe 'equivalence matchers' do
it 'will match loose equality with #eq' do
a = "2 cats"
b = "2 cats"
expect(a).to eq(b)
#Gemfile
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'spring-commands-rspec'
end