Skip to content

Instantly share code, notes, and snippets.

@socksy
socksy / gist:4743817
Created February 9, 2013 04:20
Duplicate colours on wikipedia's list of colours
Pale turquoise with Pale blue (AFEEEE)
Pale violet-red with Pale red-violet (DB7093)
Plum (web)]] with Pale plum]] (DDA0DD)
Prune with Persian plum (701C1C)
Psychedelic purple with Phlox (DF00FF)
Purple (HTML/CSS)]] with Patriarch (800080)
Royal yellow with Naples yellow (FADA5E)
Sandy taupe with Sand dune (967117)
Stil de grain yellow with Naples yellow (FADA5E)
Stil de grain yellow with Royal yellow (FADA5E)
@socksy
socksy / gist:4743803
Created February 9, 2013 04:14
Finding out the duplicate colour names
>>>> import csv
>>>> f = open("colors.txt")
>>>> ramalan = csv.reader(f, delimiter=',')
>>>> colours = []
>>>> for x in ramalan:
... colours.append(x)
...
# Here we get rid of some malformed entries
>>>> colours = [c for c in colours if len(c) == 2]