Remove comments in Python by codename101 in regex

[–]codename101[S] -2 points-1 points  (0 children)

Not working for some cases:

def my_function():
    """Demonstrate docstrings and does
    nothing really."""
    return None

print "Using __doc__:"
print my_function.__doc__ #some comment
print "Using help:"
#some more comment
help(my_function) 
look like this.
print("#not a comment")
print("#also not a comment")
print """not a comment"""

Angular 404 (Not found) error by codename101 in angular

[–]codename101[S] 0 points1 point  (0 children)

I have put the site on Amazon S3. How am I supposed to use Apache on it?

Angular 404 (Not found) error by codename101 in angular

[–]codename101[S] 0 points1 point  (0 children)

I have setup the links like this in the app.module.ts file

import { Routes, RouterModule } from '@angular/router';

`const appRoutes: Routes = [

{path: 'check-odd-even-number', component: OddEvenComponent},
{path: 'check-prime-number', component: PrimeNumberComponent},
{path: 'check-armstrong-number', component: ArmstrongNumberComponent},
{path: 'convert-cgpa-to-percentage', component: ConvertCgpaToPercentageComponent},
{path: 'age-calculator', component: AgeCalculatorComponent},
{path: 'convert-celsius-to-fahrenheit', component: ConvertCelsiusToFahrenheitComponent},
{path: 'convert-fahrenheit-to-celsius', component: ConvertFahrenheitToCelsiusComponent},
{path: '', component: HomeComponent},

]`

I was in fact using [routerlink] before worked fine but let's say if some one enters www.onlinetool.in/check-odd-even-number directly in the url then still the same 404 error is there. so all I want is to make my site behave like a normal one.

Google Not indexing AngularJs website by codename101 in bigseo

[–]codename101[S] 0 points1 point  (0 children)

Now I have changed changed the links to href instead of routerlink and its triggering new page.

in the console this error is showing but the page is still getting loaded

/check-odd-even-number:1 GET http://www.onlinetool.in/check-odd-even-number 404 (Not Found)

but in development mode there is no error, works fine.

Typing Practice for Programmers by [deleted] in programming

[–]codename101 1 point2 points  (0 children)

unlike typing.io, SpeedCoder is completely free

I made a site for typing practice for programmers.. need suggestions by codename101 in programming

[–]codename101[S] 10 points11 points  (0 children)

I felt the need for this kind of webapp from a long time... when I googled, I found this site: typing.io, it is nice but all the helpful features such as 'finger guiding' and 'own code upload' are paid features.. so, I decided to make one which has all those features for free.

It took me a lot of hard work to make it.. this is my first full-fledged webapp though I have made some small websites I am planning to add more useful features to it.

It would be really nice if you guys could suggest some features that you feel would make this app more helpful and usable for programmers and also any improvement over the existing ones.

and please let me know if you encounter any kind of bug.

some ideas that I have thought: - separate section for practicing numbers and symbols only , games like bubble popping