I hereby claim:
- I am catermelon on github.
- I am ohnorainbow (https://keybase.io/ohnorainbow) on keybase.
- I have a public key whose fingerprint is 852C 5FFC D2EE 9F6A D016 B0E5 BCA7 3947 7A89 393C
To claim this, I am signing this object:
| from pyexchange import Exchange2010Service, ExchangeNTLMAuthConnection | |
| from datetime import datetime | |
| import time | |
| from pytz import timezone, utc | |
| def getEvents(): | |
| URL = u'https://blah.blah/EWS/exchange.asmx' | |
| USERNAME = u'DOMAIN\\user' | |
| PASSWORD = u"password" |
| ''' | |
| Allows scoring of text using n-gram probabilities | |
| 17/07/12 | |
| ''' | |
| from math import log10 | |
| class ngram_score(object): | |
| def __init__(self,ngramfile,sep=' '): | |
| ''' load a file containing ngrams and counts, calculate log probabilities ''' | |
| self.ngrams = {} |
| ''' | |
| Allows scoring of text using n-gram probabilities | |
| 17/07/12 | |
| ''' | |
| from math import log10 | |
| # make a class called ngram_score | |
| # which is wrong, Python classes are always CamelCased so it should be NGramScore but whatever | |
| class ngram_score(object): | |
I hereby claim:
To claim this, I am signing this object:
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBGIHRHkBEADocq8TrwFZB4JjEgjzCCm7qakBf7VcNjl3ZaXTWC7o/mnpf3Ts | |
| MasFXmi01c/F3jiowJstsrbLdCuYTr9vNegURF/BvGSIMpcwz3bNW9hz/HCrhqzw | |
| jVo9JfER/mg+yJGIvFj3eqwNDg0pHI3iWXEgdbCBrQKgJTNjhQRfuqJCuPCAie4A | |
| vX0G57qoQMu82q7K5D9uNRSd5+9PGWsypNTQVU/45gQa6WEXLWOYaw5ZChmhGQcV | |
| AwnYWTxv3TK0WPbQRtpxcR1HqRtjugAV61YvIaaeWxqsXNnYkyYzC1WiLuhRqpLV | |
| +oFbQyubwKT1D3PF9UkKKZLUgvI9MsQdGA5BUQNaxn0UkZc4t43FV2hJTG1t52iu | |
| 4mqPMAYsHpIug1BWFXqvkyTnOhfr6TUgle21/Qt7+KLdX+cR79ISn9WHBNf93+0H | |
| vRb/Y1KH6dQP9ZwIWLF/N9gd9GD7r7zfcR4UsBnaSI2ZdoDqkyerWyascSaeOLVw |
Custom format for displaying bytes as kb, mb, gb or tb.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"