Created with 📕TILed
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# ----------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(" ") |