Geekpedia
  • Tech
    • Tutorials
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
    • Software
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
  • Media
    • Pictures
  • News
      • ActionScript
      • AI Coding
      • ASP
      • ASP.NET
      • C
      • CSS
      • C#
      • C++
      • Code
      • General
      • HTML
      • Java
      • JavaScript
      • PHP
      • Silverlight
      • SQL
      • Visual Basic
      • Communications
      • Development
      • Internet
      • Linux
      • Microsoft
      • Security
      • Windows
  • Gear
  • Mobillity
  • Wellness
  • Knowledge Base
    • Pictures
  • News
Strip HTML tags using Ruby
Code Ruby
November 5, 2023December 12, 2023Nathan

Strip HTML tags using Ruby

The StripHtml function strips all the HTML tags in the passed string but preserves the ones specified in the PreserveTags array.

Discover
Inverse Hex Colors
Code Ruby
November 5, 2023December 12, 2023Nathan

Inverse Hex Colors

With this function you can get the inverse of a color passed into as a hex value.

Discover
Array of States and Their Coordinates
Code Ruby
November 5, 2023November 10, 2023Nathan

Array of States and Their Coordinates

An array of state abbreviations and their approximate GPS coordinates.

Discover
Extract Age from Birth Date
Code Ruby
November 5, 2023November 10, 2023Nathan

Extract Age from Birth Date

A Ruby function for extracting one’s age by passing in the birth date as a parameter.

Discover
Count Words In String
Code Ruby
September 24, 2023December 12, 2023Nathan

Count Words In String

The simplest way to count words in a string using Ruby and regular expressions by splitting the string at each space.

Discover
Shorten a string with complete words
Code Ruby
September 24, 2023November 3, 2023Nathan

Shorten a string with complete words

The Excerpt() function takes in a string and shortens it to the desired amount of characters, but without cutting into the middle of a word.

Discover
Mask All Credit Card Digits But Last Four
Code Ruby
September 24, 2023November 3, 2023Nathan

Mask All Credit Card Digits But Last Four

Mask all the credit card number digits with asterisks except the last 4, for security purposes. The function works for all types of cards (Visa, MasterCard, Amex, Discovery, etc.)

Discover
Array of States and their Abbreviation
Code Ruby
September 24, 2023November 3, 2023Nathan

Array of States and their Abbreviation

An array of states and their two letter abbreviation written in Ruby, useful for populating dropdown lists.

Discover
Pronounceable Random Password Generator
Code Ruby
September 24, 2023November 3, 2023Nathan

Pronounceable Random Password Generator

This piece of code generates a random password of the specified length, but mixes the two sets of letters so that a pronouncable password is being generated.

Discover

Posts pagination

Previous 1 2

Trending Posts

Exploring the Full Range of Services in Modern Car Care

Apr 25, 20258 min read
Read More

Fixter’s Door-to-Door Service Might Be the Future of Car Care

Apr 24, 202510 min read
Read More

Meta Unveils AI Tool Specifically Designed for Coding

Apr 21, 20256 min read
Read More

Best Online Beauty Stores for Skincare and Makeup Lovers

Apr 21, 202515 min read
Read More

The Wearable That Talks to Your Nervous System

Apr 21, 202512 min read
Read More
No Post Found

Trending News

Tech Education: Preparing the Next Generation of Innovators

Feb 20, 20256 min read
Read More

How Communication Technology is Revolutionizing Healthcare

Jan 11, 20258 min read
Read More

Cyber Attacks: Latest Strategies to Protect Against Online Threats

Jan 3, 20249 min read
Read More
Image Not Found
Geekpedia is a knowledge-driven website offering fresh takes on tech, wellness, gear, and more — all through a thoughtful lens.
From coding tips to curated lifestyle content, it’s built for those who live smart, think sharp, and stay curious.
FOLLOW US
  • Social Image
  • Social Image
  • Social Image
  • Code
  • Gear
  • Generative AI
  • Knowledge Base
  • News
  • Contact Us
  • Work With Us
  • About Us
  • Affiliate Disclosure
  • FAQ
  • Advertisement
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions