Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 06 19:04
    ricardoreves starred codebar/tutorials
  • May 06 18:58
    ricardoreves starred codebar/tutorials
  • May 06 18:03

    KimberleyCook on gh-pages

    Replace use of 'join' function … Merge pull request #480 from bd… (compare)

  • May 06 18:03
    KimberleyCook closed #480
  • May 06 17:57
    bdsl opened #480
  • Apr 22 09:37

    KimberleyCook on gh-pages

    add more youtube links (compare)

  • Apr 21 10:38

    KimberleyCook on add-youtube-links-to-some-tutorials

    (compare)

  • Apr 21 10:38

    KimberleyCook on gh-pages

    add youtube links for further l… Merge pull request #479 from co… (compare)

  • Apr 21 10:38
    KimberleyCook closed #479
  • Apr 21 10:38
    KimberleyCook review_request_removed #479
  • Apr 12 12:31
    KimberleyCook review_requested #479
  • Apr 12 12:31
    KimberleyCook opened #479
  • Apr 12 12:29

    KimberleyCook on add-youtube-links-to-some-tutorials

    add youtube links for further l… (compare)

  • Mar 11 08:29
    zevaverbach starred codebar/tutorials
  • Mar 03 13:31
    Aliciawyse closed #403
  • Dec 29 2021 12:47
    KimberleyCook closed #446
  • Dec 29 2021 12:46

    KimberleyCook on gh-pages

    update README with correct Bund… Merge pull request #476 from ro… (compare)

  • Dec 29 2021 12:46
    KimberleyCook closed #476
  • Dec 29 2021 12:46

    KimberleyCook on gh-pages

    Update old links Merge pull request #478 from ro… (compare)

  • Dec 29 2021 12:46
    KimberleyCook closed #478
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
Carolina Sawney
@assembly21
but idea has .idea/first_git_project.html that's the one I'm tracking...and how to I create the file, what kind of file is it. What should I write on the command line I mean.
Denise Yu
@deniseyu
then exclude by extension, like .idea/*.xml, etc
Baris Balic
@barisbalic
@assembly21 @deniseyu from the command line you can use echo in conjunction with >> to append to a file
@assembly21 @deniseyu for example echo .idea >> .gitignore will add ".idea" to the ignore
If you use special characters you may need to put " around the string
echo ".idea" >> .gitignore
Carolina Sawney
@assembly21
that's the line of magic I needed, cheers.
Baris Balic
@barisbalic
@assembly21 no problem!
@assembly21 be cautious of dropping > because that will overwrite the file rather than append to it
Carolina Sawney
@assembly21

Shall I ignore the .gitignore "untracked files" and the "changes not staged for commit"? Here's the console.

"code"
Carolinas-MBP:first_git_project carolina$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified:   .idea/misc.xml
modified:   .idea/workspace.xml

Untracked files:
(use "git add <file>..." to include in what will be committed)

.gitignore

no changes added to commit (use "git add" and/or "git commit -a")
Carolinas-MBP:first_git_project carolina$

"code"

Thanks.

Baris Balic
@barisbalic
Sorry I cannot understand what that means
You wanted to ignore idea?
you would need .idea/ in your .gitignore
Carolina Sawney
@assembly21

yes, but now if I do git status I get changes not staged for commit and lists the .idea files that I modified. And also says that I have an untracked file, .gitingore.
In the .gitingore I have all this:

.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/first_git_project.iml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml

Baris Balic
@barisbalic
Okay, so the problem is that these files had already been added to git
You need to tell git to forget about them, and then they won't creep up like this
You will also need to add the .gitignore, that cheeky beggar lives in git alongside your project
Carolina Sawney
@assembly21
Shall I start again?
Baris Balic
@barisbalic
Have you pushed this code to github yet?
Or is it all just local?
Carolina Sawney
@assembly21
local
Baris Balic
@barisbalic
Okay TBH it's a bit hairy if you are unfamiliar with git, you would need to rebase, remove the files from the index and amend the commit.
It would probably be quicker to destroy the .git/ folder in the project, do a git init and just re-add the files you do care about
Carolina Sawney
@assembly21
ok
Baris Balic
@barisbalic
git init will make it a repo, but it wont add the remote, so if you have it on github you will need to add the remote again
but that's quite easy, it's just git remote add origin git@github.com:YOURUSERNAME/YOURREPONAME
If any of this is confusing please tell me and we can jump to DM and go step by step
Carolina Sawney
@assembly21
I think I can do it, cheers. I'll learn remotes tomorrow.
Baris Balic
@barisbalic
No problem @assembly21 feel free to DM me if I dont reply, I don't pay as much attention to gitter as I used to
Carolina Sawney
@assembly21
DM?
Baris Balic
@barisbalic
Direct Message
Should result in an alert on my phone
Carolina Sawney
@assembly21
ja! ok.
Kriszta Matyi
@matyikriszta
@kaichanvong sorry for the late notice but are you available to do your lightning talk tonight? I can see you are on the coaches list
Kai Chan Vong
@kaichanvong
@matyikriszta late notice? I've known about the talk for quite a few weeks! Yes I will be around.
Kriszta Matyi
@matyikriszta
ok, great, thanks! looking forward to it
Kai Chan Vong
@kaichanvong
However thank you for the reminder. Definitely helpful!
I'm not! ; )
Kriszta Matyi
@matyikriszta
@kaichanvong could you download https://www.fuze.com/ before the satrt of the workshop?
it's what ThoughWork uses to do presentations