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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="jquery.rightClick.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('#content').offset({top: $('#view_window').width() / 2, left: $('#view_window').height() / 2}); | |
$('#view_window').click(function(event) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="jquery-ui.js"></script> | |
<script type="text/javascript" src="jquery.rightClick.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
var zoom_ratio = 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="jquery.rightClick.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
var zoom_ratio = 1; | |
//set original coords |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="jquery.js"></script> | |
<script type="text/javascript" src="jquery-ui.js"></script> | |
<script type="text/javascript" src="drop_test.js"></script> | |
<style> | |
#ans_container { | |
width: 400px; | |
height: 400px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript' src='jquery.js'></script> | |
<script type='text/javascript'> | |
//which is called early, ajaxStop or load? | |
$(function() { | |
$('#log').ajaxStop(function() { | |
$(this).text('trigger ajaxStop'); | |
alert($('#result').text()); //this method is later |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript' src='jquery.js'></script> | |
<script type='text/javascript'> | |
$(function() { | |
alert($('div').filter('.hide').text()); | |
alert($('div').find('.hide').text()); | |
}); | |
</script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript' src='jquery.js'></script> | |
<script type='text/javascript'> | |
$(function() { | |
//invoke here when dom is ready | |
alert($('#main').text()); | |
}); | |
</script> |
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
for each(var o:* in sprite.getChildren()) { | |
if(o as MyClass) { | |
trace('here!'); | |
} | |
} |
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
use strict; | |
use GD::Graph::bars; | |
use Path::Class qw(dir); | |
my $dir = dir('.'); | |
my $handle = $dir->open; | |
while (my $file = $handle->read) { | |
next unless $_ =‾ /log$/; |
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
package MatchScraper; | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use HTML::TreeBuilder::XPath; | |
my $tree = HTML::TreeBuilder::XPath->new; | |
sub scrape { | |
my $url = shift; |