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.
View style.css
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; |
View config.ts
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 = { |
View run
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' | |
} |
View run.sh
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' | |
} |
View make-table.sh
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}' \ |
View frame-size.ne
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 %} |
View index.js
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
const params = U.view(['search', searchParamsL], location) | |
const search = U.atom(params.get().search || '') | |
const debouncedSearch = U.debounce(300, search) | |
debouncedSearch | |
.onValue(q => params.modify( | |
q ? R.assoc('search', q) : R.dissoc('search') | |
)) | |
const items = U.thru( | |
debouncedSearch, |
View ch9-exercise.hs
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
split :: Char -> String -> (String, String) | |
split c str = (start, rest) | |
where start = takeWhile (/= c) str | |
rest = dropWhile (== c) $ dropWhile (/= c) str | |
myWords :: String -> [String] | |
myWords [] = [] | |
myWords str = start : (myWords rest) | |
where (start, rest) = split ' ' str |
NewerOlder