Skip to content

Instantly share code, notes, and snippets.

View genghisjahn's full-sized avatar

Jon Wear genghisjahn

View GitHub Profile
@genghisjahn
genghisjahn / searchcontains.go
Last active April 12, 2016 14:55
Golang Search Contains
//https://golang.org/src/sort/search.go
//https://golang.org/pkg/sort/#Search
package main
import (
"fmt"
"sort"
)
@genghisjahn
genghisjahn / md5hash.go
Created April 14, 2016 17:40
MD5 Hash Any
//MD5HashAny : will convert anything to a byte slice and return an MD5Hash
func MD5HashAny(s interface{}) string {
d, e := json.Marshal(&s)
if e != nil {
//I might regret this
return ""
}
return MD5HashBytes(d)
}
package main
import (
"fmt"
"io"
"net/http"
"github.com/trout"
)
@genghisjahn
genghisjahn / row8.txt
Created September 9, 2016 03:41
8 row solution
Move: 1
0
* *
+ * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
Move: 1
*
* *
+ * *
* * * *
0 * * * *
* * * * * *
* * * * * * *
Move: 2
@genghisjahn
genghisjahn / row6.tx6
Created September 13, 2016 21:11
row6.txt
Move: 1
0
* *
+ * *
* * * *
* * * * *
* * * * * *
Move: 2
*
@genghisjahn
genghisjahn / row5.txt
Created September 13, 2016 21:12
row5.txt
Move: 1
0
* *
+ * *
* * * *
* * * * *
Move: 2
*
0 *
@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
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 / boots.md
Last active February 22, 2019 18:21
1984 - Boots

...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 / Sicilian Games.md
Last active May 9, 2019 18:32
list of Sicilian chess games