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 Component from '@glimmer/component'; | |
import fetch from 'fetch'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class HomeBanner extends Component { | |
url = 'https://ticker.rafflebox.ca/xml?raffleId={id from rafflebox url goes here}'; | |
@tracked draw; | |
constructor() { |
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
{ | |
"id":"ch_1GsgOp2cKSiqTnd4XE34Wdig", | |
"object":"charge", | |
"amount":1500, | |
"amount_refunded":0, | |
"application":null, | |
"application_fee":null," | |
application_fee_amount":null, | |
"balance_transaction":"txn_1GsgOp2cKSiqTnd4D2nY1USH", | |
"billing_details":{"address":{"city":null,"country":null,"line1":null,"line2":null,"postal_code":null,"state":null},"email":null,"name":null,"phone":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
import Mixin from '@ember/object/mixin'; | |
export default Mixin.create({ | |
isShowingDeleteConfirmation: false, | |
actions: { | |
requestDelete() { | |
this.toggleProperty('isShowingDeleteConfirmation'); | |
}, | |
cancelDelete() { | |
this.toggleProperty('isShowingDeleteConfirmation'); | |
}, |
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
app/views/pages/ | |
index/ | |
side_menu/ | |
_no_login_required_links.html.erb | |
_main_content.html.erb | |
_side_menu.html.erb | |
index.html.erb | |
posts/ | |
_modal.html.erb |
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 'httparty' | |
(1010..1012).to_a.each do |id| | |
response = HTTParty.get("https://www.residentadvisor.net/news.aspx?id=#{id}") | |
File.open("#{id}.html", 'w') {|f| f.write(response.body) } | |
end |
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
window.location.href = "https://www.youtube.com/watch?v=bkG9BKgDvNI"; |
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
body.costa-rica { | |
/* adding a background image where body has grey now */ | |
background-image: url('http://www.capricornleisure.com/wp-content/uploads/2008/12/costa_rica-Water-Fall.jpeg')!important; | |
background-size: cover; /* for example */ | |
#page { | |
background-color: purple!important; |
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
<div class="flexpaper_viewer_wrap flexpaper_viewer_container"> | |
<div id="documentViewer" class="flexpaper_viewer"></div> | |
</div> | |
<script type="text/javascript"> | |
$('#documentViewer').FlexPaperViewer({config:{}}); | |
$(function() { | |
$('#documentViewer').bind('onDocumentLoaded',function(){ |
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"` | |
InvoicesInvoiceRoute = Ember.Route.extend | |
model: (invoice)-> | |
@store.find "invoice", invoice.invoice_id | |
setupController: (controller,model) -> | |
controller.set 'model', model | |
controller.set 'entries', @store.find 'time_entry', q: |
NewerOlder