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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
tcget.py | |
Kosei Moriyama <cou929@gmail.com> | |
''' | |
import BeautifulSoup |
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
#!/usr/bin/env ruby | |
require 'date' | |
require 'mustache' | |
require 'stringex' | |
require 'cgi' | |
require 'fileutils' | |
export = File.open(ARGV[0]) | |
target_dir = ARGV[1] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
// for caching | |
(new Image()).src = 'http://upload.wikimedia.org/wikipedia/commons/2/23/1x1.GIF?a=1'; | |
</script> | |
</head> | |
<body> | |
<div> |
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
<!DOCTYPE html> | |
<head> | |
<title>Cookie restriction tester</title> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="tester.js"></script> | |
</head> | |
<body> | |
<div id="max_cookie_count_per_domain"></div> | |
<div id="max_cookie_count_per_domain_warning"></div> | |
<div id="ext"></div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>localStorage and privacy setting sample</title> | |
</head> | |
<body> | |
<div id="result"></div> | |
<script> | |
(function() { | |
var key = 'localstorage_test_item', |
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
<html> | |
<body onload="onload()"> | |
<img src="http://please-sleep.cou929.nu/images/twitter-48.png?normal"/> | |
<iframe src="./test.html?noraml"></iframe> | |
<script src="./test.js?noraml"></script> | |
<script> | |
// img | |
(new Image()).src = 'http://please-sleep.cou929.nu/images/twitter-48.png?dynamic'; |
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
<html> | |
<body> | |
<script> | |
var iframe = document.createElement('iframe'); | |
document.body.appendChild(iframe); | |
var iframe_doc = iframe.contentWindow.document; | |
iframe_doc.write('<html><body><sc' + 'ript>alert(window.location.hash)</sc' + 'ript></body></html>'); | |
</script> | |
</body> | |
</html> |
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
use strict; | |
use warnings; | |
my @lines = <>; | |
print convert( join '', @lines ); | |
sub convert { | |
my $text = shift; | |
$text =~ s/\r//g; |
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(define) { | |
define([], function() { | |
'use strict'; | |
var ColorSpace = function() {}; | |
ColorSpace.prototype.HSVtoRGB = function(h, s, v) { | |
var r, g, b; | |
while (h < 0) { |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
use File::Find::Rule; | |
use File::Basename; | |
my $STATE_OK = 0; | |
my $STATE_WARNING = 1; |