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
$ gem list | grep rake | |
rake (10.2.2, 0.9.6) |
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
$ pry | |
[1] pry(main)> gem "borba" | |
Gem::LoadError: Could not find 'borba' (>= 0) among 18 total gem(s) | |
from /Users/ricardovaleriano/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs' |
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
// go to http://game.notch.net/drowning | |
// open the console | |
// type this: | |
function sleep(millis, callback) { | |
setTimeout(function() | |
{ callback(); } | |
, millis); | |
} |
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
// dom HtmlOptionElement selected in a select element | |
$("#filterTypes")[0][$("#filterTypes").attr("selectedIndex")] |
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
/* After: */ | |
// ... | |
if (isNodeContent) | |
{ | |
writer.WriteStartElement(name); | |
writer.WriteValue(item); | |
writer.WriteEndElement(); | |
} | |
else if (isFromLinq) | |
{ |
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
<a href="javascript:window.open('http://worksforme.com.br', | |
'poopup', | |
'toolbar=no, width=300, height=300, statusbar=no')">Worksforme</a> |
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
<a href="#" onclick="javascript:window.open('http://worksforme.com.br', | |
'poopup', | |
'toolbar=no, width=300, height=300, statusbar=no')">Worksforme 2</a> |
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
<a href="http://worksforme.com.br" | |
id="link_to_worksforme">Worksforme 3</a> | |
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 worksforme_click_link() | |
{ | |
all_links = document.getElementsByTagName("a"); | |
link = null; | |
for(i=0; i < all_links.length; i++) | |
{ | |
link = all_links[i]; | |
is_my_link = link.id == "link_to_worksforme"; | |
if ( is_my_link ) | |
{ |
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
$(document).ready(function(){ | |
$("#link_to_worksforme_jquery").click(function() | |
{ | |
window.open('http://worksforme.com.br', 'poopup', | |
'toolbar=no, width=300, height=300, statusbar=no'); | |
return false; | |
}); | |
}); |
OlderNewer