Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 21 23:57
    crissycodesstuff starred codebar/tutorials
  • Jul 21 22:54

    KimberleyCook on gh-pages

    Update tutorial.md Added a few more git log comman… Pull request fixes on git log and 1 more (compare)

  • Jul 21 22:54
    KimberleyCook closed #439
  • Jun 24 21:06
    matyikriszta closed #418
  • Jun 24 21:05

    matyikriszta on gh-pages

    Modify slack invitation link Merge pull request #444 from pm… (compare)

  • Jun 24 21:05
    matyikriszta closed #444
  • Jun 24 20:03
    pmansukhani opened #444
  • Jun 19 17:07
    glitchsaur starred codebar/tutorials
  • Jun 18 23:51
    sp812bro starred codebar/tutorials
  • May 29 07:52
    verejava starred codebar/tutorials
  • May 14 19:49
    RAJESHW starred codebar/tutorials
  • May 08 19:10
    andyjp94 opened #443
  • May 06 20:45
    usehotkey closed #442
  • May 06 08:10
    idist-hn starred codebar/tutorials
  • May 02 19:09
    usehotkey opened #442
  • May 01 18:08
    jvsanchez28 synchronize #439
  • Apr 20 20:17

    KimberleyCook on gh-pages

    Correcting minor typos, and gra… Merge pull request #1 from ruth… Merge pull request #440 from ru… (compare)

  • Apr 20 20:17
    KimberleyCook closed #440
  • Apr 19 15:02
    ruthmoog opened #440
  • Apr 17 16:46
    kiraarghy closed #378
Olu Niyi-Awosusi
@oluoluoxenfree
Also, can you specify what you're comfortable coaching or do you just turn up and see? :)
Denise Yu
@deniseyu
@oluoluoxenfree yep - when you're logged in, go to http://codebar.io/subscriptions . if you would like, you can make a note on your profile but mostly people just turn up and see what happens
Olu Niyi-Awosusi
@oluoluoxenfree
Awesome, thanks :)
Jon Kelly
@jkbits1
@oluoluoxenfree that's terrific that you want to do some coaching :thumbsup: :tada: Perhaps you could mention to the organiser who calls out the pairing to keep an eye out for your hand going up for a particular set of students. As most of the students have expressed a preference in advance, and most people arrive by 6:45pm, we know the possible pairs before we call out the names.
Olu Niyi-Awosusi
@oluoluoxenfree
Good idea :)
Oliver Turner
@oliverturner
@barisbalic - @fanaugen is correct: it's "Sass", despite being an acronym (and you can see more evidence on their home page: http://sass-lang.com/)
Re SCSS being verbose, I personally like the visual affordances that brackets etc give me when parsing code and I like that it eases the transition from plain CSS for new developers
Carolina Sawney
@assembly21
so here: http://sass-lang.com/guide i'll be learning what you suggest Oliver, whatever the name? @oliverturner. Thanks in advance!
Denise Yu
@deniseyu
hey coaches - we're having some problems with coach invites in the app for some reason. next week's workshop at ClauseMatch is open for RSVP: http://codebar.io/workshops/166
Oliver Turner
@oliverturner
@assembly21 It's cool to see that they offer examples in each dialect... but again, my strong recommendation would be SCSS
Kai Chan Vong
@kaichanvong
@oliverturner @assembly21scss can be verbose like anything. It's just a tool and is often recommended because of it's compiled nature vs. css. You can still use it as if it were css. There are plenty other reasons to use it and solutions to work around it being 'verbose'. Happy to chat at pub or in a codebar session. Please bring examples and I'll bring myself and try help :- )
Carolina Sawney
@assembly21
yes but where do I learn scss? I searched for a book or a website and nothing comes up with that name, only a very short tutorial. @kaichanvong I'll email you if that's ok.
Dave Gurnell
@davegurnell
@assembly21 I'm more of a LessCSS person, but if I understand correctly, SCSS is a mild syntactic variation on SASS. Only the basic syntax is different -- the semantics are the same. This means you can probably learn SASS and translate the syntax to SCSS in your head. See http://www.sitepoint.com/whats-difference-sass-scss for more info.
Kriszta Matyi
@matyikriszta
@assembly21 this is a good overview of the different features of SCSS using the CSS like syntax
or this code school tutorial is really good, I remember doing it back in the day
the fist part is free, after that you have to pay for it but it's worth looking at the fist video at least
Baris Balic
@barisbalic
@assembly21 it's terribly named, but 'scss' and 'sass' are both Sass. Searching for Sass on it's own should bring up results but you will need to filter. The Sass-lang website shows all examples in scss by default: http://sass-lang.com/guide
Carolina Sawney
@assembly21
thanks! @matyikriszta, @davegurnell , @barisbalic
Nicky Chorley
@ndchorley
hopefully everyone's aware that there's a Tube strike starting tomorrow: https://tfl.gov.uk/modes/tube/tube-strike, sigh
Kriszta Matyi
@matyikriszta
@ndchorley yes, we have sent out a tweet about it yesterday, will repeat it tomorrow
thanks for the heads up :)
Nicky Chorley
@ndchorley
we're really in Whitechapel tonight?
Kriszta Matyi
@matyikriszta
@ndchorley yes, we are
sorry if that' a bit inconvenient for you
it's a bit further out than our usual locations
Nicky Chorley
@ndchorley
no, it's good. It's relatively easy to get home from there :D. I was a bit confused as I looked at ClauseMatch's website and that's not where their office is!
thanks :D
Carolina Sawney
@assembly21

