Skip to content

Instantly share code, notes, and snippets.

export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s)") \[\033[01;34m\]$\[\033[00m\]'
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:ondi="http://ondi.ro/georss">
<ondi:header>
<ondi:code>21</ondi:code>
<ondi:service>/api/reverse?radius=2&amp;latitude=46.4704176073&amp;longitude=25.188442018</ondi:service>
<ondi:version>0.3</ondi:version>
<ondi:results>1</ondi:results>
</ondi:header>
<icon>http://ondi.ro/favicon.ico</icon>
<logo>http://ondi.ro/images/logo.png</logo>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:georss="http://www.georss.org/georss" xmlns:ondi="http://ondi.ro/georss">
<ondi:header>
<ondi:code>21</ondi:code>
<ondi:service>/api/locate?name=Corund</ondi:service>
<ondi:version>0.3</ondi:version>
<ondi:results>3</ondi:results>
</ondi:header>
<icon>http://ondi.ro/favicon.ico</icon>
<logo>http://ondi.ro/images/logo.png</logo>
generate-method-classes:
_gmc_internal_:
[echo] Generating invokers...
[java] java.lang.ArrayIndexOutOfBoundsException: 0
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.loadArguments(InvocationMethodFactory.java:964)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.createAnnotatedMethodInvocation(InvocationMethodFactory.java:1242)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:743)
[java] at org.jruby.internal.runtime.methods.InvocationMethodFactory.getAnnotatedMethodClass(InvocationMethodFactory.java:582)
[java] at org.jruby.anno.InvokerGenerator.main(InvokerGenerator.java:41)
diff --git a/src/org/jruby/RubyDir.java b/src/org/jruby/RubyDir.java
index dd893e8..d23ba5b 100644
--- a/src/org/jruby/RubyDir.java
+++ b/src/org/jruby/RubyDir.java
@@ -249,7 +249,7 @@ public class RubyDir extends RubyObject {
RubyString path = args.length == 1 ?
(RubyString) args[0].convertToString() : getHomeDirectoryPath(context);
String adjustedPath = RubyFile.adjustRootPathOnWindows(
- recv.getRuntime(), path.toString(), null);
+ recv.getRuntime(), path.getUnicodeValue(), null);
{
"header":{
"code":21,
"results":2,
"version":0.2
},
"places":[
{
"place": {
"name": "Jude\u021bul Buz\u0103u",
<?xml version="1.0" encoding="UTF-8"?>
<response>
<header>
<code>21</code>
<version>0.2</version>
<results>2</results>
</header>
<places>
<place>
<name>Județul Brăila</name>
#
# OutputCompression plugin
# made by http://craz8.com/svn/trunk/plugins/output_compression/
#
module OutputCompression
protected
def compress_output
return if response.headers['Content-Encoding'] || request.env['HTTP_ACCEPT_ENCODING'].nil?
export PS1='$(__git_ps1 "\e[1;32;40m%s:\e[0m")\w> '
export GREP_OPTIONS="--colour=auto"
export HISTIGNORE='&:ls:exit'
export HISTSIZE=100000
export HISTFILESIZE=409600
source ~/.git-completion.sh
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class MainPage(webapp.RequestHandler):
def get(self):
self.response.out.write("""
<html>
<body>
<form action="/q1.html" method="post">