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
let input = strftime("%A")."\n". | |
\strftime("%Y/%m/%d")."\n". | |
\strftime("%B") | |
let pos = getpos(".") | |
execute ":normal a" . input | |
call setpos('.', pos) |
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
SET SERVEROUTPUT ON | |
DECLARE | |
vstr varchar2(256):= 'ヒラノ'; | |
BEGIN | |
IF (REGEXP_LIKE(vstr, '^([ヲ-゚]|[0-9A-Za-z])*$')) THEN | |
dbms_output.put_line('OK'); | |
ELSE | |
dbms_output.put_line('NG'); | |
END IF; | |
END; |
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
command! -nargs=* StrCnt call s:StrCnt(<f-args>) | |
" def:文字列に連番を付ける | |
" param: str 文字列 | |
" param: num 最大値 | |
function! s:StrCnt(str, num) | |
let i = 0 | |
let input = "" | |
while i < a:num | |
let input .= a:str.i."\n" |
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テンプレ出力 |
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
<?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
<!--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
:%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
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
<!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(); |