Hi: I'm practising exercises from Head First Javascript Programming (p.101).

I write the code in the book in the console and it gives me an error: points is not defined. It's not necessary to define a variable points for the parameters, right? Thanks in advance.

var avatar = "generic";
var skill = 1.0;
var pointsPerLevel = 1000;
var userPoints = 2008;

function getAvatar(points){
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
while(i<points){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}
userPoints = updatePoints(2,100);
avatar = getAvatar(2112);

Ali
@Najaf
It looks the problem is in your usage later in updatePoints
Where you're doing while (i < points)
points doesn't appear to be defined in the scope of updatePoints I mean.
Carolina Sawney
@assembly21
the book has 6 tech reviewers...
Ali
@Najaf
:P Who wants to spend their whole day reading code? Sounds way too much like work.
Carolina Sawney
@assembly21

Hi everyone,
I'm practising Javascript with exercises from two books. They explain not to use global variables but then in the examples, they use them very often. So I'd like to rewrite this example from Javascript Head First, so that it's all done with locals. But my version is not completely right...So I'd appreciate your comments. Thanks in advance.

The code from the book:

var avatar = "generic";
var skill = 1.0;
var pointsPerLevel = 1000;
var userPoints = 2008;

function getAvatar(points){
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
while(i<bonus){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}
userPoints = updatePoints(2,100);
avatar = getAvatar(2112);

My version with locals - but gives me undefined...

function getAvatar(points){
var pointsPerLevel = 1000;
var level = points / pointsPerLevel;
if (level == 1) {
return "Teddy bear";
} else if (level == 1) {
return "Cat";
} else if (level >= 2) {
return "Gorilla";
}
};
function updatePoints(bonus, newPoints) {
var i = 0;
var skill = 1.0;
var userPoints = 2008;
while(i<bonus){
newPoints = newPoints + skill * bonus;
i = i + 1;
}
return newPoints + userPoints;
}

function init(){
userPoints = updatePoints(2,100);
var avatar = getAvatar(2112);}

Denise Yu
@deniseyu
@assembly21 could you please wrap code snippets in code tags? click the list icon at the bottom right of the textbox. it will make your code much easier to read :)
an aside, does anyone want to help QA test some new codebar app features? send me a private message
@assembly21 i think the book code is wrong. there are two conditions where level == 1. you should always use === not ==
Juyoung
@juyoungbang
@assembly21 I am just wondering why there is the same condition as 'level == 1' twice....
Juyoung
@juyoungbang

in the book,
there is the default value of 'avatar' so it seems to work well even though it is weird there is the same condition twice,
but in your version,
the return value of getAvatar() hasn’t the default one.
So if level is not equal to 1,2 or greater than 2, getAvatar() will return undefined…

you could code like following...
getAvatar(){
if(){..}
else if() {..}
return ‘generic’;
}

That is just my guess, so it might be wrong...

Kai Chan Vong
@kaichanvong
@deniseyu or another organisers for codebar. Do I need to make sure I'm on the list (of coaches). It's for my speaking slot. Wondering if I can just turn up?
Denise Yu
@deniseyu
@kaichanvong your lightning talk is next week (Thoughtworks)! tomorrow is Kate's turn. on the night that you are scheduled, if you don't manage to RSVP in time for a coach slot just email us. lightning talk speakers get priority, whether you're a coach or student...another incentive to sign up for one! :)
Kai Chan Vong
@kaichanvong
Didn't get in for this evening's event. Booo.
Denise Yu
@deniseyu
does anyone have experience migrating image assets from a heroku platform service (in this case, Cloudinary) over to AWS?
Baris Balic
@barisbalic
@deniseyu I'm not aware of any migration tools, I believe it's a case of DIY
Denise Yu
@deniseyu
@barisbalic i had suspected as much... :-/ Cloudinary wants us to pay $50 a month for optimized image hosting, but last night a few coaches suggested just getting an AWS bucket would be much cheaper. if anyone has some time to help out w this, please let me know. i've not had to do this before and don't want to accidentally delete all of our assets lol
Baris Balic
@barisbalic
You can have both in place, and not delete cloudinary resources until you're happy/sure it's all in place
Carolina Sawney
@assembly21

Hi: I'd like to know how to create a .gitignore file from the command line to exclude .idea related files. I don't know what do I need to exclude.
Or if this is just a txt.file.

I have this:

'code'
Carolinas-MBP:first_git_project carolina$ git add .
Carolinas-MBP:first_git_project carolina$ git commit -m "Initial commit"
[master (root-commit) 19c3842] Initial commit
9 files changed, 394 insertions(+)
create mode 100644 .idea/.name
create mode 100644 .idea/compiler.xml
create mode 100644 .idea/copyright/profiles_settings.xml
create mode 100644 .idea/first_git_project.iml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 first_file.html
Carolinas-MBP:first_git_project carolina$ .idea/
-bash: .idea/: is a directory
Carolinas-MBP:first_git_project carolina$
'code'

I know that inside the .gitignore file I can add this:

.idea/workspace.xml
.idea/modules.xml

Thanks!

Denise Yu
@deniseyu
in .gitignore in the root of the project directory (create one if you haven't yet), just put .idea/in it