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
/************************************************** | |
* 全角/半角文字判定 | |
* | |
* 引数 : strチェックする文字列 | |
* flg 0:半角文字、1:全角文字 | |
* 戻り値 : true:含まれている、false:含まれていない | |
**************************************************/ | |
function IsFullOrHalf(str, flg) { | |
for (var i = 0; i < str.length; i++) { | |
var c = str.charCodeAt(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
import sys | |
import os | |
import datetime | |
import pyauto | |
from keyhac import * | |
# 追加モジュール | |
import time | |
import re |
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 imgupload | |
import ( | |
"bytes" | |
"encoding/base64" | |
"errors" | |
"fmt" | |
"image" | |
"image/jpeg" | |
"image/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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Multiple file upload</title> | |
<link rel="stylesheet" type="text/css" href="./css/dropzone.css"> | |
<link rel="stylesheet" type="text/css" href="./css/fa-svg-with-js.css"> | |
<script type="text/javascript" src="./js/dropzone.js"></script> | |
<script type="text/javascript" src="./js/fontawesome-all.min.js"></script> |
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
-- 不足しているINDEXを調査します。 | |
-- SQLServerが起動してから、運用している間に不足していると判断されたINDEXです。 | |
-- INDEXを追加する場合は、挿入、更新、削除のクエリで処理速度が悪化するため | |
-- システム全体の影響を確認した上で採用するか判断してください。 | |
SELECT user_seeks * avg_total_user_cost * (avg_user_impact * 0.01) AS index_advantage, | |
migs.last_user_seek AS [前回のseek日時], | |
mid.statement AS [テーブル名], | |
migs.unique_compiles, | |
migs.user_seeks, | |
migs.avg_total_user_cost AS [平均コスト], |
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
static readonly string URL = @"http://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csv"; | |
public Dictionary<DateTime, string> GetHolidays() | |
{ | |
var str = DownloadHolidaysStr(URL); | |
var dic = new Dictionary<DateTime, string>(); | |
// 行区切りが改行のため、改行毎に分割 | |
string[] rows = str.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); | |
// 考え得るフォーマットで変換できるようにしておく |
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
function psmore | |
{ | |
begin | |
{ | |
$scriptCmd = { Out-Host -Paging } | |
$steppablePipeline = $scriptCmd.GetSteppablePipeline() | |
$steppablePipeline.Begin($true) | |
} | |
process |
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 | |
if ! git rev-parse 2> /dev/null; then | |
echo -e "\033[0;31mERROR\033[0;39m: This directory is not git repository \033[0;31m:(\033[0;39m" | |
exit 1 | |
fi | |
Seek() { | |
for DIR in * ; do | |
if [ -d "${DIR}" ]; then |
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
namespace EmailNet | |
{ | |
public class Config | |
{ | |
public EmailConfiguration EmailConfiguration{ get; set; } | |
public EmailMessage EmailMessage{ get; set; } | |
public EmailAddress EmailAddress { get; set; } | |
} | |
} |
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
SELECT [テーブル名] = o.name, | |
[レコード数] = i.rows | |
FROM sysindexes i | |
INNER JOIN | |
sysobjects o | |
ON o.id = i.id | |
WHERE o.xtype = 'U' | |
AND i.indid < 2 | |
AND i.rows > 0 |
NewerOlder