I hereby claim:
- I am lardissone on github.
- I am lardissone (https://keybase.io/lardissone) on keybase.
- I have a public key whose fingerprint is 174A 732C EC67 C883 F036 4EB9 DF3B E500 5F74 7F84
To claim this, I am signing this object:
| [00:48:48] Connecting to [chat.freenode.net] on port 6667 | |
| [00:48:49] Connection to host completed. | |
| [00:48:49] -leandroa- *** Looking up your hostname... | |
| [00:48:50] -leandroa- *** Checking Ident | |
| [00:48:50] -leandroa- *** Couldn't look up your hostname | |
| [00:48:59] -leandroa- *** No Ident response | |
| [00:49:02] SASL authentication failed | |
| [00:49:04] SASL authentication aborted |
| app.controller("KBHomeController", function ($scope, $http) { | |
| $scope.loading = true; | |
| $http.defaults.useXDomain = true; | |
| // Esto en realidad lo hice siempre en el app.config, pero debería ser lo mismo: | |
| delete $http.defaults.headers.common['X-Requested-With']; | |
| // --- | |
| TypeError: Cannot read property 'getBufferPosition' of undefined | |
| at TextEditor.module.exports.TextEditor.getCursorBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1235:34) | |
| at status-bar-cursor.CursorPositionView.updatePosition (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:48:73) | |
| at status-bar-cursor.CursorPositionView.subscribeToActiveTextEditor (/Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:39:19) | |
| at /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/cursor-position-view.js:17:24 | |
| at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:71:11) | |
| at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:285:34 | |
| at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:71:11) | |
| at Pane.module.exports |
| class Author(models.Model): | |
| name = models.CharField(max_length=200) | |
| class Book(models.Model): | |
| title = models.CharField(max_length=200) | |
| author = models.ForeignKey(Author) | |
| # here it is: | |
| # this should start from 1 for the same author | |
| # examples: | |
| # author1 | 1 |
| module.exports = exports = function relativeImageUrl(schema, options) { | |
| var relField = options.relativeUrlField || 'relUrl', | |
| field = {}; | |
| field[relField] = String; | |
| schema.add(field); | |
| schema.pre('save', function(next) { | |
| var photoField = options.absoluteUrlField || 'large', | |
| removeStr = process.env.PWD + '/client', |
| var request = require('request'); | |
| var token = 'your:token-here', | |
| baseUrl = 'https://api.telegram.org/bot' + token + '/'; | |
| module.exports = function(context, cb) { | |
| var command = context.data.message.text; | |
| var chat = context.data.message.chat.id; | |
| // intercept command /hello |
I hereby claim:
To claim this, I am signing this object:
| import boto3 | |
| s3 = boto3.resource('s3') | |
| def human_size(bytes, units=[' bytes','KB','MB','GB','TB', 'PB', 'EB']): | |
| return str(bytes) + units[0] if bytes < 1024 else human_size(bytes>>10, units[1:]) | |
| def get_bucket_size(balde): | |
| bucket = s3.Bucket(balde) | |
| total_size = 0 |