Tag: Python
Pascal Triangle Generator in Python, and then in Haskell – The Gubatron Method
Here’s in python, imperatively, and then in functional style without the need for loops. This file contains bidirectional Unicode text…
Python in Functional Style: How to add 2 lists of integers without using loops
Usually you’d add a list of integers this way: [pastacode lang=”python” manual=”a%20%3D%20%5B2%2C%202%2C%202%2C%202%5D%0Ab%20%3D%20%5B2%2C%202%2C%202%2C%202%5D%0Ac%20%3D%20%5B%5D%0Afor%20i%20in%20range(len(a))%3A%0A%20c.append(a%5Bi%5D%20%2B%20b%5Bi%5D)” message=”” highlight=”” provider=”manual”/] You can do it functionally…
Quick N Dirty way to Map Commands to remote servers via ssh
You may be running several independent but similar servers at the same time and wasting time by executing commands in…
Delete All Direct Messages of your Twitter Account at once (or at least try!)
Since Twitter doesn’t provide with a “Delete All Direct Messages” functionality, Here’s a Python script that attempts to delete all…