This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import UserValidations from 'twiddle/validations/user'; | |
export default Ember.Controller.extend({ | |
UserValidations, | |
actions: { | |
submit(model) { | |
console.log('submit', model) | |
model.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import UserValidations from 'twiddle/validations/user'; | |
export default Ember.Controller.extend({ | |
UserValidations, | |
actions: { | |
submit(model) { | |
console.log('submit', model) | |
model.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: bsd-3-clause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/components/marcas/marcas-form.js | |
import Component from '@ember/component'; | |
export default Component.extend({ | |
//https://guides.emberjs.com/v3.3.0/components/triggering-changes-with-actions/ | |
//https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/closure-actions.md | |
// Noop, needs to be overriden | |
onSave() {}, | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: bsd-3-clause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var prime = require('prime') | |
var ghost = require('prime/util/ghost') | |
var typeOf = require('prime/util/type') | |
var shells = { | |
"string" : require("prime/types/string"), | |
"number" : require("prime/types/number"), | |
"array" : require("prime/collection/list"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["super+alt+shift+5"], | |
"command": "set_layout", | |
"caption" : "1-2 Grid", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.5, 1.0], | |
"cells": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loader = require('../path/to/link'); | |
loader.alias('package', '../path/to/package.js'); | |
loader.alias('package2', '../path/to/package2.js'); | |
loader.base('../path/to/my/root/folder/'); | |
loader.load('main'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A proof of concept monkeypatch to make Cloud9 IDE work on a tablet. | |
* Since i'm an extremely lazy bastard I prepended this snippet directly in package/client/js/apf_release.js | |
* | |
* What does it do? | |
* - It fires a doubleclick for a 2-finger tap | |
* - It fires a mousewheel up / down event for a 2-finger swipe up / down. | |
* | |
* How does it work? | |
* Prepend the functions below to <cloud9>/package/client/js/apf_release.js, save, load in tablet. |
NewerOlder