Skip to content

Instantly share code, notes, and snippets.

View tolmasky's full-sized avatar

Francisco Ryan Tolmasky I tolmasky

View GitHub Profile
@tolmasky
tolmasky / A.j
Created February 26, 2010 04:31
[object calling:5 aselector:6];
@tolmasky
tolmasky / n.j
Created February 26, 2010 04:32
@implementation Class : CPObject
{
int x;
}
- (void)something:(id)object else:(id)rhs
{
[self calling:5 aselector:6];
}
mapping["/plugins"] = function(env)
{
var response = new JACK.Response(),
pluginURLs = [],
userPluginsPath = FILE.join(applicationSupportPath, "Plugins"),
builtInPluginsPath = FILE.join(editorPath, "Resources", "Plugins");
new JAKE.FileList(builtInPluginsPath, "*.atlasproj")).forEach(function(/*String*/ aPath)
{
pluginURLs.push(EXTERNALIZE(aPath));
<%
class MethodDefinition
attr_accessor :class_method
attr_accessor :return_type
attr_accessor :selector_parts
def initialize(class_method, return_type, selector_parts)
@return_type = return_type
{
"class":
{
"path": "/sources/source.js.objj/meta.implementation.js.objj[normalize-space(string(entity.name.type.js.objj))="+class_name+"]",
"methods":
{
"path":".//meta.function.js.objj"
}
}
@import <Foundation/Foundation.j>
var input = require("file").read("in.txt", { charset:"UTF-8" }),
STRING_RE = new RegExp("\"[^\"\\\\]*(\\\\[\\s\\S][^\"\\\\]*)*\"|\'[^\'\\\\]*(\\\\[\\s\\S][^\'\\\\]*)*\'", "g"),
strings = input.match(STRING_RE);
var index = 0,
count = strings.length,
Francisco-Tolmaskys-MacBook:socratic_package tolmasky$ objj main.j
Notice: objj is incompatible with "jsc" engine. Automatically running with "rhino" engine instead.
Jack is starting up using Simple on port 8080
Views/Cappuccino/showdown/Info.plist: file not found
Views/Cappuccino/EJS/Info.plist: file not found
Views/Cappuccino/showdown/compressed/Info.plist: file not found
git://github.com/280north/cappuccino.git
command: git clone git://github.com/280north/cappuccino.git source-repo0.8198662623824805
AppKit/_CPCornerView.j
{"socratic_children":{},"socratic_name":"AppKit/_CPCornerView.j"}
for (;($E.i < $E.l); ++$E.i)
sum+=$E.o0[$E.i]*2;
VS.
for (;($E.i < $E.l) && ((object = $E.o0[$E.i]) || YES); ++$E.i)
sum+=object*2;
function fast_return(self)
{
return 5;
}
function slow_return(object)
{
with(object)
{
<!DOCTYPE html>
<html>
<head>
<script>
function just_do_it()
{
var video = document.getElementById("video");