Add "example" comments to templates

This commit is contained in:
Sage Vaillancourt 2024-01-20 19:19:02 -05:00
parent 3c3a787ad7
commit f8e8be47c5
8 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# Example Dockerfile
FROM node:alpine FROM node:alpine
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app

View File

@ -1,3 +1,5 @@
// skeleton.c
#include <stdio.h> #include <stdio.h>
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@ -1,3 +1,5 @@
// skeleton.cpp
#include <iostream> #include <iostream>
class Person class Person

View File

@ -1,4 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- skeleton.html -->
<html lang="en"> <html lang="en">
<head> <head>

View File

@ -1,3 +1,5 @@
// skeleton.java
class Main { class Main {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Hello, World!"); System.out.println("Hello, World!");

View File

@ -1,3 +1,5 @@
// skeleton.js
document.addEventListener('DOMContentLoaded', function initJs () { document.addEventListener('DOMContentLoaded', function initJs () {
console.log('Hello, world!') console.log('Hello, world!')
}) })

View File

@ -1,5 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
# skeleton.py
class Person: class Person:
def __init__(self, name, greeting = "Hello!"): def __init__(self, name, greeting = "Hello!"):
self.name = name self.name = name

View File

@ -1,5 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# skeleton.rb
class Person class Person
def initialize(name) def initialize(name)
@name = name @name = name