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 ( | |
"log" | |
"runtime" | |
"github.com/go-gl/gl/v3.3-core/gl" | |
"github.com/go-gl/glfw/v3.3/glfw" | |
) |
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 | |
// Compile on WSL with | |
// CC=i686-w64-mingw32-gcc GOOS=windows GOARCH=386 CGO_ENABLED=1 go run . | |
import ( | |
"log" | |
"github.com/go-gl/gl/v3.3-core/gl" | |
"github.com/veandco/go-sdl2/sdl" |
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
static const float4 kPositions[] = { | |
// A downard-pointing triangle near the viewer. | |
float4(-1, 1, 0, 1), // Red | |
float4(1, 1, 0, 1), // Green | |
float4(0, -1, 0, 1), // Blue | |
// An upward-pointing triangle far from the viewer. | |
float4(1, -1, .9, 1), // Red | |
float4(-1, -1, .9, 1), // Green | |
float4(0, 1, .9, 1), // Blue |
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
# enable the plugin | |
workflow enable drybuckets auto-melt | |
# farming | |
workflow amount FOOD 120 30 | |
workflow amount DRINK 300 50 | |
workflow amount THREAD//GRASS_TAIL_PIG:THREAD 30 20 | |
workflow count LIQUID_MISC//POD_SWEET:EXTRACT 20 10 | |
# storage |
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
import javax.annotation.CheckForNull; | |
import javax.annotation.Nullable; | |
public class WrongNPWarning { | |
@CheckForNull | |
private String foo; | |
public WrongNPWarning() { | |
Runnable r = new Runnable() { |
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
1024 1024 1 4 | |
city A 100 100 | |
city B 1020 1020 | |
city C 100 1020 | |
city Cp 450 900 | |
city D 800 500 | |
city E 100 1021 | |
city F 2048 1023 | |
city G 2048 1000 | |
road A B |