Skip to content

Instantly share code, notes, and snippets.

stammarama

Keybase proof

I hereby claim:

  • I am astamm78 on github.
  • I am stammarama (https://keybase.io/stammarama) on keybase.
  • I have a public key ASDll2TMvzigbMNY5uTRVQsf2uuqmZjPUn3dfmd0vVc7iAo

To claim this, I am signing this object:

Easy Bake Artisanal Bread

Ingredients

  • 50 grams warm water
  • 7.5 grams yeast
  • 2.5 grams sugar
  • 500 grams bread flour
  • 10 grams salt
  • 300 grams cold water
@astamm78
astamm78 / index.html
Last active December 17, 2015 16:09 — forked from dbc-challenges/zoo.js
<script src="zoo.js"></script>
@astamm78
astamm78 / index.html
Last active December 17, 2015 15:59 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@astamm78
astamm78 / sort.rb
Last active December 14, 2015 14:48
A method to sort an array, using a recursive method
def sorter(array)
working = array.clone
self.rec_sort(working, [])
end
def rec_sort(unsorted, sorted)
while unsorted.length > 0
value = unsorted.inject do |first, second|
first < second ? first : second
end
@astamm78
astamm78 / times_table.rb
Created February 27, 2013 04:49
Times Table
# Implement a method called times_table which takes as its input an
# integer and prints out a times table with that number of rows.
# The numbers can be separated by any spaces or tabs, but each row must
# be on a new line. This means it's ok if the columns don't line up.
# For example, times_table(5) should print the following out to the screen:
# 1 2 3 4 5
# 2 4 6 8 10
@astamm78
astamm78 / mode.rb
Last active December 14, 2015 06:09
Exercise: Calculating the array mode
# Write a method mode which takes an Array of numbers as its input and returns
# an Array of the most frequent values.
# If there's only one most-frequent value, it returns a single-element Array.
# For example,
# mode([1,2,3,3]) # => [3]
# mode([4.5, 0, 0]) # => [0]
# mode([1.5, -1, 1, 1.5]) # => [1.5]