Skip to content

Instantly share code, notes, and snippets.

View alexanderfloh's full-sized avatar

Alexander Floh alexanderfloh

View GitHub Profile
@alexanderfloh
alexanderfloh / backstory.md
Last active March 29, 2023 19:40
Traveller Character Backstory

Alan Barclay was an elite space marine who worked in a team specialized in high-risk black-ops missions. Alan Barclay is dead, just like the rest of the team.

One of the last missions was a highly classified operation against a subdivision of the ${EvilCorp} corporation, who were working on ${veryEvilProject}. Even the government was not powerful enough to officially go after ${EvilCorp}, so they ordered the black-ops mission to eliminate all the people working on the project and destroy all records.

The mission was successful - or so it appeared - when suddenly there started to be an increased number of deaths. First, it was the team member's families having "accidents", and eventually team members as well. Alan realized he had to die, so he faked his own death and was reborn as Zero.

Being very cautious, even paranoid about not attracting ${EvilCorp}'s attention, Zero set out to establish a new identity. As a security measure he resolved to always wear a closed environment suit that obscured his

@alexanderfloh
alexanderfloh / shutdown_agent.ps1
Created February 5, 2016 09:24
Shut down the Open Agent from powershell
[System.Reflection.Assembly]::LoadWithPartialName('SilkTest.Ntf')
[SilkTest.Ntf.Agent]::ResetOptions()
[SilkTest.Ntf.Agent]::Shutdown()
@alexanderfloh
alexanderfloh / MyTest.java
Created January 29, 2016 07:45
lombok extension methods
import com.borland.silktest.jtf.Desktop;
import org.junit.Before;
import com.borland.silktest.jtf.AbstractTestObject;
import com.borland.silktest.jtf.BaseState;
import org.junit.Test;
import com.borland.silktest.jtf.Window;
import com.borland.silktest.jtf.TextField;
import com.borland.silktest.jtf.common.types.TextPosition;
# multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# ([email protected]) and Dan Klein ([email protected]).
# multiAgents.py
# --------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# ([email protected]) and Dan Klein ([email protected]).
# searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# ([email protected]) and Dan Klein ([email protected]).
@alexanderfloh
alexanderfloh / search
Last active August 29, 2015 14:15
UCS188
Imports System.Runtime.InteropServices
Imports Accessibility
'add reference to "C:\Windows\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll"
Public Module Main
<DllImport("oleacc.dll")> _
Function AccessibleObjectFromPoint(ByVal pt As Point, <MarshalAs(UnmanagedType.Interface)> ByRef accObj As IAccessible, ByRef ChildID As Object) As IntPtr
End Function
@alexanderfloh
alexanderfloh / Copy.Java
Created October 1, 2014 12:55
image copy
package imageCopy;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;