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 p : Option<&'W String>; | |
{ | |
let mut map = Map::new(); | |
// fully qualified paths which give explicit lifetime notation | |
Map::insert(&'X mut map, 'a', format!("alpha")); | |
p = Map::get(&'Y map, &'Z 'a') | |
} | |
println!("key for 'a' is {:?}", p); |
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
$oracleList = | |
@([pscustomobject]@{odata="OraclePrinter1"; uuid="100"}, | |
[pscustomobject]@{odata="OraclePrinter2"; uuid="200"}, | |
[pscustomobject]@{odata="OraclePrinter3"; uuid="300"}) | |
$mysqlList = | |
@([pscustomobject]@{sqldata="MySqlPrinter1"; uuid="100"}, | |
[pscustomobject]@{sqldata="MySqlPrinter2"; uuid="200"}, | |
[pscustomobject]@{sqldata="MySqlPrinter3"; uuid="300"}) |
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
wspfiles=$(find $1 -name "lower.wsp" -o -name "upper.wsp" -o -name "p95.wsp" -o -name "p99.wsp" -o -name "p50.wsp" -o -name "count.wsp" -o -name "mean.wsp" -o -name "stdev.wsp" -o -name "sum.wsp" -o -name "rate.wsp" -o -name "sum_sq.wsp" -o -name "median.wsp" -o -name "sample_rate.wsp") | |
for f in $wspfiles; do | |
name=$(basename "$f") | |
method=$(whisper-info.py $f aggregationMethod) | |
status="" | |
case "$name" in | |
lower.wsp) | |
if [[ "$method" == "min" ]]; then |
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
node("ECS/node") { | |
deleteDir() | |
checkout scm | |
sh "node scripts/yarn-0.18.1.js install --mutex network" | |
} |
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 proxy_stream = stream.map(|(addr, msg)| { | |
let s = String::from_utf8_lossy(&msg); | |
// for each line in s | |
// split on first dot | |
// filter out anything that's not a valid token | |
// get the second tuple element out | |
// collect back into a vector of strings | |
let (valid, invalid): (Vec<(&str, &str)>, Vec<(&str, &str)>) = s.lines().map( |l| split_once(&l) ).partition( |&p| valid_tokens.contains_key(&*p.0) ); | |
let valid_stat_bytes : Vec<u8> = valid.iter().map( |t| t.1 ).collect::<Vec<&str>>().join("\n").into_bytes(); |
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
$headers = @{} | |
$jsoncontent = Get-Content -Raw -path jsonfile.json | ConvertFrom-Json | |
$jsoncontent.psobject.properties | foreach { $headers[$_.Name] = $_.Value } |
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
birryree >> ~ >> code >> Cabinet.Next >> ./build.sh | |
Feeds used: | |
/Users/birryree/.local/share/NuGet/Cache | |
/Users/birryree/.nuget/packages/ | |
https://www.myget.org/f/dotnet-core | |
https://www.nuget.org/api/v2/ | |
All packages listed in /Users/birryree/code/uploads/Cabinet.Next/tools/packages.config are already installed. | |
Analyzing build script... | |
Processing build script... |
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
{ | |
"requiresAttributes": [ | |
{ | |
"value": null, | |
"name": "com.amazonaws.ecs.capability.ecr-auth" | |
}, | |
{ | |
"value": null, | |
"name": "com.amazonaws.ecs.capability.task-iam-role" | |
} |
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
> clang++ -ftime-report bigx.cxx | |
===-------------------------------------------------------------------------=== | |
Miscellaneous Ungrouped Timers | |
===-------------------------------------------------------------------------=== | |
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- | |
0.0097 ( 57.7%) 0.0013 ( 42.3%) 0.0110 ( 55.4%) 0.0111 ( 55.6%) LLVM IR Generation Time | |
0.0071 ( 42.3%) 0.0017 ( 57.7%) 0.0089 ( 44.6%) 0.0089 ( 44.4%) Code Generation Time | |
0.0169 (100.0%) 0.0030 (100.0%) 0.0199 (100.0%) 0.0200 (100.0%) Total |
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
#!/bin/bash | |
source $NVM_DIR/nvm.sh | |
nvm exec 5.9.1 node --version |