Skip to content

Instantly share code, notes, and snippets.

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>');
function handleResult(result)
{
console.log(result);
statement1;
statement2;
}
getDataFromServer().then(handleResult);
- 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();
require("./reset.scss");
require("./crotchzombie.scss");
$(window).ready(function() {
const $logo = $('#logo');
let played = false;
function playAudio() {
orker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim => false` through options)
svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
.pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
jpegoptim worker: `jpegoptim` not found; please provide proper binary or disable this worker (--no-jpegoptim argument or `:jpegoptim
git grep "plugin-outlet"
app/assets/javascripts/admin/templates/admin.hbs: {{plugin-outlet "admin-menu" tagName="li"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{plugin-outlet "evil-trout"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{#plugin-outlet "hello-world"}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6: {{/plugin-outlet}}
app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6:Ember.HTMLBars._registerHelper('plugin-outlet', function(params, hash, options, env) {
app/assets/javascripts/discourse/templates/components/edit-category-settings.hbs:{{plugin-outlet "category-custom-settings"}}
app/assets/javascripts/discourse/templates/components/topic-category.hbs:{{plugin-outlet "topic-category"}}
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-open"}}
app/assets/javascripts/discourse/templates/composer.hbs: {{plugin-outlet "composer-fields"}}
#!/bin/sh
# This pre-commit hook will prompt for every file that contains a `console.log`, `debugger`
# or `puts` statement. This should avoid stupidly commiting debugging information :)
exec < /dev/tty
confirm() {
echo "${1:-Are you sure? [y/N]}"
read -r response
describe Synchronizer do
class TestSynchorizer < Synchronizer
def initialize(can_sync)
@can_sync = can_sync
@performed = false
end
def can_sync?
@can_sync
### 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 0AAD 3ED7 A2F2 84ED 1D51 4F4F 0C8B D124 983D D654
To claim this, I am signing this object:
# frozen_string_literal: true
require 'benchmark/ips'
class Key
def a?
true
end
def b?