Skip to content

Instantly share code, notes, and snippets.

View nythepegasus's full-sized avatar

nythepegasus nythepegasus

View GitHub Profile
@nythepegasus
nythepegasus / python_math_hacks.py
Created January 3, 2021 14:37
Some fun oneliners I have made to do math problems easier
import math
### Find Population Standard Deviation ###
pop = [103,99,108,105,114,101]
math.sqrt(sum(list(map(lambda x: (x-sum(pop)/len(pop))**2, pop)))/len(pop))
### Sigma Notation Using Range And Sum
# sum(range(first_num, last_num, step))
sum(range(2, -449, -5))
Date: 8/6/20, 10:10 PM
Process: SpringBoard
Bundle id: com.apple.springboard
Device: iPhone 8 Plus, iOS 13.5
Bundle version: 1.0
Exception type: NSRangeException
Reason: *** -[__NSArrayM objectAtIndex:]: index 18446744073709551615 beyond bounds [0 .. 2]
Culprit: libdra1n.dylib

Keybase proof

I hereby claim:

  • I am nythepegasus on github.
  • I am nythepegasus (https://keybase.io/nythepegasus) on keybase.
  • I have a public key whose fingerprint is 5895 80A1 6B7C EBE6 1B46 0D23 9CB6 1677 D2F5 29BC

To claim this, I am signing this object:

account-plugin-aim 3.8.6-0ubuntu9.2
account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu2
account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu2
account-plugin-google 0.11+14.04.20140409.1-0ubuntu2
account-plugin-jabber 3.8.6-0ubuntu9.2
account-plugin-salut 3.8.6-0ubuntu9.2
account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu2
account-plugin-yahoo 3.8.6-0ubuntu9.2
accountsservice 0.6.35-0ubuntu7.2
acl 2.2.52-1