Skip to content

Instantly share code, notes, and snippets.

.include "file"
.incbin "file"
Text here
<t>.include "file"
.incbin "file"</t>
<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
main:
SET A, 10
.hello:
SET PC, 0 ; random code
SET PC, .hello ; main.hello
Bootcamp:
SET B, 10000
.hello:
SET PC, .hello ; Bootcamp.hello
; 0x42c-kernel memory.dcpu
; April 24th, 2012
; Licensed with the MIT license.
; Contains subroutines for memory management.
kernel_format_mem:
; TODO
SET PC, POP
; Arguments: A -> the pointer to the first block of allocated memory
<html>
<head>
<style>
html, body {
background:#777 url('/img/news-bg.png') repeat -24px 17px;
margin:0;
padding:0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
$check = $conn->query("SELECT * FROM `codes` WHERE `code` = '$code' AND `activated` =0")
if ($check->num_rows() !== 0) {
$info = $check->fetch_array();
$gid = $info['gameid'];
if ($conn->query("update `codes` set `activated` =1 WHERE `code` = '$code'") !== false) {
echo('<span style="color:green;"Game Activated!</span><br />');
update_purchase($user, $pass, $salt, $gid);
} else {
echo('Error: '.$conn->error);
}
<html>
<head>
<style>
html, body {
background:#777 url('/img/news-bg.png') repeat -24px 17px;
margin:0;
padding:0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
}
module init {
goals{
printedEnoughText.
}
actionspec{
% printText expects a string "..." as argument and prints it to the console.
% The action can always be performed. We do not keep track of the texts that
% have been printed and use an empty postcondition.
%%
% A Simple bot demonstrating the use of all percepts and actions.
% @Author M.P. Korstanje
%%
module init {
knowledge{
% Bot can be considered armed if he has one of these weapons.
armed :- weapon(bio_rifle,Ammo,_), Ammo > 0.
armed :- weapon(shock_rifle,Ammo,_), Ammo > 0.
Situation/problem: Sphere, a javascript RPG game engine. Very simple, very much fun. But currently supports mostly Windows and supposedly OSX (SDL, only a part of sphere supported). An IDE is not available at all.
Technologies: So I am trying to write an IDE+runtime for OSX with Cocoa+OpenGL/CA/CG/whatever-works. Also want to add a plugin system, but that isn't UI related.
UI: Xcode-like with splitview: navigator, editor and utitilies. Actually exactly like Xcode: source view with items, different types of editors for different types of files. Each editor its own Editor menu. (Mainmenu is also xcode-like).
Model: A project is a package containing a metadata plist and a resources set: folders-per-resource-type containing the resources. Like: Resources/Maps/map1.rmp, Resources/SpriteSets/sprite1.rss.
This is how the ide in windows looks: https://dl.dropboxusercontent.com/u/2062901/SphereDevKit.png (horrible, right?)