Skip to content

Instantly share code, notes, and snippets.

@jonofoz
jonofoz / GuessingGame.py
Last active Feb 8, 2019
A super simple "guess my number" style game in Python.
View GuessingGame.py
#While still playing,
#The computer generates a number.
#The user guesses the number.
#While that number isn't correct,
#Find out if the user's guess is correct this time.
#If so,
#They win, ask them if they want to play again
#If they do,
#Go back to line 2.
#If they don't,
@jonofoz
jonofoz / GuessingGame.cpp
Last active Feb 8, 2019
A simple guessing game I wrote in C++.
View GuessingGame.cpp
/* While still playing,
The computer generates a number.
The user guesses the number.
While that number isn't correct,
Find out if the user's guess is correct this time.
If so,
They win, ask them if they want to play again
If they do,
Go back to line 2.
If they don't,
@jonofoz
jonofoz / index1.html
Created Aug 17, 2017
atom-shell-issue-991
View index1.html
<h1>Hi, I'm index1.html aka win1</h1>
<script>
function sendIpcMsg() {
var ipc = require('ipc');
ipc.send('my-msg', 'hi');
}
</script>