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
function formatUSprice(amount) | |
{ | |
var i = parseFloat(amount); | |
if(isNaN(i)) { i = 0.00; } | |
var minus = ''; | |
if(i < 0) { minus = '-'; } | |
i = Math.abs(i); | |
i = parseInt((i + .005) * 100); | |
i = i / 100; | |
s = new String(i); |
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
// | |
// Automatically calls all functions in APP.init | |
// | |
jQuery(document).ready(function() { | |
APP.go(); | |
}); | |
// | |
// Module pattern: | |
// http://yuiblog.com/blog/2007/06/12/module-pattern/ |
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
dojo.NodeList.prototype.highlight = function(){ | |
this.forEach(function(node){ | |
dojo.style(node, “backgroundColor”, “yellow”); | |
}); | |
return this; | |
} | |
dojo.query(“p”).highlight(); | |
dojo.extend(dojo.NodeList, { | |
highlight: function(color){ | |
// You can accept arguments |
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
arrayUtils = { | |
isString:function(val) {//Returns true if the specified value is a string | |
return typeof val == 'string'; | |
}, | |
remove:function(arr, obj) {//Removes the first occurrence of a particular value from an array. | |
var i = this.indexOf(arr, obj); | |
var rv; | |
if ((rv = i >= 0)) { |
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
<div splitter="true" region="center" style="overflow: hidden; margin: 0pt; width: 100%; top: 21px; left: 0px; right: 0px; bottom: 0px;" minsize="20" dojotype="mira.AccordionContainer" id="mira_AccordionContainer_0" widgetid="mira_AccordionContainer_0" class="dijitContainer dijitAccordionContainer dijitLayoutContainer dijitBorderContainerNoGutter-child dijitBorderContainerNoGutter-dijitAccordionContainer dijitBorderContainerNoGutterPane" role="tablist"> | |
<div waistate="expanded-false" wairole="tab" class="dijitAccordionTitle miraAccordianTitle" dojoattachevent="onkeypress:_onTitleKeyPress,onfocus:_handleFocus,onblur:_handleFocus,onmouseenter:_onTitleEnter,onmouseleave:_onTitleLeave" dojoattachpoint="titleNode,focusNode" role="tab" aria-expanded="true" id="lhs_list_button" widgetid="lhs_list_button" style="-moz-user-select: none;" aria-selected="true" tabindex="0" aria-labelledby="lhs_list_button_title"><div style="width: 100%;" dojoattachevent="ondijitclick:_onTitleClick"> <span class="dijitTitlePaneTextNod |
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
As the video says, I think your position on the matter is intellectually dishonest. The very origins of the word | |
atheism makes a positive assertion "without gods". Does Hitchens follow your line of reasoning? From what I know | |
of his book, its not a single sentence (or more) requesting proof. | |
Like I've stated, the burden of proof in this case are on both parties because both an atheist and a christian | |
are making claims. Trivial wordings aside. We should set this proof thing aside. I think we agree in theory | |
that if you assert you have a burden of proof requirement. | |
Here a few more comments: |
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
/*recent orders*/ | |
before(function(context) { | |
var email = context.store.get('email'); | |
if(email) { | |
var foo = context.cache(); | |
console.log(foo.recentOrders); | |
if(foo.recentOrders){ | |
context.partial('templates/previous_orders/recent.mustache', PreviousOrdersView(context.cache().recentOrders), function(html) { |
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
/*! | |
* jQuery.preloadImg | |
* description: cache images via $.preloadImg(['src','src']) or $('img').preloadImg() | |
* author: Cody Lindley | |
*/ | |
(function($) { | |
$.preloadImg = function() { | |
$.preloadImg.runLoader(arguments[0]); |
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
(function ($) { | |
$.fn.center = function () { | |
return this.each(function () { | |
var top = ($(window).height() - $(this).outerHeight()) / 2; | |
var left = ($(window).width() - $(this).outerWidth()) / 2; | |
$(this).css({ | |
position: 'absolute', | |
margin: 0, | |
top: (top > 0 ? top : 0) + 'px', | |
left: (left > 0 ? left : 0) + 'px' |
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
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
bar[foo?'doSomething':'doSomethingElse'](el); | |
OlderNewer