-
- 2.5 µg = 100 I.U.
- [[Tolerable Upper Intake Level]]
- UK
- https://www.gov.uk/government/publications/vitamin-d-supplements-how-to-take-them-safely/vitamin-d-supplements-how-to-take-them-safely
- 100 micrograms (µg) equivalent to ^^4,000 international units^^) per day is considered safe.
- https://www.gov.uk/government/publications/vitamin-d-supplements-how-to-take-them-safely/vitamin-d-supplements-how-to-take-them-safely
- US
- 9+ years:100 µg/d (^^4000 IU/d^^)
- UK
- Adverse Effects
- Risk of Hypervitaminosis D
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
// intersection of macOS, Linux and Windows ephemeral ports | |
val EphemeralPortRange: Range.Inclusive = | |
49152 to 60999 | |
val freePort: IO[IOException, Int] = { | |
def ensureAvailable(int: Int): IO[IOException, Unit] = | |
ZIO.attemptBlockingIO { | |
ServerSocketFactory | |
.getDefault | |
.createServerSocket(int, 1 /* backlog */ , InetAddress.getByName("localhost")) |
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
"optional": [ | |
{ "name": "limit", "type": "Number", "description": "Number of results in response (in a page)." }, | |
{ "name": "offset", "type": "Number", "description": "Number of results to skip (to get a particular page)." }, | |
{ "name": "entity_type", "type": "String", "enumeration": [ | |
"company", | |
"branch" | |
]}, | |
{ "name": "parent_orb_num", "type": "String" }, | |
{ "name": "ultimate_parent_orb_num", "type": "String" }, | |
{ "name": "industry", "type": "String", "description": "Company’s industry." }, |
I hereby claim:
- I am fsvehla on github.
- I am fsvehla (https://keybase.io/fsvehla) on keybase.
- I have a public key ASCtvIXILZSrTz5gAnrBZp4hwT10Kp7KIfQ5URJgbybHaQo
To claim this, I am signing this object:
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
package json | |
import java.time.format.{DateTimeFormatter, DateTimeParseException} | |
import java.time.{Instant, LocalDateTime, ZoneId, ZonedDateTime} | |
import cats.data.Xor | |
import io.circe.{Decoder, DecodingFailure, HCursor} | |
object JsonInstances { | |
/** f.ex. 'Europe/Vienna' */ |
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 jdk7 () { | |
export JVM_VERSION='1.7.0_51' | |
# Java | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk${JVM_VERSION}.jdk/Contents/Home" | |
export PATH="${JAVA_HOME}/bin:${PATH}" | |
} | |
function jdk8 () { | |
export JVM_VERSION='1.8.0_20' |
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
def transformKeys[A,B,C](m: Map[A, B], transformFunc: (A => C)): Map[C, B] = { | |
m.foldLeft(Map.empty[C, B]) { (acc, entry) => | |
acc + (transformFunc(entry._1) -> entry._2) | |
} | |
} | |
val numMap: Map[Int, String] = Map(1 -> "Two", 2 -> "Four", 3 -> "Six") | |
val transformed = transformKeys(numMap, { (key:Int) => key * 2 }) | |
// without (key:Int) = error: missing parameter type |
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 | |
set -e | |
difftool=diff | |
[[ -f /usr/local/bin/ksdiff ]] && difftool=ksdiff | |
lname=$(echo $1 | tr '/' '-') | |
rname=$(echo $2 | tr '/' '-') |
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
Shut down the computer. | |
- Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected. | |
- On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time. | |
- Release all the keys and the power button at the same time. | |
- Press the power button to turn on the computer. | |
Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC. |
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 http = require('http'); | |
var server = http.createServer(function (req, res) { | |
res.end('hullo'); | |
}); | |
server.listen(1250, function () { | |
console.log('Listening on 1250'); | |
}); |
NewerOlder