Skip to content

Instantly share code, notes, and snippets.

View wevtimoteo's full-sized avatar
🎲
Rolling dices

Weverton Timoteo wevtimoteo

🎲
Rolling dices
View GitHub Profile
@wevtimoteo
wevtimoteo / CONTRIBUTING.md
Created July 7, 2023 18:09
Phoenix framework - ESBuild - TailwindCSS

To install esbuild you can run:

mix esbuild.install

To test esbuild:

@wevtimoteo
wevtimoteo / .sourcelevel.yml
Created July 20, 2020 12:28
SourceLevel Elixir linter
---
styleguide: sourcelevel/linters
engines:
credo:
enabled: true
channel: latest
fixme:
enabled: true
remark-lint:
enabled: true
@wevtimoteo
wevtimoteo / .sourcelevel.yml
Created June 1, 2020 20:52
SourceLevel - Rubocop latest channel configuration
---
engines:
rubocop:
enabled: true
channel: latest
@wevtimoteo
wevtimoteo / retry_github_app_deliveries.js
Last active August 8, 2023 17:01
Retry GitHub app - Deliveries
const GitHubDeliveryManager = {
retryReasons: [
"Couldn't connect to server",
"Service Timeout",
"An Exception Occurred",
"502 Bad Gateway",
"timed out"
],
sleep: function(lf_ms) {
# Refers to https://github.com/rubocop-hq/rubocop/pull/6686#discussion_r264747095
cd rubocop
git subtree split -P lib/rubocop/ast -b lib/ast
git subtree split -P spec/rubocop/ast -b spec/ast
cd ..
mkdir rubocop-astx
cd rubocop-astx
git init
@wevtimoteo
wevtimoteo / redis_rb_remove_keys_by_namespace.rb
Last active June 28, 2018 13:39
Removing keys by namespace with Redis-RB
%w(
months*
extract*
payment*
consolidate*
agenda*
brands
car_model*
car*
visit_types*

Keybase proof

I hereby claim:

  • I am wevtimoteo on github.
  • I am wevtimoteo (https://keybase.io/wevtimoteo) on keybase.
  • I have a public key ASCxVAq3Q_TDbyGbyaca2ZfGB9M1kFS-uZZhi0nxSEfIBQo

To claim this, I am signing this object:

@wevtimoteo
wevtimoteo / attendee_suggestions.md
Last active June 13, 2017 19:30
FloripaOnRails - Suggestions

FloripaOnRails

Suggestions for talks

Rails

  • Rails + SPA
  • TDD Beginner tips for Rails
  • Performances tests for Rails
  • Nested Forms alternatives
@wevtimoteo
wevtimoteo / bdd.feature
Created April 27, 2017 11:34
14o. FloripaOnRails - I want to test my code but how to do it
Feature: champion uses dragonfly to process images
In order to be a champion
A user uses dragonfly
Background:
Given we are using the app for images
Given a stored image "beach.png" with dimensions 200x100
Scenario: Go to url for original
When I go to the url for "beach.png", with format 'png'
require 'benchmark/ips'
require 'ohm'
require 'dm-core'
require 'dm-redis-adapter'
Ohm.redis = Redic.new("redis://127.0.0.1:6379")
DataMapper.setup(:default, {:adapter => "redis"})
class DMUser
include DataMapper::Resource