This file contains hidden or 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
.circle{ | |
background-color: #999; | |
background: #cccccc; | |
height: 100px; | |
width: 100px; | |
text-align:center; | |
vertical-align:middle; | |
border-radius: 50%; | |
-moz-border-radius: 50%; | |
-webkit-border-radius: 50%; |
This file contains hidden or 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
body { | |
background:black; | |
} | |
/*-- 上記以外 -*/ | |
@media screen and (max-width: 1024px) { | |
body { | |
background-color:olive; | |
} | |
} | |
/*-- 768px以下はタブレット&スマホ 基本これのみでよさそう--*/ |
This file contains hidden or 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 lang="jp"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script> | |
(function( $ ){ | |
$.fn.kusa = function() { | |
var windowWidth = $(window).width(); |
This file contains hidden or 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 lang="jp"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script> | |
(function( $ ){ | |
$.fn.www = function() { | |
var windowWidth = $(window).width(); |
This file contains hidden or 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
Array.prototype.indexOf = function(target){ | |
for(var i = 0; i < this.length; i++){ | |
if(this[i] === target){ | |
return i; | |
} | |
} | |
return -1; | |
} | |
function timeChangeAmPm(data){ |
This file contains hidden or 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
:%s /\(\$("#[a-zA-Z\s\S0-9]*")\.val()\).trim()/Trim(\1)/g |
This file contains hidden or 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
<!--demo page http://160.16.97.177/codetest/scrollTable.html--> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
sizeChange(); | |
$( window ).resize(function(){ | |
sizeChange(); |
This file contains hidden or 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 "hello,world!!"; |
This file contains hidden or 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
@echo off | |
set num=0 | |
set str=www | |
for /L %%i in (1,1,300) do ( | |
set /A num=num+1 | |
mkdir %str%%%i | |
) |
This file contains hidden or 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
"-nargas = 0 引数なし | |
"-nargas = 1 1個の引数 | |
"-nargas = * 複数 | |
"-nargas = ? 0 or 1 | |
command! -nargs=0 JsTemp call s:JsTemp() | |
command! -nargs=0 ClangTemp call s:ClangTemp() | |
command! -nargs=0 PhpTemp call s:PhpTemp() | |
command! -nargs=* SqlTemp call s:SqlTemp(<f-args>) | |
" @brief:Jsテンプレ出力 |