Skip to content

Instantly share code, notes, and snippets.

View ryanvelbon's full-sized avatar

Ryan Vel Bon ryanvelbon

View GitHub Profile
@rivermont
rivermont / remove-duplicates.py
Last active November 1, 2024 01:31
Simple Python script to remove duplicate lines from a file.
'''
Compares all lines in a given file and removes duplicates.
'''
import sys
import time as t
def get_time():
return t.strftime('%H:%M:%S')
@adhipg
adhipg / countries.sql
Created January 12, 2012 11:41
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;