to retrieve data to sen to cloud9 server use "ctx.toDataURL()"
toDatUrl will return a base64 of IMG
then convert base64 to a blob to send over webdav
https://github.com/jseidelin/pixastic/blob/master/pixastic.js
#!/bin/bash | |
google-chrome --app="$1" --user-data-dir=$2 |
replace(/(\r\n|\n|\r|\t| + )/gm,"") |
// History.js It! | |
// v1.0.1 - 30 September, 2012 | |
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; |
var _privAlien = { | |
x: null | |
}; | |
var alien = { | |
get x() { | |
return function (x) { | |
if (!x) return _privAlien.x; | |
else _privAlien.x = x; | |
}; |
to retrieve data to sen to cloud9 server use "ctx.toDataURL()"
toDatUrl will return a base64 of IMG
then convert base64 to a blob to send over webdav
https://github.com/jseidelin/pixastic/blob/master/pixastic.js
/** | |
* Compatibility layer for Webkit based browsers. | |
* @private | |
*/ | |
apf.runWebkit = function(){ | |
if (XMLHttpRequest.prototype.sendAsBinary === undefined) { | |
if (window.ArrayBuffer) { |
this.$createNode = function(doc, nodeType, xmlNode, namespaceURI, nodeName, nodeValue){ | |
var o; | |
switch (nodeType) { | |
case 1: | |
var id, prefix; | |
if (xmlNode) { | |
if ((namespaceURI = xmlNode.namespaceURI || apf.ns.xhtml) | |
&& !(prefix = doc.$prefixes[namespaceURI])) { | |
doc.$prefixes[prefix = xmlNode.prefix || xmlNode.scopeName || ""] = namespaceURI; |
<html> | |
<head> | |
</head> | |
<body> | |
<script> | |
var gui = require('nw.gui'); | |
var win; | |
var spawn = require('child_process').spawn; | |
var c9Proc = spawn('node', ['cloud9/server.js','-w', process.env.HOME]); |
@: 75.101.145.87 | |
@: 75.101.163.44 | |
@: 174.129.25.170 |
#define VK_ABNT_C1 0xC1 //Abnt C1 | |
#define VK_ABNT_C2 0xC2 //Abnt C2 | |
#define VK_ADD 0x6B //Numpad + | |
#define VK_ATTN 0xF6 //Attn | |
#define VK_BACK 0x08 //Backspace | |
#define VK_CANCEL 0x03 //Break | |
#define VK_CLEAR 0x0C //Clear | |
#define VK_CRSEL 0xF7 //Cr Sel | |
#define VK_DECIMAL 0x6E //Numpad . | |
#define VK_DIVIDE 0x6F //Numpad / |