Navigate/Search

Archive for the 'bumper sticker / TShirt' Category

Latest Update In My Knockout.js to Ember.js Retrofit

Monday, June 16th, 2014

After several hours of frustration I moved a few steps further in my Ember quest…

HTML

Knockout.js

<div id=”button1″  type=”button” data-bind=”click: function(data,event){clickButton(1)}”>1</div>

Ember.js

<div id=”button1″  type=”button” {{action ‘clickNumberButton’ 1}}>1</div>

JS

Knockout.js

function AppViewModel() {
this.decimalMode = false;
this.decimalFactor = 1;
this.convertMode = “m2f”;
this.meters = ko.observable(“0″);
this.feet = ko.observable(“0″);
this.clickButton = function(number){
if(this.decimalMode){
this.decimalFactor = 10*this.decimalFactor;
number = number/this.decimalFactor;
}
if(this.convertMode == “f2m”){
if(this.decimalMode){
number = (this.feet() + number);
} else {
number = (this.feet()*10 + number);
}
this.feet(number);
this.meters(number/3.28084);
} else {
if(this.decimalMode){
number = (this.meters() + number);
} else {
number = (this.meters()*10 + number);
}
this.meters(number);
this.feet(number*3.28084);
}
};
}

App.IndexController = Ember.Controller.extend({
decimalMode:false,
decimalFactor:1,
convertMode:”m2f”,
meters:0,
feet:0,
conversionFactor:3.28084,
actions: {
clickNumberButton: function(number) {
var conversionFactor = this.get(“conversionFactor”);
var feet     = number*conversionFactor;
this.set(“feet”,feet);
this.set(“meters”,number);
}
}
});

 

It looks like finishing out the code should be pretty easy tomorrow.

This Car Not Responsible For Any Accidents It’s Involved In

Friday, June 26th, 2009

I think a bumper sticker that reads:

“This Car Not Responsible For Any Accidents It’s Involved In”

would be very funny. It would definitely annoy some people.

Bumper Sticker

Thursday, June 11th, 2009

How about this for a bumper sticker?

“I am not sure what I believe, but I am pretty sure what you believe in is wrong.”

That would be funny.

Funny Bumper Sticker

Wednesday, June 10th, 2009

Since many companies like to put legal signs up that have no legal value… like the signs at the McDonald’s playland that read “McDonald’s is not responsible for injuries” that sign means nothing.

So I would like put this bumper sticker on my car:

“This car not responsible for any accidents it is involved in”