Tabs
New Tab
:tabnew
- new blank tab:tabedit [file]
- open file in tab
Cursor Movement
gt
(:tabn
) - next tab
import { decode } from "blurhash" | |
export function blurHashToDataURL(hash: string | undefined): string | undefined { | |
if (!hash) return undefined | |
const pixels = decode(hash, 32, 32) | |
const dataURL = parsePixels(pixels, 32, 32) | |
return dataURL | |
} |
// x,y is bottom left corner | |
var Rectangle = function Rectangle(x,y,w,h){ | |
this.x = x; | |
this.y = y; | |
this.width = w; | |
this.height = h; | |
} | |
// SOLUTION | |
var checkIntersect = function checkIntersect(r1,r2) { |
/** | |
* General-purpose NodeJS CLI/API wrapping the Stable-Diffusion python scripts. | |
* | |
* Note that this uses an older fork of stable-diffusion | |
* with the 'txt2img.py' script, and that script was modified to | |
* support the --outfile command. | |
*/ | |
var { spawn, exec } = require("child_process"); | |
var path = require("path"); |
:tabnew
- new blank tab:tabedit [file]
- open file in tabgt
(:tabn
) - next tabCaveat: It's just personal opinion, and was written to be a bit provocative and encourage discussion . It is also something that is constantly evolving. Some of the main criteria I used in constructing this taxonomy are age, how widely used it us, and how well understood it is by the average Haskell programmer. These things will change over time.
Aso, this is focused on appropriateness for use in commercial production code bases. If you are not thinking about commercial use with a team of multiple
How to enable function keys
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
https://blog.colinwaddell.com/keychron-function-keys-configuration/
The app is written in Crystal using Lucky Framework (https://luckyframework.org/). It's a batteries-included web framework that makes heavy use of compile-time checks. As a result, it's very helpful in tracking errors and catching bugs even before the app reaches runtime.
Lucky is also extremely fast compared to similar frameworks written in other programming languages. The following benchmark illustrates it well:
In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel
Go to menu: | |
Find -> Find in Files... (windows: ctrl+shift+f) | |
Switch on reg_ex button (windows: alt+r) | |
Find: | |
^.*\S+.*$ | |
Where: | |
c:\your_folder\,*.php,*.js,*.inc,*.html,*.htm,*.scss, -*/folder_to_exclude/*, -*.min.js |
import System.Random | |
import Data.Char (isDigit) | |
makeCode :: IO [Char] | |
makeCode = do | |
gen <- newStdGen | |
return $ take 4 (randomRs ('0','9') gen) | |
breakCode :: String -> Int -> IO () | |
breakCode code turns = do |