Skip to content

Instantly share code, notes, and snippets.

View R0mb0's full-sized avatar
πŸ’»
Can someone help me? 😁

Francesco Rombaldoni R0mb0

πŸ’»
Can someone help me? 😁
  • INRCA/SIA
  • Italy
  • 17:30 (UTC +02:00)
View GitHub Profile
@R0mb0
R0mb0 / Embed_pdfs.md
Created April 11, 2025 14:20
My way to "embed" pdfs inside a GitHub Markdown Readme documents, is not perfect but is better than nothing.

My way to "embed" pdfs inside a GitHub Markdown Readme documents

  1. Convert the pdf document in image
    • Install the software
      sudo apt update
      sudo apt install poppler-utils
    • Convert the pdf
@R0mb0
R0mb0 / SubstringFromIndices.asp
Last active March 18, 2025 14:19
Function in Classic ASP to print a part of a string delimited by indices . -> `Code generated with Copilot`
<%
Function substringFromIndices(String, startIndex, endIndex)
Dim resultString
' Validate indices
If startIndex < 1 Then
startIndex = 1
End If
If endIndex > Len(String) Then
@R0mb0
R0mb0 / get_a_character_from_a_string.asp
Last active March 5, 2025 12:45
Function to get a character from a string using a index.
<%
Function get_character(index, text)
If IsNumeric(index) and index < Len(text) and Not(index < 0)Then
get_character = Left(Right(text,(Len(text) - index)), (1))
End If
End Function
%>
@R0mb0
R0mb0 / remove_all_numbers_from_text.asp
Last active March 4, 2025 07:34
Function to remove all numbers from a text in Classic ASP
<%
'Function to remove double spaces from text
Function remove_double_spaces(ByVal my_string)
Dim temp_string
temp_string = my_string
Do While InStr(1, temp_string, " ")
temp_string= Replace(temp_string, " ", " ")
Loop
temp_string = Trim(temp_string)
remove_double_spaces = temp_string
@R0mb0
R0mb0 / remove_single_numbers_from_text.asp
Last active February 27, 2025 12:32
Function to remove single numbers from a text in Classic ASP
<%
Function remove_single_numbers_from_text(ByVal my_string)
Dim temp_string
temp_string = my_string
Dim temp
For Each temp In Split(my_string, " ")
If IsNumeric(temp) Then
temp_string = Replace(temp_string, temp & " ", "")
End If
Next
@R0mb0
R0mb0 / numbers_array.asp
Last active February 20, 2025 10:39
Array with numbersin in Classic ASP
<%
Dim my_array
my_array = Array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
%>
@R0mb0
R0mb0 / remove_single_letters_from_text.asp
Last active February 20, 2025 11:19
Function to remove single letters from a text in Classic ASP
<%
Private Function remove_single_letters_from_text(ByVal my_string)
Dim letters_array
letters_array = Array("q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m")
Dim temp_string
temp_string = my_string
Dim temp
For Each temp In letters_array
If InStr(temp_string, " " & temp & " ") <> 0 Then
temp_string = Replace(temp_string, " " & temp & " ", " ")
@R0mb0
R0mb0 / letters_array.asp
Last active February 20, 2025 09:25
Array with letters in Classic ASP
<%
Dim my_array
my_array = Array("q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m")
%>
@R0mb0
R0mb0 / special_characters_array.asp
Created February 20, 2025 09:15
Array with special characters in Classic ASP
<%
Dim my_array
my_array = Array(".", ",", ":", ";", "`", "/", "\", "|", "_", "-", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "+", "=", "{", "[", "}", "]", "'", "<", ">")
%>
@R0mb0
R0mb0 / is_special_character.asp
Created February 13, 2025 10:35
'Function to check if a character is a special character in Classic ASP.
<%
Function is_special_character(character)
Select Case character
Case "."
is_special_character = true
Exit Function
Case ","
is_special_character = true
Exit Function
Case ":"