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 message = tweet.id_str + " @" + tweet.user.screen_name + ' ' + tweet.text |
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
if (tweet.text.match(/^RT/)) return | |
bot.privmsg('#sandyaid', tweet.id_str + " @" + tweet.user.screen_name + ' ' + tweet.text) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>001A</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
</head> | |
<body> | |
<input type="button" name="my-button" id="my-button" value="CLICK ME" /> | |
<p>You have clicked <span id="click-count"></span> times.</p> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>001A</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
</head> | |
<body> | |
<input type="button" name="my-button" id="my-button" value="CLICK ME" /> | |
<p>You have clicked <span id="click-count"></span> times.</p> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>001A</title> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script src="./clickIncrementModule.js"></script> | |
<script src="./clickDecrementModule.js"></script> | |
</head> | |
<body> | |
<input type="button" name="my-button" id="my-button" value="CLICK ME" /> |
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 Adder { | |
public int AddTwoRandomNumbers() { | |
var generator = new RandomNumberGenerator(); | |
var firstInt = generator.Generate(); | |
var secondInt = generator.Generate(); | |
return firstInt + secondInt; | |
} | |
} | |
public class RandomNumberGenerator { |
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 Adder { | |
private IRandomNumberGenerator _generator; | |
public Adder(IRandomNumberGenerator generator) { | |
_generator = generator; | |
} | |
public int AddTwoRandomNumbers() { | |
var firstInt = _generator.Generate(); | |
var secondInt = _generator.Generate(); |
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 NUnit.Framework; | |
using Moq; | |
[TestFixture] | |
public class AdderTests { | |
[Test] | |
public void TestThatAdderCorrectlyAddsTwoNumbers() | |
{ | |
//arrange | |
var generator = new Mock<IRandomNumberGenerator>(); |