Skip to content

Instantly share code, notes, and snippets.

View robdudley's full-sized avatar

Rob Dudley robdudley

  • London UK
View GitHub Profile
@robdudley
robdudley / keybase.md
Created June 14, 2021 07:05
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@robdudley
robdudley / gist:5063630
Created March 1, 2013 09:54
Soft capped twitter score calc
from math import *
def getTwitterScore(numTweets):
cappedScore = (round(log(numTweets * 10)) * 4) + 25
if (cappedScore > numTweets):
score = numTweets
else: