This file contains hidden or 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
<system.diagnostics> | |
<trace> | |
<listeners> | |
<add name="myListener" type="Foo.Diagnostics.FooTraceListener,FooTraceListener" /> | |
</listeners> | |
</trace> | |
</system.diagnostics> |
This file contains hidden or 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
static void Main(string[] args) | |
{ | |
Trace.Listeners.Add(new FooTraceListener()); | |
Debug.WriteLine("こんばんは"); | |
} |
This file contains hidden or 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 class FooTraceListener : TraceListener | |
{ | |
public override void Write(string message) | |
{ | |
// どこかに出力する | |
} | |
public override void WriteLine(string message) | |
{ | |
// どこかに出力する |
This file contains hidden or 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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
Trace.Listeners.Add(new TwitterTraceListener()); | |
Debug.WriteLine("こんにちは"); | |
} | |
} |
This file contains hidden or 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
<system.diagnostics> | |
<trace> | |
<listeners> | |
<add name="twitterListener" type="jz5.Diagnostics.TwitterTraceListener,TwitterTraceListener" /> | |
</listeners> | |
</trace> | |
</system.diagnostics> |
This file contains hidden or 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
<system.diagnostics> | |
<trace> | |
<listeners> | |
<add name="twitterListener" type="jz5.Diagnostics.TwitterTraceListener,TwitterTraceListener" | |
consumerKey="**Your_Consumer_Key**" | |
consumerSecret="**Your_Consumer_Secret**" | |
accessToken="**Your_Access_Token**" | |
accessSecret="**Your_Access_Token_Secret**" /> | |
</listeners> | |
</trace> |
This file contains hidden or 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 ($) { | |
$("#target").on("drop", function (evt) { | |
// ファイルをドロップした場合 | |
extractMedia(evt.originalEvent.dataTransfer.files); | |
return false; | |
}).on("dragenter", function () { | |
return false; | |
}).on("dragover", function () { | |
return false; | |
}).click(function () { |
This file contains hidden or 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
DrawingBoard.Board.prototype.downloadImg = function () { | |
var canvas = $("canvas").get(0); | |
var base64 = canvas.toDataURL(); | |
var blob = Base64toBlob(base64); | |
saveBlob(blob, "pronama-chan-tshirt.png"); | |
}; | |
function Base64toBlob(_base64) { | |
var i; | |
var tmp = _base64.split(','); |
This file contains hidden or 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
var myBoard = new DrawingBoard.Board('canvas', { | |
enlargeYourContainer: true, // お絵描きできる部分の大きさを CSS で指定したサイズにする | |
background: 'img/background.png', // 背景画像の設定 | |
controls: [ // 表示するコントロールボタン | |
'Color', | |
'DrawingMode', | |
'Size', | |
'Navigation', | |
'Download' | |
] |
This file contains hidden or 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
<div id="canvas"></div> | |
<style> | |
#canvas { | |
width: 400px; | |
height: 600px; | |
} | |
</style> | |
<script> | |
var myBoard = new DrawingBoard.Board('canvas'); |