Skip to content

Instantly share code, notes, and snippets.

View rodolfobandeira's full-sized avatar

Rodolfo rodolfobandeira

View GitHub Profile
@rodolfobandeira
rodolfobandeira / sidekiq_retry_time.csv
Created September 13, 2022 14:05 — forked from marcotc/sidekiq_retry_time.csv
Sidekiq retry exponential backoff formula times
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
@rodolfobandeira
rodolfobandeira / i3-cheat-sheet.md
Created July 30, 2022 16:03 — forked from miguelmota/i3-cheat-sheet.md
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (window/command or alt by default depending on config)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@rodolfobandeira
rodolfobandeira / gme-price-sample.csv
Created July 21, 2022 23:41
Sample to use in Machine Learning Model
Date Close/Last Volume Open High Low
05/27/2022 $137.21 7511269 $141 $143.7 $127
05/26/2022 $128.46 14473080 $116 $148.46 $114.7
05/25/2022 $115.17 10015000 $90.14 $115.4734 $90.14
05/24/2022 $89.15 2219870 $94.05 $94.2 $86.7
05/23/2022 $96.13 1748481 $96.57 $97.28 $91.5
05/20/2022 $95.66 2493024 $99.81 $102.41 $89.75
05/19/2022 $99.19 3180135 $91.22 $101.978 $90.16
05/18/2022 $91.48 2890032 $96.38 $99.8399 $90.171
05/17/2022 $100.38 2611237 $93.9 $100.38 $91.2

Keybase proof

I hereby claim:

  • I am rodolfobandeira on github.
  • I am rodolfobandeira (https://keybase.io/rodolfobandeira) on keybase.
  • I have a public key ASDAVXoZT1HYayswhYJJYsfS_zve6gUwUiuMBGcEVdcgWAo

To claim this, I am signing this object:

@rodolfobandeira
rodolfobandeira / selection_sort.c
Created February 14, 2021 18:48
Brute Force - Implementation of Selection Sort Algorithm in C
#include <stdio.h>
void swap(int *a, int i, int min, int i_value, int min_value) {
a[i] = min_value;
a[min] = i_value;
}
int selection_sort(int *a, int n) {
int i, j, min;
(This foreword is not a part of American National Standard for
Information Systems --- Programming Language C, X3.???-1988.)
American National Standard Programming Language C specifies the
syntax and semantics of programs written in the C programming
language. It specifies the C program's interactions with the
execution environment via input and output data. It also specifies
restrictions and limits imposed upon conforming implementations of C
language translators.
@rodolfobandeira
rodolfobandeira / EnexToJson.java
Created October 18, 2020 21:09 — forked from aNNiMON/EnexToJson.java
Converts Evernote .enex files to json
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.EnumSet;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.json.JSONArray;
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Unavailable | Nudge Rewards</title><meta name="description" content="We're temporarily unavailable. Be right back!"><meta name="author" content="Nudge Rewards"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAABiNJREFUaAXdWk1sG0UUnhnbsUP+kyYppYKGVI0EKj9CHKhSCZGKA6qSIgQCRIUCSD3wI3qA2vmpVsSxDREFBfVAUYg4EFU5QJoDtxYkonJCqIhLKoJaUf6axm1IRO3Y2eF7m669cbzeXWedBFZazezMe2/eNzNv5s2b5cylpy4Wq2E30k8wzh/hTLZJyXYzzmoYk1UrTfAFJtk85+xnyfg0k/I7Vuv96nowOO+GCnw9QuqVd3fyRKpTcnYIij8KpX3O5PEUgH3DJZuQAd9kXDl2xRl/lrooIASAJVPvSCZfRC+LrLh15DhTOeOfMb/veDGAHAHZpXxQu5BYDGJqvAEQ5etQ25QVYG5iag5XBSpjl5SjN0wJcypsA9kWinQus+VRjEB9jozSfHIW9zBP97Voz6SdBjx2iBqCgyGVyU9Ae5sdepdoyiVjz1a0dyzdnDo3ZSWz4IjsUkYD88krIxiF560ElbSes7Ea/86XLyndCbN2TIEQiL8Tv52FLewzY97IctjO+erAHR1mYExXHBqJrQKCOox00WaHSe/ltRGyCTC+acKzmcV7K9oP5LWZNVNLW52kOoE+WFO3mQiybXPp
@rodolfobandeira
rodolfobandeira / timezone_diff_Rails_5.2_Rails_5.1.md
Last active April 18, 2020 13:57
Minimum Offset Timezone Difference Rails 5.1 and Rails 5.2

Rails 5.1:

ActiveSupport::TimeZone.new("International Date Line West")
<ActiveSupport::TimeZone:0x0000564eac8abac8
    @name="International Date Line West",
 @tzinfo=#,
@rodolfobandeira
rodolfobandeira / README-Template.md
Created April 11, 2020 04:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites