Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Making Yapp better all the time and likely working on some Ember.js OSS

Luke Melia lukemelia

💭
Making Yapp better all the time and likely working on some Ember.js OSS
View GitHub Profile
@lukemelia
lukemelia / join-yapp.md
Created Apr 5, 2022
Full Stack Engineer, Yapp
View join-yapp.md

Ember, Rails & Mobile at Yapp (Remote)

Yapp is hiring a “full-stack” engineer, with key skills Ember.js & Rails. Join our small, talented team and do the best work of your career!

If you are passionate about your craft and want a chance to work remotely with a great team where you can influence the technology, process, product, and culture, read on!

About Yapp

We enable non-developers to create mobile apps for conference, trainings and employee communications. Yapp combines clean design, simple UX, and innovative mobile technology to empower people that may lack technical and design know-how, or just don't have time, to create and publish these apps in minutes.

@lukemelia
lukemelia / serialize_to_jsonapi.rb
Created Jan 21, 2022
Standalone model serialization with JSON::API Resources
View serialize_to_jsonapi.rb
class SerializeToJsonapi
DEFAULT_OPTIONS = {
serialization_options: { suppress_self_link: true }
}
def initialize(
model,
resource_class,
serialization_options = {},
@lukemelia
lukemelia / provision-waypoint.sh
Last active Jul 12, 2022
WIP deploying waypoint server to EC2 with terraform
View provision-waypoint.sh
set -e
# add docker's own apt repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# add hashicorp's apt repository
curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
@lukemelia
lukemelia / generate-reexport-in-app.js
Created Jun 18, 2020
vscode task for re-exporting an ember addon file that is open in the addon dir to the app dir
View generate-reexport-in-app.js
// bin/generate-reexport-in-app.js
const fs = require('fs');
const path = require('path');
let args = process.argv.slice(2);
let sourcePath = args[0];
let targetPath = sourcePath.replace(/^addon/,'app').replace(/^\.hbs/, '.js');
let pkg = require('../package.json');
let addonName = pkg.name;
let sourceModule = sourcePath.replace(/^addon/,addonName).replace(/\.(js|hbs)$/,'');
View yapp-ember-kit_addon_macro-decorators.js
import { reads }, macro from 'macro-decorators';
/* Usage:
*
* import { hasEnabledFeature } from 'yapp-ember-kit/macro-decorators';
*
* @reads('yappService.model') yapp;
* @hasEnabledFeature('teleportation') canTeleport;
*/
@lukemelia
lukemelia / store-yapp-api-query-blocking.js
Created Jun 17, 2019
Orbit strategy with filter based on whether in cache or not
View store-yapp-api-query-blocking.js
import {
RequestStrategy,
} from '@orbit/coordinator';
export default {
create() {
return new RequestStrategy({
name: 'store-yapp-api-query-blocking',
source: 'store',
@lukemelia
lukemelia / README.md
Last active Apr 9, 2020
keyboard-shortcut element modifer
View README.md

An element modifier to attach a keyboard shortcut to an element that has a click method

Example usage:

  <button {{action 'doSomethingCool'}} {{keyboard-shortcut "D"}}>
    [D]o something cool
  </button>
@lukemelia
lukemelia / README.md
Last active May 2, 2018
Ember Twiddle Demo: Mirage with Ember Twiddle
View README.md

Ember Twiddle Demo: Mirage with Ember Twiddle

Demo

This is a very trivial example of using mirage with Ember Twiddle.

@lukemelia
lukemelia / work-at-yapp.md
Created Mar 13, 2018
Ember, Rails & Mobile at Yapp (Remote)
View work-at-yapp.md

Ember, Rails & Mobile at Yapp (Remote)

Yapp is hiring a “full-stack” engineer, with key skills Ember.js & Rails. Join our small, talented team and do the best work of your career!

If you are passionate about your craft and want a chance to work remotely with a great team where you can influence the technology, process, product, and culture, read on!

About Yapp

We enable non-developers to create mobile apps for conference, trainings and employee communications. Yapp combines clean design, simple UX, and innovative mobile technology to empower people that may lack technical and design know-how, or just don't have time, to create and publish these apps in minutes.

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});