Skip to content

Instantly share code, notes, and snippets.

@AmandaCameron
AmandaCameron / keybase.md
Created August 30, 2014 04:28
Keybase.io Verification.

Keybase proof

I hereby claim:

  • I am amandacameron on github.
  • I am amandac (https://keybase.io/amandac) on keybase.
  • I have a public key whose fingerprint is AAFB 72EC 4C8A B706 1184 BB3F 1F5B 2EBF 37EC F246

To claim this, I am signing this object:

@import "stdlib/stdlib.obj-lsl";
@import "src/os/Common/DOSApp.obj-lsl";
@import "src/os/Common/DOSRenderContext.obj-lsl";
@enum MediaStatus
Stopped = 0
Paused = 1
Playing = 2
@end
@AmandaCameron
AmandaCameron / convert.py
Created January 7, 2015 21:01
Starbound __merge - > JSON .patch conversion
# Converts the old __merge: [] syntax of Starbound file modifying to the new .patch format.
import json
import sys
def convert_file(file):
data = None
with open(file, "r") as f:
data = json.load(f)
function read_articles()
return game.data:load("recall:bulleten-board")
end
function send_article(player, article)
player:send("{yellow}" .. article.title .. "{normal}")
player:send("{cyan}" .. article.body .. "{normal}")
end
<object>
<title>Electronic Robot Toy</title>
<description>It's rather cheaply-made. It doesn't even have any electronics in it, it just has a stick on the side that says "beep boop".</description>
<short-desc>There's a cheap-looking robot toy here.</short-desc>
</object>
<object>
<title>Build-Your-Own Reactor Kit</title>
<short-desc>There's a Build Your Own Reactor kit here.</short-desc>
<description>You open the box to see it's just a 9volt battery. Worst. Reactor. Ever.</description>
</object>
@AmandaCameron
AmandaCameron / byo-reactor-kit.xml
Created January 26, 2015 01:17
Toys sold by Insane Science, Inc
<object>
<title>Build-Your-Own Reactor Kit</title>
<short-desc>There's a Build Your Own Reactor kit here.</short-desc>
<description>You open the box to see it's just a 9volt battery. Worst. Reactor. Ever.</description>
</object>
<object>
<object name="actors">
<string name="press-person">Rude Press Person</string>
<string name="announcer">The Announcer</string>
<string name="scientist">Scientist</string>
</object>
<object name="cinematic">
<object>
<integer>8</integer>
local PenMode = {}
function PenMode:activate()
self.prompt = "Title:"
self.letter = game.spawn_object("testing:letter")
self.letter.title = "Letter from " .. self.player.name
self.letter.data:set("from", self.player.name)
self.letter.data:set("title", "")
package main
import (
"fmt"
"log"
"github.com/drone/drone-plugin-go/plugin"
"github.com/thoj/go-ircevent"
)