Skip to content

Instantly share code, notes, and snippets.

@jonofoz
jonofoz / index1.html
Created August 17, 2017 03:07
atom-shell-issue-991
<h1>Hi, I'm index1.html aka win1</h1>
<script>
function sendIpcMsg() {
var ipc = require('ipc');
ipc.send('my-msg', 'hi');
}
</script>
@jonofoz
jonofoz / GuessingGame.cpp
Last active February 8, 2019 15:29
A simple guessing game I wrote in C++.
/* 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.py
Last active February 8, 2019 15:28
A super simple "guess my number" style game in Python.
#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,