$ git config credential.helper store
$ git pull
#provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions.
$ git config credential.helper store
# Repeat an operation n times, e.g. | |
# @dotimes 100 println("hi") | |
macro dotimes(n, body) | |
quote | |
for i = 1:$(esc(n)) | |
$(esc(body)) | |
end | |
end | |
end |
list.of.packages <- c("ggplot2", "circular", "gridExtra", "grid", | |
"latex2exp", "shinydashboard", "shiny", "knitr") | |
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[, | |
"Package"])] | |
if (length(new.packages)) install.packages(new.packages) | |
library(knitr) | |
library("shiny") |
library(shiny) | |
library(shinyjs) | |
if (!dir.exists('www/')) { | |
dir.create('www') | |
} | |
download.file( | |
url = 'https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js', | |
destfile = 'www/js.cookie.js' |
import asyncio | |
from concurrent.futures import ThreadPoolExecutor | |
async def ainput(prompt: str = "") -> str: | |
with ThreadPoolExecutor(1, "AsyncInput") as executor: | |
return await asyncio.get_event_loop().run_in_executor(executor, input, prompt) | |
async def main(): |
Add the virtualenv plugin to ~/.zshrc
and make sure these lines are in ~/.oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh
# disables prompt mangling in virtual_env/bin/activate
export VIRTUAL_ENV_DISABLE_PROMPT=1
#Disable conda prompt changes
#https://conda.io/docs/user-guide/configuration/use-condarc.html#change-command-prompt-changeps1
using CairoMakie | |
using Cairo | |
using Poppler_jll | |
@recipe(PDF) do scene | |
Attributes( | |
bbox = BBox(0, 100, 0, 100) | |
) | |
end |
using GLMakie | |
slides = [ | |
(gl) -> begin | |
for i in 1:2, j in 1:2 | |
lines(gl[i, j], cumsum(randn(1000))) | |
end | |
return (; title = "A slide with two Axis") | |
end, | |
(gl) -> begin |