/dpt/ - Daily Programming Thread

I’m selling the boards and electronics for 45$ (without shipping on gboards ), once there’s a decent amount of interest and I nail down the design that will come down (as I can order bulk PCB and spread the shipping). Shipping as much as it is because tracked shipping is a bad time. Compared to other builds this one is entirely SMD based and uses a on-board atmega32u4 (instead of a big old pro micro), saving space and cost. It’s meant to be used caseless (with rubber standoffs) and due to the low number of keys can have switches and caps added inexpensively :)

If you look at products like the UHK I reduce the cost by a factor of over 6! Gods keyboards shouldn’t be expensive to get into imho. This is trying to make them more accessible

I’ve got a ball at the moment, but the interface should be able to handle points or a small optical sensor. It’s in the works and the footprint will be the same so a keyboard from now will be compat with any of the pointers. Just pull it off the headers and pop on the other one

Also have the extra unused pins broken out on the backside. So if you want to hook some random shit up you can!

Attached: 229BB285-3723-4A1D-8874-28D9E2A6B437.jpg (843x497, 194K)

I made this supersimple standalone HTML presentation tool. CSS handles the visual interpretation of single slides and JS is used for keybindings and manipulation.
(You will hate me for this since it literally is just Markup langauge, but hey, at least I used javascript!)

vid
>youtu.be/KFV1Hba8SWE
demo
>librewolf.github.io/hypernote/

45$ is expensive for a keyboard pcb wtf

All that you need to add to that kit is switches and caps. As I said, it’s a little fucky until I can get all the kinks worked out due to volume. Worst case use that descount code and go for the green one, that should save between 10-15$ on her.

I want to add untracked shipping at some point, but then I have things getting lost in the mail :(

How would /dpt/ optimize this beautiful piece?

square(4)

def concatenate_strings(string1, string2)
"#{string1} #{string2}"
end

concatenate_strings("hello", "world")

#expect(concatenate_strings("hello", "world")).to eq("hello world")

Attached: 1543004082288.png (1350x1274, 3.01M)

but why

I’m unironically making an economy plugin for Minecraft because Minecraft modding is what I enjoy doing when I got nothing going on with school. Still learning the basics as I’m in first semester of CS.


I want there to be a command to create discount codes.

The way I’m thinking of doing it is having an array named dicountCodes. First column is the code and 2nd is the discount.

So if I ran something like /discount add DPT 10 it would add DPT with a discount of 10% to the array. And then I can use the array when doing shop functions.

Is there another standard practice for allowing users to create such variables to use in the rest of your program?

why would you want multiple discount codes?
Just have a globally mutable string, and parse accordingly.

It’s for other people to use. Different server owners may want to set things up differently. I don’t play the game. I just like modding

multiple codes just seems dangerous and messy unless you implement a manager for it. Which is why i said just keep one code, and change it when need be.
But I guess i see your point, if they'd ever want tier'd discount codes or something. I'd probably just use a string array and parse for the code & discount.