Skip to content

Instantly share code, notes, and snippets.

View vied12's full-sized avatar

Edouard vied12

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vied12 on github.
  • I am vied12 (https://keybase.io/vied12) on keybase.
  • I have a public key ASDJnx4XWinJ77b8SFxzJxcPSkmb8_oWe5jKfHvZBQWhVQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am vied12 on github.
* I am vied12 (https://keybase.io/vied12) on keybase.
* I have a public key whose fingerprint is B191 13C0 14BE 7CD7 B2DE 8E22 9536 CC61 6341 27C1
To claim this, I am signing this object:
@vied12
vied12 / grooveshark.py
Last active August 29, 2015 14:20
Download your Grooveshark library
#!/usr/bin/env python
# Encoding: utf-8
# -----------------------------------------------------------------------------
# Project : Grooveshark Library Downloader
# -----------------------------------------------------------------------------
# Author : Edouard Richard <edou4rd@gmail.com>
# -----------------------------------------------------------------------------
# License : GNU General Public License
# -----------------------------------------------------------------------------
# Creation : 04-May-2015
#!/usr/bin/env python
# Encoding: utf-8
# -----------------------------------------------------------------------------
# Project : KATA #5
# -----------------------------------------------------------------------------
# Author : Edouard Richard <edou4rd@gmail.com>
# -----------------------------------------------------------------------------
# Creation : 17-Apr-2014
# Last mod : 17-Apr-2014
# -----------------------------------------------------------------------------
@vied12
vied12 / CheckFonts.py
Created March 9, 2012 19:54
Verify if given fonts are known and create an image to show them. Uses by default all the known fonts.
import sys, os
import cairo
import commands
def truncate_chars(value, max_length): # thanks django!
if len(value) <= max_length:
return value
truncd_val = value[:max_length]
if value[max_length] != " ":
rightmost_space = truncd_val.rfind(" ")