Skip to content

Instantly share code, notes, and snippets.

View mastastealth's full-sized avatar

Brian Franco mastastealth

View GitHub Profile
@mastastealth
mastastealth / sass-animation
Created April 16, 2013 14:30
Some SASS mixins for animation stuff
@mixin animation ($animations) {
-moz-animation: $animations;
-o-animation: $animations;
-webkit-animation: $animations;
animation: $animations;
}
@mixin animation-fill-mode ($mode) {
-moz-animation-fill-mode: $mode;
-o-animation-fill-mode: $mode;
@mastastealth
mastastealth / emmet.cson
Created July 12, 2014 15:56
Emmet for Atom Windows
'.editor:not(.mini)':
'cmd-E': 'emmet:expand-abbreviation'
'ctrl-d': 'emmet:balance-outward'
'alt-d': 'emmet:balance-inward'
'ctrl-alt-j': 'emmet:matching-pair'
'ctrl-right': 'emmet:next-edit-point'
'ctrl-left': 'emmet:prev-edit-point'
'cmd-`': 'emmet:split-join-tag'
"cmd-;": 'emmet:remove-tag'
'cmd-Y': 'emmet:evaluate-math-expression'
@mastastealth
mastastealth / biblebooks.js
Last active September 30, 2024 12:25 — forked from amereservant/biblebooks.php
Simple JS array of the books of the Bible
var books = [
'Genesis',
'Exodus',
'Leviticus',
'Numbers',
'Deuteronomy',
'Joshua',
'Judges',
'Ruth',
'1 Samuel',
import Ember from 'ember';
export default Ember.Component.extend({
filter: null,
click() {
this.sendAction('addFilter');
}
});
import Ember from 'ember';
import Table from 'ember-light-table';
const { computed } = Ember;
export default Ember.Component.extend({
model: null,
columns: computed(function() {
return [{
@mastastealth
mastastealth / controllers.application.js
Created March 29, 2018 13:45
Nested Array Template
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
list: [
{ name: "Apple", colors: ["Red","Yellow","Green"] },
{ name: "Orange", colors: ["Orange"] },
{ name: "Grape", colors: ["Green", "Purple"] }
],
newGrape() {
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
shared = {
page: 0,
pageUI: 1,
pageCount: 10,
startIndexAtZero: true
}
@mastastealth
mastastealth / components.notes\.js
Last active October 6, 2020 01:37
Octane Mini Quiz
import Component from '@glimmer/component';
export default class Notes extends Component {
get itemCount() {
return `(${this.items?.length || 0})`;
}
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@mastastealth
mastastealth / components.test\.js
Last active July 9, 2021 13:27
Select All Shenanigans
import Component from "@glimmer/component";
import { action } from "@ember/object";
import { tracked } from "@glimmer/tracking";
export default class Test extends Component {
@tracked selectedFiles = [];
files = ["a", "b", "c"];
@action
handleFileToggle(file) {