Skip to content

Instantly share code, notes, and snippets.

View YasuakiHirano's full-sized avatar
🎮

yasuaki hirano YasuakiHirano

🎮
View GitHub Profile
.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%;
body {
background:black;
}
/*-- 上記以外 -*/
@media screen and (max-width: 1024px) {
body {
background-color:olive;
}
}
/*-- 768px以下はタブレット&スマホ 基本これのみでよさそう--*/
<!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();
<!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();
Array.prototype.indexOf = function(target){
for(var i = 0; i < this.length; i++){
if(this[i] === target){
return i;
}
}
return -1;
}
function timeChangeAmPm(data){
:%s /\(\$("#[a-zA-Z\s\S0-9]*")\.val()\).trim()/Trim(\1)/g
@YasuakiHirano
YasuakiHirano / scrollTable.html
Last active February 10, 2016 12:32
テーブルのデータ行のみスクロールさせる
<!--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();
@YasuakiHirano
YasuakiHirano / hello.php
Created February 1, 2016 14:16
phpでのハローワールド
<?php
echo "hello,world!!";
@echo off
set num=0
set str=www
for /L %%i in (1,1,300) do (
set /A num=num+1
mkdir %str%%%i
)
"-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テンプレ出力