Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 05 2021 15:34
    adrianhuebner closed #172
  • May 05 2021 15:33
    adrianhuebner closed #216
  • May 05 2021 15:33
    adrianhuebner closed #219
  • May 05 2021 15:32
    adrianhuebner closed #220
  • May 05 2021 15:32
    adrianhuebner closed #222
  • May 05 2021 15:32
    adrianhuebner closed #223
  • May 05 2021 15:32
    adrianhuebner closed #235
  • May 05 2021 15:32
    adrianhuebner closed #245
  • Aug 17 2014 18:57

    SwampGuzzler on master

    tabsProject initial commit Oldest Parent inital commit Merge pull request #230 from LP… (compare)

  • Aug 17 2014 18:57
    SwampGuzzler closed #230
  • Aug 17 2014 18:56
    SwampGuzzler commented #230
  • Aug 13 2014 22:51

    SwampGuzzler on master

    Added oldestlivingparent assign… Added tabs with ajax assignment added tab-angular assignment and 1 more (compare)

  • Aug 13 2014 22:51
    SwampGuzzler closed #232
  • Aug 13 2014 22:51
    SwampGuzzler commented #232
  • Aug 13 2014 19:01
    toastynerd closed #228
  • Aug 13 2014 18:52
    toastynerd closed #229
  • Aug 13 2014 18:52

    toastynerd on master

    adding assignment 5.1 adding 5.1 adding solution for last assign… and 1 more (compare)

  • Aug 13 2014 18:52
    toastynerd commented #229
  • Aug 13 2014 03:28

    hankyates on master

    Find oldest living parents from… Tab Example with GET request fr… Tab Example by using Angularjs and 1 more (compare)

  • Aug 13 2014 03:28
    hankyates closed #217
Tyler Morgan
@toastynerd
np
Scott Romney Burbidge
@sburbidg
Scott Romney Burbidge
@sburbidg
hmm, that was working yesterday
This message was deleted
whatever, ignore the html.
So my problem here is that the last element in store isn't getting popped.
Scott Romney Burbidge
@sburbidg
I can't figure out why. Any ideas?
Tyler Morgan
@toastynerd
well first, that’s really tough to read, it should look like this:https://gist.github.com/toastynerd/88aaf18f1556fa60c9b1
except for that t on line 2 that I can’t get rid of for some reason..
also, I’ll give you a hint: you don’t need two for loops
if you hit a delimiter you sould add the word to the return array and reset the word to empty string
Kristoffer Hebert
@hirekris

(function () {
'use strict';

function Add(x, y) {
    return x + y;
}
function countDecorator(func) {
    var newfunc = function (x, y) {
        newfunc.add();
        return func(x, y);
    };
    newfunc.count = 0;
    newfunc.callCount = function () {
        return this.count;
    };
    newfunc.add = function () {
        newfunc.count++;
    };
    return newfunc;
}

}());

Scott Romney Burbidge
@sburbidg
I'll give that a look. JSbin does not like to let me format stuff correctly. I'll double check next time.
Kristoffer Hebert
@hirekris
is there a way to do this without passing arguments like x and y. This would help with reusability with any function
Tyler Morgan
@toastynerd
yeah, use the arguments keyword that I posted the docs for
Tyler Morgan
@toastynerd
var newfunc = function() {
  newfunc.add();
  return func(arguments);
}
Kristoffer Hebert
@hirekris
Lol, is there a reason why it works with only on parameter of arguments for the two parameters for x, y
Tyler Morgan
@toastynerd
well that should give you NaN but in general Javascript doesn’t enforce airity (the number of arguments in a function) its up to the programmer to make sure it’s being used correctly
or do you mean how does arguments represent both x and y?
in which case the answer is: because it’s an array and all that happens in the Javascript internals when you add arguments to a function is they get added to the arguments array.
Kristoffer Hebert
@hirekris
return func(arguments[0], arguments[1]);
Tyler Morgan
@toastynerd
yeah, that works as well
Kristoffer Hebert
@hirekris
arguments.forEach(function(){})
whoops
Tyler Morgan
@toastynerd
lol, nevermind, mine doesn’t work you have to do arguments[0], arguements[1]
Tyler Morgan
@toastynerd
ahh, that’s what I forgot, you have to use the apply method https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
var newfunc = function() {
  newfunc.add();
  return func.apply(this, arguments);
}
Joe Elsey
@joeelsey
Does Chrome support regular expressions from javascript?
Tyler Morgan
@toastynerd
@joeelsey Yeah, I’m pretty sure it’s part of the standard, so almost all modern day javascript engines should support it.
Joe Elsey
@joeelsey
Ok. I'm probably doing something wrong then because it seems like they aren't working how they should. Thanks.
Kristoffer Hebert
@hirekris
Anyone apply and hear back for the JS full-stack accelerator?
Larry Scroggins
@lwscroggins
@hirekris I've applied but haven't heard back.
Kristoffer Hebert
@hirekris
Ok, just wanted to make sure I wasn't the only one.
Tyler Morgan
@toastynerd
Just a quick announcement, I’m substitute teaching Hank’s section tomorrow and all my examples and demonstrations are going to be using node. I will also give a very brief introduction to node. So, if you want to follow along, install node http://nodejs.org/ I can also help with installs during lab time but they do have easy installers for most platforms. You can also find it using apt-get(just make sure to get nodejs and not node) on Ubuntu or Debian machines and Homebrew on OSX if you have it.
Aron Garavaglia
@agaravag
Hi everyone! Is there a trick to getting lodash to work with sublime text and chrome?
Hank Yates
@hankyates
@agaravag in chrome if you visit the lodash website and open a console it is available
Jeff Battema
@thewocky
The link to Required Reading for tonight's class has the inner html and href reversed. http://joelhooks.com/blog/2014/02/06/stop-writing-for-loops-start-using-underscorejs/
Tyler Morgan
@toastynerd
you have to include it in a script tag in your html or copy and paste the library into your dev console;
Hank Yates
@hankyates
@thewocky DOH
@hirekris you are pretty close there
Jeff Battema
@thewocky
So--lodash is basically underscore on steroids. It has all the same methods as underscore, plus more. Yes?
Tyler Morgan
@toastynerd
@thewocky pretty much, it’s also faster(they spend a lot of time optimizing for different browsers)
Jeff Battema
@thewocky
lodash : objects :: jquery : DOM elements
Ivan Storck
@ivanoats
Installing Node, I highly recommend NVM via Homebrew, if you already have homebrew for Mac. Node Version Manager (NVM) is easy to keep up to date, doesn’t require sudo to install npm packages, and allows you to test the most recent versions of node.
brew install nvm
and homebrew is at http://brew.sh - intsall instructions at bottom of page
I will be T.A.ing for Martin tonight and will also answer questions about the dev accelerators