Skip to content

Instantly share code, notes, and snippets.

View pcranaway's full-sized avatar

alex, pcranaway

  • 09:05 (UTC +03:00)
View GitHub Profile
/// Parses an entire Treebank given a list of strings (the file's lines.)
pub fn parse(lines: Vec<String>) {
// for line in lines {
// let line = parse_line(line);
// }
// lines.iter().map(line::parse_line)
}
/// Parsers for the three different kinds of lines.
@pcranaway
pcranaway / lsp.lua
Created December 16, 2021 19:33
neovim nimlsp
require('lspconfig/configs').nimlsp = {
default_config = {
cmd = {'nimlsp'},
filetypes = {'nim'},
root_dir = require('lspconfig/util').root_pattern('*.nimble'),
settings = {},
}
}
require('lspconfig').nimlsp.setup({})
id: 0x01
state: connecting
sender: client
receiver: server
fields:
region:
type: string
description: 'the continent where the client is located'
possible:
@pcranaway
pcranaway / countries.json
Created October 29, 2020 18:29
countries and their country codes
[
{"name":"New Zealand","code":"NZ"},
{"name":"Cook Islands","code":"CK"},
{"name":"Niue","code":"NU"},
{"name":"Pitcairn","code":"PN"},
{"name":"Tokelau","code":"TK"},
{"name":"Australian","code":"AU"},
{"name":"Christmas Island","code":"CX"},
{"name":"Cocos (Keeling) Islands","code":"CC"},
{"name":"Heard and Mc Donald Islands","code":"HM"},

Keybase proof

I hereby claim:

  • I am pcranaway on github.
  • I am pcranaway (https://keybase.io/pcranaway) on keybase.
  • I have a public key whose fingerprint is 4C0A 7F58 056E EAD4 00F9 9271 2551 5002 90BB 110B

To claim this, I am signing this object: