Skip to content

Instantly share code, notes, and snippets.

View scull7's full-sized avatar

Nathan Sculli scull7

View GitHub Profile
@scull7
scull7 / node-mcrypt.test.coffee
Last active December 25, 2015 03:39
Attempt at using node-mcrypt for PHP compatible encryption
# npm install mcrypt async
# run me with: coffee node-mcrypt.test.coffee
mcrypt = require 'mcrypt'
exec = require('child_process').exec
async = require 'async'
assert = require 'assert'
crypto = require 'crypto'
key ='Honey Badger don\'t care'
-module(one_fifteen).
-export([xor1/2,xor2/2,xor3/2,maxThree/3,howManyEqual/3]).
-export([all/0,xor2_true_false/1]).
xor1(X,Y) ->
X =/= Y.
xor2(X,Y) ->
not (X and Y).
-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).
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, "");
};
@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,
@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 / 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'

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 / 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.

@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'