Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# created: 2021-07-01 15:44:57 -0500
$starting_value=1
$ppc = 1.0132
$cm = 1.5
def ppc_first
value = $starting_value
(0..100).each { value *= $ppc }

all blue weapons and armor

This is useful to move gear to the vault to break down:

is:blue (is:weapon or is:armor)

all green or blue shaders

This is useful to move shaders to break down:

is:shaders (is:blue or is:green)

@brailsmt
brailsmt / error.out
Created May 20, 2020 04:04
stack install hdevtools errors
cwd: ~/dev/flycut (master u=)
[20200519 22:59:25|brailsmt]$ stack install hdevtools
Writing implicit global project config file to: /Users/brailsmt/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-15.13
hdevtools> configure
hdevtools> Configuring hdevtools-0.1.8.0...
hdevtools> build
hdevtools> Preprocessing executable 'hdevtools' for hdevtools-0.1.8.0..
hdevtools> Building executable 'hdevtools' for hdevtools-0.1.8.0..
Topics:
Basics:
- Taunts
- grab attention of enemy unit (singular) so they focus on and attack only you
- timed
- melee vs ranged:
- ranged: inner fire from uundaunted skill line
- pierce: one hand and shield skill line
- ice staff: heavy attack
@brailsmt
brailsmt / quickfix.diff
Created December 14, 2017 20:29
diff of the changes in src/nvim/quickfix.c between master (6ff13d78b) and v0.1.7 tag.
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 1fc585f0c..f0d77f9e2 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -1,6 +1,3 @@
-// This is an open source non-commercial project. Dear PVS-Studio, please check
-// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
-
/*
* quickfix.c: functions for quickfix mode, using a file with error messages
Plug 'neovimhaskell/haskell-vim'
Plug 'enomsg/vim-haskellConcealPlus'
Plug 'eagletmt/neco-ghc'
Plug 'eagletmt/ghcmod-vim'
Plug 'Twinside/vim-hoogle'
Plug 'mpickering/hlint-refactor-vim'
{-# LANGUAGE OverloadedStrings #-}
module Lib
(
listReviews
) where
import Data.Aeson (Value)
import qualified Data.Yaml as Yaml
import Network.HTTP.Simple
import qualified Data.ByteString.Char8 as S8
@brailsmt
brailsmt / git-mad.sh
Created September 17, 2016 02:56
Add all modified files
#/usr/local/bin/bash
#cerner_2^5_2016
git ls-files -m | xargs git add
diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim
index 02dbc3b..a8222b3 100644
--- a/autoload/airline/highlighter.vim
+++ b/autoload/airline/highlighter.vim
@@ -1,6 +1,7 @@
" MIT License. Copyright (c) 2013-2016 Bailey Ling.
" vim: et ts=2 sts=2 sw=2
+let g:statuslines = []
let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running') && (empty($CONEMUBUILD) || &term !=? 'xterm')
@brailsmt
brailsmt / stat_minmax.rb
Last active June 11, 2016 18:52
Print min/max values of a given stat
#!/usr/bin/env ruby
require 'pp'
max_possible = {
:ghost => [25, 10],
:class => [25, 10],
:helm => [46, 19],
:gloves => [41, 17],
:chest => [61, 25],