I hereby claim:
- I am wladston on github.
- I am wlad (https://keybase.io/wlad) on keybase.
- I have a public key whose fingerprint is F19A E5A4 CB44 5708 0258 104B 57C2 4F99 7623 27EE
To claim this, I am signing this object:
| return { | |
| { 'neovim/nvim-lspconfig' }, | |
| { 'mason-org/mason.nvim', opts = {} }, | |
| { | |
| 'mason-org/mason-lspconfig.nvim', | |
| opts = { | |
| ensure_installed = { 'ts_ls', 'vue_ls' }, | |
| }, | |
| config = function(_, opts) | |
| require('mason-lspconfig').setup(opts) |
| -- After changing colorscheme, Neovim wipes syntax highlights and conceal rules. | |
| -- This re-runs filetype syntax and restores conceal settings if they were in use. | |
| -- Prevents broken link formatting and visible markdown/tutor syntax. | |
| vim.api.nvim_create_autocmd('ColorScheme', { | |
| pattern = '*', | |
| callback = function() | |
| local win = vim.api.nvim_get_current_win() | |
| local conceallevel = vim.wo[win].conceallevel | |
| local concealcursor = vim.wo[win].concealcursor |
| #!/bin/bash | |
| # This script reads a CSS file containing links to local font files, | |
| # converts them to Base64-encoded data, and replaces the `url(...)` | |
| # references in the CSS. The modified CSS is output to stdout. | |
| # | |
| # Usage: | |
| # ./embed_css_fonts.sh <CSS_PATH_PREFIX> <LOCAL_FS_PREFIX> <CSS_INPUT_FILE> | |
| # | |
| # Arguments: |
| #!/usr/bin/python | |
| # This converts <http://criticmarkup.com/> tags in a Markdown file to | |
| # "equivalent" LaTex formatting. | |
| # | |
| # By Wladston Filho <[email protected]> | |
| import sys | |
| import re |
| Verifying that +wladston is my blockchain ID. https://onename.com/wladston |
I hereby claim:
To claim this, I am signing this object:
| from scipy.spatial.distance import pdist, squareform | |
| import numpy as np | |
| import copy | |
| def distcorr(Xval, Yval, pval=True, nruns=500): | |
| """ Compute the distance correlation function, returning the p-value. | |
| Based on Satra/distcorr.py (gist aa3d19a12b74e9ab7941) | |
| >>> a = [1,2,3,4,5] |
| from datetime import datetime, timedelta | |
| from dateutil import relativedelta | |
| from datetime import datetime | |
| from dateutil.tz import tzutc, tzlocal | |
| def humanize_time(time): | |
| ''' | |
| get a datetime object and return a relative time string like | |
| "one hour ago", "yesterday", "3 months ago", "just now", etc. |
| /** | |
| * Custom submit directive that will only submit when all the validation has passed | |
| * for all the fields. This extends on the ng-submit directive provided by AngularJS. | |
| * | |
| * This directive will also remove the 'pristine' flag from all the fields when | |
| * hitting submit, allowing the form to display no errors until the submit button | |
| * is clicked/enter is pressed. | |
| * | |
| * The variable 'app' is the instance of a module. | |
| * E.g. var app = angular.module('my-app', []); |