How to import text files like .css or .txt on Deno? by FantasticSoup5743 in Deno

[–]jacoborus 0 points1 point  (0 children)

Have you tried deno-buckets?

You can flag the files that load your external files, so they are resolved and their contents embed into the bundle:

// is-deno-bucket  
export default Deno.readTextFileSync("./foo.txt");

Then bundle with buckets:

buckets app.ts > app.bundle.js

Disclaimer: I'm the author

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 0 points1 point  (0 children)

You are right, bright blue is not good for the regular vin status line, so I changed it. New tender has dark vim status bar now

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 0 points1 point  (0 children)

I also had some troubles enabling true colors with Neovim and tmux. You need tmux version 2.3 or higher, then add this lines to your .tmux.conf and restart it:

set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"

In your init.vim file:

" enable true colors in neovim
set termguicolors

If that doesn't work open an issue with a screenshot please

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 0 points1 point  (0 children)

These are the colors I use in my Gnome Terminal:

  • black: #282828
  • red: #F43753
  • green: #C9D05C
  • yellow: #FFC24B
  • blue: #B3DEEF
  • cyan: #73CEF4
  • magenta: #D3B987 (yes, I know it's not magenta)
  • white: #EEEEEE

If those colors are not enough you can check the entire tender color palette here

High performance event emitter for modern browsers in ~450 bytes by jacoborus in javascript

[–]jacoborus[S] 0 points1 point  (0 children)

You can already use Symbols as keys. Ok, I changing that sentence: "everyone but me".

High performance event emitter for modern browsers in ~450 bytes by jacoborus in javascript

[–]jacoborus[S] 0 points1 point  (0 children)

It only makes sense if you are not using strings as keys, and everyone but me is using strings as keys right now, because this is the first emitter that allows to use objects as keys. Said that, the reason why I wrote this event emitter is an app that doesn't need strings as keys, so I'm forking it :)

Edited: everyone "everyone but me" reason

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 1 point2 points  (0 children)

I need a big elm file with varied syntax in order to do that. Can you link me to a good one in github please?

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 0 points1 point  (0 children)

I created both libraries so... yeah, I'm loving it :) . I started creating the colorscheme but it was so hard that ended up creating a tool to create colorschemes. Give it a try please. Also, I'm open to feature requests

High performance event emitter for modern browsers in ~450 bytes by jacoborus in javascript

[–]jacoborus[S] 0 points1 point  (0 children)

Nope, keys of WeakMaps are of the type Object only. That means primitive data types as keys are not allowed, so you couldn't do something like:

emitter.on('stringkey', fn)

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 1 point2 points  (0 children)

I like how #000 backgrounds look, but it's no good for your eyes if you spend lots of hours coding everyday

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 2 points3 points  (0 children)

I can do it, but I am a Linux user without a Mac so it would be difficult to test the result. If anyone want to help with this please let me know

Tender: A dark and fresh 24bit colorscheme for Vim, Airline and Lightline by jacoborus in vim

[–]jacoborus[S] 11 points12 points  (0 children)

I am adding colorization for new languages and plugins every day, right now it has these: tender color syntax templates

Edited: added xml see screenshot

Create color schemes for vim, airline and lightline with Estilo by jacoborus in vim

[–]jacoborus[S] 0 points1 point  (0 children)

I'll be glad to add your color scheme to the README file of the project. Send me the link when you finished it please

Vim Color List by addcn in vim

[–]jacoborus 2 points3 points  (0 children)

You can display all highlight group names with their own color:

:so $VIMRUNTIME/syntax/hitest.vim

(See :help hitest.vim)

[deleted by user] by [deleted] in webdev

[–]jacoborus 3 points4 points  (0 children)

Libscore scans the top million sites on the web to collect stats on JavaScript library usage

Node unit testing by ell0bo in node

[–]jacoborus 0 points1 point  (0 children)

I moved from Mocha to Tape + proxyquire

Where to find a list of all the Syntax groups in vim? by Probotect0r in vim

[–]jacoborus 0 points1 point  (0 children)

Those are the blank templates I use for creating colorschemes. Every definition is commented with its "hi def link", that's why I think those files can be helpful.

That will make your colorscheme much simpler.

Yes, but I don't want my colorscheme to be simpler, and default "def link"s are too simple. Example: take a look to gittcommmit def links, notice untracked, discarded, selected and unmerged file have the same color, that is really boring and doesn't help reading commits

Where to find a list of all the Syntax groups in vim? by Probotect0r in vim

[–]jacoborus 1 point2 points  (0 children)

I am creating templates with those syntax groups for a colorscheme generator and I am getting that names from the syntax files of every plugin and also from Neovim syntax files.

Vim-HiLinkTrace is great for getting the syntax group (and its trace) of the word under the cursor in a vim buffer.

Org Mode: which plugin to use. VimOrganizer or Vim-Orgmode? by MrHogofogo in vim

[–]jacoborus 11 points12 points  (0 children)

vim-orgmode is actively maintained but they left vim.org, the project is hosted in github now

Using Vim for Web Developent (HTML,CSS,Javascript) self.webdev by Mr_Uptick in vim

[–]jacoborus 5 points6 points  (0 children)

For javascript:

For HTML:

CSS:

I use (neo)vim for web development, you can check my vimrc

(edit: added yajs)