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
| { | |
| "dataSource": { | |
| "sourceType": "csv", | |
| "fileName": "file:///home/frank_dv/Code/Scala/sparkprototypes/dmfrank/sambatest/src/test/resources/data/logit/abalone/abalone_bin.csv" | |
| }, | |
| "modelInfo": { | |
| "modelType": "Logistic", | |
| "responseVariable": { | |
| "name": "LogRings", | |
| "dataType": "String", |
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 org.scalatest.BeforeAndAfterAll | |
| import org.openqa.selenium.WebDriver | |
| import org.openqa.selenium.htmlunit.HtmlUnitDriver | |
| import org.scalatest.FlatSpec | |
| import play.api.test.TestServer | |
| import org.scalatest.Matchers | |
| import play.api.test.Helpers | |
| import org.scalatest.selenium.WebBrowser | |
| import play.api.test.FakeApplication |
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
| "Delete" taggedAs(tag.RolesTag) in { | |
| val request = (FakeRequest(_:String, "/admin/roles/role-bob")) andThen | |
| withAdminCredentials andThen | |
| (route(_:FakeRequest[AnyContentAsEmpty.type])) | |
| for { result <- request(DELETE) } { | |
| status(result) must equal(SEE_OTHER) | |
| flash(result).data must contain key("deleted") | |
| } |
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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <Service_SearchHotel> | |
| <SearchHotel_Response> | |
| <Hotel HotelId="WSMA0911110329" HotelName="Aurum The River Place" Rating="4" Currency="USD" MarketName="Worldwide Market" dtCheckIn="2016-10-14" dtCheckOut="2016-10-15" CancelPolicyId="" InternalCode="CL004-CL002" avail="True"> | |
| <RoomCateg Code="WSMA12010955" Name="SUPERIOR ROOM" NetPrice="70.00" GrossPrice="70.00" CommPrice="0.00" Price="70.00" BFType="ABF"> | |
| <RoomType TypeName="Twin" NumRooms="2" TotalPrice="70.00" avrNightPrice="70.00" RTGrossPrice="70.00" RTCommPrice="0.00" RTNetPrice="70.00"> | |
| <Rate offSet="0" NightPrice="70"> | |
| <RoomRate> | |
| <RoomSeq No="1" AdultNum="2" ChildNum="1" ChildAge1="3" ChildAge2="0" RoomPrice="40.00" MinstayPrice="0.00" CompulsoryPrice="0.00" SupplementPrice="0.00" PromotionBFPrice="0.00" EarlyBirdDiscount="5" CommissionPrice="0.00" sRoomType="COA"/> | |
| <RoomSeq No |
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
| <Service_SearchHotel> | |
| <AgentLogin> | |
| <AgentId>ZMGH</AgentId> | |
| <LoginName>mghz010</LoginName> | |
| <Password>mghz010</Password> | |
| </AgentLogin> | |
| <SearchHotel_Request> | |
| <PaxPassport>MA05110059</PaxPassport> | |
| <DestCountry>MA05110001</DestCountry> | |
| <DestCity>MA05110041</DestCity> |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Service_ViewCancelPolicy> | |
| <ViewCancelPolicy_Response> | |
| <HotelId>WSMA0511000113</HotelId> | |
| <HotelName>Amari Boulevard</HotelName> | |
| <Policies> | |
| <Policy FromDate="2015-05-29" ToDate="2017-12-30"> | |
| <RoomCatgCode Name="DELUXE">WSMA05110034</RoomCatgCode> | |
| <ExCancelDays>7</ExCancelDays> | |
| <ChargeType>Night/Room</ChargeType> |
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
| // Restify Server CheatSheet. | |
| // More about the API: http://mcavage.me/node-restify/#server-api | |
| // Install restify with npm install restify | |
| // 1.1. Creating a Server. | |
| // http://mcavage.me/node-restify/#Creating-a-Server | |
| var restify = require('restify'); |
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
| docker run ruby ruby -e 'loop { fork { fork { sleep 0.1 } } }' |
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "time" | |
| "github.com/hashicorp/yamux" | |
| ) |
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
| #!/bin/bash | |
| # This script keeps watch on the current project and compiles it continuously as you change files. | |
| # If there are multiple projects with the same final directory name (e.g., /proj/rad and /lib/monster/rad), | |
| # this will kill any other similarly-named running projects' binaries, potentially leading to havoc. | |
| # To run, install fswatch, drop this file into your project directory, make it executable, and run: | |
| # /usr/local/bin/fswatch ./ ./continuous-compile.sh | |
| echo "Re-compiling" |