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
import static com.google.common.collect.Collections2.transform; | |
import java.util.Collection; | |
import java.util.HashSet; | |
import java.util.Set; | |
import com.google.common.base.Function; | |
import com.google.common.collect.Lists; | |
import com.google.common.collect.Sets; |
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
#! /usr/bin/osascript | |
set _count to 0 | |
if not (application "Mail" is running and application "Yojimbo" is running) then | |
return | |
end if | |
tell application "Mail" | |
repeat with _account in accounts | |
try | |
set _inbox to _account's mailbox "Inbox" |
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
>>> [ (e.id, e.title) for e in Entry.objects.all() if e.status == Entry.STATUS_LIVE ] | |
[(5, u'Test Entry 2'), (3, u'Test Title 0')] |
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
on run {input, parameters} | |
set thePrefix to "" | |
set defectTitle to "Default Defect Title" | |
set theIcon to note | |
repeat | |
display dialog thePrefix & "Please enter a defect title for " & input & " : " default answer defectTitle with icon theIcon | |
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
set smtp_url="smtp://localhost:25" | |
set pop_host="pop://localhost:110" | |
set pop_user=me | |
set pop_pass=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
#!/usr/bin/env groovy | |
import groovy.json.* | |
/** | |
* calculate the maximum value returned from the closure | |
* for the given collection. | |
*/ | |
def maxLength(collection, closure) { | |
collection.inject(0) { acc,val -> Math.max(acc, closure(val)) } |
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
sdtxs01@sdtxs01-MS-7366:~/Dropbox/Strayer/CIS328/chapter_9_1$ src/chapter_9_1 | |
Please enter the name of the file | |
COPYING | |
Results for COPYING | |
=============================================== | |
Characters :35148 | |
Words :5644 | |
Lines :675 | |
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
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec | |
Results : | |
Tests run: 66, Failures: 0, Errors: 0, Skipped: 0 | |
Cobertura: Error reading file E:\hudson\workspace\tankcarcoc-dev\source\core\target\cobertura\cobertura.ser: null | |
Cobertura: Loaded information on 54 classes. | |
Cobertura: Coverage data file E:\hudson\workspace\tankcarcoc-dev\source\core\target\cobertura\cobertura.ser either does not exist or is not readable. Creating a new data file. | |
Cobertura: Saved information on 1 classes. |
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
EquipmentIdRange = jook.eqp.EquipmentIdRange; | |
EquipmentParser = jook.eqp.EquipmentParser; | |
ExampleTest = TestCase("ExampleTest"); | |
ExampleTest.prototype.testAdjacent_T1 = function() { | |
var r1 = new EquipmentIdRange("BNSF",1,10); | |
var r2 = new EquipmentIdRange("BNSF",11,12); | |
var r3 = new EquipmentIdRange("BNSF", 20,21); | |
assertTrue(r1.isAdjacentTo(r2)); |