This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c8af791a04d309ad93f2aea9a311d992ae2eb724 Mon Sep 17 00:00:00 2001 | |
From: Victor Hugo Borja <[email protected]> | |
Date: Mon, 8 Sep 2008 12:28:38 -0500 | |
Subject: [PATCH] Link with -rdynamic so that dlopen for TestNativeFunction work. | |
--- | |
rakelib/vm.rake | 12 ++++++------ | |
1 files changed, 6 insertions(+), 6 deletions(-) | |
diff --git a/rakelib/vm.rake b/rakelib/vm.rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jruby.*; | |
/* | |
The use case I have: | |
- Create a JRuby runtime | |
- Load a gem on it .. actually that gem ("buildr") requires many other gems and takes a lot of time to get them loaded (about 2secs) | |
- Use that preloaded runtime to create clones | |
- Load a buildfile on that clone, without affecting the original runtime | |
- drop the used cloned runtime, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This example shows how to use a DRb client/server | |
with buildr 1.3.3. | |
Invoke this file the first time with a --drb flag | |
to start the server. If no --drb flag is present | |
we connect to the server. | |
Features: | |
- Execution of tasks on a previously loaded buildfile | |
- buildfile reloading if modified.# - NO CLIENT OUTPUT redirection is implemented. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gmail w/ Collapsible & Minimalist Inbox plus Google Calendar, Reader, Notebook, etc... Seamless Integration | |
// @namespace mail.google.com | |
// @include http://mail.google.com/* | |
// @include https://mail.google.com/* | |
// ==/UserScript== | |
var USER_CONFIGURATION = | |
{ | |
ELEMENTS: //Place in order the pages you would like to load. Placing mail in the list will may it collapsible. Other choices are: reader, calendar, notebook or groups (must be lowercase.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("JS.Spec", function() { | |
it("supports pending examples"); | |
describe("be nested group", function() { | |
it("intentionally fails for undefined value", function() { | |
(undefined).should( be(undefined) ) | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title> hello.html </title> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/utils.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/module.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/class.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/kernel.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/circulate.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//core/interface.js?raw=true"></script> | |
<script type="text/javascript" src="http://github.com/vic/js.class/tree/spec/source//enumerable.js?raw=true"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Redy - a prototype for a ruby like javascript. | |
* Parts of this software are derived from JS.Class by James Coglan. | |
* | |
* | |
* This file is licensed under the Ruby licenense. | |
* Copyright 2008. Victor Hugo Borja <vic.borja gmail.com> | |
*/ | |
Redy = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To compile the grammar you need the antlr jar provided with ioke. | |
A v8 linux binary has been included to run the test.js | |
There seems to be a bug in the port of ioke.g, it doesnt create | |
tree for a simple ioke expr. | |
I think Ioke would be a wondeful language to have on the browser. It's very lightweight and I believe it would be wonderful to have it's homoiconic power for scripting webpages. Given that Ioke's primary platform is the JVM, I think we could develop some webapps that inject ioke code to the browser. Ioke's syntax would also allows to define web DSL | |
div(class: "content", | |
p("This is a paragraph") | |
script(language: "ioke", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- ioke -*- | |
;; | |
;; This is a sample Mikefile. | |
;; Mike is a build system for Ioke, along the lines of ruby's rake. | |
;; It is still young, awaiting for more specs to be written and | |
;; having full Java support to call ant tasks, etc. | |
;; To test Mike, you need the development branch from | |
;; http://github.com/vic/ioke/tree/mike |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello World example in Akin Java | |
# | |
# Akin (http://github.com/vic/akin) | |
package: akin example. | |
# I made imports explicit just to show | |
# how to import classes static members | |
import: java lang String, |
OlderNewer