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で以下のコードを実行したら、IE7だけ効かなかった | |
$(ui.helper) | |
.find('img') | |
.attr({'width': '100px', 'height': '100px'}) | |
.end() | |
.find('span.count').remove(); | |
// IE7はimgのwidth, heightが変わらない | |
// attr->cssに変更したら解決 |
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
var elm = $('div.hoge'); | |
elm | |
.find('span.count').remove() | |
.end() | |
.css({'z-index': 100, | |
'position': 'absolute', | |
'left': '10px', | |
'top': '20px' | |
}) | |
.find('img') |
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
// 設定されたbackground-imageのurlを無効にする場合 | |
$('#hoge').css('background-image', 'none'); | |
// background-imageのurlを変更する場合 | |
$('#hoge').css('background-image', 'url(test.png)'); |
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
// 画像の先読み | |
var imageList = ['top/a.png', 'top/b.png', 'top/c.png'],l = imageList.length, i = 0; | |
for(; i < l; i++) { | |
$('<img/>')[0].src = imageList[i]; | |
} |
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
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
{parser, uglify} = require 'uglify-js' | |
files = [] | |
# 該当パスのファイルを取得するやつ | |
get_file = (path) -> | |
text = '' | |
stat = fs.statSync(path) | |
if stat.isDirectory() |
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
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
{parser, uglify} = require 'uglify-js' | |
files = [] | |
# 指定されたパスのファイルを取得する | |
get_file = (path) -> | |
text = '' | |
stat = fs.statSync(path) | |
if stat.isDirectory() |
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 | |
echo "test"; | |
echo "fork test.php"; | |
?> |
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> | |
<meta charset="utf-8"> | |
<title>Twitter + OAuth + JavaScript search api test</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
"></script> | |
<script type="text/javascript" src="oauth.js"></script> | |
<script type="text/javascript" src="sha1.js"></script> | |
<script type="text/javascript"> | |
// Twitterオブジェクトのコンストラクタ・プロトタイプ定義 |
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
count = 0 | |
degree = 0 | |
radian = 0 | |
speed = 25 | |
radius = 5 | |
beforeLeft = @targetEnemy.css('left') | |
# centerX = parseInt(@targetEnemy.css('left'), 10) /2 | |
x = (if beforeLeft is 'auto' then 0 else parseInt(beforeLeft, 10)) | |
timer = setInterval(=> | |
if count <= 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
#!/bin/bash | |
# | |
# @(#) download.sh ver.1.0.1 2014.03.12 | |
# | |
# Usage: | |
# download.sh start end dir | |
# start - 取得するファイルの開始番号. | |
# end - 取得するファイルの終了番号. | |
# dir - 保存先ディレクトリ. | |
# isSleep - 1/スリープあり 0/スリープなし |
OlderNewer