Skip to content

Instantly share code, notes, and snippets.

View isshiki's full-sized avatar
🏠
Working from home

Masahiko Isshiki isshiki

🏠
Working from home
View GitHub Profile
@isshiki
isshiki / ListPyPIpackagesInColab.cs
Last active March 14, 2020 06:49
ColabのPyPIパッケージを一覧にするC#コード
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Text.RegularExpressions;
using System.IO;
namespace ConsoleApp1
@isshiki
isshiki / gist:cbaa0af52c5abd5e68ab
Created January 7, 2015 13:29
Visual Studioの検索・置換で、改行を含んでマッチさせるには「((.*\n)+?)」のようにすればよい
例:
検索する文字列:<td width="100%" valign="top"><div class="da-code-bodylines"><code>((.*\n)+?)</code></div></td>
置換する文字列:<td width="100%" valign="top"><div class="da-code-bodylines">$1</div></td>
検索する文字列:<td valign="top"><div class="da-code-numlines"><code>((.*\n)+?)</code></div></td>
置換する文字列:<td valign="top"><div class="da-code-numlines">$1</div></td>
@isshiki
isshiki / gist:5115236
Last active December 14, 2015 16:29
【Word用のVBAマクロ】DA原稿を旧形式から新形式に変換できる。
Sub DA原稿新形式への自動対応()
'
' DA原稿新形式への自動対応 Macro
'
' [あいまい検索 (日)]の外し
Selection.Find.MatchFuzzy = False
' [大文字と小文字を区別する]のチェック
Selection.Find.MatchCase = True
' [半角と全角を区別する]のチェック
Selection.Find.MatchByte = True
@isshiki
isshiki / gist:5115230
Last active December 14, 2015 16:29
【DA編集用のWord向けVBAマクロ】「◆編集前◆ハイパーリンクと脚注と文末脚注の置き換え」と「◆HTML制作前◆太字や赤文字やマーカーなどの一括置換」の2つの機能がある。
Const EditorialHelperVersioning As String = "EditorialHelper 1.0.1"
Private xlApp As Object
Sub ◆編集前◆ハイパーリンクと脚注と文末脚注の置き換え()
' ハイパーリンク
Dim oDoc As Document
Dim oStory As Range
Dim oHlink As Hyperlink