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 NUnit.Core; | |
using NUnit.Framework.Constraints; | |
namespace oneshore.qa.testrunner | |
{ | |
class TestRunner | |
{ | |
public static void Main(String[] args) | |
{ |
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
<?php | |
// usage: cat urls.txt | php checklinks.php --use-curl | |
// initialize results arrays | |
$valid_links = array(); | |
$invalid_links = array(); | |
// check command line option whether to use curl (prefered method) |
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 java.math.BigDecimal; | |
public class MoneyUtil { | |
public static int DECIMAL_PLACES = 2; | |
public static int ROUNDING = BigDecimal.ROUND_HALF_UP; | |
// convert | |
public static BigDecimal decimal(int value) { |
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 org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebDriverBackedSelenium; | |
import org.openqa.selenium.firefox.FirefoxDriver; | |
import com.thoughtworks.selenium.Selenium; | |
public class SeleniumCheckboxExample { | |
public static void main(String[] args) | |
{ |
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 TDAPIOLELib; | |
namespace oneshore.qcintegration.examples | |
{ | |
class RunTestSet | |
{ | |
public static void Main() | |
{ | |
String qcUrl = "http://localhost:8080/qcbin"; |
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 TDAPIOLELib; | |
namespace oneshore.QCIntegration.Examples | |
{ | |
public class CreateBug | |
{ | |
public static void Main() | |
{ | |
String qcUrl = "http://localhost:8080/qcbin"; | |
String qcDomain = "oneshore"; |
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
Show hidden characters
{ | |
"cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css", "--style", "expanded", "--stop-on-error", "--no-cache"], | |
"selector": "source.sass, source.scss", | |
"line_regex": "Line ([0-9]+):", | |
"osx": | |
{ | |
"path": "/usr/local/bin:$PATH" | |
}, |
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
# this is really just an interface, but python doesn't really have interfaces | |
class PaymentProcessor(): | |
def make_payment(self, payment_info, amount): | |
raise NotImplementedError() | |
#any other helper methods & properties | |
# this technically implements payment processor, but doesn't do anything -- used for testing | |
class MockPaymentProcessor(PaymentProcessor): |
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( $ ) { | |
$.fn.simulateDragDrop = function(options) { | |
return this.each(function() { | |
new $.simulateDragDrop(this, options); | |
}); | |
}; | |
$.simulateDragDrop = function(elem, options) { | |
this.options = options; | |
this.simulateEvent(elem, options); | |
}; |
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
$username = $(Get-ChildItem Env:USERNAME).value | |
$password = $(Get-ChildItem Env:PASSWORD).value | |
$credentials = "$username`:$password" | |
$encodedCredentials = ` | |
[System.Convert]::ToBase64String( ` | |
[System.Text.Encoding]::ASCII.GetBytes($credentials)) | |
Invoke-WebRequest ` | |
-Uri https://api.example.com/some/endpoint ` |
OlderNewer