Skip to content

Instantly share code, notes, and snippets.

View uekkie's full-sized avatar

Hiroshi Ueki uekkie

View GitHub Profile
@uekkie
uekkie / sg-camp.md
Last active November 16, 2023 03:12
2023_SGCamp_環境構築

2023_sg-camp_環境構築

環境

  • Mac
  • GitHubでアカウント作成&アイコン設定
  • Homebrew
  • VS Code
  • XCode
  • bash or zsh
  • rbenvでインストールする
@uekkie
uekkie / ModalExample.vue
Last active October 22, 2021 12:24 — forked from ZainWWF/ModalExample.vue
Vue Example for Bootstrap Modal - Composition API
<template>
<div>
<b-button class="mt-2" variant="outline-warning" block @click="toggleModal">Toggle Me</b-button>
<b-modal ref="myModal" hide-footer title="Using Component Methods">
<div class="d-block text-center">
<h3>Hello From My Modal!</h3>
</div>
<b-button class="mt-3" variant="outline-danger" block @click="hideModal">Close Me</b-button>
</b-modal>
</div>
@uekkie
uekkie / ジョルノ.rb
Created August 28, 2019 08:31
Lobsterstringインスパイア
require 'zlib'
str = <<"EOS"
                            _人人人人人人人人人_
                           >          <
                           >  突然の無駄ァ!!!  <
                           >          <
                            ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄
                         / ̄|「 ̄ ̄ ノ} __,ノ ト、_/凵廴/L
                    /{    ll    / (_{__ (_} 人∨}/{ヽ }N、
@uekkie
uekkie / pcd.bat
Last active December 14, 2016 07:51
peco+cd=pcd コマンド。マルチバイト文字、空白文字含むディレクトリへの対応版
@echo off
if "%1" equ "add" (
if "%2" neq "" (
echo %2 >> "%USERPROFILE%\.peco-cd"
goto end
)
goto usage
)
if "%1" equ "edit" (
@uekkie
uekkie / sgmlparser_decoder_fallback.cs
Last active October 21, 2015 06:09
SgmlParserのデコーダ置換フォールバックを指定する
public void Open(Entity parent, Uri baseUri)
{
// (snip...)
try
{
// e = Encoding.GetEncoding(charset);
e = Encoding.GetEncoding(charset, new EncoderReplacementFallback(""), new DecoderReplacementFallback(""));
}
catch (ArgumentException)
{
@uekkie
uekkie / usage_sgmlreader.cs
Created October 21, 2015 05:40
SGMLReaderToXDocumnet
XDocument xml;
using (var sgml = new SgmlReader()
{
Href = url,
IgnoreDtd = true,
})
{
xml = XDocument.Load(sgml);
}
@uekkie
uekkie / file0.cpp
Created August 18, 2015 05:20
WOW64 のファイル システム リダイレクタを制御するクラス ref: http://qiita.com/hirocueki/items/54e35f9aa1c7137b53cf
class Wow64FsRedirectionService
{
typedef BOOL ( WINAPI *fpWow64DisableWow64FsRedirection )( LPVOID* );
typedef BOOL ( WINAPI *fpWow64RevertWow64FsRedirection )( LPVOID );
public:
Wow64FsRedirectionService()
: m_lpOldVar( nullptr )
, m_fpWow64DisableWow64FsRedirection(nullptr)
@uekkie
uekkie / 1秒後にドリー兄さんの深いお言葉
Created July 31, 2015 10:10
一定時間がたったらメソッド実行。SetTimer/KillTimer内包のDelayFunkJr ref: http://qiita.com/hirocueki/items/55573d2774721d665bca
DelayFunkJr::spinning_toe_hold(1000, [](){
::MessageBox( 0, _T("いきてるってなーんだろ"), MB_OK);
});
@uekkie
uekkie / file2.cpp
Last active August 29, 2015 14:26
条件後入れでウィンドウハンドルを取得できる「WindowExplorerクラス」をつくった ref: http://qiita.com/hirocueki/items/a7fcbadb7d7e562a60b5
#include <functional>
typedef std::function<bool(HWND)> IsMatchedWindow;
typedef std::function<HWND(HWND)> GetMatchedWindow;
class WindowExplorer
{
public:
static HWND Search(IsMatchedWindow _condition, GetMatchedWindow _getter = nullptr)
{
WindowCondition Condition(_condition, _getter);
@uekkie
uekkie / goto-to-dowhile.cpp
Last active August 29, 2015 14:23
gotoをdo while (0)で置換する
// チェックをすべてパスした時に、特定の処理をおこなう。
// チェックが失敗したあとも、特定の処理をおこなう。
bool gotoHeaven()
{
if(!check1())
{
// do something...
goto HELL;