This file contains hidden or 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
    
  
  
    
  | { | |
| "name": "voting-server", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "mocha --compilers js:babel/register --require ./test/test_helper.js --recursive", | |
| "test:watch": "npm run test -- --watch" | |
| }, | |
| "author": "", | 
  
    
      This file contains hidden or 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
    
  
  
    
  | import React from 'react'; | |
| import Sidebar from '../sidebar/Sidebar.jsx'; | |
| import Main from '../main/Main.jsx'; | |
| var TourGuideMixin = require('react-tour-guide').Mixin; | |
| var tour = { | |
| startIndex: 0, | |
| scrollToSteps: true, | |
| steps: [ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Hey everyone! | |
| = | |
| To provide you all with further support as you work diligently on your prep material and challenges, we're going to be providing some code snippets from your cohort-mates that we feel does a good job nailing the specifics of the challenge. By no means are these the ***only*** correct answers amongst the group, just a few examples of good code that you can compare/contrast with your own. | |
| Pseudocode | |
| - | |
| While pseudocoding, it's very easy to leave out pertinent information because people often make assumptions or avoid specifics until writing the real code. However, the more explicit you are in your pseudocode, the easier it will be writing the real code. | |
| In this exercise, it was very common for people to list the INPUT as 'array', and for the context of this fairly simple exercise, that makes sense. But consider this- what ***data type(s)*** does the array contain? Integers? Floats? Strings? These examples mention that the array contains 'numbers' (close enough to Integers, for now), which is | 
  
    
      This file contains hidden or 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
    
  
  
    
  | $(document).ready(function() { | |
| // listen for 'edit' click, append field and button | |
| $('ul').on('click', '.edit', function(){ | |
| $(this).closest('.container').append("<input type='text' class='new-title' placeholder='title'/><button class='submit-edit'>Submit Edit</button>"); | |
| }); | |
| $('ul').on('click', '.submit-edit', function(){ | |
| // VALUES WE PASS INTO AJAX REQUEST | |
| var id = $(this).closest('.container').attr('val'); | |
| var new_title = $(this).closest('.container').find('.new-title').val(); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <html> | |
| <head> | |
| <title>Post-It Board</title> | |
| <script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
| <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script> | |
| <script src="post-it.js"></script> | |
| <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css"> | |
| <link rel="stylesheet" type="text/css" href="styles.css"> | |
| </head> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <html> | |
| <head> | |
| <title></title> | |
| <link rel="stylesheet" type="text/css" href="main.css" media="screen" /> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> | |
| <script src="app.js"></script> | |
| </head> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #board-container { | |
| padding: 10px; | |
| margin: 0; | |
| width: 490px; | |
| border: 3px solid green; | |
| } | |
| ul { | |
| padding: 0; | |
| margin: 0; | 
  
    
      This file contains hidden or 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 'rubygems' #needed for wirble | |
| require 'irb/completion' # non-wirble auto-complete | |
| require 'pp' | |
| require 'wirble' | |
| begin | |
| # init wirble | |
| Wirble.init | |
| Wirble.colorize | |
| rescue LoadError => err | 
  
    
      This file contains hidden or 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
    
  
  
    
  | https://www.dropbox.com/sh/wf8jvcx3hyii2qu/_YoKAbBOYF/DBC/completed_p2_solos | 
NewerOlder