Skip to content

Instantly share code, notes, and snippets.

Avatar
🤝
Building, destroying

Jesse Hoyos jssee

🤝
Building, destroying
View GitHub Profile
@jssee
jssee / async_make.lua
Created Aug 16, 2020 — forked from phelipetls/async_make.lua
Run :make asynchronously in Neovim
View async_make.lua
local M = {}
local function has_non_whitespace(str)
return str:match("[^%s]")
end
local function fill_qflist(lines)
vim.fn.setqflist({}, "a", {
title = vim.bo.makeprg,
lines = vim.tbl_filter(has_non_whitespace, lines),
@jssee
jssee / alacritty.yml
Created Jun 17, 2020
alacritty config
View alacritty.yml
env:
TERM: xterm-256color
window:
dimensions:
columns: 120
lines: 100
decorations: full
scrolling:
@jssee
jssee / lsp.lua
Created Apr 7, 2020
nvim lsp -> qf
View lsp.lua
local diagnostics_quickfix = function(_, _, result, _)
if not result then return end
local uri = result.uri
local bufnr = vim.uri_to_bufnr(uri)
local diagnostics = result.diagnostics
if not bufnr then
err_message("LSP.publishDiagnostics: Couldn't find buffer for ", uri)
return
end
for _, v in ipairs(diagnostics) do
View SchemeProvider.tsx
/** @jsx jsx */
import * as React from "react";
import { jsx } from "@emotion/core";
import theme from "../../../lib/theme";
type ColorScheme = "dark" | "light";
interface Props {
scheme: ColorScheme;
View kakrc
# OPTIONS
# =======
set-option global ui_options ncurses_assistant=cat ncurses_enable_mouse=no
set-option global autoreload yes
set-option global scrolloff 5,10
set-option global tabstop 2
set-option global indentwidth 2
set-option global grepcmd 'rg --column --with-filename'
# HIHGHLIGHTERS
@jssee
jssee / table.mkdn
Created Dec 14, 2018 — forked from ngs/table.mkdn
Unicode character table
View table.mkdn

A

Description Entity Preview
A With Acute, Latin Capital Letter Á Á
A With Acute, Latin Small Letter á á
A With Breve, Latin Small Letter ă ă
A With Caron, Latin Small Letter ǎ ǎ
A With Circumflex, Latin Capital Letter  Â
A With Circumflex, Latin Small Letter â â
@jssee
jssee / functional-utils.js
Created Aug 23, 2018 — forked from bendc/functional-utils.js
A set of pure ES2015 functions aimed to make functional JavaScript more idiomatic.
View functional-utils.js
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@jssee
jssee / async-css.html
Created Aug 7, 2018 — forked from bendc/async-css.html
CSS delivery optimization
View async-css.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width">
<title>Defer non-essential stylesheets</title>
<style>
/* Critical above-the-fold styles */
* { margin: 0; padding: 0 }
:root { background: red }
View package.json
{
"name": "www",
"version": "1.0.0",
"description": "www",
"main": "index.html",
"author": "_",
"license": "MIT",
"repository": "_",
"browserslist": ["last 2 versions"],
"scripts": {