Skip to content

Instantly share code, notes, and snippets.

View JuddL333's full-sized avatar

Judd Lillestrand JuddL333

View GitHub Profile

Keybase proof

I hereby claim:

  • I am juddl333 on github.
  • I am judd (https://keybase.io/judd) on keybase.
  • I have a public key whose fingerprint is 8096 E7E1 C163 BDBA 0CA7 0726 C079 158B 1353 B80B

To claim this, I am signing this object:

@JuddL333
JuddL333 / gist:2961273
Created June 20, 2012 18:04
Marriott Gold Rating Code
<!-- BEGIN ScripSmart Gift Card Score Widget -->
<div id="ss_score" style="height: 120px; width: 92px; text-align: center;">
<iframe title="Gift Card Score by ScripSmart"src="http://www.scripsmart.com/widgets/284-marriott-gift-card" width="87" height="95" frameborder="0" scrolling=no>"
</iframe>
<p class="by_ss" style="font-size: 10px; margin: 0px; padding: 0px; color: black; font-family:geneva,verdana,arial,sans-serif;"><a href="http://scripsmart.com" style="color:black;text-decoration:none" target="new">Gift Card</a> Score<sup>&#174;</sup>
</p>
<p class="by_ss" style="font-size: 10px; padding: 0px; margin: 0px; color: black; font-family:geneva,verdana,arial,sans-serif;">Out of 100
</p>
</div>
<!-- END ScripSmart Gift Card Score Widget -->
@JuddL333
JuddL333 / gist:2764376
Created May 21, 2012 20:14
Meijer Gift Card Badge
<!-- BEGIN ScripSmart Gift Card Score Widget -->
<div id="ss_score" style="height: 120px; width: 92px; text-align: center;">
<iframe title="Gift Card Score by ScripSmart"src="http://www.scripsmart.com/widgets/454-meijer-gift-card" width="87" height="95" frameborder="0" scrolling=no>"
</iframe>
<p class="by_ss" style="font-size: 10px; margin: 0px; padding: 0px; color: black; font-family:geneva,verdana,arial,sans-serif;"><a href="http://scripsmart.com" style="color:black;text-decoration:none" target="new">Gift Card</a> Score<sup>®</sup>
</p>
<p class="by_ss" style="font-size: 10px; padding: 0px; margin: 0px; color: black; font-family:geneva,verdana,arial,sans-serif;">Out of 100
</p>
</div>
<% @books.each do |book| %>
<% characters = book.title.chars.to_a %>
<% characters.each do |character| %>
<p><%= character %></p>
<% end %>
<% end %>
;(function($){$.fn.feedbackBadge=function(options){this.config={css:{'position':'absolute','float':'left','display':'none','zIndex':'999'},'animate':false,'css3Safe':false,'float':'left'};$.extend(this.config,options);this.config.css.float=this.config.float;this.window=$(window);var self=this;if(this.config.css3Safe){this.badgeHeight=this.height();this.windowHeight=self.window.height();this.topDistance=~~(+(this.windowHeight-this.badgeHeight)/2);this.config.css.position='absolute';if(typeof(this.config.css.marginTop)=='undefined'){this.config.css.marginTop=this.getTopMiddleDistance(true);}
if(this.config.animate){self.window.scroll(function(){self.stop().animate({'margin-top':self.getTopMiddleDistance(true)},1000);});}else{self.window.scroll(function(){self.css('margin-top',self.getTopMiddleDistance(true));});}
self.window.resize(function(){self.badgeHeight=self.height();self.windowHeight=self.window.height();self.topDistance=~~(+(self.windowHeight-self.badgeHeight)/2);self.css('margin-top',self.getTopMiddleD