Skip to content

Instantly share code, notes, and snippets.

😅
deeply concerned about the proliferation of JavaScript

Justin Baugh baughj

😅
deeply concerned about the proliferation of JavaScript
Block or report user

Report or block baughj

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 election.rb
require 'json'
require 'net/http'
require 'date'
electoral_votes = { "AL" => 9, "MT" => 3, "AK" => 3, "NE" => 5, "AZ" => 11,
"NV" => 6, "AR" => 6, "NH" => 4, "CA" => 55, "NJ" => 14,
"CO" => 9, "NM" => 5, "CT" => 7, "NY" => 29, "DE" => 3,
"NC" => 15, "FL" => 29, "ND" => 3, "GA" => 16, "OH" => 18,
"HI" => 4, "OK" => 7, "ID" => 4, "OR" => 7, "IL" => 20,
"PA" => 20, "IN" => 11, "RI" => 4, "IA" => 6, "SC" => 9,
View Example script
#
# This file is part of Project Hybrasyl.
#
# (C) 2015 Hybrasyl Project.
# (C) 2015 Justin Baugh <baughj@hybrasyl.com>
# All rights reserved.
#
name = "Riona"
description = "Riona in Mileth Inn"
View proposed map yaml layout
---
# Map
# Required values: id,size,name
# Optional list values: flags, music, warps, worldwarps, npc, spawns, reactors
# Optional scalar values: min_lev, max_lev, min_ab (this will automatically set min/max on inbound warps)
id: 312
size: 64x64
name: Test Map
flags: [snow, rain, dark, nomap, winter]
min_lev: 1
@baughj
baughj / riona.py
Created Aug 12, 2014
Example of scripting in Hybrasyl
View riona.py
"""Information about the script goes here"""
name = "Riona"
description = "Riona in Mileth Inn"
author = "Justin Baugh <baughj@gmail.com>"
class Scriptable(object):
def __init__(self):
# Set up stuff here
tq = world.NewDialogSequence("Training Quest",
View gist:1064941
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
View gist:1032732
To whom it may concern:
I am writing to you today to apply for the position of Mechanical Engineer I. I
believe Triple Ring would be a great fit for me, for a variety of reasons.
I find environments with variety and novelty in my day to day tasks to
be very rewarding. I also like the idea of working with a team to take on
challlenging tasks in a variety of application domains, and being involved in
every level of the design and prototyping process. I believe the experience I
would gain at Triple Ring would be invaluable for someone looking to start a
career in Mechanical Engineering.
You can’t perform that action at this time.