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
//JQuery add-on that add an If statement | |
$.fn.ift = function(){ | |
var flag = arguments[0]; | |
var func = arguments[1]; | |
var else_func = arguments[2]; | |
if(flag && $.isFunction(func)){ | |
func.call(this, this); | |
}else if(!flag && $.isFunction(else_func)){ | |
else_func.call(this, this); |
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> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="./spacer.js"></script> | |
</head> | |
<body onload="setSpacer('#FF0000');"> | |
<img src="spacer.js" width=100 height=100 alt=spacer><=This is Spacer!!!! | |
</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
<?php | |
$url = $_GET['u']; | |
if( preg_match('/^http:\/\/[a-zA-Z0-9]{1,5}.twimg.com/',$url) ){ | |
$img = file_get_contents($url); | |
foreach($http_response_header as $head){ | |
if(preg_match('/^Content-Type/',$head)){ | |
header($head); | |
break; | |
} | |
} |
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> | |
<html> | |
<head> | |
<title>iTunes affiliate search API + Audio tag Player</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<h1>iTunes affiliate search API+ Audio tag Player</h1> | |
<script> | |
function load(){ |
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
#!perl | |
# one shot s3 permission changer. | |
# uzulla | |
use strict; | |
use warnings; | |
use utf8; | |
use FindBin; | |
use Data::Dumper; | |
use XML::Simple; |
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>peropero</title> | |
<meta property="og:title" content="peropero"> | |
<meta property="og:image" content="./on.png"> | |
<meta property="og:description" content="peroperoします"> | |
<meta name="description" content="peroperoします"> | |
<script src="http://code.jquery.com/jquery.js"></script> | |
<meta name="viewport" content="width=222"> |
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
package CFE::Image::SimpleGlitch; | |
use Mouse; | |
use File::Slurp; | |
has raw => ( | |
is => "rw", | |
); | |
sub load { | |
my ($self, $filename) = @_; |
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 | |
/* | |
mysql_data_setup.php | |
https://gist.github.com/uzulla/6028743 | |
HOW TO USE | |
========== | |
``` | |
cd ~/mysql-temp # create some dir. | |
php mysql_data_setup.php # make data_dir, create some script and my.cnf |
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
class myChain | |
func_queue: [] | |
index: -1 | |
chain: (func) -> | |
@func_queue.push(func) | |
return @ | |
chainExec: () -> | |
@index++ |
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
### | |
CFEWebDb | |
idがPkey | |
updated_at | |
created_atは必須 | |
トランザクションには非対応 | |
Ver 1.0 20111206 | |
とりあえずできた。 |
OlderNewer