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
<?php | |
// NOTE: Unfortunately, this code no longer works because Google has shut down | |
// their V3 API for Sheets. We used that at the time because it didn't require | |
// additional setup, nor creating an API key unlike the V4 API. | |
// This is the new URL syntax, and it requires an API Key | |
// https://sheets.googleapis.com/v4/spreadsheets/SHEET_ID/values/NAME_OF_SHEET_TAB?alt=json&key=API_KEY | |
// It isn't compatible with the code below, so you sill still need to write custom PHP to reformat the JSON |
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.Component.extend({ | |
tagName: 'li', | |
}); |
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
ul.display-posts-listing { | |
list-style:none; | |
} | |
.excerpt-dash { | |
display:none; | |
} | |
.listing-item { | |
margin-bottom: 2.5em; |
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
# name: discourse-secure-note | |
# about: Allow the attachment of secure notes to posts that are visible to staff and the post owner. | |
# version: 0.1 | |
# authors: Alexander Rohmann | |
# url: | |
PLUGIN_NAME ||= "discourse_secure-note".freeze | |
after_initialize do |
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.Component.extend({ | |
tagName: '', | |
markup: Ember.computed('state',function(){ | |
return `<div><strong>${this.get('state')}</strong><div><!--morph:yield--></div></div>`; | |
}), | |
}); |
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', | |
init: function () { | |
this._super(); | |
Ember.run.schedule("afterRender",this,function() { | |
this.send("later"); | |
}); |
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
// instance-initializers/app-view.js | |
// With an instance initializer, we can register a component for Ember to use at the top level. | |
// Not ideal, but it works in the meantime until routable components drop. | |
import Ember from 'ember'; | |
const AppView = Ember.Component.extend({ | |
classNames: ['my-app'], | |
}); |
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
/** | |
* Add the cs-row-flip class to a row, and the column direction will be reversed. | |
*/ | |
.x-container.marginless-columns.cs-row-flip { | |
direction: rtl; | |
} | |
.x-container.marginless-columns.cs-row-flip > .x-column { | |
direction: ltr; |
NewerOlder