This file contains hidden or 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: [email protected] [mailto:[email protected]] On Behalf Of Andy Spencer | |
Sent: Friday, January 21, 2011 5:24 AM | |
To: Michael Treibton | |
Cc: [email protected] | |
Subject: Re: Embedding applications via XEmbed | |
On 2011-01-20 20:52, Michael Treibton wrote: | |
> I've read about GtkSocket and GtkPlug, but the examples for the | |
> official documentation don't make it clear to me how to go about this. | |
> |
This file contains hidden or 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
/* | |
Grabs a screenshot of the root window. | |
Usage : ./scr_tool <display> <output file> | |
Example : ./scr_tool :0 /path/to/output.png | |
Author: S Bozdag <[email protected]> | |
*/ |
This file contains hidden or 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
/* | |
Notes: | |
Observer Event Pub/Sub | |
add → bind → subscribe | |
remove → unbind → unsubscribe | |
notify → trigger → publish | |
topic → type → topic | |
*/ | |
/** | |
* Observer Class |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
var app = require('app'); | |
var dockMenu = [ | |
{ label: 'New Window', click: () => newWindow() }, | |
{ label: 'New Private Window', click: () => newWindow({isPrivate:true}) }, | |
]; | |
app.dock.setMenu(dockMenu); | |
var BrowserWindow = require('browser-window'); |
This file contains hidden or 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
const { require } = Components.utils.import("resource://gre/modules/commonjs/toolkit/require.js", {}) | |
var system = require("./HuX/main"); | |
system.puts("Hello World from libc!"); | |
system.puts("Hello HuX!"); |
This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes
This file contains hidden or 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
// ----- throw your class into one single file = a seperate scope | |
// constructor and export | |
var myClass = module.exports = function () { | |
// .. | |
} | |
// a public method | |
myClass.prototype.publicMethod = function () { |