Skip to content

Instantly share code, notes, and snippets.

Jason Corbett Corbzilla

  • Prodigious Aim Solutions
Block or report user

Report or block Corbzilla

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import Ember from 'ember';
import { computed } from '@ember/object';
export default Ember.Component.extend({
checked: true,
isChecked: computed(function() {
return !!this.get('checked');
toggleChecked: function(e) {
View exchange.js
function getRandom(max) {
return Math.floor(Math.random() * Math.floor(max));
let input = ['Tyrion', 'Daenerys', 'Bronn', 'Margaery', 'Brienne'];
let output = '';
let gives = [...input];
let receives = [...input];
let giverObj = {};
View csvToObjAry.js
let input = `NumberA, NumberB, String
1, 2, hello
2, 4, world
3, 6, !`
let splitInput = input.split('\n');
let labels = splitInput[0].split(',');
let ary = [];
View controllers.application.js
import Ember from 'ember';
const { get, set, computed } = Ember;
export default Ember.Controller.extend({
isButtonOn: false,
// This toggle will run when the button is pressed, it should toggle the isButtonOn property
// which should trigger the value of text to recompute
// -- begin edit area
toggle () {
You can’t perform that action at this time.