gdvickery


Member since 03/02/2009

Name: Gavin Vickery

gdvickery

Location: British Columbia, Canada

Website: http://geekforbrains.com

9 snippets

10 profile views

View their favorites

Profile

All time reputation: 32

Achievement

first submission:submitting first snipplet

gdvickery's Recent Snippets



« Prev 1 Next »
  1. FAV

    Export MySQL to file

    Dumps the contents of a mysql database to a .sql file named by the current date.
    Bash 1 views posted 9 years ago gdvickery
  2. FAV

    Sort List By Group

    This function takes a list of string and sorts them based on their similarity. The percent at which they match can be defined in the second parameter (default 75%).
    Python 4 views posted 10 years ago gdvickery
  3. FAV

    Count the number of files in a Directory / Sub-Directories

    This command will count the number of files in the given directory and sub-directories.
    Bash 8 views posted 10 years ago gdvickery
  4. FAV

    Python CLI (Command Line) Progress Bar

    This is a function that will show a progress bar of the given percentage. Useful when performing time consuming tasks.
    Python saved by 1 person 10 views posted 10 years ago gdvickery
  5. FAV

    Get X, Y Heading Based On Degrees

    Python 1 views posted 10 years ago gdvickery
  6. FAV

    Calculating Degrees Between Two Points (Vectors)

    Python 3 views posted 10 years ago gdvickery
  7. FAV

    Read a web page with Java

    Connects to a web page, reads in the content and strips whitespace.
    Java saved by 8 people 6 views posted 10 years ago gdvickery
  8. FAV

    Extract all links from a page using Regex

    These 4 lines of code can be used to extract and return all links from any page using regex patterns. If links are found, an array is returned, else boolean false is returned.
    PHP saved by 64 people 11 views posted 10 years ago gdvickery
  9. FAV

    Get file extension in one line

    This method is a bit faster and more reliable then using the "explode" method. Works with PHP 4.0.3 and up.
    PHP saved by 45 people 5 views posted 10 years ago gdvickery
« Prev 1 Next »