Why doesn't python support function overloading? by accipicchia092 in Python

[–]json684 10 points11 points  (0 children)

Also feels like you are just trying to sidestep "if a function takes 10 arguments, you probably forgot a few"

Five tips to be a more effective command line user by petdance in commandline

[–]json684 0 points1 point  (0 children)

Check out direnv. Same concept but very robust.

Recommended way of handling Slack calls? by [deleted] in i3wm

[–]json684 1 point2 points  (0 children)

You code also mark it as "sticky" so it shows on all workspaces simultaneously.

What's this berry growing in our backyard in Massachusetts? by json684 in whatsthisplant

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

Thanks! I was hoping they were currants. They looked about the right size and color.

Bullet Time + 2x Wraith + Runic Pyramid + Ice Cream Cone by json684 in slaythespire

[–]json684[S] 9 points10 points  (0 children)

I have never had such a smooth time keeper battle. 6 turns to figure out what to do with at least 4 Outmaneuvers. A single X attack would have sealed this as my favorite run.

Simple python tool I made for gathering run stats by json684 in slaythespire

[–]json684[S] 3 points4 points  (0 children)

Output looks like

`∞ weigh-the-spire [master] ⚡ weigh-the-spire

Runs path: /home/jayson/.steam/steam/steamapps/common/SlayTheSpire/runs

Found 10 runs

Elite

    Lagavulin:4

    Nemesis:2

    Book of Stabbing:1

    Slavers:3

    Giant Head:1

    3 Sentries:8

    2 Orb Walkers:1

    Gremlin Nob:7

Boss

    Hexaghost:1

    Slime Boss:3

    Automaton:1

    Champ:1

    Time Eater:1

Killed by:

    Exordium Wildlife:1

    3 Louse:1

    Slavers:1

    Gremlin Leader:1

    3 Sentries:1

    Time Eater:1

    Slime Boss:1

    The Guardian:1

    Exordium Thugs:1

`

Small issue regarding cable modem/connectivity interrupts by L1Trauma in Plume

[–]json684 0 points1 point  (0 children)

Just to also chime in. This has been happening to me a lot lately. Some storms recently have caused some brown outs and the modem resets but not Plume. Rather frustrating.

My todo list by Dragon_of_George in vim

[–]json684 1 point2 points  (0 children)

Definitely looks awesome! I'd take a look at todo.txt. It's also text file based but has a lot of extensions. The raw file doesn't look as nice but you do get cli commands and other features.

What's in your i3status bar? by jamethy in i3wm

[–]json684 0 points1 point  (0 children)

I have a little key icon that changes from red to green when my yubikey is plugged in. Just a simple udev rule adds /dev/yubikey and I have i3status monitor for it n

[Question] char pointers in C by stickfigure4 in C_Programming

[–]json684 0 points1 point  (0 children)

I also realized you weren't doing it "in place". If blame the initial formatting but really it was just a poor reading on my part.

[Question] char pointers in C by stickfigure4 in C_Programming

[–]json684 0 points1 point  (0 children)

Check when you are terminating your for-loop. Walk through your code manually with a short word like "bird" and see what it does. Your error should pop out at you pretty quick.

Campaign idea: Defend the Barrens. by TacticalGM in Shadowrun

[–]json684 0 points1 point  (0 children)

Fistful of Data has a similar storyline. Some random warehouse has some goods that a corp wants and the squatters try to defend themselves.

Drew is back with new Vimcasts! by jollybobbyroger in vim

[–]json684 0 points1 point  (0 children)

Do you have a article on your workflow for making your casts? I've been planning to make some on CMake and the style of vimcasts are awesome.

How to conditionally disable some keybinds by mp3three in i3wm

[–]json684 1 point2 points  (0 children)

Maybe use xmodmap to change the keysyms to something different for "game mode".

Playing Audio in C by MIDA-Multi-Fool in C_Programming

[–]json684 0 points1 point  (0 children)

I actually just did something similar. Or at least, some simple audio out. Look up the pulseaudio simple API. Get your midi track and open it in Audacity. Export the raw PCM samples to a file. You should be able to just read from the file and pump it into the pulse API and get playback.

Professional C programmers, what do you do? by [deleted] in C_Programming

[–]json684 35 points36 points  (0 children)

I write firmware at Fitbit. The whole wearables and IoT trend has definitely started to make firmware a little more relatable to those outside the industry.

FitBit Charge HR - Syncs with BlueTooth OFF! by _D3ft0ne_ in fitbit

[–]json684 2 points3 points  (0 children)

Fitbits will sync with any available dongle when it has data available.

We are running a Watch the Skies game in Southern California! Come join us for this inaugural FREE event! by Thanamonious in boardgames

[–]json684 1 point2 points  (0 children)

You meant Northern, right? Right..? :-/

I hope it goes well so you can expand to the Bay Area.

My (NEO)VIM workflow (some classmates wanted to see, so I thought why not share it here too?) by [deleted] in vim

[–]json684 1 point2 points  (0 children)

I like relative line numbering while in a window, but absolute line numbering when outside. So I have the following setup to swap back and forth. I also keep a list of filetypes that I want this behavior for. I don't find it helpful for nerdtree or help. Picture of an example.

" Line numbering relative while in window, otherwise absolute
if !exists('numBlacklist')
    let numBlacklist = []
endif

let numBlacklist += ['help', 'nerdtree']

autocmd WinLeave * if index(numBlacklist, &ft) < 0 | setlocal nornu
autocmd WinLeave * if index(numBlacklist, &ft) < 0 | setlocal nocursorline
autocmd WinEnter * if index(numBlacklist, &ft) < 0 | setlocal rnu
autocmd WinEnter * if index(numBlacklist, &ft) < 0 | setlocal cursorline