Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
  • Aug 13 2014 03:28
    hankyates commented #217
  • Aug 13 2014 03:24
    hankyates commented #212
  • Aug 13 2014 03:24
    hankyates closed #212
  • Aug 12 2014 05:38

    hankyates on master

    First Commit of Ajax Assignment Merge branch 'master' of https:… Merge pull request #221 from st… (compare)

  • Aug 12 2014 05:38
    hankyates closed #221
  • Aug 12 2014 05:37
    hankyates commented #221
  • Aug 12 2014 05:35

    hankyates on master

    version 1, assignment 7.1 first version of assignment 6.1 first version of assignment 6.1 and 7 more (compare)

  • Aug 12 2014 05:35
    hankyates closed #200
Hank Yates
@hankyates
ill take a look at your pr's and get back to you
Hank Yates
@hankyates
just a heads up to everyone i updated the covered topics a little bit for tonight. have a look http://hankyates.github.io/F2-javascript-textbook/class_5/algo_ds.html
Michael Caprio
@Kinrr
Anyone else have problems getting lodash to run inside of node?
var _ = require('lodash');
returns undefined so I'm unable to call any of my lodash functions.
Tyler Morgan
@toastynerd
if you’re in the repl you can’t name lodash ‘_'
Michael Caprio
@Kinrr
Copy - thought we needed to find a way to make it work with '_'. if it's OK to leave
var _test = require('lodash');
then I'm good to go.
Joe Elsey
@joeelsey
So I wasn't entirely comfortable with lodash yet and I did the homework in vanilla js. I can redo it in lodash later if its an issue. I might just anyways when I get more knowledgeable?
Mandi Grant
@MJGrant
@joeelsey What kind of trouble did you run into with lodash? Maybe some of us can try to help you through it. It's definitely worth getting the hang of.
Joe Elsey
@joeelsey
My biggest issue right now, aside from learning the new syntax, is I don't understand how to test my code for node/underscore. I know we went over it in the last class, but I missed it while figuring out ho to install. I'm going to research a bit more before class tonight, but yeah I'd appreciate any help I can get. Thanks.
Mandi Grant
@MJGrant
If you've got node set up properly in the folder, try typing node yourfilenamehere.js in Terminal (or your equivalent) to actually run the file. What happens if you do that?
Livingston Martin
@LPM42
After node is installed, you type in terminal:
node <filename.js>
it should return any console.log outputs and/or errors.
Michael Caprio
@Kinrr
@joeelsey You can also run your code directly in terminal by typing 'node' - the prompt will change to >
Just ensure you've required/included the lodash library and are in your node_modules dir
Hank Yates
@hankyates
@Kinrr might need to npm install lodash in the directory
@joeelsey vanilla is fine. lodash just makes it easier
Ivan Storck
@ivanoats
@SwampGuzzler you’re all set on the repo
Hank Yates
@hankyates
thanks @ivanoats
Joe Elsey
@joeelsey
@MJGrant So that worked. Thanks! But I'm copy pasting code examples from http://underscorejs.org/#find into my test file and the _. is coming up undefined.
var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}];
_.pluck(stooges, 'name');
Mandi Grant
@MJGrant
@joeelsey Does your file start with var _ = require ('lodash');?
@joeelsey I was able to get this code to deliver an array of Stooge names in my own local file:
var stooges = [{name: 'moe', age: 40}, {name: 'larry', age: 50}, {name: 'curly', age: 60}];

getStoogeNames = function(stooges) {
  var stoogeNamesVar = _.pluck(stooges, 'name');
  console.log("Stooge names: ", stoogeNamesVar);
};

getStoogeNames(stooges);
This message was deleted
That renders this result in Terminal: Stooge names: [ 'moe', 'larry', 'curly' ]
Joe Elsey
@joeelsey
I didn't before. I was able to make it work now. Thank you.
Mandi Grant
@MJGrant
Awesome!
John Fahey
@faheydesign
Scott Romney Burbidge
@sburbidg
@faheydesign cool, thanks.
Scott Romney Burbidge
@sburbidg
the websites I found to explain this kinda over complicated it
so here is a simple explanation on how to debug your js files in chrome
Scott Romney Burbidge
@sburbidg
This message was deleted
This message was deleted
Scott Romney Burbidge
@sburbidg
So for something like a node_modules folder is it best to just do a global ignore?
Hank Yates
@hankyates
yup
i put mine in ~/.global_gitignore
then in ~/.gitconfig
[core]
  excludesfile = ~/.gitignore_global
Scott Romney Burbidge
@sburbidg
and once you do that you don't even need to worry about the file type you ignore when you install it into a new project?
Hank Yates
@hankyates
yeah pretty much
Scott Romney Burbidge
@sburbidg
certainly a lot less tedious, Thanks
Ivan Storck
@ivanoats
If you’re on a mac, also put .DS_Store in your .gitignore_global
Hank Yates
@hankyates
oh please do that
thanks @ivanoats !
oops, forgot node_modules! :panda_face:
Scott Romney Burbidge
@sburbidg
where do you put the global git ignore? Some places are saying in your root directory and some are saying in a repository.
Hank Yates
@hankyates
i put it in my home folder
.gitignore is for a repo
Scott Romney Burbidge
@sburbidg

Idk if this will help anyone but it helped me when I sort of messed up where my .gitignore files were.
enter:

defaults write com.apple.finder AppleShowAllFiles TRUE

TRUE will show hidden files and FALSE will hide them again.

Tyler Morgan
@toastynerd
you can also use ls -a
Scott Romney Burbidge
@sburbidg
ah, that is simpler. I was trying to find the ls option that would include hidden files.