This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Move: 1 | |
* | |
* * | |
+ * * | |
* * * * | |
0 * * * * | |
* * * * * * | |
* * * * * * * | |
Move: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Move: 1 | |
0 | |
* * | |
+ * * | |
* * * * | |
* * * * * | |
* * * * * * | |
* * * * * * * | |
* * * * * * * * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"github.com/trout" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://golang.org/src/sort/search.go | |
//https://golang.org/pkg/sort/#Search | |
package main | |
import ( | |
"fmt" | |
"sort" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"sync" | |
"time" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'genghisjahn' | |
num=1 | |
result = "" | |
while num<=100: | |
if(num % 3 == 0 and num % 5 == 0): | |
result="FizzBuzz" | |
else: | |
if(num % 3 == 0): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PointerTest project main.go | |
package main | |
import ( | |
"fmt" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fizzbuzz | |
import( | |
"strconv" | |
) | |
type FizzBuzzDivisor struct{ | |
Value int //Value to be tested. | |
Message string //Message if a condition is met. | |
} | |
func (fbd FizzBuzzDivisor) GetResult(num int) string { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fizzbuzz | |
import( | |
"strconv" | |
) | |
type FizzBuzzProcessor struct{ | |
Items | |
} |