Skip to content

Instantly share code, notes, and snippets.

arya-s / gist:10968151
Created Apr 17, 2014
Trying to use JOGL's curve TextRenderer
View gist:10968151
package experiments;
import static;
import static;
import java.awt.BorderLayout;
import java.awt.Container;
import java.lang.reflect.InvocationTargetException;
arya-s / URLShorten
Created Apr 24, 2013
Using google's URL shortener.
View URLShorten
function addLink(msg, from, to){
var url = msg;'urlshortener', 'v1').execute(function(err, client){
client.urlshortener.newRequest('urlshortener.url.insert', { resource: {longUrl: url}}).execute(function(err, result){
var shortUrl = 'Cannot shorten '+url;
console.log('Shortening error: ',err);
} else {
shortUrl =;