Public Gists by madrobby

Gravatar
Thu Nov 05 05:23:56 -0800 2009
1
2
3
<h1>Demo code for "Extreme JavaScript Performance" @ JSConf.eu</h1>
 
<script>
Gravatar
Wed Oct 07 07:15:19 -0700 2009
1
2
3
[16:07] Veejay:
madrobby: This book is excellent
 
Gravatar
Mon Jul 06 03:50:39 -0700 2009
1
2
3
attwenger = [
  { :year => 1991, :tracks => 18, :title => "Most" },
  { :year => 1992, :tracks => 10, :title => "Pflug" },
Gravatar
Fri Jun 19 07:33:52 -0700 2009
1
2
3
TransitionExample: function(element){
    var type = element.up().down('.ebnf').innerHTML.gsub(/s2\.fx\.Transitions\./,'').split('(').first(),
      transition = s2.fx.Transitions[type], active = false;
Gravatar
Wed Jun 10 05:44:03 -0700 2009
1
2
3
var CreditCard = {
  CARDS: {
    Visa: /^4[0-9]{12}(?:[0-9]{3})?$/,
Gravatar
Thu May 28 08:15:49 -0700 2009
1
2
3
var ObjectRange = Class.create(Enumerable, (function() {
  function initialize(start, end, exclusive) {
    // ...
Gravatar
Thu May 28 08:08:07 -0700 2009
1
2
3
(function() {
  
  /** section: DOM
Gravatar
Fri Mar 27 16:10:08 -0700 2009
1
2
3
s2.fx.Opacity = Class.create(s2.fx.Element, {
  setup: function() {
    var from = this.options.from || 0, to = this.options.to || 1;
Gravatar
Fri Mar 27 16:06:19 -0700 2009
1
2
3
s2.css = {
  PROPERTY_MAP: {
    backgroundColor: 'color',
Gravatar
Tue Jan 27 16:31:22 -0800 2009
1
2
3
def pack_file(source, target)
  puts `java -jar lib/yuicompressor-2.4.1.jar -v #{source} -o #{target}`
  `gzip -9 #{target} -c > #{target}.gzip`
Gravatar
Sat Jan 17 07:46:22 -0800 2009
1
2
3
Coming soon from yours truly and Amy Hoy!
 
As a special thank you for my regular readers (you!), <a href="http://javascriptrocks.com/">sign up for the announcement email and get $5 off the regular price</a> when the beta book is out!
Gravatar
Wed Dec 10 03:05:23 -0800 2008
1
2
3
var s2 = {
  Version: '2.0.0a1'
};
Gravatar
Sat Nov 29 02:34:38 -0800 2008
1
2
3
config.action_controller.asset_host = Proc.new do |source, request|
  non_ssl_host = "http://asset#{source.hash % 4}.backpackit.com"
  ssl_host = "https://asset1.backpackit.com"
Gravatar
Wed Nov 26 08:51:18 -0800 2008
1
2
3
sqlite> SELECT * FROM ENTRIES_TAGS WHERE TAG_ID IN (58, 59);
 
140|58