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
dojo.provide("bespin.themes.gozz");
// ** Pastels Theme by Irakli Gozalishvili **
bespin.themes.gozz = {
backgroundStyle: "#221e1e",
gutterStyle: "rgba(0, 0, 0, 0.3)", //"#1C1A1A"
lineNumberColor: "#f2992a",
lineNumberFont: "10pt Monaco, Lucida Console, monospace",
lineMarkerErrorColor: "rgba(203, 68, 68, 0.2)", // "#CC4444",
lineMarkerWarningColor: "rgba(188, 131, 3, 0.2)",//"#B8860B",
function Global(){}
var G = Global.prototype = window || globalScope;
var global = new Global();
function require(id) {
var preGlobals = Object.keys(global);
var exports = modules[id];
factories[id].call(G, exports, require, metadata[id], global);
var Globals = Object.keys(global).forEach(function(key) {
if (0 > preGlobals.indexOf(key)) { // global introduced by module
if (!global.hasOwnProperty(key)) {
@Gozala
Gozala / gist
Created April 11, 2010 14:42
bespin gist: gist
var timer = require("timer");
exports.main = function main(options, callbacks) {
(function ping() {
timer.setTimeout(function() {
ping();
console.log("repl4pack is listening...");
}, 10);
})()
};
@Gozala
Gozala / gist
Created April 12, 2010 11:53
bespin gist: gist
var Server = (function() {
var _observers = [];
var _port = 9988;
var _server = Cc['@mozilla.org/server/jshttp;1'].
createInstance(Ci.nsIHttpServer);
var _notifyChange = function(o) {
_observers.foreach(o.changed);
}
@Gozala
Gozala / filesystem.md
Created April 15, 2010 13:17
Design for bespin fs-mount

Filesystem

Overview

Filesystem is one of the core components of Bespin, providing high-level API for files / directory manipulations. It is a wrapper of FileSources a low-level files / directory access providers.

Filesystem API is exposed to the plugins through editorapp module's

@Gozala
Gozala / embed-narwhal.js
Created April 17, 2010 18:04
blog snippet
Components.utils.import('resource://narwzilla/narwhal.js');
@Gozala
Gozala / fstab
Created April 17, 2010 18:43
blog: virtulabox
# usbfs
none /proc/bus/usb usbfs devgid=46,devmode=664 0 0
/**
* Mutates noun to the adjective
* Adds dependency resolver
* Adds suggestion history cache
* Adds delay support for suggestions
*/
CmdUtils.CreateAdjective = function CreateAdjective (noun) {
/**
* Checks all the dependencies and returns true if all of them are
* satisfied
@Gozala
Gozala / gist.js
Created May 2, 2010 22:16
bespin gist: tests/gist.js
/**
* Checks all the dependencies and returns true if all of them are
* satisfied
* @returns {boolean}
*/
noun.__defineGetter__('reliable', function relible(){
for each (var dependency in this.dependencies)
if (!dependency.reliable) return false
return true;
})
@Gozala
Gozala / gist:387504
Created May 2, 2010 22:17
bespin gist: /tests/demo.js
We couldn’t find that file to show.