This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'zlib' | |
str = <<"EOS" | |
_人人人人人人人人人_ | |
> < | |
> 突然の無駄ァ!!! < | |
> < | |
 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄ | |
/ ̄|「 ̄ ̄ ノ} __,ノ ト、_/凵廴/L | |
/{ ll / (_{__ (_} 人∨}/{ヽ }N、 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if "%1" equ "add" ( | |
if "%2" neq "" ( | |
echo %2 >> "%USERPROFILE%\.peco-cd" | |
goto end | |
) | |
goto usage | |
) | |
if "%1" equ "edit" ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Open(Entity parent, Uri baseUri) | |
{ | |
// (snip...) | |
try | |
{ | |
// e = Encoding.GetEncoding(charset); | |
e = Encoding.GetEncoding(charset, new EncoderReplacementFallback(""), new DecoderReplacementFallback("")); | |
} | |
catch (ArgumentException) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XDocument xml; | |
using (var sgml = new SgmlReader() | |
{ | |
Href = url, | |
IgnoreDtd = true, | |
}) | |
{ | |
xml = XDocument.Load(sgml); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Wow64FsRedirectionService | |
{ | |
typedef BOOL ( WINAPI *fpWow64DisableWow64FsRedirection )( LPVOID* ); | |
typedef BOOL ( WINAPI *fpWow64RevertWow64FsRedirection )( LPVOID ); | |
public: | |
Wow64FsRedirectionService() | |
: m_lpOldVar( nullptr ) | |
, m_fpWow64DisableWow64FsRedirection(nullptr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DelayFunkJr::spinning_toe_hold(1000, [](){ | |
::MessageBox( 0, _T("いきてるってなーんだろ"), MB_OK); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// チェックをすべてパスした時に、特定の処理をおこなう。 | |
// チェックが失敗したあとも、特定の処理をおこなう。 | |
bool gotoHeaven() | |
{ | |
if(!check1()) | |
{ | |
// do something... | |
goto HELL; |
NewerOlder