A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.
5
votes
1answer
51 views
Text-based Dungeon Crawl game
This code is an answer to an exercise I found on the cplusplus forums.
I'm a beginner so any reviews will be appreciated :)
Make a program that outputs a simple grid based gameboard to the screen ...
5
votes
2answers
33 views
CLI Twitter client in Python
Here is a simple client for Wwitter that I wrote based on the twitter library in Python. The aim is to be able to read the feeds from different twitter accounts ...
1
vote
0answers
57 views
Interactive command line YouTube downloader with option to burn subtitles into video
This is only used on Mac machines. I know that there is a Python implementation of youtube-dl and several for ffmpeg, however I chose to use subprocess so that I can see the real-time stdout/stderr ...
2
votes
0answers
36 views
Application for encrypting and decrypting files in Java - follow-up
(Everything needed for running the app is here.)
I have refactored my previous version a bit.
App.java:
...
3
votes
1answer
53 views
Application for encrypting and decrypting files in Java
(See the next iteration.)
I have that application for en-/decrypting files. Here, I will post the actual GUI and command line code. In order to run the program refer to this GitHub repository.
Some ...
4
votes
1answer
52 views
File creation program
I have written a program that is very simple, with a very specific purpose. However, having written it in approximately 2 hours, (with a bit of cut/paste from some of my other programs and MSDN) it's ...
2
votes
1answer
27 views
Bash script menu
Any comments on this?
Like there is a way to get rid of all the if-statements or a better way to # check model and build (which ...
5
votes
2answers
134 views
First Tic Tac Toe game
I've been learning Objective C for a few days so to test my skills I went ahead and made a simple Tic Tac Toe game using the console. I already have some experience with languages such as C++, Java ...
2
votes
0answers
43 views
Execute commands over Telnet, logging to a file
I have made some code that will login to a device and send all your additional commands. It also logs the commands and the returned values to a file on the local system.
Hope somebody can tell me if ...
3
votes
2answers
41 views
Constraining stdin in Python, v2.0
Rags, again.
This is the rewrite of Read stdin like a dictator.
From that post:
All too often I find myself wanting to allow only a certain list of characters to be written to stdin, and only ...
4
votes
2answers
81 views
Colorful output on terminal
I went from manually outputting escape codes in each string to creating a utility struct/class full of static functions and variables that needed to be initialized in source files (static private ...
4
votes
2answers
80 views
Un*x terminal history wiper
Using various answers from Stack Overflow and Ask Ubuntu, I've hacked together this simple C program that wipes terminal history. It works but I'm relatively new to C so I'm not sure if everything is ...
-1
votes
0answers
51 views
performance issue of application using entity framework 6
I have a console application in which I used Entity framework 6. In order to reduce the time of the first instanciation and the first read operations . I used Three ...
4
votes
3answers
142 views
Filter column and row according to regex in header
I'm writing a script that can grep the rows and columns from a text file that match a regex. I have an implementation but I'm looking to make it more elegant.
input.tsv
...
2
votes
1answer
90 views
Connect4 With AI
I have made a connect 4 console application in C++ and would love some feedback. In this project I have learned about inheritance and using virtual functions.
Main.cpp
...
6
votes
2answers
217 views
Command Prompt TicTacToe in C#
I wrote a basic command prompt Tic Tac Toe Game. I want to know what can be improved in terms of modeling and what mistakes I've made (if any).
...
3
votes
1answer
33 views
Terminal ESC Sequence Decoder
The goal of this code is to read-in a stream of terminal ESC sequences, and break them down and fill a vector of parameterized sequences for processing later on.
For example ...
6
votes
1answer
81 views
Read stdin like a dictator
Rags.
Introduction
All too often I find myself wanting to allow only a certain list of characters to be written to stdin, and only recently did I actually ...
5
votes
3answers
384 views
Dr. Nim game in Java
This video should explain how the game works, but in simple form, it's a game where you enter a number between 1 and 3, This number is than removed from 12, in doing so the computer will then pick a ...
4
votes
1answer
39 views
JavaScript (ES7) LOC counter
I've been writing JavaScript for a couple years but nobody's ever really looked at my code.
This is a small library I wrote to check code modularity, w/ input like ...
54
votes
6answers
9k views
How clean is my snow?
I just wrote a snow animation in Python. I think this is fairly clean but I have a few things that I don't like.
...
3
votes
1answer
70 views
FFmpeg command line for showing two videos side by side
Here is command line for playing two videos side by side in sync in FFmpeg (ffplay). It can be useful for comaring videos, for example.
...
7
votes
1answer
111 views
Connect Four - Console Application
I have attempted to make the classic game Connect Four in C++, and I would love some feedback on this project. I have done everything myself without using the help of a tutorial or guide, so sorry if ...
3
votes
1answer
102 views
Battleships console game
I have built a light version of a battleships program and would love for anyone to critique it. The game does not feature OOP, AI nor multiple boards. I aimed more for functionality than correct ...
3
votes
3answers
68 views
Systems management using SSH for my school
I wrote this script in order to generate a hosts.txt file with the IP addresses of the laptops in my school.
Each laptop is assigned a number, and their IP addresses are assigned to them with the ...
5
votes
1answer
221 views
Tic Tac Toe - Console Application
I feel that I have done as much as my knowledge base allows me to on developing this tic tac toe program. I would love for anyone to critique it and tell me of any good/bad points.
Includes two ...
8
votes
2answers
74 views
“Drone Racer” now shipping in your local area
This question is a follow-up of this one; where I present a software to plan and manage drone races. I might come with a new question about the SQL part in a few days as well.
The code can still be ...
3
votes
2answers
82 views
Console animations
I'm a coder who's relatively new to Python and I wanted to spice up my console applications a bit by making animations. The code I've written works perfectly, but I just wanted to know if it was good ...
2
votes
0answers
50 views
Termios/Xterm line editor for APL interpreter
As an interesting sub-part of an interpreter -- just the Read part of the REPL -- I present my raw-mode line-oriented editor that I intend to use for my APL interpreter. (The Eval part has been posted ...
7
votes
2answers
270 views
Hexadecimal command line file viewer
I have been working on a project for several days. It is a command line program for viewing files in hexadecimal. It is usually very fast, but is there any way I could make it more efficient?
...
4
votes
2answers
59 views
Closing InputStream of a running process
Let's say you want to extract the output of a console application till you've found a certain keyword. If you have found the keyword the started console process still should be running, however the ...
16
votes
3answers
654 views
Tic Tac Toe - console application
I have made a little Tic Tac Toe console application using OOP techniques and would love to get some advice and guidance on what I have done. I have tried to structure the program to be as organized ...
3
votes
0answers
63 views
Console Command module (in-game console or base for script engine)
I've created a console/terminal command handling module that allows the programmer to bind functions to a command name and later execute them from std::string. What's new is that it handles most stuff ...
10
votes
3answers
105 views
Counting characters
I'm a beginner at coding, and I am looking to improve the structure of how I write code and will take any tips. Posted a simple program that takes your name as input, then runs the string through a ...
1
vote
0answers
36 views
Pipeline processing for a command line interface (CLI) program
I currently have this code that is controlling my CLI flow:
...
3
votes
1answer
65 views
Non-curses pager in C (revision 2)
In this revision (follow-up of this post) I've fixed reading from stdin, and also tried to minimise the damage caused by typing additional characters. You might want to see my original post on this.
...
8
votes
1answer
359 views
Non-curses pager in C
I have written a pager in C that is supposed to be used in systems where curses is not installed (or broken). It can also be used as a system-wide pager, it works ...
3
votes
0answers
37 views
Command-line ssh address book app
I'm trying to learn a bit about Golang and decided to try out building an SSH address book command-line app. I used a YAML library to serialize and store data in a configuration file. The app has a ...
2
votes
2answers
59 views
Flashcard memory training
I have written a simple flashcard program that runs in the terminal:
It loads the cards from an ordinary .txt file.
It provides a way to add flashcard from within ...
-5
votes
1answer
168 views
Blinking console start menu
gotoxy() allows you to place the blinking text wherever you want. I wasn't able to get it to behave the way I wanted, so you will notice I had to insert a bunch of ...
2
votes
0answers
68 views
Node JS Beginner's CLI Game of Life
I have finished writing my first Node.js app: a CLI app that runs Conway's Game of Life. I am looking for feedback on things that might not have been done the "Node.js way" and what I can do to better ...
4
votes
1answer
70 views
Parsing a command line
I've written an object which allows parsing and serializing a command line. I don't in any way consider this done, but this is the beginning of it. I know there are other implementations out there ...
3
votes
1answer
72 views
Ruby Command Line Tic-Tac-Toe
The following is my implementation of a command-line Tic-Tac-Toe game, written in Ruby. This was my first attempt at practicing object-oriented design principles.
...
7
votes
2answers
212 views
Small “Grid Battle” console game
This is my first attempt to make a game on my own. I just want to see if anyone has any comments. Am I doing things, at least, sort of alright? Is there a better way I could deal with the input?
...
5
votes
2answers
53 views
Sokoban text clone
I rewrote this simple, list-based Sokoban implementation a few times, trying to make it better. Right now, I'm stuck without ideas, but I still feel there is room for improvement, specially in ...
2
votes
2answers
47 views
Simple ConsoleWorker
This class updates the console's title so it can tell the person using it the programs uptime, which can be pretty useful. The class holds a timer and each time the timer executes it will call the ...
18
votes
3answers
1k views
“Up” script for moving up directories quickly
A long time ago I created a script for moving up directories very quickly in the command line using the command up. You can find usage notes here.
It's a very ...
7
votes
1answer
125 views
Simple console Snake game following GRASP
I would like to know if there is anything that I missed following the GRASP patterns.
The Main Controller class:
...
2
votes
1answer
65 views
Tagging the directories and switching between them by tags
MOTIVATION
I have this small software package that allow users to maintain a simple text file that looks like
tag1 path1
tag2 path2
.
.
.
For example, it may ...
4
votes
3answers
1k views