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
.css-selector { | |
background: linear-gradient(290deg, #5510ff, #af37ff); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 0s ease infinite; | |
-moz-animation: AnimationName 0s ease infinite; | |
-o-animation: AnimationName 0s ease infinite; | |
animation: AnimationName 0s ease infinite; | |
} | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 50%} |
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'; | |
export default Ember.Component.extend({ | |
}); |
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 { computed } from '@ember/object'; | |
const nsfw = ['nudity', 'violence', 'vulgarity', 'drug use', 'socialism', 'dangerous ideas']; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
nsfwTags: computed('post.tags.nsfw.[]', function() { | |
return this.post.get('tags.nsfw'); | |
}), |
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'; | |
export default Ember.Component.extend({ | |
tagName: '', | |
}); |
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 DS from 'ember-data'; | |
export default DS.JSONAPIAdapter.extend({ | |
namespace: '/api' | |
}); |
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 Parent from './my-component'; | |
export default Parent.extend({ | |
}); |
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'; | |
export default Ember.Component.extend({ | |
actions: { | |
updateItem(index, event) { | |
this.list.set(index, event.target.value); | |
if(this.list[this.list.length-1] !== '') { | |
this.list.addObject(''); | |
} | |
}, |
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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
class Node < ApplicationRecord | |
# class that implements materialized path hierarchy | |
# a la https://medium.com/notes-from-a-messy-desk/representing-trees-in-postgresql-cbcdae419022 | |
# Normal associations don't work | |
# | |
# has_many :children, ->(node) { where(path: node.path + [node.id]) }, class_name: "Node", foreign_key: nil | |
# primary_key: nil, | |
# inverse_of: :parent | |
# belongs_to :parent, ->(node) { find_by_sql(id: node.path.last) }, |
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
Verifying my Blockstack ID is secured with the address 1eit6KcnTa44QiyT5qHzAQhaCb4dLvcTd https://explorer.blockstack.org/address/1eit6KcnTa44QiyT5qHzAQhaCb4dLvcTd |
NewerOlder