Skip to content

Instantly share code, notes, and snippets.

View scull7's full-sized avatar

Nathan Sculli scull7

View GitHub Profile
@scull7
scull7 / convert.js
Created May 2, 2024 18:39
Convert Image to DataURL (browser)
function imgElConvert($img) {
const canvas = document.createElement('canvas');
canvas.height = $img.naturalHeight;
canvas.width = $img.naturalWidth;
const ctx = canvas.getContext('2d');
ctx.drawImage($img, 0, 0, canvas.width, canvas.height);
return canvas.toDataURL();
}
@scull7
scull7 / after-plugin-formatter.lua
Last active March 2, 2023 03:13
Neovim configuration
-- https://github.com/mhartington/formatter.nvim#format-on-save
vim.api.nvim_exec([[
augroup FormatAutogroup
autocmd!
autocmd BufWritePost *.js,*.mjs,*.rs,*.lua,*.elm FormatWrite
augroup END
]], true)
require('formatter').setup({
filetype = {
@scull7
scull7 / .tmux.conf
Created March 15, 2021 16:03
tmux-config
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
@scull7
scull7 / resume.md
Last active December 1, 2022 17:23
Nathan Sculli Resume

Nathan Sculli

702-477-9076 / nathan@vegasbuckeye.com

5339 Golden Topaz Ave, Las Vegas, NV 89146

I'm an experienced technology architect and leader. I have developed large systems for financial services, marketing data analysis and collection, airline and aircraft maintenance, manufacturing industries and countless small business platforms. I've successfully led many development teams from incubation to explosive growth.

Keybase proof

I hereby claim:

  • I am scull7 on github.
  • I am scull7 (https://keybase.io/scull7) on keybase.
  • I have a public key ASBVa3Sz29trLrOhIncMXzD4NiyW1yWfGNOfJahma4KHxQo

To claim this, I am signing this object:

@scull7
scull7 / init.vim
Created May 11, 2019 21:16
Neovim configuration file
call plug#begin('~/.vim/plugged')
" Respect editorconfig files.
Plug 'editorconfig/editorconfig-vim'
" Language Server Installation
" https://github.com/reasonml-editor/vim-reason-plus
Plug 'reasonml-editor/vim-reason-plus'
@scull7
scull7 / bs_mysql_examples.ml
Last active February 1, 2018 07:28
Possible interface for the module.
let conn = Connection.make ~host:"127.0.0.1" ~port:3306 ~user:"root" ()
let test_handler = function
| Driver.Error e ->
let _ = Js.log "ERROR: " in Js.log e
| Driver.Select s ->
let _ = Js.log "Select: " in Js.log s
| Driver.Mutation m ->
let _ = Js.log "Mutation: " in Js.log m
@scull7
scull7 / Page.re
Last active February 6, 2019 17:34
module Page = {
type action =
| NoOp;
type ledger = {
id: string,
statementId: string,
actor: string,
influencer: string,
referenceType: string,
paymentId: string,
module ClassNameList = {
type param = option(string);
let join = (cur: string, x: param) : string =>
switch x {
| None => cur
| Some(s) => cur ++ " " ++ s
};
let make = (classList: list(param)) : string =>
classList |> List.fold_left(join, "");
};
-module(recurse).
-export([fib/1, fib_list/1, pieces/1]).
-export([all/0,check_fib_list/1, check_pieces_3/1, check_pieces_6/1]).
fib(0) -> 0;
fib(1) -> 1;
fib(2) -> 1;
fib(N) when N>2 ->
fib(N-1)+fib(N-2).