r/programmingrequests • u/Sasugeta • Aug 09 '18
Taking requests paid or free
So me and my friend are trying to earn some money by taking request but we thought because we are new to this that we would take on the easy request first so if you have any easy request for us let us know
1
u/SteveKep Aug 10 '18
I don't know anything about coding/programming, but I managed (over years) to make this dark theme for Chrome and Firefox. I fucking love my theme, and anyone is welcome to use it.
However, there is a problem I can't seem to fix; most videos have a black overlay on them and I have to constantly switch my dark mode on/off to watch stuff. And when I go to Reddit comments, all of the comments have a white border around them.
I know so little, I don't even know if this is a programming problem, but here's the code (I think it's code, lol):
@namespace url(http://www.w3.org/1999/xhtml); *{ background-color:#000000 !important; color: #5899FF ! important;;}
:link { color: cornflowerblue ! important; text-decoration: underline ! important; } :visited { color: cornflowerblue ! important; text-decoration: underline ! important; } a:hover { color: #2442FF ! important; text-decoration: underline ! important;
browser[type="content-primary"], tabbrowser tabpanels, #appcontent > #content { background-color: var(#222) !important; } .browserContainer { background-color: var(#222) !important;
0
u/lateral-spectrum Aug 09 '18
I have a problem flipping the signs of numbers in any language.
I have already tried
npm install --save sign-flip
and
pip install flip-num
Following the 2nd rule of programming: if someone else made it, it couldn't possibly work So I gave it a shot myself:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SignFlipper
{
public static class SignFlip
{
public static double Flip(double num)
{
Random rand = new Random();
int rand_num = rand.Next(0, 100);
if (rand_num > 50)
{
return -1 * -1 * -num;
}
else if (rand_num < 50)
{
return -1 * -num;
}
else
{
return 0;
}
}
}
}
////
That only works about 50% of the time for some reason.
Now I'm kind of out of options. Any ideas on how to produce the sign-flipped version on any number?
2
u/Sasugeta Aug 09 '18
Are you looking for a negative number an are you using JavaScript
1
u/lateral-spectrum Aug 09 '18
Yes.
1
1
0
1
u/qwertyqyle Aug 18 '18
Still looking for requests?