This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am chaupt on github. | |
* I am chaupt_swoogo (https://keybase.io/chaupt_swoogo) on keybase. | |
* I have a public key ASAFkDURgxYyDcl91TzhM24pnvhS_4gwKnGf7VCI9foKowo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Ruby For Kids Project 9: Acey Deucy | |
# Programmed By: Chris Haupt | |
# A multiplayer card game where you try to guess whether the next | |
# card will be between two other cards, placing bets on the results | |
# | |
require_relative "game" | |
require_relative "deck" | |
require_relative "card" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "minitest/autorun" | |
# ruby -Ilib:test fetch_values.rb | |
class Hash | |
def monkey_fetch_values(*keys) | |
keys.inject([]) do |a,k| | |
if self.has_key?(k) | |
a << self[k] | |
else | |
if block_given? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class Integer | |
Ones = %w[ zero one two three four five six seven eight nine ] | |
Teen = %w[ ten eleven twelve thirteen fourteen fifteen | |
sixteen seventeen eighteen nineteen ] | |
Tens = %w[ zero ten twenty thirty forty fifty | |
sixty seventy eighty ninety ] | |
Mega = %w[ none thousand million billion ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Berkshelf | |
module Vagrant | |
class Config < ::Vagrant.plugin("2", :config) | |
# @return [String] | |
# path to the Berksfile to use with Vagrant | |
attr_reader :berksfile_path | |
# @return [Boolean] | |
# disable of use Berks in Vagrant | |
attr_accessor :enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test/unit' | |
require 'maze' | |
MAZE1 = %{##################################### | |
# # # #A # # # | |
# # # # # # ####### # ### # ####### # | |
# # # # # # # # # | |
# ##### # ################# # ####### | |
# # # # # # # # # | |
##### ##### ### ### # ### # # # # # # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id='contact_intro'> | |
<h1>Contact <span>Us</span></h1> | |
<p>Please complete the form below and click the Submit button at the bottom.</p> | |
<p>We’ll reply as soon as possible.</p> | |
</div> | |
<div id='contact_pod_error' class='sysmsg'><w:sysmsg /></div> | |
<div id='contact_pod_form' class="box-s1"> | |
<form id='contact_form' action='OTHERSITES ACTION URL GOES HERE' method='post' autocomplete='off'> | |
<p><label>NAME</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* FoxyCart Test XML Generator | |
* | |
* @link http://wiki.foxycart.com/integration:misc:test_xml_post | |
* @version 0.6a | |
*/ | |
/* | |
DESCRIPTION: ================================================================= | |
The purpose of this file is to help you set up and debug your FoxyCart XML DataFeed scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* stickyfloat - jQuery plugin for verticaly floating anything in a constrained area | |
* | |
* Example: jQuery('#menu').stickyfloat({duration: 400}); | |
* parameters: | |
* duration - the duration of the animation | |
* startOffset - the amount of scroll offset after it the animations kicks in | |
* offsetY - the offset from the top when the object is animated | |
* lockBottom - 'true' by default, set to false if you don't want your floating box to stop at parent's bottom | |
* $Version: 05.16.2009 r1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# You'll want to snip these out separated into files or command line strings to try them out. | |
# | |
# John Miller's Signature | |
require"net/http";s=" abcdefghijklmnopqrstuvwxyz.@,\n" | |
v=":6=9<<5BLI18??K3?=0=L;?7CG5<<K3?=NNG50@B5C5>D081=<5D02I0GK0C81;5C@51B5" | |
puts v.unpack("c*").map{|i| s[i-48].chr}.join; Net::HTTP.get_print \ | |
URI.parse("http://www.gutenberg.org/dirs/etext00/0ws2610.txt") |
NewerOlder