Skip to content

Instantly share code, notes, and snippets.

View CheezItMan's full-sized avatar

Chris M CheezItMan

View GitHub Profile
@CheezItMan
CheezItMan / task.js
Last active May 19, 2017 21:04 — forked from anonymous/app.js
app.js
import Backbone from 'backbone';
var Task = Backbone.Model.extend({
defaults: {
title: '',
completed: false
},
logStatus: function() {
console.log("Title: " + this.get("title"));
console.log("Completed: " + this.get("completed"));
@CheezItMan
CheezItMan / translate_me.rb
Created May 21, 2019 15:20 — forked from dHelmgren/translate_me.rb
Js Translation from Ruby snippet
def coffee_price is_iced, size, flavor_array
price = 2.50
if size == 0
elsif size == 1
price += 1
else
price *= 2
end
@CheezItMan
CheezItMan / translated_me.js
Created May 21, 2019 15:21 — forked from dHelmgren/translated_me.js
Finished JS Translation From Ruby
const coffeePrice = function coffeePrice(isIced, size, flavorArray){
let price = 2.50;
if(size == 0){
;
} else if (size == 1) {
price += 1;
} else {
price *= 2;
}
const captainMarvel = {
givenName: 'Carol Danvers',
nickname: 'Vers',
age: 41,
sideburns: false,
affiliations: ["The Avengers", "S.H.I.E.L.D.", "The Starjammers"],
fly() {
console.log('zoom!');
console.log('swish!');
console.log('fweeee!');