Skip to content

Instantly share code, notes, and snippets.


D*isuke dck-jp

View GitHub Profile
dck-jp / Program.cs
Created Nov 5, 2017
ChromeDriverUpdator .NET(C#)アプリ版
View Program.cs
using Codeplex.Data;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Net.Http;
using System.Text.RegularExpressions;
namespace ChromeDriverUpdator
dck-jp / exifexx.js
Last active Jun 24, 2017
yet another exifex.js (a part of FlickrEx usage: %LensX% -> estimated lens name, %Date and Time \(Original\)% -> Date and Time (Original)
View exifexx.js
var com;
(function (com) {
(function (drikin) {
/// <reference path="../../typings/jquery.d.ts" />
/// <reference path="../flickrex/flickrex" />
(function (ExifEx) {
var flickrex = new com.drikin.FlickrEx.Base();
var exif_format = "%camera% %Focal Length% f/%aperture% ISO %ISO Speed% %Exposure% sec";
var exif_jquery_selector = 'img';
dck-jp / GetSlnDir.csx
Created May 19, 2016
Get SolutionDirectory @ C# Interactive in VS2015
View GetSlnDir.csx
#r "EnvDTE"
var solutionFilePath = ((EnvDTE.DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.14.0")).Solution.FullName;
var solutionDirectory = System.IO.Path.GetDirectoryName(solutionFilePath);
dck-jp / macros.bas
Created Mar 22, 2016
my macros for Word
View macros.bas
Sub 黄色蛍光ペンをひく()
Selection.Range.HighlightColorIndex = wdYellow
End Sub
Sub 装飾解除マクロ()
' 装飾解除マクロ Macro
dck-jp / redirect.js
Created Jan 10, 2016
simple URL Redirect by Javascript
View redirect.js
<script type="text/javascript"><!--
var redirectMap = {
'/2014/09/lightroom.html' : '',
'/2015/04/pentax-da70da15.html' : '',
'/2014/09/k-s1_29.html' : '',
'/2014/11/pentaxian.html' : '',
'/2014/08/pentax-q-s1_28.html' : 'h
dck-jp / CodeFormat.cs
Last active Dec 26, 2015
command line tool of formating codes using VisualStudio
View CodeFormat.cs
using EnvDTE; //Add Reference to EnvDTE
using System;
using System.IO;
using System.Linq;
namespace CodeFormatter
class Program
static void Main(string[] args)
dck-jp / PointDrawing.csx
Created Nov 26, 2015
PointDrawing on Excel
View PointDrawing.csx
#r "System.Drawing"
#r "Microsoft.VisualBasic"
using System;
using System.IO;
using System.Drawing;
using System.Linq;
using Microsoft.VisualBasic;
var imgFile = @"hogehoge.jpg";
var filenameImg = imgFile;
dck-jp /
Last active Aug 29, 2015 — forked from Gab-km/
GitHub Flow (Japanese translation)

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

dck-jp / temp.cs.bat
Last active Aug 2, 2016
Execute C# code directly on Windows by double-clicking the source file
View temp.cs.bat
@echo off
SET OutputCs="TempCs.cs"
SET OutputExe="TempCs.exe"
if exist %OutputCs% goto ExecuteCs
del %OutputCs%
for /f "usebackq skip=20 delims=|" %%i in (%0) do (echo %%i>>%OutputCs%)
pushd %~dp0
FOR /F "TOKENS=1,2,*" %%I IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework" /v "InstallRoot"') DO IF "%%I"=="InstallRoot" SET FrameworkPath=%%K
SET PATH="%PATH%;%FrameworkPath%v4.0.30319\;%FrameworkPath%v3.5;%FrameworkPath%v3.0;"
dck-jp / test.cs
Created Jun 6, 2015
View test.cs
public void JumpFramePage()
var IE = new SHDocVw.InternetExplorer();
IE.Visible = true;
object URL = "";
IE.Navigate2(ref URL);
var doc = IE.Document as mshtml.IHTMLDocument2;
object x = 1;
var window = doc.frames.item(ref x) as mshtml.HTMLWindow2;