Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts
{ | |
"workbench.colorTheme": "Min Dark", | |
"workbench.iconTheme": "symbols", | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.editor.labelFormat": "short", | |
"workbench.statusBar.visible": true, | |
"workbench.activityBar.location": "hidden", | |
"workbench.layoutControl.enabled": false, | |
"files.autoSave": "off", |
! The following 2 lines are what I use to display news.ycombinator.com | |
! Limit comments to 70 characters wide, making them easier to read | |
news.ycombinator.com##.comment:style(max-width: 70ch !important; overflow: hidden !important;) | |
! Invert the colours of the site, making a dark mode that I like | |
! `invert(95%)` does most of the work, | |
! but you can tweak the hue-rotate value to fine tune the colours | |
news.ycombinator.com##html:style(filter:invert(95%) hue-rotate(200deg); background: white) |
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
Create a .gitattributes
file inside the directory with the notebooks
Add the following to that file:
*.ipynb filter=strip-notebook-output
"use client" | |
import { forwardRef, useState } from "react" | |
import { EyeIcon, EyeOffIcon } from "lucide-react" | |
import { Button } from "@/components/ui/button" | |
import { Input, InputProps } from "@/components/ui/input" | |
import { cn } from "@/lib/utils" | |
const PasswordInput = forwardRef<HTMLInputElement, InputProps>( | |
({ className, ...props }, ref) => { |
/* | |
* Play duo melody with Arduino | |
* ============================ | |
* | |
* Description: | |
* This sketch simultaneously plays two separate melodies on two (passive) | |
* speakers or buzzers. This creates effect of a "choir". | |
* For simplicity, it uses function play2Tones(), which only plays two notes | |
* of equal duration simultaneosly. | |
* The actual melody here is the Anthem of Ukraine. |
bool Solution::isPower(int A) { | |
if (A<2) | |
return true; | |
for (auto i = 2; i<=sqrt(A); ++i) | |
{ | |
for (auto j = 2; j<=32; ++j) | |
{ | |
if(pow(i, j)==A) | |
return true; |