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
<?xml version="1.0" encoding="us-ascii"?> | |
<Components> | |
<DataComponent Type="gada">GameData</DataComponent> | |
<DataComponent Type="text" Locale="enUS">GameText</DataComponent> | |
<DataComponent Type="info">DocumentInfo</DataComponent> | |
<DataComponent Type="mapi">MapInfo</DataComponent> | |
<DataComponent Type="trig">Triggers</DataComponent> | |
<DataComponent Type="terr">t3Terrain.xml</DataComponent> | |
<DataComponent Type="plob">Objects</DataComponent> | |
<DataComponent Type="attr">Attributes</DataComponent> |
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 | |
func multipleRets() (int, int, int, int) { | |
return 11, 22, 33, 44 | |
} | |
func main() { | |
s1 := append([]int{}, []int{11, 22, 33, 44}...) // This is fine. | |
s2 := append([]int{}, multipleRets()) // But this one errors. | |
s3 := append([]int{}, toSlice(multipleRets())...) // Getting through it. |
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
sum := func(nums ...float64) float64 { | |
ret := 0.0 | |
for _, num := range nums { | |
ret += num | |
} | |
return ret | |
} |
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 ( | |
"unsafe" | |
"github.com/nanitefactory/memory" | |
"github.com/nanitefactory/outputdbg" | |
) | |
// #include <windows.h> |
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
{ | |
"manifest_version": 2, | |
"name": "Orange frame with distinguishable gray tabs", | |
"version": "0.1", | |
"theme": { | |
"colors": { | |
"background_tab": [ 210, 213, 217 ], | |
"background_tab_inactive": [ 213, 215, 220 ], | |
"background_tab_incognito": [ 38, 39, 42 ], | |
"background_tab_incognito_inactive": [ 53, 56, 58 ], |
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
func imageToColors(img image.Image) []color.Color { | |
rect := img.Bounds() | |
width := rect.Dx() | |
height := rect.Dy() | |
xFrom := rect.Min.X | |
xTo := rect.Max.X | |
yFrom := rect.Max.Y - 1 | |
yTo := rect.Min.Y - 1 | |
ret := make([]color.Color, width*height) |
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" | |
"syscall" | |
"unsafe" | |
"github.com/nanitefactory/gominhook" // In order to use this package you need to have MinHook.x64.dll in your system. | |
) |
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 ( | |
"errors" | |
"log" | |
"unsafe" | |
) | |
func foo1() (err error) { | |
defer func() { |
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 lpcwstr | |
// #include <windows.h> | |
// #include <wchar.h> | |
// #include <WinNT.h> | |
import "C" | |
import ( | |
"unicode/utf16" | |
"unsafe" |