Skip to content

Instantly share code, notes, and snippets.

View jacksonpradolima's full-sized avatar
🙃
Solving Problems like a charm

Jackson Antonio do Prado Lima jacksonpradolima

🙃
Solving Problems like a charm
View GitHub Profile
@jacksonpradolima
jacksonpradolima / AdventureTime.csv
Created December 20, 2023 14:19 — forked from CharlieScarver/AdventureTime.csv
List of important adventure time episodes
Season Episode Title Reason
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline
@jacksonpradolima
jacksonpradolima / AdventureTime.csv
Created December 20, 2023 14:19 — forked from CharlieScarver/AdventureTime.csv
List of important adventure time episodes
1 5 The Enchiridion A good intro to the series, plus introduces the important Enchiridion
1 2 Trouble in Lumpy Space* Introduces LSP (episode out of order)
1 3 Prisoners of Love Introduces Ice King and his obsession (episode out of order)
1 7 Ricardio the Heart Guy Finn and PB development, Sets a returning plot
1 8 Business Time* First mention of Ooo being post-apocalyptic
1 9 My Two Favorite People Intros the Jake and Lady Rainicorn plotline
1 10 Memories of Boom Boom Mountain A look at how Finn was adopted into Jake's Family
1 12 Evicted! Intros Marceline
@jacksonpradolima
jacksonpradolima / Server.fs
Created March 8, 2021 21:13
Example of using SAFE with Npgsql.FSharp
module Server
open Fable.Remoting.Server
open Fable.Remoting.Giraffe
open Saturn
open System
open Shared
open Npgsql.FSharp.Tasks
@jacksonpradolima
jacksonpradolima / VD_A.py
Last active April 23, 2024 22:30
Python version of non-parametric hypothesis testing using Vargha and Delaney's (Â12) statistic. The code was adapted from effsize package R: https://github.com/mtorchiano/effsize/blob/master/R/VD_A.R
import itertools as it
from bisect import bisect_left
from typing import List
import numpy as np
import pandas as pd
import scipy.stats as ss
from pandas import Categorical
@jacksonpradolima
jacksonpradolima / Export a chart from Excel to PDF or PNG.md
Last active January 11, 2018 16:23
Export a chart from Excel to PDF or PNG

Intro

These code are to export a chart from Excel to .png and .pdf extensions.

How to proceed

go to Tools > Macro > Visual Basic Editor.

  1. In the new window, select Insert > Module and copy some from codes available (SaveSelectedChartAsPDF or SaveSelectedChartAsImage) or in the blank page.
  2. Then go to File > Close > Return to Microsoft Excel
  3. Select a chart that you want to export
  4. Tools > Macro > Macros, then select SaveSelectedChartAsPDF or SaveSelectedChartAsImage and press Execute.

Intro

To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.

How to proceed

Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.

In the new window, select Insert > Module and copy this text in the blank page:

Sub AddProgressBar()
    On Error Resume Next
#/bin/bash
#########################################
## Parametros que le pasamos al script ##
#########################################
#$ -S /bin/bash
#######################################
# Usar el directorio de trabajo actual
#######################################
#$ -cwd
# Tiempo de trabajo
#!/bin/bash
# last_script_pid=$1
algorithm=$1
numbers_of_tests=30
underscore="_"
done_instances=instances.txt
avaiable_cpus=10
wait_queue() {
@jacksonpradolima
jacksonpradolima / install_source-pro_font.sh
Last active January 1, 2024 01:16
Installing Adobe's Source Pro fonts in Ubuntu: Source Code Pro, Source Serif Prof, and Source Sans Pro
#!/bin/bash
mkdir /tmp/adodefont
cd /tmp/adodefont
mkdir -p ~/.fonts
wget https://github.com/adobe-fonts/source-code-pro/archive/2.030R-ro/1.050R-it.zip
unzip 1.050R-it.zip
cp source-code-pro-2.030R-ro-1.050R-it/OTF/*.otf ~/.fonts/
wget https://github.com/adobe-fonts/source-serif-pro/archive/2.000R.zip
@jacksonpradolima
jacksonpradolima / BinaryToDecimal.c
Created August 12, 2017 14:34
BinaryToDecimal created by jacksonpradolim - https://repl.it/KHUY/2
#include <stdio.h>
#include <math.h>
int main()
{
// Solicita ao usuário informar um binário
int bit;
printf("Informe um binário: \n");
scanf("%d", &bit);