Skip to content

Instantly share code, notes, and snippets.

View rubygeek's full-sized avatar

Nola Stowe rubygeek

View GitHub Profile
@rubygeek
rubygeek / gist:aa533cd5919bd2bcb19174e7ca1e3a3b
Last active October 3, 2018 16:54
react testing with enzyme, react 16

sample in JS

portion of package.json

  "dependencies": {
    "enzyme": "^3.6.0",
    "enzyme-adapter-react-16": "^1.5.0",
@rubygeek
rubygeek / ants.clj
Created January 22, 2018 15:59 — forked from michiakig/ants.clj
Clojure ant sim from Rich Hickey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;dimensions of square world
https://www.codewars.com/kata/56747fd5cb988479af000028/train/ruby
https://www.codewars.com/kata/52fba66badcd10859f00097e/train/ruby
@rubygeek
rubygeek / slides.md
Created August 31, 2017 23:58
bootcamp code

Slide 74

<h1>To Do List</h1>
   <ul>
      <li>Get out of bed</li>
      <li>Drink Coffee</li>
      <li>Get to Work</li>
      <li>Get to School</li>
   </ul>

Working on project

Always make a branch to work on, you can always throw it away if it doesn't work.

Go into your folder of projects:

> git checkout -b myawesomebranch

This creates a branch and checkes it out, you are now inside of this branch.

piglatin
https://www.codewars.com/kata/520b9d2ad5c005041100000f/train/ruby
rgb to hex
https://www.codewars.com/kata/513e08acc600c94f01000001/train/ruby
Code Katas:
http://www.codewars.com/kata/5467e4d82edf8bbf40000155/train/ruby
http://www.codewars.com/kata/523f5d21c841566fde000009/train/ruby
other sites:
http://exercism.io/
Easy one, practice having some instance variables and creating methods
http://www.codewars.com/kata/building-blocks/train/ruby
Scrabble Scores, a little more complex
http://www.codewars.com/kata/scrabble-score
or just pick a problem :)
Easy:
http://www.codewars.com/kata/highest-and-lowest
Harder:
http://www.codewars.com/kata/breaking-chocolate-problem