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
miua$ rvm use 1.8.7-p357 | |
Using /Users/miua/.rvm/gems/ruby-1.8.7-p357 | |
miua$ rvm info | grep MY_RUBY_HOME | |
MY_RUBY_HOME: "/Users/miua/.rvm/rubies/ruby-1.8.7-p357" | |
miua$ export | grep MY_RUBY_HOME | |
declare -x MY_RUBY_HOME="/Users/miua/.rvm/rubies/ruby-1.8.7-p357" | |
miua$ rvm use 1.9.3-p0 |
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
javascript : (function () | |
{ | |
var d = document; | |
var t = d.getElementById('textarea').style; | |
var p = d.getElementById('preview').style; | |
document.getElementsByClassName('tab-preview')[0].childNodes[0].onclick = function () | |
{ | |
document.getElementsByClassName('ui-tabs-selected')[0].className = 'tab-edit ui-state-default ui-corner-top'; | |
}; | |
t.width = "39%", t.float = "left", t.display = "block", p.width = "60%", p.float = "right", p.display = "block"; |
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
casper = require('casper').create | |
verbose: true | |
logLevel: "debug" | |
clientScripts: ["../lib/jquery-1.7.1.min.js"] | |
pageSettings: [loadImages:false] | |
onError: -> | |
@echo arguments | |
#for i in [1..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
javascript:(function(){var str=prompt('テスト文字列を入力して下さい。',"<script>alert('XSS');</script>");if(str!=""&&str!=null){var text=document.getElementsByTagName("input");for(var i=0,l=text.length;i<l;i++){if(text[i].type=='text'){text[i].value=str}}var textarea=document.getElementsByTagName("textarea");for(var i=0,l=textarea.length;i<l;i++){textarea[i].value=str}}}()) |
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
javascript:(function(){javascript:(function(){var src_url = 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js';var notice_style ='position:fixed;'+'z-index:10000;'+'top:0;'+'left:0;'+'background-color:red;'+'color:white;'+'padding:10px;'+'margin:10px;'+'font:bold 16px sun-serif;';var s=document.createElement('script');s.setAttribute('src',src_url);document.getElementsByTagName('body')[0].appendChild(s);var id = window.setInterval(function(){if (window['jQuery'] &&window['jQuery']['fn'] &&window['jQuery']['fn']['offset']){window.clearInterval(id);$('<div style=\''+notice_style+'\'><p>jQuery '+ jQuery.fn.jquery+' Loaded!<p></div>').appendTo('body').animate({opacity:1},2000).animate({opacity:'hide'},500,function(){jQuery(this).remove();});}},100);})();})(); |
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
<?php | |
$startTime = microtime(true); | |
// 処理 | |
//for ($i = 0; $i < 10000; ++$i) | |
//{ | |
//} | |
echo PHP_EOL . PHP_EOL; | |
echo '>>> result >>>>>>>>>>>>>>>>>>>>>>>>>>>' . PHP_EOL; | |
echo "process time: " . (microtime(true) - $startTime) . ' ms' . PHP_EOL; |
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
<?php | |
// フロントコントローラとかに仕込む | |
xhprof_enable(); | |
// 処理 | |
$xhprof_data = xhprof_disable(); |
OlderNewer