this is text http://reddit.com this is more text http://yahoo.com
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
describe Onebox::Engine::WikipediaOnebox do | |
before(:all) do | |
@link = "http://en.wikipedia.org/wiki/Billy_Jack" | |
end | |
include_context "engines" | |
it_behaves_like "an engine" | |
describe "#to_html" do |
I hereby claim:
- I am eviltrout on github.
- I am eviltrout (https://keybase.io/eviltrout) on keybase.
- I have a public key whose fingerprint is 0519 4970 7036 48F4 15D9 A027 E36C C570 ECC5 EE24
To claim this, I am signing this object:
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
" ===================================================================== | |
" Initialize: {{{1 | |
set nocp | |
filetype plugin indent on | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
syntax on | |
set wildignore+=*/tmp/*,*/log/*,*/pg_dumps/*,*.so,*.swp,*.zip,*.png,*.jpg,*/public/*,*/chef/*,*/vendor/*,*/node_modules/*,*/fixtures/* " MacOSX/Linux |
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
var refresher = function() { | |
if(Discourse.SiteSettings.login_required) { | |
window.location.pathname = Discourse.getURL('/'); | |
} else { | |
window.location.reload(); | |
} | |
}; | |
bootbox.dialog(I18n.lookup("log_out_redirect"), { label: 'Refresh', callback: refresher}, {onEscape: refresher, backdrop: 'static'}) |
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
var refresher = function() { | |
if(Discourse.SiteSettings.login_required) { | |
window.location.pathname = Discourse.getURL('/'); | |
} else { | |
window.location.reload(); | |
} | |
}; | |
bootbox.dialog(I18n.lookup("log_out_redirect"), { label: 'Refresh', callback: refresher}, {onEscape: refresher, backdrop: 'static'}) |
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 StringBuffer from 'discourse/mixins/string-buffer'; | |
export default Ember.Component.extend(StringBuffer, { | |
classNameBindings: ['containerClass'], | |
rerenderTriggers: ['condition'], | |
containerClass: function() { | |
return (this.get('size') === 'small') ? 'inline-spinner' : undefined; | |
}.property('size'), |
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 Ember.Component.extend({ | |
classNameBindings: ['containerClass'], | |
containerClass: function() { | |
return (this.get('size') === 'small') ? 'inline-spinner' : undefined; | |
}.property('size'), | |
render: function(buffer) { | |
if (this.get('condition')) { | |
buffer.push('<div class="spinner ' + this.get('size') + '"}}></div>'); |
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
function handleResult(result) | |
{ | |
console.log(result); | |
statement1; | |
statement2; | |
} | |
getDataFromServer().then(handleResult); |
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
- var tags = this.get('value').split(',').map(function(v) { | |
- return v.trim(); | |
- }).reject(function(v) { | |
- return v.length === 0; | |
- }).uniq(); | |
- | |
+ const tags = this.get('value').split(',').map(v => v.trim()).reject(v => v.length === 0).uniq(); |
OlderNewer