Skip to content

Instantly share code, notes, and snippets.

💭
めっちゃ忙しい

D*isuke YAMAKAWA dck-jp

💭
めっちゃ忙しい
  • Osaka, Japan
Block or report user

Report or block dck-jp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dck-jp
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
dck-jp / exifexx.js
Last active Jun 24, 2017
yet another exifex.js (a part of FlickrEx https://github.com/drikin/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
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
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
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' : 'http://blog.lovepenta.xyz/entry/%E3%83%97%E3%83%AD%E3%83%BB%E3%83%8F%E3%82%A4%E3%82%A2%E3%83%9E%E5%90%91%E3%81%91Lightroom_%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E5%8A%B9%E7%8E%87%E7%9A%84%E3%81%AA%E5%86%99%E7%9C%9F%E3%82%BB%E3%83%AC%E3%82%AF',
'/2015/04/pentax-da70da15.html' : 'http://blog.lovepenta.xyz/entry/PENTAX%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%82%A4%E3%82%A4%E8%A9%B1_%E3%81%9D%E3%81%AE%E5%BC%90_%EF%BD%9EDA70%E3%81%A8DA15',
'/2014/09/k-s1_29.html' : 'http://blog.lovepenta.xyz/entry/K-S1_%E3%82%92%E5%86%B7%E9%9D%99%E3%81%AB%E3%81%AA%E3%81%A3%E3%81%A6%E5%86%8D%E5%BA%A6%E3%83%AC%E3%83%93%E3%83%A5%E3%83%BC%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B',
'/2014/11/pentaxian.html' : 'http://blog.lovepenta.xyz/entry/%E3%81%93%E3%81%AE%E9%96%80%E3%82%92%E3%81%8F%E3%81%90%E3%82%8B%E8%80%85%28PENTAXIAN%29_%E3%81%AF%E4%B8%80%E5%88%87%E3%81%AE%E5%B8%8C%E6%9C%9B%E3%82%92%E6%8D%A8%E3%81%A6%E3%82%88',
'/2014/08/pentax-q-s1_28.html' : 'h
@dck-jp
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
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
dck-jp / github-flow.ja.md
Last active Aug 29, 2015 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)
View github-flow.ja.md

GitHub Flow

31 Aug 2011

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

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

@dck-jp
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%)
:ExecuteCs
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
dck-jp / test.cs
Created Jun 6, 2015
SHDocVwSample12
View test.cs
public void JumpFramePage()
{
var IE = new SHDocVw.InternetExplorer();
IE.Visible = true;
object URL = "http://homepage3.nifty.com/abe-hiroshi/";
IE.Navigate2(ref URL);
IE.Wait();
var doc = IE.Document as mshtml.IHTMLDocument2;
object x = 1;
var window = doc.frames.item(ref x) as mshtml.HTMLWindow2;
You can’t perform that action at this time.