Skip to content

Instantly share code, notes, and snippets.

Robin Ward eviltrout

Block or report user

Report or block eviltrout

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ae03d8fbbec328b45300
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'),
View gist:803abe027113d7fb0064
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'})
View gist:376ebc2404cc19bfea0a
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'})
View gist:812fde534280e38312af
" =====================================================================
" 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
View keybase.md

Keybase proof

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:

View gist:10170564
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
View gist:8658322
" =====================================================================
" 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/* " MacOSX/Linux
View gist:8058560
EmberJS/TodoMVC/Adding200Items/Sync : 1702.346000005491 ms
EmberJS/TodoMVC/Adding200Items/Async : 25.54499999678228 ms
EmberJS/TodoMVC/CompletingAllItems/Sync : 7.547000001068227 ms
EmberJS/TodoMVC/CompletingAllItems/Async : 283.12500000174623 ms
EmberJS/TodoMVC/DeletingItems/Sync : 1343.2750000065425 ms
EmberJS/TodoMVC/DeletingItems/Async : 11.830000003101304 ms
EmberJS/TodoMVC : 3373.6680000147317 ms
React/TodoMVC/Adding200Items/Sync : 874.4910000095842 ms
View gist:7568298
Delivered-To: reply+6e6e943ffdf89039b9abf4d3f35e320d@discourse.org
Received: by 10.76.68.164 with SMTP id x4csp9950oat;
Wed, 20 Nov 2013 09:37:45 -0800 (PST)
X-Received: by 10.236.77.231 with SMTP id d67mr1031178yhe.113.1384969065068;
Wed, 20 Nov 2013 09:37:45 -0800 (PST)
Return-Path: <robin.ward@gmail.com>
Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [2607:f8b0:4001:c03::236])
by mx.google.com with ESMTPS id d49si17069878yhn.5.2013.11.20.09.37.44
for <reply+6e6e943ffdf89039b9abf4d3f35e320d@discourse.org>
You can’t perform that action at this time.