Skip to content

Instantly share code, notes, and snippets.

Avatar

Floyd Canfield infosniper

  • Vienna, Austria
View GitHub Profile
@infosniper
infosniper / controllers.application.js
Last active Sep 20, 2017 — forked from willrax/controllers.application.js
ember-changeset-validations demo
View controllers.application.js
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;
export default Ember.Controller.extend({
@infosniper
infosniper / 0_reuse_code.js
Created Sep 13, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@infosniper
infosniper / controllers.application.js
Last active Sep 19, 2017 — forked from poteto/controllers.application.js
ember-changeset-validations demo
View controllers.application.js
// https://ember-twiddle.com/15d9df73e3be2c953731c99084a60a48?openFiles=controllers.application.js%2C
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;