Skip to content

Instantly share code, notes, and snippets.

Avatar

Jon Wear genghisjahn

View GitHub Profile
@genghisjahn
genghisjahn / main.go
Created April 9, 2022 19:05
First Program Part II
View main.go
package main
import (
"flag"
"fmt"
"math/rand"
"strconv"
"time"
)
@genghisjahn
genghisjahn / factors.go
Created March 6, 2022 16:52
FindFactors
View factors.go
package main
import "fmt"
func main() {
for i := 1; i <= 10000; i++ {
f := getFactors(i)
if len(f) == 1 {
fmt.Println(i, "is prime.")
@genghisjahn
genghisjahn / main.go
Last active February 11, 2022 03:22
Number Guessing Game
View main.go
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
var n int
@genghisjahn
genghisjahn / Sicilian Games.md
Last active May 9, 2019 18:32
list of Sicilian chess games
View Sicilian Games.md
@genghisjahn
genghisjahn / boots.md
Last active February 22, 2019 18:21
1984 - Boots
View boots.md

...always the reference was to slips, errors, misprints, or misquotations which it was necessary to put right in the interests of accuracy.

But actually, he thought as he re-adjusted the Ministry of Plenty’s figures, it was not even forgery. It was merely the substitution of one piece of nonsense for another. Most of the material that you were dealing with had no connexion with anything in the real world, not even the kind of connexion that is contained in a direct lie. Statistics were just as much a fantasy in their original version as in their rectified version. A great deal of the time you were expected to make them up out of your head. For example, the Ministry of Plenty’s forecast had estimated the output of boots for the quarter at 145 million pairs. The actual output was given as sixty-two millions. Winston, however, in rewriting the forecast, marked the figure down to fifty-seven millions, so as to allow for the usual claim that the quota had been overfulfilled. In any case, sixty-two millions was no

@genghisjahn
genghisjahn / top10-really20.txt
Last active February 24, 2017 05:31
Top 10 List Things to Know about the new Basic Airline Ticket Option
View top10-really20.txt
Top 10 things you should know about the new basic airline ticket plans
1. Two drink minimum required for all pilots
2. That little clasp thing that holds up your seat tray is $5.00.
3. You can count on getting to wear that yellow dixie cup looking oxygen mask.
4. Inflight entertainment shows only rick astley videos
5. Pre-flight instructional video is about notifying next of kin
6. You gotta leave your shoes at the security check point.
7. When the captain gets on the intercom and says, "everybody lean to the left" you better do it
8. Dragging behind a flock of birds is the only way you'll have enough gas to arrive at your destination.
@genghisjahn
genghisjahn / row5.txt
Created September 13, 2016 21:12
row5.txt
View row5.txt
Move: 1
0
* *
+ * *
* * * *
* * * * *
Move: 2
*
0 *
@genghisjahn
genghisjahn / row6.tx6
Created September 13, 2016 21:11
row6.txt
View row6.tx6
Move: 1
0
* *
+ * *
* * * *
* * * * *
* * * * * *
Move: 2
*
View row7.txt
Move: 1
*
* *
+ * *
* * * *
0 * * * *
* * * * * *
* * * * * * *
Move: 2
@genghisjahn
genghisjahn / row8.txt
Created September 9, 2016 03:41
8 row solution
View row8.txt
Move: 1
0
* *
+ * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *