An interactive cli
that allows you to learn about me by navigating around a terminal emulator.
Built with JavaScript & less.
personal website
Home Page: http://codebyte.re
License: MIT License
..
, which should be "1 directory above cwd
" seems to actually have different semantics. Moreover, few other issues.
To repro:
cd projects
clear
Issues:
clear
, it says I'm in root/
, even though I'm actually still in projects/
. The ls
verifies I'm in projects/
and then lists the files therels ..
should list files in the parent directory, but actually lists files in the current directory (like ls .
) which leads me to believe ..
has the same semantics of .
cd ..
says "not a valid directory" even though, it should either (according to issue 2), not change directories and just stay in the current one without an error, or it should actually go to root/
according to standard semantics for thisKnown workaround:
Refresh π
History has little bug, even on startup, when pressing up arrow twice it shows line "undefined".
Very nice site by the way : )
@codebytere,
I will not lie this is a really cool project!!! which leads me to my question would it be cool with you applying this project to my portfolio nicotravassos.co.za which is currently a dead link because I cannot come up with something cool like this π’.
Second could you kindly add to the README how would I go by publishing this as a production version on a naked Ubuntu server? Requirements and commands would be nice π
Thanks again π€
Hi ! The ls command don't work as expected
ls command don't show content of directory when directory is specified as an argument
root$ ls skills/
proficient.txt familiar.txt
The terminal in the website https://codebyte.re/ is overflowing the footer at 100% zoom and above. Up to 90% zoom it's working fine.I have tried to correct it in my GitHub Page https://debjit-mandal.github.io , it's now fine up to 110% zoom.
In the styles folder in main.less :
.terminal-window{
ββββββtop: 15vh;
}
.footer{
ββbottom: 0;
}
Despite the current directory we're in, after the "clear" command the prompt will always show that we're in "root".
Steps to reproduce:
In the terminal, type
Nevertheless, great project! I've learned a lot by browsing your code structure and implementing more advanced options for "ls" and "cd". If you're interested, you can check out my fork.
I know you haven't put any updates out for your personal website in a long time. I just thought I would suggest some changes when you have time, and if you want to make them.
Remove position fixed from terminal window
.terminal-window.fullscreen {
...
/* position: fixed; */
...
}
Remove top 0 from terminal window
.terminal-window.fullscreen #terminal {
/* top: 0; */
}
Animate the window resizing
.terminal-window {
...
transition: all 0.5s ease;
}
Add css minimized state
.terminal-window.minimized {
height: 30px;
top: calc(100vh - 38px);
width: 250px;
}
Add the pointer while hovering the minimized button
.terminal-window header .button.yellow {
...
cursor: pointer;
}
Add functionality to the button
...
const registerMinimizedToggle = () => {
$('.button.yellow').click(() => {
$('.terminal-window').toggleClass('minimized')
})
}
...
$(() => {
...
registerMinimizedToggle()
...
}
Change Lato for Menlo, add enough room from the bottom for the minimized state, and also make your position absolute so that the footer is actually centered and not off by a wee bit.
.footer {
position: absolute;
bottom: 40px;
left: 0;
right: 0;
text-align: center;
line-height: 0.1px;
color: white;
font-family: Menlo, Monaco, "Consolas", "Courier New", "Courier";
}
It's sucks to type Clear, and it throws an error. "Clear" and "clear" should be same.
we are able to cat resume.txt while in struct
The terminal is too small on mobile. Make it longer than wide for small screens.
Hi @codebytere,
Check out my version of an interactive command-line interface portfolio page.
Maybe it make good use to you as a snippet for your current portfolio page?
Site code can be found here
I'm not a js Dev, so I don't know if this is possible, but is it possible to reflect actual file locations in the repo? If it is not possible to do so dynamically, what about statically? Build a file map at "compile" time which holds a XML tree. Client side js queries the XML and parses for files. Rest remains same.
cd and ls need to be changed drastically, but it should solve the cd ..
problems
Hi,
the command in object doesn't work. Besides add a README.md more clear in order to install and use this repository.
You can read for example a my README.md project : https://github.com/amanganiello90/java-angular-web-app
Thanks
The site can currently be browsed using plain http
.
Since it's hosted on GH pages, forcing HTTPS should be trivial to enable.
Cheers!
Observed:
root $ cat skills/proficient.txt
Error: file not found in current directory
Expected:
The file content is displayed from a directory different from pwd
Check this link out version 2.0 with lots features but not sure if itβs the same library you use.
See example
https://codepen.io/jcubic/pen/WZvYGj
This will fix browser responsive currently when I open your page on Firefox the cursor is in middle of terminal until I start typing.
Cool site. Seems the usage of localStorage
is buggy though. In particular, in this line:
codebytere.github.io/js/shell.js
Line 42 in 3d5854b
localStorage.inHistory
will always evaluate to be true
. That's because everything put into localStorage
is coerced to a string:
So this line:
codebytere.github.io/js/shell.js
Line 12 in 3d5854b
is actually setting inHistory
to the string "false"
, and Boolean("false") === true
.
Doesn't look like your usage of localStorage
persists between page loads (everything resets) so there's no real need to use it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.