forked from filecxx/FileCentipede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
645 additions
and
347 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,49 @@ | ||
function create_filec_address(options) | ||
function create_fileu_address(options) | ||
{ | ||
var base64_reference = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | ||
var base64_encode = function(data) | ||
{ | ||
if(typeof data != "string"){ | ||
return null; | ||
} | ||
var i = 0; | ||
var ac = 0; | ||
var temp = []; | ||
var o1,o2,o3,h1,h2,h3,h4,bits; | ||
|
||
do{ | ||
o1 = data.charCodeAt(i++); | ||
o2 = data.charCodeAt(i++); | ||
o3 = data.charCodeAt(i++); | ||
|
||
bits = o1 << 16 | o2 << 8 | o3; | ||
|
||
h1 = bits >> 18 & 0x3f; | ||
h2 = bits >> 12 & 0x3f; | ||
h3 = bits >> 6 & 0x3f; | ||
h4 = bits & 0x3f; | ||
|
||
temp[ac++] = base64_reference.charAt(h1) + base64_reference.charAt(h2) + base64_reference.charAt(h3) + base64_reference.charAt(h4); | ||
}while(i < data.length); | ||
|
||
var r = data.length % 3; | ||
var enc = temp.join(''); | ||
|
||
return (r ? enc.slice(0,r-3) : enc) + '==='.slice(r || 3); | ||
}; | ||
var obj = {"@":"task_add"}; | ||
|
||
if(typeof(options) == "string"){ | ||
options = {uri:options}; | ||
} | ||
if(typeof(options) != "object"){ | ||
return null; | ||
} | ||
for(var name in options) { | ||
obj[name] = options[name]; | ||
} | ||
if(typeof(obj.file_name) == "string"){ | ||
obj.file_name = encodeURIComponent(decodeURIComponent(obj.file_name)); | ||
} | ||
return "fileu:0" + base64_encode(JSON.stringify(obj)); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
Monokai style - ported by Luigi Maselli - http://grigio.org | ||
*/ | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
padding: 0.5em; | ||
background: #313131; | ||
-webkit-text-size-adjust: none; | ||
} | ||
|
||
.hljs-tag, | ||
.hljs-tag .hljs-title, | ||
.hljs-keyword, | ||
.hljs-literal, | ||
.hljs-strong, | ||
.hljs-change, | ||
.hljs-winutils, | ||
.hljs-flow, | ||
.nginx .hljs-title, | ||
.tex .hljs-special { | ||
color: #f92672; | ||
} | ||
|
||
.hljs { | ||
color: #ddd; | ||
} | ||
|
||
.hljs .hljs-constant, | ||
.asciidoc .hljs-code, | ||
.markdown .hljs-code { | ||
color: #66d9ef; | ||
} | ||
|
||
.hljs-code, | ||
.hljs-class .hljs-title, | ||
.hljs-header { | ||
color: white; | ||
} | ||
|
||
.hljs-link_label, | ||
.hljs-attribute, | ||
.hljs-symbol, | ||
.hljs-symbol .hljs-string, | ||
.hljs-value, | ||
.hljs-regexp { | ||
color: #bf79db; | ||
} | ||
|
||
.hljs-link_url, | ||
.hljs-tag .hljs-value, | ||
.hljs-string, | ||
.hljs-bullet, | ||
.hljs-subst, | ||
.hljs-title, | ||
.hljs-emphasis, | ||
.hljs-type, | ||
.hljs-preprocessor, | ||
.hljs-pragma, | ||
.ruby .hljs-class .hljs-parent, | ||
.hljs-built_in, | ||
.django .hljs-template_tag, | ||
.django .hljs-variable, | ||
.smalltalk .hljs-class, | ||
.django .hljs-filter .hljs-argument, | ||
.smalltalk .hljs-localvars, | ||
.smalltalk .hljs-array, | ||
.hljs-attr_selector, | ||
.hljs-pseudo, | ||
.hljs-addition, | ||
.hljs-stream, | ||
.hljs-envvar, | ||
.apache .hljs-tag, | ||
.apache .hljs-cbracket, | ||
.tex .hljs-command, | ||
.hljs-prompt, | ||
.hljs-name { | ||
color: #a6e22e; | ||
} | ||
|
||
.hljs-comment, | ||
.hljs-annotation, | ||
.smartquote, | ||
.hljs-blockquote, | ||
.hljs-horizontal_rule, | ||
.hljs-decorator, | ||
.hljs-pi, | ||
.hljs-doctype, | ||
.hljs-deletion, | ||
.hljs-shebang, | ||
.apache .hljs-sqbracket, | ||
.tex .hljs-formula { | ||
color: #75715e; | ||
} | ||
|
||
.hljs-keyword, | ||
.hljs-literal, | ||
.css .hljs-id, | ||
.hljs-doctag, | ||
.hljs-title, | ||
.hljs-header, | ||
.hljs-type, | ||
.vbscript .hljs-built_in, | ||
.rsl .hljs-built_in, | ||
.smalltalk .hljs-class, | ||
.diff .hljs-header, | ||
.hljs-chunk, | ||
.hljs-winutils, | ||
.bash .hljs-variable, | ||
.apache .hljs-tag, | ||
.tex .hljs-special, | ||
.hljs-request, | ||
.hljs-status { | ||
font-weight: bold; | ||
} | ||
|
||
.coffeescript .javascript, | ||
.javascript .xml, | ||
.tex .hljs-formula, | ||
.xml .javascript, | ||
.xml .vbscript, | ||
.xml .css, | ||
.xml .hljs-cdata { | ||
opacity: 0.5; | ||
} |
Oops, something went wrong.