Better HN
topnewbestaskshowjobs
Log inSign up

janka102

74 karma · joined Dec 2, 2014 (11y ago) · 22 submissions

[ my public key: https://keybase.io/janka102; my proof: https://keybase.io/janka102/sigs/TkrDqVDspM9JKB0zTUikjWVCV0IHwtXf2jpyT-dpiFw ]
Submissions

comment 4y ago · link · parent

I also couldn't find it on their website, but their GitHub says it means Safing Privacy Network. https://github.com/safing/spn/

comment 11y ago · link · parent

The actual code seems to be from here [0]

on line 588 is the comparison

    var rightWrong = (inputData[0] < inputData[1]) & (inputData[1] < inputData[2]) ? right : wrong;
With a variable declaration on line 545 being

    var inputData = [NaN, NaN, NaN],
        revealed = false,
        right = "<p class = 'g-answer g-yes'>Yes!</p>",
        wrong = "<p class = 'g-answer g-no'>No.</p>";
And `inputData` is changed on text input on line 662

    $("#g-input input").each(function(i) {
        var val = $(this).val();
        inputData[i] = $.isNumeric(val) ? Number(val) : NaN;
    });
It uses the `Number()` function to convert from the input text to an actual number, so it can convert any number format defined by ES5[1] or ES6[2]. So in ES6 you can use binary (0b, 0B) and octal (0o, 0O) formatting along with exponential (1e-2) and hex (0x, 0X). Binary and octal works for me currently on Chrome 43 OS X.

[0] http://graphics8.nytimes.com/newsgraphics/2015/06/16/puzzle/...

[1] http://www.ecma-international.org/ecma-262/5.1/#sec-9.3.1

[2] http://www.ecma-international.org/ecma-262/6.0/#sec-7.1.3.1

comment 11y ago · link · parent

My shop teacher got the pictures from manuals, so I guess that was the best he could find. I wish it were like the rest though, just because it would be more consistent

comment 11y ago · link · parent

Reposting as a Show HN

5.

Show HN: Website for my high school wood shop class to learn parts on machines(janka102.github.io ↗)

20 points · by janka102 · 11y ago · 4 comments

comment 11y ago · link · parent

I haven't before, but I just might now. It was a real pain for me to add those machines that are there now, I did it all manually by checking how far parts were from the top left of the image. I probably could have came up with a way to add parts to an image by clicking on it... oh well.

comment 11y ago · link · parent

That's really cool! Bookmarked.

comment 11y ago · link · parent

Now we're on to something...

comment 11y ago · link · parent

kek

comment 11y ago · link · parent

That sounds like a cool idea where people could collaboratively add and edit pictures of things and add the names of parts

comment 11y ago · link · parent

Thanks! Glad you like it

comment 11y ago · link · parent

Yeah I thought it was a neat idea, but unfortunately I'm pretty sure not many people in my class used it

comment 11y ago · link · parent

Yeah, go for it

comment 11y ago · link · parent

Hey, thanks! That means a lot and it's cool to know other people like it

comment 11y ago · link · parent

I started summer of 2013 and was using Bootstrap 2.3. And I've never seen Clever before, do schools have to sign up to it or how does it work?

comment 11y ago · link · parent

Thanks! For some reason I never thought of putting it on a resume, but I will now.

comment 11y ago · link · parent

I made this mainly the summer after my junior year in high school. I kinda consider it one of my very first "real" projects I've done.

We got handouts of every machine we had in the shop and had to take a test on the parts and what they did, so from those handouts I made this site hoping it would make it easier for people to study.

18.

Fab Lab – The Machines(janka102.github.io ↗)

62 points · by janka102 · 11y ago · 30 comments