This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[16/Feb/2016 10:40:33] "POST /api/v1/posts/link/ HTTP/1.1" 500 32061 | |
Sentry responed with an API error: APIError(Invalid project_id: u'xxx') | |
ERROR:sentry.errors:Sentry responed with an API error: APIError(Invalid project_id: u'xxx') | |
[u'ConnectionError', u' File "django/core/handlers/base.py", line 132, in get_response', u' File "django/views/decorators/csrf.py", line 58, in wrapped_view', u' File "rest_framework/viewsets.py", line 85, in view', u' File "rest_framework/views.py", line 456, in dispatch', u' File "rest_framework/views.py", line 453, in dispatch', u' File "techberlin/api/views.py", line 69, in create', u' File "techberlin/api/views.py", line 81, in perform_create', u' File "rest_framework/serializers.py", line 169, in save', u' File "rest_framework/serializers.py", line 782, in create', u' File "django/db/models/manager.py", line 127, in manager_method', u' File "django/db/models/query.py", line 348, in create', u' File "techberlin/models.py", line 135, in save', u' File "techberlin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[16/Feb/2016 10:40:33] "POST /api/v1/posts/link/ HTTP/1.1" 500 32061 | |
Sentry responed with an API error: APIError(Invalid project_id: u'xxx') | |
ERROR:sentry.errors:Sentry responed with an API error: APIError(Invalid project_id: u'xxx') | |
[u'ConnectionError', u' File "django/core/handlers/base.py", line 132, in get_response', u' File "django/views/decorators/csrf.py", line 58, in wrapped_view', u' File "rest_framework/viewsets.py", line 85, in view', u' File "rest_framework/views.py", line 456, in dispatch', u' File "rest_framework/views.py", line 453, in dispatch', u' File "techberlin/api/views.py", line 69, in create', u' File "techberlin/api/views.py", line 81, in perform_create', u' File "rest_framework/serializers.py", line 169, in save', u' File "rest_framework/serializers.py", line 782, in create', u' File "django/db/models/manager.py", line 127, in manager_method', u' File "django/db/models/query.py", line 348, in create', u' File "techberlin/models.py", line 135, in save', u' File "techberlin/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTES | |
//- Suites describe your test: A test suite begins with a call to the global Jasmine function describe with two parameters: a string and a function. The string is a name or title for a spec suite – usually what is being tested. The function is a block of code that implements the suite. | |
//- Specs are defined by calling the global Jasmine function it, which, like describe takes a string and a function. The string is the title of the spec and the function is the spec, or test. An expectation in Jasmine is an assertion that is either true or false. A spec with one or more false expectations is a failing spec. | |
//- Since describe and it blocks are functions, they can contain any executable code necessary to implement the test. | |
describe("A suite is just a function", function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Array | |
def divide_by n | |
return_array = [] | |
inner_array = [] | |
index = 0 | |
self.each do |array_item| | |
if index % n == 0 && index > 0 | |
return_array << inner_array | |
inner_array = [] | |
end |