Skip to content

Instantly share code, notes, and snippets.

View gustaff-weldon's full-sized avatar

Good stuff and well done! gustaff-weldon

View GitHub Profile
@gustaff-weldon
gustaff-weldon / keybase.md
Last active January 7, 2020 12:11
keybase.md

Keybase proof

I hereby claim:

  • I am gustaff-weldon on github.
  • I am gustaff_weldon (https://keybase.io/gustaff_weldon) on keybase.
  • I have a public key ASAJlckoZ2zeGYPHeM-WOGKlVSkKEImqYA_RK0ytt3ykqAo

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this.set('parent', this.store.createRecord('parent', {name:'foo'}))
},
actions: {
@gustaff-weldon
gustaff-weldon / router.js
Last active April 26, 2018 16:59
Error route
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('test')
@gustaff-weldon
gustaff-weldon / dabblet.css
Last active April 25, 2017 12:22
Untitled
.circle-container {
width: 20%;
}
.circle {
/* circle code start */
border-radius: 50%;
width: 100%;
height: auto;
padding-top: 100%;
@gustaff-weldon
gustaff-weldon / dabblet.css
Created April 11, 2017 14:07
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.button {
background: #f06;
padding: 20px;
}
.bg-trans:hover {
@gustaff-weldon
gustaff-weldon / dabblet.css
Created April 9, 2017 21:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.button {
background: #f06;
padding: 20px;
}
.bg-trans:hover {
@gustaff-weldon
gustaff-weldon / dabblet.css
Created April 9, 2017 21:20
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.button {
background: #f06;
padding: 20px;
}
.bg-trans:hover {
@gustaff-weldon
gustaff-weldon / dabblet.css
Last active January 11, 2017 11:04
Untitled
.container {
width: 400px;
}
img {
float: left;
overflow: hidden;
}
@gustaff-weldon
gustaff-weldon / save.js
Created July 29, 2016 09:06
Setting errors on nested model
document.save()
.then(() => {
... some succcess logic handler ...
})
.catch((error) => {
// mark propertiesModel as invalid - pass errors from server
if (Ember.typeOf(error.errors) === 'array') {
let store, modelClass, serverErrors, propertiesServerErrors
store = this.get('store')
body {
font-family: Arial
}
.box {
padding: 20px;
color: white;
}
@keyframes background-position{
from{ background-position: 0 0;}