I hereby claim:
- I am minichate on github.
- I am minichate (https://keybase.io/minichate) on keybase.
- I have a public key whose fingerprint is FF21 1612 0C7F 22B3 E286 5937 8AB5 6B63 EFF7 B919
To claim this, I am signing this object:
import datetime | |
from decimal import Decimal | |
import time | |
import random | |
INITIAL_RATES = { | |
"mandrill": Decimal("0.95"), | |
"sendgrid": Decimal("0.05"), | |
"sparkpost": Decimal("0"), |
[email protected] |
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
bigNumberTest: computed(function() { | |
const a = (new BigNumber(2495)).dividedBy(100); | |
return a; |
import Ember from 'ember'; | |
const { computed } = Ember; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
bigNumberTest: computed(function() { | |
const a = (new BigNumber(249500)).dividedBy(10000); | |
return a; |
$ docker run -it --entrypoint /bin/bash quay.io/freshbooks/ember-cli | |
root@80c45fc8e359:/usr/src/app# npm -v | |
3.8.3 | |
root@80c45fc8e359:/usr/src/app# node -v | |
v5.10.1 | |
root@80c45fc8e359:/usr/src/app# node -p process.versions | |
{ http_parser: '2.6.2', | |
node: '5.10.1', | |
v8: '4.6.85.31', | |
uv: '1.8.0', |
I hereby claim:
To claim this, I am signing this object:
diff --git a/inc/Fresh/Logo.php b/inc/Fresh/Logo.php | |
index 091f09f..10b14a0 100644 | |
--- a/inc/Fresh/Logo.php | |
+++ b/inc/Fresh/Logo.php | |
@@ -343,7 +343,9 @@ class Fresh_EvolveLogo extends Fresh_Logo | |
); | |
$response = $this->_evolveLogo->getLogoContents($this->_fileProperties['evolve_type'], $cacheInfo); | |
if ($response->noErrors()) { | |
- if (strlen($response->result) == $this->_fileProperties['filesize']) { | |
+ if (is_resource($response->result)) { |
def isPalindrome(input_string): | |
def _string_iterator(): | |
_len = len(input_string) | |
for i in xrange(_len / 2): | |
yield input_string[i], input_string[_len - i - 1] | |
for c1, c2 in _string_iterator(): | |
if c1 != c2: |
count = len(entries) | |
for i, entry in enumerate(entries): | |
percent = math.ceil(100 * float(i) / float(count)) | |
marks = math.floor(70 * (percent / 100.0)) | |
spaces = math.floor(70 - marks) | |
updated_loader = '[' + ('=' * int(marks)) + (' ' * int(spaces)) + ']' | |
if not loader == updated_loader or loader is None: | |
sys.stdout.flush() |
class M(type): | |
def __call__(self, *args, **kwargs): | |
obj = type.__call__(self, *args) | |
setattr(obj, "foo", self.baz) | |
setattr(obj, "long_other_name", self.baz) | |
setattr(obj, "metatastic", True) | |
return obj | |
def baz(cls): | |
return "FooBaz -- Base class %s" % cls |