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:
- 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(); |
function handleResult(result) | |
{ | |
console.log(result); | |
statement1; | |
statement2; | |
} | |
getDataFromServer().then(handleResult); |
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>'); |
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'), |
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'}) |
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'}) |
" ===================================================================== | |
" 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 |
I hereby claim:
To claim this, I am signing this object:
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 |
this is text http://reddit.com this is more text http://yahoo.com