Skip to content

Instantly share code, notes, and snippets.

View ryanlabouve's full-sized avatar
🤠

Ryan LaBouve ryanlabouve

🤠
View GitHub Profile
@ryanlabouve
ryanlabouve / OKCrbLitaBotNotes.rb
Created August 8, 2019 18:02
OKC.rb Lita Bot Notes
OKC.rb Lita Notes
slides: https://gifcannon.s3.us-west-2.amazonaws.com/ReplacingYourFriendsWithRobots.pdf
## 1. We can boot the bot
```rb
lita new briankobot-dr
cd briankobot
bundle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
// This is the toggle helper from Ember composable helper,
// but I'm adding some annotations
// Ref: https://github.com/DockYard/ember-composable-helpers/blob/master/addon/helpers/toggle.js
import { helper } from '@ember/component/helper';
import { get } from '@ember/object';
import { set } from '@ember/object';
import { isPresent } from '@ember/utils';
// FP - First Pass
// SP - Second Pass
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: [
'nightMode'
],
// NOTE: If we don't initialize the value,
// there's a bug
// nightMode: true,
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@ryanlabouve
ryanlabouve / Oct OKC.js Talk Details
Last active September 21, 2017 16:18
Oct OKC.js Talk Details.md
## Talk title:
Control the world with text!: making CLI tools with Node
## Talk description:
Let's make a CLI in node! In this talk we'll take a simple app and make a CLI tool for it.
We'll cover everything from making it executable, distribution, testing, and best practices.
More details coming soon!
@ryanlabouve
ryanlabouve / controllers.application.js
Last active May 23, 2017 20:29 — forked from HeroicEric/controllers.application.js
Awesome Macros Array Dependents
import Ember from 'ember';
import { filterBy } from 'ember-awesome-macros/array';
export default Ember.Controller.extend({
filterKey: 'color',
value: 'red',
redItems: filterBy('data', 'filterKey', 'value'),
blueItems: Ember.computed('data.@each.color', function() {
return this.get('data').filterBy('color', 'blue');
@ryanlabouve
ryanlabouve / Building an Ember with React.md
Created April 3, 2017 15:12
Building an Ember with React

Building an Ember with React

Abstract

Use opinionated frameworks or use modular packages to construct the system you need? This conflict is as inevitable as Red team vs. Blue team. Let's explore this question in context of the front end web stack.

Ember is notorious for being an opinionated front-end framework while React is known for being the very lean build what you need library.

We will explore what it takes to assemble the minimum number of packages from the React ecosystem to create a minimum viable Ember.

@ryanlabouve
ryanlabouve / from-couch-to-golang.md
Last active April 8, 2017 19:44
From Couch to Golang

From Couch to Golang

Abstact

Watching programmers switch to Golang is like watching my friends begin running.

Similar to people who start running and fall in love with it, I saw awesome companies switching to Go and loving it and interesting projects being authored in Go and loving it.

Go is minimal, performant, natively concurrent, and has an awesome ecosystem.