Skip to content

Instantly share code, notes, and snippets.

View jrygh00's full-sized avatar

Jennifer Rygh jrygh00

View GitHub Profile
@jrygh00
jrygh00 / mongo.md
Last active August 29, 2015 13:59
MongoDb

MongoDb

##Basic History

  • Leading NoSQL Database / Document Oriented Database
  • Name is from HuMONOGOus
  • Developed by 10gen
  • first released in 2009
  • Open Source
  • Written in C++
  • Free & Commercial License
@jrygh00
jrygh00 / gist:10228806
Last active August 29, 2015 13:58
Client/Server Request/Response Cylce

#Client/Server Request/Response Cylce

  1. The client(your computer) sends a request over the network to a remote server (website hosting server).
  2. The server recieves the request and prepares a response.
  3. The response is sent back over the internet to the client and is displayed in the web browzer.

Note, HTTP requests can be made in many mediums, not just web browzers (for example JAVA, C#, and TELNET)

####REQUEST METHODS (sent from client to server)

  • "OPTIONS" - ask for available methods

#Mocha

Super flexible light weight testing framework for Javascript. You can build the test environment you want for behavior and test-driven interfaces, but that also requires more maintenance.

FEATURES:

  • asychronous code is called a Promise, so Mocha is "testing promises"
  • includes a "done" callback to signal the end of the test
  • will highlight long operations with red pills
  • setTimeout (use Chai)
  • many test reporter format options, including TAP and JSON
@jrygh00
jrygh00 / jquery_example.html
Last active August 29, 2015 13:56 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
<h1 id="header"> Hello. Welcome to the jQuery DOM Manipulation Challenge! </h1>
@jrygh00
jrygh00 / 0.2.1-boggle_class_from_methods.rb
Last active January 1, 2016 12:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
#2) Implement your methods
def initialize (boggle_board)
@boggle_board = boggle_board
end
#1) Access multiple elements of a nested array
def create_word(*coords)
coords.map { |coord| @boggle_board[coord.first][coord.last]}.join("")
end