Skip to content

Instantly share code, notes, and snippets.

@thatbudakguy
thatbudakguy / hostapd.conf
Last active March 29, 2022 12:49
hostapd configuration for a 5ghz wireless network.
interface=(INTERFACE HERE)
driver=nl80211
ssid=(SSID HERE)
hw_mode=a
channel=36
country_code=US
ignore_broadcast_ssid=0
wpa=2
@rndmcnlly
rndmcnlly / interstellar.lp
Created June 2, 2014 18:53
ASP model of space trading simulation game (gringo 3 w/ lua)
#begin_lua function min(a,b) return math.min(a,b) end #end_lua.
%% Adam's minimal event calculus formalism:
%% - only true holds/happens are tracked
%% - all fluents are always inertial
%% - time is a totally ordered contiguous integer sequence
%% - events and fluents are self-contained terms
%% - T variables always come first for easy sorting
initiated(T,F) :- happens(T,E), initiates(T,E,F).