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
<Window x:Class="OxyPlotWpfTests.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:oxy="http://oxyplot.org/wpf" | |
xmlns:oxyPlotWpfTests="clr-namespace:OxyPlotWpfTests" | |
Title="MainWindow" Height="350" Width="525"> | |
<Window.Resources> | |
<oxyPlotWpfTests:MainWindowViewModel x:Key="MainWindowViewModel" /> | |
<oxyPlotWpfTests:CustomDataPointConverter x:Key="CustomDataPointConverter"/> | |
</Window.Resources> |
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
#ifndef __HAGE_HPP__ | |
#define __HAGE_HPP__ | |
class NotifierA | |
{ | |
public: | |
virtual void notifyA() = 0; | |
}; | |
class NotifierBC |
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
Function truncDate(t As Date) As Date | |
truncDate = TimeSerial(Hour(t), Minute(t), 0) | |
End Function | |
Function findTime(r As Long, c As Long) As Long | |
findTime = Application.WorksheetFunction.Match(CDbl(truncDate(Cells(r, c))), Range("2:2"), 1) | |
End Function | |
Sub t() | |
Dim cs As Long |
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
Option Explicit | |
Private JiraService As New MSXML2.XMLHTTP60 | |
Private JiraAuth As New MSXML2.XMLHTTP60 | |
Private sCookie | |
Const sJIRAUserID = "" | |
Const sJIRAPass = "" | |
Const url = "https://<name>.atlassian.net/rest/" | |
Private Sub Class_Initialize() | |
Dim sErg |
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
#pragma once | |
#include "Singleton.hpp" | |
using namespace std; | |
struct Listner | |
{ | |
public: | |
Listner() {} | |
virtual ~Listner(){} |
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 <iostream> | |
#include <iomanip> | |
#include <cstdint> | |
using namespace std; | |
template <typename T> | |
class Singleton | |
{ | |
protected: |
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
#pragma once | |
#include <cstdint> | |
#include "Observer.hpp" | |
// 継承でStrategy部を自分で実装する。 | |
// judgeを自分で持っているのでポインタ経由での関数呼び出しが一回減っている。 | |
class ChangeDetectionObserver : public Observer | |
{ | |
public: | |
ChangeDetectionObserver() :count_(){} |
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
push ebp | |
mov ebp, esp | |
mov edx, DWORD PTR _b$[ebp] | |
mov ecx, DWORD PTR _r$[ebp] | |
movzx eax, WORD PTR [edx+8] | |
mov WORD PTR [ecx], ax | |
movzx eax, WORD PTR [edx+40] | |
mov WORD PTR [ecx+2], ax | |
movzx eax, WORD PTR [edx+72] | |
mov WORD PTR [ecx+4], ax |
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
//maskの右辺値はコンパイル時に決められるから計算コスト不要であることを期待 | |
class Select0 | |
{ | |
public: | |
bool operator()(int bitPos, uint32_t dword) | |
{ | |
uint32_t mask = 0; | |
switch (bitPos) | |
{ | |
case 1: mask = 1<<0; break; |
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 <string> | |
#include <iostream> | |
#include <chrono> | |
#include <cstdint> | |
#include <cmath> | |
using namespace std; | |
void checkDiff(uint32_t l, uint32_t r, bool isLeftBigger) | |
{ |
NewerOlder