Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
CamperBot
@camperbot
andrew1024 sends brownie points to @oppiniated and @sunsplat :sparkles: :thumbsup: :sparkles:
:cookie: 351 | @oppiniated |http://www.freecodecamp.com/oppiniated
:cookie: 368 | @sunsplat |http://www.freecodecamp.com/sunsplat
Oulghard Adil
@AdilOulghard
@sunsplat thanks yes of crs
CamperBot
@camperbot
adiloulghard sends brownie points to @sunsplat :sparkles: :thumbsup: :sparkles:
:cookie: 369 | @sunsplat |http://www.freecodecamp.com/sunsplat
Anders
@Skretch
Anyone know why this ```
Anyone know why this (tempStr[i] == 'C') ? tempArr.push(['C','G']) : tempArr.push(['G','C']);
is throwing a "Expected an assignment or function call and instead saw an expresison." error?
Ellen
@sunsplat
what is your tempStr?
Max Ho
@maxnathaniel
Hi all, am trying to figure out what is the best approach to save html templates. Is it to store into DB as BLOB or as string?
Ellen
@sunsplat
I think there is a max length to a string. blob would be better
Max Ho
@maxnathaniel
@sunsplat yeah, i think varchar can store quite alot but there's still a limit. hmm, is that the best practice though? BLOB sounds good, but there's a performance consideration as well
Ellen
@sunsplat
You can also break apart the template and store individual components. Putting the components back together when you need them.
Anders
@Skretch
@sunsplat tempStr is an array containing the string that was passed to the function
the string is sepperated into each letter
Ellen
@sunsplat
What is your whole code? Cause when I put in your snippet, I don't get any errors. @Skretch
Max Ho
@maxnathaniel
@sunsplat sounds like i can give it a try. thanks! ;)
CamperBot
@camperbot
maxnathaniel sends brownie points to @sunsplat :sparkles: :thumbsup: :sparkles:
:cookie: 371 | @sunsplat |http://www.freecodecamp.com/sunsplat
Anders
@Skretch
@sunsplat ```
sec
function pairElement(str) {

  var tempStr = str.split("");
  var tempArr = [];

  for(i = 0; i < tempStr.length; i++){
    if(tempStr[i] == 'A' || tempStr[i] == 'T'){
      (tempStr[i] == 'A') ? tempArr.push(['A','T']) : tempArr.push(['T','A']);
    }else{
      (tempStr[i] == 'C') ? tempArr.push(['C','G']) : tempArr.push(['G','C']);
    }
  }



  return tempArr;
}

pairElement("GCG");
always forget to hold shift while pressing enter xP
fixed it by converting them to if statements, I was just wondering why it was throwing an error when it is written like this
Ellen
@sunsplat
It's probably freecodecamp wasn't used to seeing that
yea, there's nothing wrong with your code
good job!
Anders
@Skretch
k, nice thanks
Max Ho
@maxnathaniel
@Skretch your var i is not defined actually
Anders
@Skretch
I know I wanted to test if it was possible to keep local
Thayyeb salim
@Thayyebsalim
Hello guys I just finished my Tribute Page Project
I'd be more than happy if you give me some advices.
Ellen
@sunsplat
Wow! Looks very nice @Thayyebsalim
Anders
@Skretch
@maxnathaniel Seems like I got that backwards, it becomes global when you don't use the var inside a function.
DavidAcala
@DavidAcala
Nice set up. Awesome work.
Max Ho
@maxnathaniel
@Skretch yeah, that sounds about right :) Read this - it's awesome stuff http://bonsaiden.github.io/JavaScript-Garden/
Thayyeb salim
@Thayyebsalim
@sunsplat @DavidAcala Thank You guys
CamperBot
@camperbot
thayyebsalim sends brownie points to @sunsplat and @davidacala :sparkles: :thumbsup: :sparkles:
:cookie: 9 | @davidacala |http://www.freecodecamp.com/davidacala
:cookie: 372 | @sunsplat |http://www.freecodecamp.com/sunsplat
DavidAcala
@DavidAcala
Hello, all! I have little computer skills, and it's not advanced enough for Sublime and Bootstrape. Any advice on getting the command codes, how they connect to a .com search engine request? Because Go Daddy still has my name as host, but their security is aweful. Somehow they've managed to open two accounts, and under one name. As I'm teaching myself Sublime and Bootstrape, why do I need another Host?
Max Ho
@maxnathaniel
@Thayyebsalim looks real good! You can try playing with different icons - like a bolder icon for headers to add contrast.
*sorry, fonts not icons
Ellen
@sunsplat
I think they should have a cpanel where you can access your code and download @DavidAcala
or if you have an ftp you can connect that way and grab the files you need. The ftp information should be provided by go daddy
Anders
@Skretch
@maxnathaniel Nice. A little reading material for my 12 hour work shift of doing nothing xP
Thayyeb salim
@Thayyebsalim
@maxnathaniel Thank you for the advice, I'll surely look into it.
CamperBot
@camperbot
thayyebsalim sends brownie points to @maxnathaniel :sparkles: :thumbsup: :sparkles:
:cookie: 291 | @maxnathaniel |http://www.freecodecamp.com/maxnathaniel
F22rapt
@F22rapt
ohio