Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
curl -H 'Content-Type: application/json' 'https://api.openalex.org/works?page=1&filter=default.search:early+onset+dementia,publication_year:2024' | Out-File openalex.json |
This file contains hidden or 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
{ | |
"title": "Changes in health with the rise of industry", | |
"doi": "10.1016/j.ijpp.2022.12.005", | |
"pmid": "36645946", | |
"isbns": [ | |
], | |
"altmetric_jid": "4f6fa61e3cf058f610007983", | |
"issns": [ | |
"1879-9817", |
This file contains hidden or 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"style": "plain", | |
"foreground": "#51829b", | |
"template": "\u2552[<#ffffff>\uF007</> {{ .UserName }}@{{ .HostName }}]", |
This file contains hidden or 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
{ | |
"config": { | |
"terminology": { | |
"item": "Researcher", | |
"items": "Researchers", | |
"link": "Co-authorship link", | |
"links": "Co-authorship links", | |
"link_strength": "Co-authorships", | |
"total_link_strength": "Total co-authorships" | |
}, |
This file contains hidden or 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
# Set the initial value of a | |
a <- 1 | |
# Print the current value of a while a is less than or equal to 5 | |
while (a <= 5){ | |
# Print the current value of a | |
print(a) | |
# Increment the value of a by 1 | |
a = a + 1 | |
} |
This file contains hidden or 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
a <- 1:3 | |
b <- 4:6 | |
# Loop over every element in a and print the result of the i-th elememt of a plus 10 | |
for (i in seq_along(a)){ | |
print(i + 10) | |
} | |
[1] 11 | |
[1] 12 |
This file contains hidden or 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
a <- 2 | |
if (a > 0){ | |
print(paste0(a, " is a positive number")) | |
} else if (a < 0) { | |
print(paste0(a, " is negative number")) | |
} else { | |
print(paste0(a, " equals zero")) | |
} |
This file contains hidden or 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
# The code in the braces is run when the condition is true | |
a <- 2 | |
if (a > 0) {print("positive")} | |
[1] "positive" | |
# The code in the braces is NOT run when the condition is false | |
b <- -3 | |
if (b > 0) {print("positive")} |
This file contains hidden or 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
# Create two vectors of equal length | |
X <- c(1, 3, 5, 8) | |
Y <- c(2, 4, 6, 7) | |
# Add the vectors together | |
X + Y | |
[1] 3 7 11 15 |
NewerOlder