Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vang Lian vanglian

🎯
Focusing
Block or report user

Report or block vanglian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View twitter.json
{
"text": "RT @PostGradProblem: In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during ...",
"truncated": true,
"in_reply_to_user_id": null,
"in_reply_to_status_id": null,
"favorited": false,
"source": "<a href=\"http://twitter.com/\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"id_str": "54691802283900928",
View SecondsToDaysHoursMinutes.py
#!/usr/bin/python
#A Small example of how to convert time in seconds to Days Hours & Minutes, Seconds
TimeInSeconds = 60000
Days, Remainder = divmod(TimeInSeconds,24*60*60)
Hours, Remainder = divmod(Remainder, 60*60)
Minutes, Remainder = divmod (Remainder, 60)
Seconds = Remainder
print (int(Days)," Days ",int(Hours)," Hours ", int(Minutes)," Minutes ", round(Seconds)," Seconds ")
You can’t perform that action at this time.