Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
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 mut command = Command::new("chromedriver"); | |
command.kill_on_drop(true); // Useful for killing the process in case of a panic | |
command.stdout(Stdio::piped()); | |
let mut child = command.spawn().expect("chromedriver failed to start"); | |
// [...] read stdout etc. | |
child.start_kill()?; | |
child.wait().await?; |
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 itertools::Itertools; | |
use std::fmt; | |
#[derive(Debug)] | |
struct Range { | |
start: i32, | |
end: i32, | |
} | |
impl Range { |
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
/* | |
* Add this custom style on the page https://escapefromtarkov.gamepedia.com/Customs_Interactive_Map | |
* with extension like Stylus to remove all the clutter and view map in fullscreen. | |
*/ | |
.mw-body-content { | |
z-index: initial; | |
} | |
#map { | |
visibility: visible; |
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
function getFromEnv(prop: string): string { | |
const val = process.env[prop] | |
if (val) { | |
return val | |
} else { | |
throw new Error(`Expected ${prop} to exist in env`) | |
} | |
} | |
type Config = { |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
murobbs() { | |
curl -s 'https://murobbs.muropaketti.com/forums/naeytoet-tulostimet-ja-muut-lisaelaitteet.207/index.rss?prefix_id=8' |\ | |
xml2json |\ | |
ramda '.rss.channel.item' 'project [\title, \pubDate, \link]' 'map assoc \source \murobbs' | |
} |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
murobbs() { | |
curl -s 'https://murobbs.muropaketti.com/forums/naeytoet-tulostimet-ja-muut-lisaelaitteet.207/index.rss?prefix_id=8' |\ | |
xml2json |\ | |
ramda '.rss.channel.item' 'project [\title, \pubDate, \link]' 'map assoc \source \murobbs' | |
} |
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
#!/usr/bin/env bash | |
curl -s https://restcountries.eu/rest/v2/all | \ | |
html-table -o \ | |
--cols flag,code,name,population,area,capital,tld,languages \ | |
--col.flag.cell '<div style="text-align: center"><img src="${flag}" height="20" /></div>' \ | |
--col.flag.header '' \ | |
--col.flag.width 50 \ | |
--col.code.width 40 \ | |
--col.code.cell '${alpha2Code}' \ |
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
@{% function nuller() { return null; } %} | |
@{% function joiner(d) { return d.join(''); } %} | |
@{% const R = require('ramda'); %} | |
main -> any frame_size_candidate _ any {% R.nth(1) %} | |
frame_size_candidate -> | |
frame_size_prefix _ ":":? _ frame_size {% R.last %} | |
| frame_size_tshirt "-size"i {% R.head %} | |
| frame_size_tshirt _ "koko"i {% R.head %} |
NewerOlder