Skip to content

Instantly share code, notes, and snippets.

View Gozala's full-sized avatar
😱
Oh well

Irakli Gozalishvili Gozala

😱
Oh well
View GitHub Profile
@Gozala
Gozala / Jira-Crucible.js
Created October 23, 2008 16:58
Ubiquity Commands - Jira & Crucible
var noun_type_jira = {
_name: "jira noun",
get baseJiraURL() {
return Application.prefs.getValue('ubiquity.commands.jira.jiraUrl',null);
},
set baseJiraURL(value) {
return Application.prefs.setValue('ubiquity.commands.jira.jiraUrl',value);
@Gozala
Gozala / Dictionary.js
Created November 13, 2008 22:04
Ubiquity command - Dictionary
//Dictionary
var URL = null;
var Languages = ["georgian","english","russian","german","french","italian","spanish"];
noun_type_dyctionaryLanguage = new CmdUtils.NounType( "Language",Languages);
CmdUtils.CreateCommand({
name: "dictionary",
icon: "http://www.lingvo.ru/upload/images/Lingvo.ico",
description: "Translates first word",
author: { name: "Irakli Gozalishvili", email: "rfobic@gmail.com"},
@Gozala
Gozala / Say.js
Created December 29, 2008 17:56
Ubiquity Command - Say
// Say
var URL = null;
CmdUtils.CreateCommand({
name: "say",
//icon: "http://",
description: "Pronounces the selected/specified text",
author: { name: "Irakli Gozalishvili", email: "rfobic@gmail.com"},
homepage: 'http://rfobic.blogspot.com/2008/10/ubiquity-command-say.html',
help: 'Select or type the text to pronounce it',
takes: {"sentence": noun_arb_text},
@Gozala
Gozala / bugzilla.js
Created February 16, 2009 20:51
Ubiquity Commands - bugzilla
var CC = Components.Constructor;
var LoginManager = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
var LoginInfo = new CC("@mozilla.org/login-manager/loginInfo;1",Ci.nsILoginInfo,"init");
/**
* Static Object containig metadata of the creator and of the command
*/
var MetaData = {
icon : 'http://www.bugzilla.org/img/bugzilla_icon.png',
homepage : 'http://rfobic.blogspot.com/2008/10/ubiquity-command-for-bugzilla.html',
@Gozala
Gozala / Chat.js
Created February 16, 2009 21:08
Ubiquity Command - Chat
// Noun
var noun_type_contacts = {
get contacts() {
var nm = new Namespace('jabber:iq:roster');
var users = XMPP.cache.all(
XMPP.q().
event('iq').
direction('in').
type('result').
child('jabber:iq:roster', 'query'));
@Gozala
Gozala / Jira.js
Created February 16, 2009 21:11
Ubiquity Commands - JIRA
var CC = Components.Constructor;
var LoginManager = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager);
var LoginInfo = new CC("@mozilla.org/login-manager/loginInfo;1",Ci.nsILoginInfo,"init");
/**
* Static Object containig metadata of the creator and of the command
*/
var MetaData = {
icon : "http://www.atlassian.com/favicon.ico",
homepage : 'http://rfobic.blogspot.com/2008/10/ubiquity-command-for-jira.html',
From eb1ef52583c673abc10aed8856bbc2d754acca69 Mon Sep 17 00:00:00 2001
From: Irakli Gozalishvili <rfobic@gmail.com>
Date: Tue, 27 Oct 2009 21:29:36 +0100
Subject: [PATCH] meta docs
---
lib/sandbox.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/sandbox.js b/lib/sandbox.js
@Gozala
Gozala / README.md
Created October 27, 2009 20:30 — forked from Gozala/meta-docs.patch
metadocs

Idea of documenting js code inspired by python and EcmaScript 5 "strict mode"; Works on narwhal, firefox, chromium, safari (not tested on ie)

Below is the example of usage in this in the the shell

gozala@ijarti:~/Projects/meta-doc  (master)$ narwhal
Rhino 1.7 release 3 PRERELEASE 2009 04 05
js> require("meta-doc/toolkit").doc()
toolkit module
provides utilities for getting a live docs
Function.prototype.promise = function() {
var method = this;
var callback;
var promise = {
returns: function(method) {
callback = method;
return promise;
}
};
method.yield = function() {
{
manifest: {
/*
overrides module sub path, most commonly used pattern in packages.
Only paths on local file system can override dirs.
require("module://mypackage/foo") -> /path/to/mypackage/foo.js
*/
"module://mypackage/": {
location: "file:///path/to/mypackage/"
},