Skip to content

Instantly share code, notes, and snippets.

Sean Omlor seanomlor

Block or report user

Report or block seanomlor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase-proof.md

Keybase proof

I hereby claim:

  • I am seanomlor on github.
  • I am seanomlor (https://keybase.io/seanomlor) on keybase.
  • I have a public key whose fingerprint is 01D9 0B9B EA5A CD52 FCDD 36D6 2EB0 8ADD 5A5B 5A20

To claim this, I am signing this object:

View .bash_profile
# ~/.bash_profile
__GIT_PROMPT_DIR=/usr/local/opt/bash-git-prompt/share
GIT_PROMPT_THEME=Custom
source "${__GIT_PROMPT_DIR}/gitprompt.sh"
View mnemonic-wordlist.txt
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
View ruby-exercises-02.md

hello

Write a method hello that takes one argument and calls puts so that the output if called with, e.g., hello("Alli") would be Hello there Alli!

Player

Write a class Player that can be initialized with one argument name and returns a player instance with the keys name, health and role.

  • The name key should be assigned the given name argument.
  • The health key should be a random integer from 50 to 100.
View vultr-nixos.md

1. vultr iso > add iso

2. upload 18.03 iso

https://d3g5gsiof5omrk.cloudfront.net/nixos/unstable/nixos-18.03pre116572.9824ca6975/nixos-minimal-18.03pre116572.9824ca6975-x86_64-linux.iso

3. deploy new server

View barber_shop.exs
defmodule BarberShop do
@name :barber_shop
@num_chairs 3
def open do
shop_pid = spawn(__MODULE__, :loop, [])
:global.register_name(@name, shop_pid)
Barber.register(shop_pid)
end
@seanomlor
seanomlor / ids_parser.exs
Last active Dec 17, 2018
Elixir mp3 id3 parser
View ids_parser.exs
defmodule Id3Parser do
@id3_tag_size 128
def parse(file_name) do
case File.read(file_name) do
{:ok, mp3} ->
# mp3 size minus 128 bytes where id3 tag is located
mp3_byte_size = byte_size(mp3) - @id3_tag_size
You can’t perform that action at this time.