Skip to content

Instantly share code, notes, and snippets.

View benmurden's full-sized avatar

Ben Murden benmurden

  • Scoville K.K.
  • Kyoto, Japan
View GitHub Profile
@benmurden
benmurden / cleaned-wordle-words.txt
Created June 1, 2022 04:53
Cleaned valid words for Wordle
aahed
aalii
aargh
aarti
abaca
abaci
aback
abacs
abaft
abaka

Keybase proof

I hereby claim:

  • I am benmurden on github.
  • I am benmurden (https://keybase.io/benmurden) on keybase.
  • I have a public key ASCNNISHijBy7IozdBOqmzbtjfRaCcX7HyspOxhUzKSQFwo

To claim this, I am signing this object:

@benmurden
benmurden / foo-bar-test.js
Created September 5, 2017 08:47
Fixed Ember.js component test
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('foo-bar', 'Integration | Component | foo bar', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
@benmurden
benmurden / components.foo-bar.js
Last active September 5, 2017 11:24
Global events
import Ember from 'ember';
import ClickOutside from '../mixins/click-outside';
const {
Component,
run,
on
} = Ember;
export default Component.extend(ClickOutside, {
@benmurden
benmurden / foo-bar-test.js
Created September 4, 2017 14:46
Example Ember.js component integration test
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('foo-bar', 'Integration | Component | foo bar', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
@benmurden
benmurden / ember-each-1.12-helper.txt
Last active September 2, 2015 02:41
Ember.js 1.12 each deprecation RegEx helper
\{\{\s*#each ([a-zA-Z0-9]+) in ([a-zA-Z0-9]+)( itemController="[a-zA-Z0-9]+")?\s*\}\}
{{#each \2\3 as |\1|}}
## Or in vim
:%s/\{\{\s*#each ([a-zA-Z0-9]+) in ([a-zA-Z0-9]+)( itemController="[a-zA-Z0-9]+")?\s*\}\}/{{#each \2\3 as |\1|}}/g
@benmurden
benmurden / RegEx
Created October 1, 2014 09:56
RegEx for finding and namespacing CSS class uses in HTML.
class=(["a-z\-]*[" ]+)(class-to-find)([ "])
class=$1prefix-$2$3