Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am farcaller on github.
  • I am farcaller (https://keybase.io/farcaller) on keybase.
  • I have a public key whose fingerprint is C5F0 D13B 8BF7 5468 75F9 2A4B A66B 52DC F1C8 E420

To claim this, I am signing this object:

ti_ipc_remoteproc_ResourceTable:
1e000b60 dd 0x00000001
1e000b64 dd 0x00000001
1e000b68 dd 0x00000000
1e000b6c dd 0x00000000
1e000b70 dd 0x00000014
1e000b74 dd 0x00000000
1e000b78 dd 0x1e000000
1e000b7c dd 0x1e000000
1e000b80 dd 0x00080000
commit de7ef99e819e2f6091dee4ead0f400924e76ec08
Author: Vladimir Pouzanov <farcaller@gmail.com>
Date: Sun Feb 8 19:23:25 2009 +0200
Added more api docs to CPObject
diff --git a/Foundation/CPObject.j b/Foundation/CPObject.j
index a586e6a..b868521 100644
--- a/Foundation/CPObject.j
+++ b/Foundation/CPObject.j
@import <Foundation/CPObject.j>
/*!
Helper function to load xml documents
*/
function XmlFromString(xmlData)
{
if (window.ActiveXObject) {
//for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
+ (id)dictionaryWithObjectsAndKeys:(id)firstObject, ...
{
// XXX: duplicate implementation is bad, but so it's done in CPArray
// The arguments array contains self and _cmd, so the first object is at position 2.
debugger;
var d = [self alloc];
var arglist = [d, "initWithObjectsAndKeys:"];
for(var i = 2; i<arguments.length; ++i)
arglist[i] = arguments[i];
#include <iostream>
#include <string.h>
#include <stdlib.h>
#define SIZE 3
class Comparator
{
private:
int items[SIZE];
#include <iostream>
#include <string.h>
#include <stdlib.h>
#define SIZE 3
class Comparator
{
private:
int items[SIZE];
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This awful thing parses vkontakte.ru/mail.php
I am *NOT* proud of it. C'est la vie.
Created by Farcaller on 2009-02-17.
Copyright (c) 2009 Hack&Dev FSO. All rights reserved.
-->
def FixFuckingJSON(s):
'''FixFuckingJSON(bad_json) -> good_json
Fixes integer keys in json
'''
RX=re.compile(r'(\d+)')
r = []
m = RX.search(s)
while m:
r.append(m.group(1))
diff --git a/d20tools/postparser.py b/d20tools/postparser.py
index f3af4fe..638c529 100644
--- a/d20tools/postparser.py
+++ b/d20tools/postparser.py
@@ -3,10 +3,16 @@ import re, random
RX_DICE = re.compile(r'[^>](?P<dname>(?P<cnt>\d+)d(?P<dice>\d+)(?P<mod>[-+]\d+|))')
RX_DIRECT = re.compile(r'^((\w+), *)+:') # FIXME
+RDEV = None
+