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
require 'dry/monads' | |
require 'dry/matcher/result_matcher' | |
module BaseTransaction | |
include Dry::Monads[:result, :try, :do] | |
include Dry::Matcher.for(:call, with: Dry::Matcher::ResultMatcher) | |
def call | |
run | |
end |
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
require 'benchmark' | |
class Measurement | |
LEAN_BODY_MASS_PARAM = 0.01 # dummy value | |
attr_reader :weight | |
def lean_body_mass | |
weight * LEAN_BODY_MASS_PARAM unless weight.nil? # returns nil when no weight | |
end |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
gcd(*neighbour(n, m)) |
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 Item | |
class Ng.RailsViews.AdminBlogImagesNewView extends Backbone.View | |
FILE_TYPES: ['image/png', 'image/jpeg', 'image/gif'] | |
IMAGE_WIDTH = 100 | |
el: 'body' | |
events: | |
'dragenter #blog-images .drop': 'dragEnter' | |
'dragover #blog-images .drop': 'dragOver' |
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 Item | |
class Ng.RailsViews.AdminBlogImagesNewView extends Backbone.View | |
FILE_TYPES: ['image/png', 'image/jpeg', 'image/gif'] | |
IMAGE_WIDTH = 100 | |
el: 'body' | |
events: | |
'dragenter #blog-images .drop': 'dragEnter' | |
'dragover #blog-images .drop': 'dragOver' |
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
yay file contents |
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
String file contents |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title of the document</title> | |
</head> | |
<body> | |
<div id='first'> |
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
No DRb server is running. Running in local process instead ... | |
[Zonebie] Setting timezone to "Mountain Time (US & Canada)" | |
You are using WebMock 1.16.0. VCR 2.8.0 has been tested against WebMock >= 1.8.0, < 1.16, and you are using a newer version. If you experience VCR issues, consider downgrading WebMock as it may fix it. | |
Run options: include {:line_numbers=>[48]} | |
An error occurred in an after hook | |
ActionView::Template::Error: undefined method `[]' for nil:NilClass | |
occurred at /Users/cinek/netguru/dwhite/app/views/member/page_templates/builtin/template_2.haml:5:in `_app_views_member_page_templates_builtin_template___haml__651274039841050535_70220375396360' | |
F |
NewerOlder