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
using System; | |
using Rhino.Mocks; | |
namespace Samples { | |
internal static class RhinoMocksCreationExtensions { | |
/// <summary>Generates a stub without needing a <see cref="MockRepository"/></summary> | |
/// <param name="argumentsForConstructor">Arguments for <typeparamref name="T"/>'s constructor</param> | |
/// <typeparam name="T">The <see cref="Type"/> of stub to create.</typeparam> | |
/// <returns>The stub</returns> | |
/// <seealso cref="Stub{T}"/> |
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
powershell -NoProfile -ExecutionPolicy RemoteSigned -file $(ProjectDir)\post-command.ps1 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>net.process-one.Ejabberd2</string> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace ClassLibrary2 | |
{ |
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
sudo easy_install pil | |
sudo easy_install reportlab | |
sudo easy_install html5lib | |
sudo easy_install pisa |
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
// | |
// Test by mocha | |
// | |
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | |
var cli = require('../client/js/socket.io'); // Socket.io client module | |
var should = require('should'); | |
// The global.location is necessary |
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
[Test] | |
public void _最初に数字が出たところから末尾までの文字列を返す() { | |
var needle = Enumerable.Range(0, 10).Select(c => (char)('0' + c)).ToArray(); | |
var text1 = "qazxdftyujh6olkmnbgfds"; | |
var i1 = text1.IndexOfAny(needle); | |
var actual1 = i1 >= 0 ? text1.Substring(i1) : ""; | |
Assert.That(actual1, Is.EqualTo("6olkmnbgfds")); | |
var text2 = "qsxcvhikol,kmjbgvf"; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace Sample { | |
[TestFixture] | |
public class EnumerableTest { | |
[Test] |
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
Get-Process -name "MSBuild" | foreach {Stop-Process -id $_.id} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
namespace Common.Test { | |
public static class AssertRequiedExtensions { |