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
#Unit test that is failing. | |
class Test_BuildApp(unittest.TestCase): | |
def test_isNotApp(self): | |
build_fail = build.BuildApp(self.test_app_fail_path) | |
self.assertRaises(build.BuildAppException, build_fail.isApp()) | |
# Code it is testing (in build.py) | |
class BuildApp: | |
def isApp(self): | |
if "/" in self.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
fluidDB.put({ | |
url: 'about/' + encodeURIComponent(sender.tab.url) + '/jeterfilter/contains-jeter', | |
payload: Math.round(((new Date()).getTime()-Date.UTC(1970,0,1))/1000), | |
async: false, | |
username: fluidDBUsername, | |
password: fluidDBPassword, | |
success: function(json) { | |
console.log('URI tagged as containing Jeter.'); | |
} | |
}); |
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 | |
class LaurenLeto extends PatrickMoberg { | |
public function doWork($ideas) { | |
$i = 0; | |
foreach ($ideas as $idea) { | |
$this->writeCode($idea); | |
if ($i >= 4 ) { | |
$this->highFive(); | |
$i = 0; |
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
$arr = array('416...','647...','905..'); | |
if (isset($_REQUEST['index'])) { | |
$index = $_REQUEST['index']; | |
} else { | |
$index = 0; | |
} | |
$next = $index + 1; |
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 | |
$number = $_REQUEST['From']; | |
$body = $_REQUEST['Body']; | |
$call = $client->account->calls->create( | |
$from, | |
$number, | |
'http://path/to/your/callback.php?body=' . $body | |
); |
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 | |
$number = $_REQUEST['number']; | |
echo "I received this - From: ".$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
<Response> | |
<Dial timeLimit="600"> | |
<Conference startConferenceOnEnter="true"> | |
1234 | |
</Conference> | |
</Dial> | |
</Response> |
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 | |
// This is the Voice Request URL to start the conference. | |
require_once('path/to/Services/Twilio.php'); | |
$ACCOUNT_SID = 'ACxxxxxxxxxxxxxxxxxxxx'; | |
$AUTH_TOKEN = 'yyyyyyyyyyyyyyyyyyyyyyy'; | |
$CALLER_ID = '+1aaabbbcccc'; |
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
<Response> | |
<Dial><Conference>Example</Conference></Dial> | |
</Response> |
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
<Response> | |
<Gather numDigits="3" action="/digits.php"> | |
<Say>Enter more than 3 digits.</Say> | |
</Gather> | |
</Response> |
OlderNewer