Create basic web interpreter project
This commit is contained in:
commit
92b2d35b3b
5
build
Executable file
5
build
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
cd /workspace/SigPlace
|
||||||
|
javac -Xlint:unchecked -cp . sigPlace.java
|
||||||
|
printf "\n\n\nRunning Program...\n\n"
|
||||||
|
java sigPlace
|
||||||
|
./clean
|
2
clean
Executable file
2
clean
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
cd /workspace/SigPlace
|
||||||
|
find . -type f -name *.class -delete
|
15
readme.md
Normal file
15
readme.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
This repository will host the files necessary to build and run a website created by Sig.
|
||||||
|
|
||||||
|
There are a couple of reasons I want to make this website:
|
||||||
|
- A place to exist. (As of late, I have had no place to just directly insert my content.)
|
||||||
|
- Develop the simplest possible product to get the job done. (I considered using fancy technologies like React and Bootstrap CSS and it's all just bloat and unncessary. I want people to load my site in the few kb they need to see to work with it. Not hundreds and hundreds of extraneous unnecessary bits.)
|
||||||
|
- Share Code. I need the ability to share what I do coding-wise and to allow others to type up code to run as well for practicing.
|
||||||
|
- Project Management. Able to internally hold all my project data and show off what I work on. I'm not content with just "oh, here's yet another project on github." I want more metadata tied to it and a clean, concise way for others to go looking at it.
|
||||||
|
- Interactivity. I want people to be able to talk to me and reach out to me if they have a sudden urge or need, or just a random question that I could answer. It needs to be simple, fast, and available (Mobile notifications? https://developers.google.com/web/fundamentals/codelabs/push-notifications/).
|
||||||
|
- Sells myself. There should be ways for people to hire me for coding projects.
|
||||||
|
|
||||||
|
Potential domain names:
|
||||||
|
sig.codes
|
||||||
|
sig.academy
|
||||||
|
sig.fan
|
||||||
|
sig.place
|
31
sigPlace.java
Normal file
31
sigPlace.java
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.file.FileStore;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
import java.util.AbstractMap;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
public class sigPlace {
|
||||||
|
final static HashMap<String,String> map = new HashMap<>(Map.ofEntries(
|
||||||
|
new AbstractMap.SimpleEntry<>("$SITENAME", "SigPlace")
|
||||||
|
));
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Set<Path> files = GetFilesInDir("sitefiles");
|
||||||
|
for (Path f : files) {
|
||||||
|
System.out.println(f.getFileName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private static Set<Path> GetFilesInDir(String directory) {
|
||||||
|
Path dir = Paths.get(directory);
|
||||||
|
try {
|
||||||
|
return Files.list(dir).collect(Collectors.toSet());
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
0
sitefiles/testfile
Normal file
0
sitefiles/testfile
Normal file
Loading…
x
Reference in New Issue
Block a user