This file contains 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
{ | |
"name": "cloudcmd-screen", | |
"version": "0.1.0", | |
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | |
"description": "Cloud Commander screens", | |
"homepage": "http://status-ok.cloudcmd.io", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/cloudcmd/screen.git" | |
}, |
This file contains 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
if (!window.localStorage) { | |
var Storage = function() { | |
/* приватный переключатель возможности работы с кэшем */ | |
var StorageAllowed, | |
Data = {}; | |
/* функция проверяет возможно ли работать с кэшем каким-либо образом */ | |
this.isAllowed = function() { | |
return StorageAllowed; | |
}; |
This file contains 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
(function() { | |
'use strict'; | |
var express = require('express'), | |
app = express(), | |
ytdl = require('ytdl'), | |
EXT = 'mp4', | |
URL = 'https://www.youtube.com/watch?v=', | |
PORT = 8888; | |
This file contains 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
this.setValue = function(value) { | |
getEditConfig(function(config) { | |
Util.exec.if(!config.collaboration, function() { | |
Ace.setValue(value); | |
ConfigView.afterShow(); | |
}, setFirepad); | |
}); | |
}; | |
function setFirepad(callback) { |
This file contains 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
/* add spaces beetwen words | |
* | |
* "view f4" -> "view f4" | |
*/ | |
function item(name, n) { | |
var str = '', | |
array = [], | |
spaces = [], | |
count = 0; | |
This file contains 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
(function () { | |
'use strict'; | |
var util = require('util'), | |
crypto = require('crypto'), | |
Writable = require('stream').Writable; | |
module.exports = function() { | |
var ret; | |
This file contains 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
function createList(array) { | |
var list = createNext(0, array); | |
return list; | |
} | |
function createNext(i, array) { | |
var result; | |
if (i < array.length) { |
This file contains 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 Term; | |
(function() { | |
'use strict'; | |
var socket = io.connect(); | |
window.addEventListener('load', function() { | |
var element = document.getElementById('js-terminal'), | |
cell = createCell(element), |
This file contains 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
/* Piece of server.js code */ | |
/* https://github.com/coderaiser/cloudcmd/blob/44e96a63de3414cc71073f25c08588f6ed10cf2b/server.js */ | |
/* создаём сервер на порту 31337 */ | |
CloudServer.start=function() | |
{ | |
CloudServer.init(); | |
/* constant ports of deployng servers */ | |
var lCloudFoundryPort = process.env.VCAP_APP_PORT; |
This file contains 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
/* turns first found textArea - looks like CodeMirror editor */ | |
var editor; | |
function setStyle(){ | |
var element= document.createElement('style'); | |
element.media='screen'; | |
element.type='text/css'; | |
element.innerText='@import url(//fonts.googleapis.com/css?family=Droid+Sans+Mono);'+ | |
'.CodeMirror{'+ | |
'font-family:\'Droid Sans Mono\';'+ | |
'font-size:15px;'+ |
OlderNewer