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
import Ember from 'ember'; | |
import hbs from 'htmlbars-inline-precompile'; | |
import connect from 'ember-redux/components/connect'; | |
var stateToComputed = (state) => { | |
return { | |
number: state.number | |
}; | |
}; |
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
namespace App | |
{ | |
class AppPropertyInfo | |
{ | |
public IDisposable Subscription; | |
public string Name; | |
public Func<IDisposable> Subscribe; | |
} | |
class AppCommandInfo |
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
foreach($proc in (ps | Where { $_.name -like "iisexpress"} )) { | |
$iisid = $proc.Id | |
$iis = Get-WmiObject Win32_Process -filter "ProcessId=$iisid" | Where-Object { $_.CommandLine -like "*MyProjectName*" } | Select-Object -first 1 | |
if($iis) { | |
stop-process -force $iis.ProcessId | |
} | |
} |
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
def is_port_open?(ip, port) | |
begin | |
Timeout::timeout(20) do | |
begin | |
s = TCPSocket.new(ip, port) | |
s.close | |
return true | |
rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH | |
return false | |
end |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
namespace $rootnamespace$ | |
{ | |
[TestFixture] | |
public class $safeitemname$ |
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
abstract class MyBaseGebTest extends GebReportingTest { | |
SessionFactory sessionFactory = ApplicationHolder.application.mainContext.sessionFactory | |
def inTransaction(closure) { | |
inNewSession { | |
TransactionRunner.getInstance().runInNewTransaction(closure) | |
} | |
} | |
def inNewSession(closure) { |
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 BasePage extends Page { | |
// use inside content definitions to prevent wait success until the element is displayed | |
static displayed(elem) { | |
(elem?.displayed) ? elem : null | |
} | |
} |