Skip to content

Instantly share code, notes, and snippets.

View JESii's full-sized avatar

Jon Seidel JESii

View GitHub Profile
/**
* CustomLegend handler
* <CustomLegendItem>
* @param {object} asset - data for display on the legend item
* @param {function} setOpacity - function to change opacity
* @enders {React <li> Element} to display the legend as desired
*
* <CustomLegend>
* @param {object} payload - the recharts standard payload object
* @param {string} direction - row/column for direction of display
""" ENABLED - Coc configuration and fixers """"
" ADDED 9/17/2021
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
if (empty($TMUX))
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
@JESii
JESii / # vim - 2019-02-19_09-13-40.txt
Created February 19, 2019 17:25
vim on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for vim on macOS 10.13.6
Build date: 2019-02-19 09:13:40
@JESii
JESii / # macvim - 2018-03-27_07-45-49.txt
Created March 27, 2018 14:48
macvim on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.12.6
Build date: 2018-03-27 07:45:49
<!DOCTYPE html>
<html lang="en" >
@JESii
JESii / 0_reuse_code.js
Created February 7, 2017 21:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@JESii
JESii / gist:1717415
Created February 1, 2012 14:58
Paperclip multiple attachment issues
##### User model
class User < ActiveRecord::Base
# Devise stuff removed
# Setup accessible (or protected) attributes for your model
# I don't believe the attr_accessible :asset is required in my caes, but it's here anyway
attr_accessible :name, :email, :password, :password_confirmation, :remember_me, :asset
validates_presence_of :name
@JESii
JESii / gist:950185
Created May 1, 2011 02:25
SimpleForm_NoErrors
###Model: incident_report.rb
# == Schema Information
# Schema version: 20110425214240
#
# Table name: incident_reports
#
# id :integer not null, primary key
# investigator_name :string(255)
# employee_name :string(255) not null
@JESii
JESii / gist:758231
Created December 29, 2010 05:52
RVM 1.1.7 - problems with zlib
I just installed RVM on my Ubuntu 10.04 box and I'm having the zlib problem, i.e.:
jseidel@EDP15:~$ rvm gem list
ERROR: Loading command: list (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::ListCommand
*** LOCAL GEMS ***
@JESii
JESii / RVM & Cygwin problems
Created December 19, 2010 14:08
Description of problems running RVM on Cygwin
Unable to get RVM running under Cygwin in either Vista or Windows 7, info/results follow. Everything installs normally and rvm is_a function, but when I try to run irb, gem, or even rvm debug, it just sits there. When I interrupt these commands with Ctrl-C, I get output that generally looks like this:
<internal:lib/rubygems/custom_require>:29:in `require': Interrupt
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:gem_prelude>:167:in `load_full_rubygems_library'
<snip - full output later>
Cygwin Version: CYGWIN_NT-6.0 1.7.7(0.230/5/3) 2010-08-31 09:58
RVM Version: rvm 1.1.6 by Wayne E. Seguin