This file contains hidden or 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
2011-05-09T19:29:50-07:00 heroku[slugc]: Slug compilation started | |
2011-05-09T19:32:42-07:00 heroku[slugc]: Slug compilation started | |
2011-05-09T19:32:45-07:00 heroku[api]: Deploy 6bab9f5 by [email protected] | |
2011-05-09T19:32:45-07:00 heroku[api]: Release v4 created by [email protected] | |
2011-05-09T19:32:45-07:00 heroku[web.1]: State changed from created to starting | |
2011-05-09T19:32:45-07:00 heroku[slugc]: Slug compilation finished | |
2011-05-10T02:32:46+00:00 heroku[web.1]: Starting process with command: `thin -p 11621 -e production -R /home/heroku_rack/heroku.ru start` | |
2011-05-10T02:32:46+00:00 app[web.1]: /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- sinatra (LoadError) | |
2011-05-10T02:32:46+00:00 app[web.1]: from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
2011-05-10T02:32:46+00:00 app[web.1]: from ./app.rb:1 |
This file contains hidden or 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
// exemplo em: http://jsfiddle.net/YLhrP/ | |
function init() { | |
var dummy = [ 123, 234, 345, 456, 567, 678, 789, 890 ], | |
newDiv; | |
for ( var i in dummy ) { | |
newDiv = jQuery('<div id="newDiv_'+i+'">Clique Aqui!</div>'); | |
newDiv.bind('click', (function(valor_de_i) { | |
return function(ev) { |
This file contains hidden or 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
/** | |
* Annoying.js - How to be an asshole to your users | |
* | |
* DO NOT EVER, EVER USE THIS. | |
* | |
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com) | |
* Visit https://gist.github.com/767982 for more information and changelogs. | |
* Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog | |
* Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors | |
* |
This file contains hidden or 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
var A = function(){}; | |
A.prototype.foo = function(){ | |
console.log('foo'); | |
} | |
var B = function(){}; | |
B.prototype.bar = function(){ | |
console.log('bar'); |
This file contains hidden or 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 supports_input_placeholder() { | |
var input = document.createElement('input'); | |
return 'placeholder' in input; | |
} |
This file contains hidden or 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
// http://twitter.com/#!/littlecalculist/status/89848378682392576 | |
// http://twitter.com/#!/littlecalculist/status/89855977838485504 | |
// Variable Arity Array.of() | |
Array.of = function() { | |
return [].slice.call( arguments ); | |
}; | |
console.log( | |
Array.of( "things", "that", "aren't", "currently", "an", "array" ) |
This file contains hidden or 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
// From @littlecalculist | |
// http://twitter.com/#!/littlecalculist/status/89840539494662144 | |
Function.prototype.build = function(a) { | |
return new ( | |
this.bind.apply(this, [,].concat(a)) | |
); | |
}; | |
// Example constructor that "does things" |
This file contains hidden or 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
var ArrayExtender = function (a) { | |
var counter = 0; | |
for (var i in a) { | |
if (a.hasOwnProperty(i)) { | |
this[i] = a[i]; | |
++counter; | |
} | |
} | |
this.length = counter; |
This file contains hidden or 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(window, undefined) { | |
var MyObj = (function () { | |
var MyObj = function () { | |
return new MyObj.fn.init(); | |
}; | |
MyObj.fn = MyObj.prototype = { | |
init : function () { | |
return this; |
This file contains hidden or 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
<nav id="myMenu" class="menuHorizontal"> | |
<ul> | |
<li class="currentActive"> | |
<a href="#">Menu</a> | |
</li> | |
<li> | |
<a href="#">Leo Balter</a> | |
</li> | |
<li> | |
<a href="#">File</a> |
OlderNewer