Skip to content

Instantly share code, notes, and snippets.

View bashbaugh's full-sized avatar
🐟
writing cod

Benjamin Ashbaugh bashbaugh

🐟
writing cod
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Game</title>
</head>
<body onload="init()">
<h1>JavaScript Game</h1>
<p>Here is a simple JavaScript game:</p>
<canvas id="c" width="400" height="400"></canvas>
~/Documents/learning-git $ git merge b
Auto-merging a.txt
CONFLICT (content): Merge conflict in a.txt
Automatic merge failed; fix conflicts and then commit the result.
~/Documents/learning-git $ git diff a b
... <-- You can ignore the lines right here for now, these are the important lines:
-Adam <-- this tells us that Adam was removed in branch b
+Bob <-- and this tells us that Bob was added.
# An example .gitignore file
# You can use * to indicate any string of characters
# Git will ignore any files or directories that match the list below, when you run the git add . command.
*.log
*.pyc
*.swp
*.*swp
/credentials
/venv
@echo off
ver
echo.
:Loop
set /P the="%cd%>"
%the%
echo.
goto loop