Skip to content

Instantly share code, notes, and snippets.

View dck-jp's full-sized avatar

dck-jp dck-jp

  • Osaka, Japan
View GitHub Profile
@dck-jp
dck-jp / robocopy2
Created December 28, 2013 12:53
robocopy sample bat file w/ logging
set src="F:\Pictures"
set dest="Z:\Pictures"
set logFile="log.txt"
robocopy %src% %dest% /MIR /R:0 /NP /FFT /LOG:%logFile%
set src="F:\Music"
set dest="Z:\Music"
set logFile="log2.txt"
robocopy %src% %dest% /MIR /R:0 /NP /FFT /LOG:%logFile%
@dck-jp
dck-jp / robocopy1
Created December 28, 2013 12:52
robocopy sample bat file
set src="F:\Pictures"
set dest="Z:\Pictures"
robocopy %src% %dest% /MIR /R:0 /NP /FFT
set src="F:\Music"
set dest="Z:\Music"
robocopy %src% %dest% /MIR /R:0 /NP /FFT
shutdown.exe
@dck-jp
dck-jp / hidemaru_fs.mac
Created December 20, 2013 13:34
秀丸でF#を実行するためのマクロ (Macro for executing F# instantly for Hidemaru Editor)
/* F#の実行
実行結果は「アウトプット枠」へ書き出します。
【特徴】
思いついたコードをすぐ試せることを優先しています。
ファイルに保存していないF#を実行できます。
【動作環境】
秀丸エディタ ver8.21 で動作を確認。(ver8 以降なら動くはず。)
@dck-jp
dck-jp / Program.cs
Created March 31, 2013 11:20
Create EXIF Statics with LINQtoCSV library (modified)
using LINQtoCSV;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@dck-jp
dck-jp / ExifMini.cs
Created March 30, 2013 02:38
Create EXIF Statics with LINQtoCSV
using LINQtoCSV;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LINQtoCSVTest
{
class ExifMini
@dck-jp
dck-jp / ExifExtractTest.cs
Created March 26, 2013 16:41
Exiv2を用いてExifを出力するテスト
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
@dck-jp
dck-jp / OppaiAnalysis.cs
Created February 18, 2013 14:12
OppaiAnalysis Rev.2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OppaiAnalysis
{
static class OppaiAnalysis
{
static public double cupDiameterFromUnderbustAndCup(double under, string cup)
@dck-jp
dck-jp / debuild.bat
Created November 15, 2012 03:57
Debuild vba code from Excel/Word biary files by vbac.wsf
cd %~dp0
cscript vbac.wsf decombine
@dck-jp
dck-jp / Renumbering.bas
Created October 22, 2012 09:26
Renumbering paragraph numbers etc.. of Japaneaase patent documents
'各種番号振りなおしマクロ
' Created By D*suke YAMAKWA
' last modified : 12/10/16
'
'段落番号の振りなおし部分(RenumberingParagraph)に関して
' original code : 段落番号置換マクロ 03/08/23 By 岡田
' modified By D*suke YAMAKWA
'
'【マクロの概要】
' 1. 文書中の@を段落番号に置き換えた後、
@dck-jp
dck-jp / reboot.cs
Created October 6, 2012 09:59
Reboot/ Shutdown / Suspend on Windows8 By using C#
using System.Diagnostics;
namespace Reboot
{
class Program
{
static void Main(string[] args)
{
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "shutdown.exe";