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
setTimeout | |
( | |
StartWatching, | |
100 | |
); | |
function StartWatching() | |
{ | |
$("#someDiv").bind('DOMSubtreeModified',function() { | |
alert('modificou'); |
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
string recebeJSON = ""; | |
using (var client = new WebClient()) | |
{ | |
recebeJSON = client.DownloadString("URL do JSON"); | |
} | |
//transforma a string em objeto | |
JObject _recebeJSON = JObject.Parse(recebeJSON); |
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
@array = 1..100000000 | |
def case0 #### 5s | |
i = Time.now | |
@array.each do |o| | |
# puts "#{o}" | |
end | |
(Time.now - i) | |
end |