Skip to content

Instantly share code, notes, and snippets.

View memememomo's full-sized avatar
🏠
Working from home

Uchiko memememomo

🏠
Working from home
  • Aichi, Japan
View GitHub Profile
We couldn’t find that file to show.
package Node;
use strict;
use warnings;
my %vars;
sub new {
my $class = shift;
my ($l, $r) = @_;
bless { left => $l, right => $r, op => '?' }, $class;
use strict;
use warnings;
use AnyEvent;
use AnyEvent::Socket;
use AnyEvent::Handle;
my $proxy_port = 8080;
my %conn_table;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DT¥
D/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
canvas {
border: solid 3px #000;
}
<html>
<head>
<title>hogehoge</title>
<script type="text/javascript">
function init() {
var element = document.getElementById('test');
alert('id: ' + element.innerHTML);
var child_list = element.childNodes;
for (var i = 0; i < child_list.length; i++) {
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/\
jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("p#first").html("<strong>変更後</strong>");
})();
</script>
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var pfirst = $("p#first").html();
alert(pfirst);
$("p#first").html("<strong>変更後</strong>");
});
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var pfirst = $("p#first").html();
alert(pfirst);
$("p#first").prepend("<strong>要素内先頭</strong>");
<html>
<head>
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
alert($("input#button").val());
$("input#button").val("変更後");
});
</script>