Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.
You can do this with ctrl+shift+j
and making sure the console
tab is selected for chrome/brave
const toUnixTime = (date) => date.getTime() / 1000; | |
const usageInterval = (start, end) => ({ | |
start: toUnixTime(start), | |
end: toUnixTime(end) | |
}); | |
const getSyndayOfTheWeek = (currentDate) => { | |
const date = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()); |
Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.
You can do this with ctrl+shift+j
and making sure the console
tab is selected for chrome/brave
class MultipleInstancesOfState | |
attr_accessor :state | |
def initialize(state:) | |
@state = state | |
end | |
def foo | |
@state.reverse! | |
end |
I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.
Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.
All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.
def to_bool(string)
if string == true || string == 1 || string =~ (/(true|1)$/i)
true
else
false
end
end
import PropTypes from 'prop-types'; | |
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | |
type Defined<T> = T extends undefined ? never : T; | |
/** | |
* Get the type that represents the props with the defaultProps included. | |
* | |
* Alternatively, we could have done something like this: |
dconf write /org/gnome/terminal/legacy/profiles:/:<id>/allow-bold false |
# gruvbox-dark colorscheme for kitty | |
# snazzy theme used as base | |
foreground #ebdbb2 | |
background #272727 | |
selection_foreground #655b53 | |
selection_background #ebdbb2 | |
url_color #d65c0d | |
# black |
mkdir emacs | |
cd emacs | |
git init | |
git remote add origin https://github.com/emacs-mirror/emacs.git | |
git fetch --depth 1 origin emacs-26 | |
git reset --hard FETCH_HEAD | |
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev | |
./autogen.sh | |
./configure | |
make |
This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.
I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.
The setup works this way
[Remote Mail Servers] <= mbsync => [Local Mail Folders]