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
/*! For license information please see extension.js.LICENSE.txt */ | |
(()=>{var e={8348:e=>{const t="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new i}abort(){this.signal.dispatchEvent("abort")}},r="function"==typeof AbortSignal,o="function"==typeof n.AbortSignal,i=r?AbortSignal:o?n.AbortController:class{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(e){if("abort"===e){this.aborted=!0;const t={type:e,target:this};this.onabort(t),this._listeners.forEach((e=>e(t)),this)}}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter((e=>e!==t)))}},s=new Set,a=(e,t)=>{const n=`LRU_CACHE_OPTION_${e}`;u(n)&&d(n,`${e} option`,`options.${t}`,g)},c=(e,t)=>{const n=`LRU_CACHE_METHOD_${e}`;if(u(n)){const{prototype:r}=g,{get:o}=Object.getOwnPropertyDescriptor(r,e);d(n,`${e} method`,`cache.${ |
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
cy.get('canvas[class="cornerstone-canvas"]') | |
.trigger('mousedown', { | |
which:1, | |
force:true | |
}).wait(100) | |
.trigger('mousemove', { | |
x: 50, | |
y: 114, | |
which:1, | |
force:true |
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
test(`check websocket available`, async({}) => { | |
const ws = new WebSocket(`${endpoint.WEBSOCKET_HOST}/example/check`,{ | |
headers: { | |
Cookie: `token=${accessToken}1` | |
} | |
}); | |
ws.on('open', function open(){ | |
ws.send("say something") | |
}) |
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
test(`check websocket available`, async({}) => { | |
await new Promise<void>(done => { | |
const ws = new WebSocket(`${endpoint.WEBSOCKET_HOST}/example/check`,{ | |
headers: { | |
Cookie: `token=${accessToken}` | |
} | |
}); | |
ws.on('open', function open(){ |
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
use std::panic; | |
use rstest::*; | |
fn setup(){ | |
println!("setup 111"); | |
} | |
fn teardown(){ | |
println!("teardown 2222"); |
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
use rstest::*; | |
use std::sync::Once; | |
static INIT: Once = Once::new(); | |
#[fixture] | |
pub fn setup() -> () { | |
INIT.call_once(|| { | |
println!("Hello, world!"); | |
// initialization code here |
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
fn main() { | |
let s1=String::from("ラウトは難しいです!"); | |
let len = calculate_length(&s1); | |
let chars = calculate_characters(&s1); | |
println!("The length of {:?} is {:?}.",s1,len); | |
println!("The number of chars of {:?} is {:?}.",s1,chars); |
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
let input = Command::new("yes") | |
.stdout(Stdio::piped()) | |
.spawn(); | |
let _ = Command::new("gen3-client") | |
.arg("download-single") | |
.args(&["--profile=tysud456", "--guid=c254e7d9-bd10-4f8b-803f-5388de3eba9c","--filename-format=original","--rename"]) | |
.stdin(input.ok().unwrap().stdout.unwrap()) | |
.output().ok() |
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
var geneCSV []string | |
geneCSV = append(geneCSV, geneBackup, strconv.Itoa(geneXML.IdList[0])) | |
data = append(data, geneCSV) |
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
type SymbolSearchXml struct { | |
XMLName xml.Name `xml:"eSearchResult"` | |
Count int `xml:"Count"` | |
RetMax int `xml:"RetMax"` | |
RetStart int `xml:"RetStart"` | |
IdList []int `xml:"IdList>Id"` | |
TranslationSet string `xml:"TranslationSet"` | |
TranslationStack TranslationStackXml `xml:"TranslationStack"` | |
QueryTranslation string `xml:"QueryTranslation"` | |
} |
NewerOlder