This file contains 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 'capybara' | |
require 'capybara/dsl' | |
Capybara.current_driver = :webkit | |
module Screenshot | |
class Test | |
include Capybara::DSL | |
def take_screenshot(url) |
This file contains 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'; | |
import AjaxService from 'ember-ajax/services/ajax'; | |
export default AjaxService.extend({ | |
session: Ember.inject.service(), | |
headers: Ember.computed('session', function() { | |
const headers = {}; | |
this.get('session').authorize('authorizer:application', (headerName, headerValue) => { | |
headers[headerName] = headerValue; | |
}); |
This file contains 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
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
This file contains 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
export default { | |
USD: { | |
symbol: "$", | |
name: "US Dollar" | |
}, | |
CAD: { | |
symbol: "CA$", | |
name: "Canadian Dollar" | |
}, | |
EUR: { |
This file contains 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.Component.extend({ | |
actions: { | |
changeFromComponentCode() { | |
this.get('onChange')(true); | |
} | |
} | |
}); |
This file contains 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: 'Teams' | |
}); |
This file contains 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.Component.extend({ | |
classNames: ['k-content'], | |
style: null, | |
options: null, | |
widgetType: null, | |
widgetId: null, | |
This file contains 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
url = "https://www.sammlung-boros.de/visit/fuehrungen-buchen.html?L=1#item_2" | |
date_range = Date.parse("10-05-2019")..Date.parse("13-05-2019") | |
html = open(url) | |
doc = Nokogiri::HTML(html) | |
doc.search(".block_empty").map do |b| | |
[b.parent.parent.parent.search("h1").text.split(",")[1].strip, b.parent.text.chomp.strip] | |
end.select { |r| Date.parse(r[0]).in?(date_range) } |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am matixmatix on github. | |
* I am jurgenwerk (https://keybase.io/jurgenwerk) on keybase. | |
* I have a public key ASAl53xqOnAx-a6sQpPJQZRen8HWT5HkxeUu1JecrOa2bwo | |
To claim this, I am signing this object: |