Skip to content

Instantly share code, notes, and snippets.

View nullchilly's full-sized avatar

Null Chilly nullchilly

  • Vietnam
  • 09:59 (UTC +07:00)
View GitHub Profile
@nullchilly
nullchilly / README.md
Last active July 12, 2023 16:10
neovim benchmark
> python generate.py
> Rscript ggplot2.r

Generated graph will be saved to plot.png

@nullchilly
nullchilly / coc-pylance.md
Last active June 18, 2024 10:47
Add pylance to coc.nvim

Install the pylance extension in vscode or manually download it from the marketplace

The extension path should be similar to this: ~/.vscode/extensions/ms-python.vscode-pylance-2023.11.10

In init.vim, this will automatically detect the latest pylance version because after an upgrade the old plugin might linger for a while:

call coc#config('languageserver', { "pylance": { "module": expand("~/.vscode/extensions/ms-python.vscode-pylance-*/dist/server.bundle.js", 0, 1)[0] } })
package com.github.rkumsher.date;
import static com.google.common.base.Preconditions.*;
import static java.time.Month.FEBRUARY;
import static java.time.temporal.ChronoField.DAY_OF_MONTH;
import static java.time.temporal.ChronoField.MONTH_OF_YEAR;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.MonthDay;
@nullchilly
nullchilly / sad_parser.hs
Created January 27, 2022 09:13
First math parser
import Data.Char
import System.IO
import System.Exit
import Control.Applicative
symbol = flip elem ['+', '-', '*', '/']
getOp c = case c of
"+" -> (+)
"-" -> (-)
"*" -> (*)