my useful codes

VB.NET 2025-07-27

my-useful-codes

Just a repo to store some codes that (somehow) are useful to me.

Many languages but organized:

  • C#
    • Copy Directories Recursively
    • Open In Default Browser
    • Force Form Focus
    • Set Start Your Application With Windows Startup
    • Keyboard Delay
    • Drag Form
    • Repositioning Text Cursor
    • Create A Context Menu For Your App
    • Create A System Tray Icon
    • Verify Write Permissions On File Or Directory
    • Get Default Browser Icon
    • Verify URL
    • Send Push Notification By Google Firebase
  • VB.NET
    • HTTL Listener Sample
    • DataTable To Class
    • Class To Datatable
    • Validate CPF
    • Validate CNPJ
    • ModelStateDictionay To BaseReturnModel
    • NameValueCollection To Query String
    • Strip Invalid Chars From String
    • Get Feed From A Website Feed Page
    • Remove Special Chars From String
  • HTML
    • Force No Cache
    • Defalut Image On Error 404
  • CSS
    • Align Vertically With Pure CSS
  • JS
    • Order an array of objects by another array of values and property name
    • Verify Youtube URL
    • Get Youtube Video ID
    • Get Youtube Video Thumbnail
    • Append Youtube IFrame
    • Verify Vimeo URL
    • Get Vimeo Video ID
    • Get Vimeo Video Data
    • Append Vimeo IFrame
    • Create Blob From Base64 String
    • Create thumbnail BLOB from HTML5 video tag (Needs JQuery)
    • String format like .NET String.Format
    • JSON To URI Encoded Params
    • Vanilla Function To Extend Objects
    • Parsing HTML String With Pure Vanilla JS
    • Copy To Clipboard
    • Check If Your Server Is Online
    • Format string with any first letters words to uppercase
    • Abbreviate person names
    • Get Default Language Of The Browser
    • Get the used local and session storage used size
    • Validate A GUID String
    • Generate A GUID String
    • Convert Temperature Between Fahrenheit and Celsius
    • Countdown Days
    • Leap Year
    • RGB To HEX
    • Async ForEach
    • Sum Very Large Numbers
  • GIT
    • Fix Untracked Files
    • Fix Corrupted Header
    • Configure Git Proxy
    • Configure Kdiff3 As Default Diff Tool
    • Remove Git Pager For Every Command
    • Change Project Origin URL
    • Check Project Origin URL
  • SQL
    • Return A Full Table String In A C# Class Format
    • Return A Full Table String In A VB.Net Class Format
  • BASH
    • Ask For Passphrase When Open The BASH
    • Persist Aliases
    • Do A Fast Commit
    • Fetch All Repositories In The Current Path
    • Check if there is changes to commit, push or pull
  • REACT
    • Make react accept JSX extensions
    • Bundle Android App Without Device

Sugestions, fixes or improvements?

Just open a pull request or mail me: leandro.simoes@outlook.com

下载源码

通过命令行克隆项目:

git clone https://github.com/leandrosimoes/my-useful-codes.git