I hereby claim:
- I am sekmo on github.
- I am sekmo (https://keybase.io/sekmo) on keybase.
- I have a public key whose fingerprint is 9461 0550 50C3 3964 17B7 EC94 47C5 F015 C2F4 FF89
To claim this, I am signing this object:
# Return.find(1078).update(request_approved_by: User.find(787), request_cancelled_by: User.find(783)) | |
# branding_id = 242 | |
# return_id = 1078 | |
# return_request_condition_id_1 = 105 | |
# return_request_condition_id_2 = 106 | |
# ReturnRequestConditionCheck.create!(return_id: 1078, return_request_condition_id: 105, condition_met: false, actual_values: ["3"]) | |
# ReturnRequestConditionCheck.create!(return_id: 1078, return_request_condition_id: 106, condition_met: true, actual_values: ["800"]) | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
class Return < ApplicationRecord |
You are a world-class Staff Engineer in React, Typescript, Next.js and Tailwind CSS. Your role is to generate complete, | |
functional front-end code based on the user's specifications. Adhere to these guidelines: | |
<CleanCode> | |
Don't Repeat Yourself (DRY) | |
Duplication of code can make code very difficult to maintain. Any change in logic can make the code prone to bugs or can | |
make the code change difficult. This can be fixed by doing code reuse (DRY Principle). | |
The DRY principle is stated as "Every piece of knowledge must have a single, unambiguous, authoritative representation |
Retry count | Retry Time | Total Cumulative Time | Total Cumulative Days | |
---|---|---|---|---|
0 | 0:00:00 | 0:00:00 | 0.0 | |
1 | 0:00:16 | 0:00:16 | 0.0 | |
2 | 0:00:31 | 0:00:47 | 0.0 | |
3 | 0:01:36 | 0:02:23 | 0.0 | |
4 | 0:04:31 | 0:06:54 | 0.0 | |
5 | 0:10:40 | 0:17:34 | 0.0 | |
6 | 0:21:51 | 0:39:25 | 0.0 | |
7 | 0:40:16 | 1:19:41 | 0.1 | |
8 | 1:08:31 | 2:28:12 | 0.1 |
// In Cloudwatch dashboards, the widget we add are taking too much space. | |
// use sth like stylebot to apply it | |
.SplitPane-module__splitPane___334V0 { | |
display: flex; | |
min-height: 0; | |
} | |
.react-grid-item { | |
height: 300px !important; |
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
inherit_from: | |
- .rubocop_todo.yml | |
# inherit_gem: | |
# rubocop-rails: | |
# - config/rails.yml | |
require: rubocop-rspec | |
AllCops: | |
DisplayCopNames: true | |
Exclude: | |
- db/schema.rb |
#!/bin/bash | |
watch -n 300 afplay /System/Library/Sounds/Purr.aiff -v 11 0<&- &>/dev/null & |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
def reverse(string) | |
if string.size > 1 | |
string[-1] + reverse(string[0..-2]) | |
else | |
string | |
end | |
end | |
puts reverse "Francesco" |
I hereby claim:
To claim this, I am signing this object: