View testsga.go
package main
import (
_ "github.com/awstanley/go.sga"
"image"
"image/png"
"os"
)
func main() {
View dl.go
package main
import (
"github.com/awstanley/Hitman/Go/misc/elusivetracker"
"net/http"
)
func main() {
client := &http.Client{}
View hitman.txt
System Info:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
CPU Cores: 8
CPU Speed: 3.40GHz
System Memory: 10.17GB / 15.90GB
GPU: AMD Radeon R9 200 / HD 7900 Series
GPU Memory: 2.98GB
Graphics Settings:
View dom4_pretender.cpp
#include <stdint.h>
#include <fstream>
#include <string>
#include <vector>
struct FileHeader
{
/* 0 */char header[6];
/* 6 */uint32_t serial;
View CMakeLists.txt
project("tilemapA5")
cmake_minimum_required(VERSION 3.4)
set(EXE_NAME "tilemapA5")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include("D:\\a5\\builder\\AllegroDependencies.cmake")
add_executable(${EXE_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")
LINK_ALLEGRO(${EXE_NAME})
install(TARGETS ${EXE_NAME} RUNTIME DESTINATION "${CMAKE_BINARY_DIR}/build")
View StrippedBackExample.cs
//---------------------------------------------------------------------
// Configuration variables. Define this once, use it everywhere.
// (Save yourself the headache of rewriting it over and over again...)
//
// Two key points here:
// (1) All points should be out of standard usage (e.g. ☼ § « »);
// (2) Anything which MAY need to be typed (ever), should be available
// easily via ASCII or CharMap (for user access). Anything else
// (list delimiting) should be done sanely but copy+paste should
// be more than enough.
View Name_DetailedInfo.cs
void Main()
{
for (int block = 0; block < GridTerminalSystem.Blocks.Count; block++)
{
if (GridTerminalSystem.Blocks[block] is IMyTerminalBlock)
{
IMyTerminalBlock Block = GridTerminalSystem.Blocks[block];
StringBuilder Str = new StringBuilder(); Str.Append(Block.BlockDefinition.ToString());
Str.Append("[" + Block.DetailedInfo + "] ");
Block.SetCustomName(Str);
View RefuseRefine.cs
// Name Syntax: "<Friendly List Alias><Cfg_Separator><Resource(s)>"
// Valid resources (without quotation marks):
// "Energetic", "Cobalt", "Gold", "Iron",
// "Nickel", "Platinum", "Silver", "Uranium"
//
// Divide them using the 'Cfg_Separator_Internal' value. e.g.
// [1] Reactor§Uranium
// [2] TwigglyDeFooBarDeBopDeBoop Hrm? Yes, This is quite something§Nickel,Cobalt,Gold
// USE:
View DockShutdown.cs
// OnOff code seems to be global...
ITerminalAction GetOnOffAction(IMyTerminalBlock block, bool enable)
{
ITerminalAction Action;
if (enable)
{
Action = block.GetActionWithName("Toggle block On");
}
else
{
View DockShutdown.cs
// OnOff code seems to be global
ITerminalAction GetOnOffAction(IMyTerminalBlock block, bool enable)
{
ITerminalAction Action;
if (enable)
{
Action = block.GetActionWithName("Toggle block On");
}
else
{