Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    And, http://codefellows.github.io/CodeFlower/ (don’t do on an old computer )
    BST.prototype.insert = function(data) {
      var n = new this._Node(data, null, null);
      if (this.root === null) {
        this.root = n;
      } else {
        var current = this.root;
        var parent;
        while (true) {
          parent = current;
          if (data < current.data) {
            current = current.left;
            if (current === null) {
              parent.left = n;
              break;
            }
          } else {
            current = current.right;
            if (current === null) {
              parent.right = n;
              break;
            }
          }
        }
      }
    };
    /**
    * Represents a Binary Search Tree
    * @constructor
    */
    var BST = function() {
      this.root = null;
      /**
      * Node represents a node in the binary search tree
      * @constructor
      * @param data - the value
      * @param left - left side
      * @param right - right side
      */
      this._Node = function(data, left, right) {
        this.data = data;
        this.left = left;
        this.right = right;
      };
    };
    Ivan Storck
    @ivanoats
    can anyone see http://tsuga.local:3000 ?
    JoeyHayden
    @JoeyHayden
    mathowie
    @mathowie
    Benjamin Hrach
    @bhrach

    It has been really great meeting and working with all of you this month. A couple of you have asked for my contact info. Here ya go!
    benjamin.hrach@gmail.com
    linkedin.com/in/bhrach

    And of course you can always find me on Gitter :-)

    Mike (Mikey) Bedney
    @PolishZeus
    It is my fault that I'm asking this late (laptop wasn't working in class & Wed I was obsessed with coding & didn't leave enough time):
    Trying to work with my project from the command line. Got it published, made a branch, etc etc etc...I'm now at the part where I need to run the command 'git clone' but it's saying that 'git' is not recognized as an internal or external command
    What might I be missing?
    Ivan Storck
    @ivanoats
    @PolishZeus it sounds like you don’t have git installed, or in your path. What OS are you on?
    Mike (Mikey) Bedney
    @PolishZeus
    Windows 7. Was there a step I missed from the following?:
    https://pages.github.com/
    Mike (Mikey) Bedney
    @PolishZeus
    Unrelated question:
    I have a folder above the main directory of my html, css & js files that is called "images". I am trying to get the CSS to display the pictures where the HTML div id is shown (girl1). When I run the code, it cannot find the image. I've verified that the picture is .jpg but think that there is something fundamental that I'm not understanding. Any input?
    I'd include screenshots but I'm not sure how to get that into this chat (though it is clearly possible)
    Mike (Mikey) Bedney
    @PolishZeus
    Kk...found the image (network log helped).
    Now just gotten figure out what I need to add to CSS so it won't be invisible. I'm trying out ideas relating to setting the width, pixels (which I'd like to match the original image size), & other ideas....
    Ivan Storck
    @ivanoats
    @PolishZeus you have to install git and run git bash from the start menu https://www.dropbox.com/s/cyjaqd1fkbc3m2a/Screenshot%202014-11-28%2020.53.52.png?dl=0
    Stephen Fasano
    @sfasano
    Does the final project require us to actually use the algorithm we're visualizing, or can we simply step the viewer through the logic using animations and a default example? I'm finding it difficult to pause the algorithm as it runs, but could very easily walk the viewer through a step by step visualization/animation of the logic.
    mathowie
    @mathowie
    Here's my final project. It was a fun class, thanks y'all. http://mathowie.github.io/Code-Fellows-final/
    Ivan Storck
    @ivanoats
    @brookr ^^
    Brook Riggio
    @brookr
    @sfasano: agreed, stepping through iterations can be tricky, possibly requiring some careful setTimeout usage. That said, if you find a good way to do it with animate steps with a default example, that sounds just fine.
    Brook Riggio
    @brookr
    @mathowie: Nice project! Nicely highlights the value of keeping an eye on efficiency of algorithms.
    Stephen Fasano
    @sfasano
    I'm trying to execute a function only when a button is clicked. In this case trying to link the button with id="split" to the function "splitArr". Every time I refresh the page, my javascript is automatically executing this function even without me clicking the button. Can anyone help me out? I'm desperate at this point.
    $('#split').on('click', splitArr());
    For additional context, even if there is no other code in my js file, this will still execute the code inside splitArr() immediately upon refresh.
    Ivan Storck
    @ivanoats
    @sfasano could you put it on jsfiddle / jsbin to take alook?
    You'll notice that it autoruns the split and sort functions, even though they're only called within the .on(click) event handlers. I'm interpreting this as meaning that simply by binding the functions to a button, they're also automatically being called.
    Stephen Fasano
    @sfasano
    I may have figured this out. Instead of calling splitArr from the .on() event, I need to call an anonymous function that contains splitArr inside it. I still don't understand WHY that's the case, but trial and error has proven it to work.
    Ivan Storck
    @ivanoats
    yes… or you could pass splitArr as the parameter to the .on() method instead of invoking it like splitArr() - big difference.
    remember functions are just values in JS
    so if you look up .on() in jquery: http://devdocs.io/jquery/on the ‘handler’ is a value - either an anonymous function inline right there, or a variable that is a reference to a function
    how does that sound?
    JoeyHayden
    @JoeyHayden
    How are we supposed to submit (in Canvas) the assignment for the personalized growth plan? I've completed the survey and clicked submit with then prompted my with a save confirmation. How are we supposed to transfer that to the Canvas submission box?
    Ivan Storck
    @ivanoats
    The Canvas submission is for any extra comments
    JoeyHayden
    @JoeyHayden
    Awesome. Thanks.
    Gene Miller
    @bonyboy
    This might be something that helps others stay active during the break and maybe longer. https://deals.tuaw.com/sales/the-name-your-own-price-front-end-master-bundle
    Ivan Storck
    @ivanoats
    Interesting… thanks
    Everyone here has signed up for CodeOregon, right? ( http://codeoregon.org/ ) it’s free for any resident. Tons of stuff to keep doing on TeamTreehouse.
    Gene Miller
    @bonyboy
    @ivanoats CodeOregon is free to any resident for 2 years. After the first 60 days you must go in and register at Worksource Oregon. More information can be found here. https://teamtreehouse.com/forum/codeoregon
    Ivan Storck
    @ivanoats
    ok - what’s involved in registering for worksource?
    Do you have to be unemployed?
    Gene Miller
    @bonyboy
    I found this PDF that explains the process. You register with Worksource online and go into one of their offices to complete the registration. You do not have to be unemployed. https://s3.amazonaws.com/code-to-work/code-oregon/worksourceregtogether.pdf
    Mike (Mikey) Bedney
    @PolishZeus
    In your opinions, what would be better to continue: the Codeacademy site or treehouse?
    matt
    @mechlo
    I've been using both.
    Ivan Storck
    @ivanoats
    I think treehouse gets a bit more in depth
    Brook Riggio
    @brookr
    Codecademy has limited courses... go ahead an burn through those, then go deeper with the great variety of stuff Treehouse has.
    matt
    @mechlo
    I just signed up for the Git/Unix class on April 25th. Anyone else going to be there?