text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```javascript
ace.define("ace/snippets/csound_orchestra",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# else\nsnippet else\n else\n ${1:/* statements */}\n# elseif\nsnippet elseif\n elseif ${1:/* condition */} then\n ${2:/* statements */}\n# if\nsnippet if\n if ${1:/* condition */} then\... | /content/code_sandbox/static/libs/ace/snippets/csound_orchestra.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 430 |
```javascript
ace.define("ace/snippets/mushcode",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="mushcode"}); (function() {
ace.require(["ace/snippets/mushcode"], function(m) {
if (typeof module == "object" && typeof... | /content/code_sandbox/static/libs/ace/snippets/mushcode.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 94 |
```javascript
ace.define("ace/snippets/jsx",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="jsx"}); (function() {
ace.require(["ace/snippets/jsx"], function(m) {
if (typeof module == "object" && typeof exports == "ob... | /content/code_sandbox/static/libs/ace/snippets/jsx.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/django",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# Model Fields\n\n# Note: Optional arguments are using defaults that match what Django will use\n# as a default, e.g. with max_length fields. Doing this as a form of self\n# documentation and to ma... | /content/code_sandbox/static/libs/ace/snippets/django.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,286 |
```javascript
ace.define("ace/snippets/apex",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="apex"}); (function() {
ace.require(["ace/snippets/apex"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/apex.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/jack",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="jack"}); (function() {
ace.require(["ace/snippets/jack"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/jack.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/javascript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n ${4:// body...}\n };\n# Function\nsnippet fun\n function ${1?:function_name}(${2:argu... | /content/code_sandbox/static/libs/ace/snippets/javascript.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,483 |
```javascript
ace.define("ace/snippets/erlang",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# module and export all\nsnippet mod\n -module(${1:`Filename('', 'my')`}).\n \n -compile([export_all]).\n \n start() ->\n ${2}\n \n stop() ->\n ok.\n# define directive\nsnippet def\n -define... | /content/code_sandbox/static/libs/ace/snippets/erlang.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,100 |
```javascript
ace.define("ace/snippets/lsl",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet @\n @${1:label};\nsnippet CAMERA_ACTIVE\n CAMERA_ACTIVE, ${1:integer isActive}, $0\nsnippet CAMERA_BEHINDNESS_ANGLE\n CAMERA_BEHINDNESS_ANGLE, ${1:float degrees}, $0\nsnippet CAMERA_BEHINDNESS_... | /content/code_sandbox/static/libs/ace/snippets/lsl.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 11,005 |
```javascript
ace.define("ace/snippets/html",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Some useful Unicode entities\n# Non-Breaking Space\nsnippet nbs\n \n# \u2190\nsnippet left\n ←\n# \u2192\nsnippet right\n →\n# \u2191\nsnippet up\n ↑\n# \u2193\nsnippet do... | /content/code_sandbox/static/libs/ace/snippets/html.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 7,183 |
```javascript
ace.define("ace/snippets/haml",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet t\n %table\n %tr\n %th\n ${1:headers}\n %tr\n %td\n ${2:headers}\nsnippet ul\n %ul\n %li\n ${1:item}\n %li\nsnippet =rp\n = render :partial => '${1:partial}'\nsnippet =rpl\n = ... | /content/code_sandbox/static/libs/ace/snippets/haml.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 223 |
```javascript
ace.define("ace/snippets/applescript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="applescript"}); (function() {
ace.require(["ace/snippets/applescript"], function(m) {
if (typeof module == "object" ... | /content/code_sandbox/static/libs/ace/snippets/applescript.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 94 |
```javascript
ace.define("ace/snippets/smarty",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="smarty"}); (function() {
ace.require(["ace/snippets/smarty"], function(m) {
if (typeof module == "object" && typeof expor... | /content/code_sandbox/static/libs/ace/snippets/smarty.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.require(["ace/snippets/haskell"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
``` | /content/code_sandbox/static/libs/ace/snippets/haskell.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 48 |
```javascript
ace.define("ace/snippets/actionscript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='snippet main\n package {\n import flash.display.*;\n import flash.Events.*;\n \n public class Main extends Sprite {\n public function Main ( ) {\n trace("start");\n stage.scaleMode ... | /content/code_sandbox/static/libs/ace/snippets/actionscript.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,142 |
```javascript
ace.define("ace/snippets/latex",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="latex"}); (function() {
ace.require(["ace/snippets/latex"], function(m) {
if (typeof module == "object" && typeof exports ... | /content/code_sandbox/static/libs/ace/snippets/latex.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/tex",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="#PREAMBLE\n#newcommand\nsnippet nc\n \\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}\n#usepackage\nsnippet up\n \\usepackage[${1:[options}]{${2:package}}\n#newunicodechar\nsnippet nuc\n \\newunico... | /content/code_sandbox/static/libs/ace/snippets/tex.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,543 |
```javascript
ace.define("ace/snippets/scad",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="scad"}); (function() {
ace.require(["ace/snippets/scad"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/scad.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/apache_conf",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="apache_conf"}); (function() {
ace.require(["ace/snippets/apache_conf"], function(m) {
if (typeof module == "object" ... | /content/code_sandbox/static/libs/ace/snippets/apache_conf.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/pig",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="pig"}); (function() {
ace.require(["ace/snippets/pig"], function(m) {
if (typeof module == "object" && typeof exports == "ob... | /content/code_sandbox/static/libs/ace/snippets/pig.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/sass",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="sass"}); (function() {
ace.require(["ace/snippets/sass"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/sass.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/r",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='snippet #!\n #!/usr/bin/env Rscript\n\n# includes\nsnippet lib\n library(${1:package})\nsnippet req\n require(${1:package})\nsnippet source\n source(\'${1:file}\')\n\n# conditionals\nsnippet if\n if (${1... | /content/code_sandbox/static/libs/ace/snippets/r.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,005 |
```javascript
ace.define("ace/snippets/fortran",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="fortran"}); (function() {
ace.require(["ace/snippets/fortran"], function(m) {
if (typeof module == "object" && typeof ex... | /content/code_sandbox/static/libs/ace/snippets/fortran.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/tsx",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="tsx"}); (function() {
ace.require(["ace/snippets/tsx"], function(m) {
if (typeof module == "object" && typeof exports == "ob... | /content/code_sandbox/static/libs/ace/snippets/tsx.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/eiffel",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="eiffel"}); (function() {
ace.require(["ace/snippets/eiffel"], function(m) {
if (typeof module == "object" && typeof expor... | /content/code_sandbox/static/libs/ace/snippets/eiffel.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 94 |
```javascript
ace.define("ace/snippets/html_elixir",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="html_elixir"}); (function() {
ace.require(["ace/snippets/html_elixir"], function(m) {
if (typeof module == "object" ... | /content/code_sandbox/static/libs/ace/snippets/html_elixir.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 97 |
```javascript
ace.define("ace/snippets/python",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='snippet #!\n #!/usr/bin/env python\nsnippet imp\n import ${1:module}\nsnippet from\n from ${1:package} import ${2:module}\n# Module Docstring\nsnippet docs\n \'\'\'\n File: ${1:FILENAME:file_name}\n... | /content/code_sandbox/static/libs/ace/snippets/python.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,376 |
```javascript
ace.define("ace/snippets/ejs",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="ejs"}); (function() {
ace.require(["ace/snippets/ejs"], function(m) {
if (typeof module == "object" && typeof exports == "ob... | /content/code_sandbox/static/libs/ace/snippets/ejs.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/properties",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="properties"}); (function() {
ace.require(["ace/snippets/properties"], function(m) {
if (typeof module == "object" && ... | /content/code_sandbox/static/libs/ace/snippets/properties.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/verilog",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="verilog"}); (function() {
ace.require(["ace/snippets/verilog"], function(m) {
if (typeof module == "object" && typeof ex... | /content/code_sandbox/static/libs/ace/snippets/verilog.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/lucene",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="lucene"}); (function() {
ace.require(["ace/snippets/lucene"], function(m) {
if (typeof module == "object" && typeof expor... | /content/code_sandbox/static/libs/ace/snippets/lucene.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/edifact",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='## Access Modifiers\nsnippet u\n UN\nsnippet un\n UNB\nsnippet pr\n private\n##\n## Annotations\nsnippet before\n @Before\n static void ${1:intercept}(${2:args}) { ${3} }\nsnippet mm\n @ManyToMany\... | /content/code_sandbox/static/libs/ace/snippets/edifact.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,541 |
```javascript
ace.define("ace/snippets/rust",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="rust"}); (function() {
ace.require(["ace/snippets/rust"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/rust.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/mixal",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="mixal"}); (function() {
ace.require(["ace/snippets/mixal"], function(m) {
if (typeof module == "object" && typeof exports ... | /content/code_sandbox/static/libs/ace/snippets/mixal.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/html_ruby",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="html_ruby"}); (function() {
ace.require(["ace/snippets/html_ruby"], function(m) {
if (typeof module == "object" && typ... | /content/code_sandbox/static/libs/ace/snippets/html_ruby.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 94 |
```javascript
ace.define("ace/snippets/lua",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet #!\n #!/usr/bin/env lua\n $1\nsnippet local\n local ${1:x} = ${2:1}\nsnippet fun\n function ${1:fname}(${2:...})\n ${3:-- body}\n end\nsnippet for\n for ${1:i}=${2:1},${3:10} do\n ${4:print(i... | /content/code_sandbox/static/libs/ace/snippets/lua.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 243 |
```javascript
ace.define("ace/snippets/maze",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet >\ndescription assignment\nscope maze\n -> ${1}= ${2}\n\nsnippet >\ndescription if\nscope maze\n -> IF ${2:**} THEN %${3:L} ELSE %${4:R}\n",t.scope="maze"}); (function() {
... | /content/code_sandbox/static/libs/ace/snippets/maze.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 141 |
```javascript
ace.define("ace/snippets/typescript",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="typescript"}); (function() {
ace.require(["ace/snippets/typescript"], function(m) {
if (typeof module == "object" && ... | /content/code_sandbox/static/libs/ace/snippets/typescript.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/cirru",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="cirru"}); (function() {
ace.require(["ace/snippets/cirru"], function(m) {
if (typeof module == "object" && typeof exports ... | /content/code_sandbox/static/libs/ace/snippets/cirru.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/dockerfile",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="dockerfile"}); (function() {
ace.require(["ace/snippets/dockerfile"], function(m) {
if (typeof module == "object" && ... | /content/code_sandbox/static/libs/ace/snippets/dockerfile.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/sqlserver",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# ISNULL\nsnippet isnull\n ISNULL(${1:check_expression}, ${2:replacement_value})\n# FORMAT\nsnippet format\n FORMAT(${1:value}, ${2:format})\n# CAST\nsnippet cast\n CAST(${1:expression} AS ${2:da... | /content/code_sandbox/static/libs/ace/snippets/sqlserver.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 671 |
```javascript
ace.define("ace/snippets/jsoniq",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='snippet for\n for $${1:item} in ${2:expr}\nsnippet return\n return ${1:expr}\nsnippet import\n import module namespace ${1:ns} = "${2:path_to_url}";\nsnippet some\n some $${1:varname} in ${2:expr} s... | /content/code_sandbox/static/libs/ace/snippets/jsoniq.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 618 |
```javascript
ace.define("ace/snippets/haxe",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="haxe"}); (function() {
ace.require(["ace/snippets/haxe"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/haxe.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/less",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="less"}); (function() {
ace.require(["ace/snippets/less"], function(m) {
if (typeof module == "object" && typeof exports == ... | /content/code_sandbox/static/libs/ace/snippets/less.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 90 |
```javascript
ace.define("ace/snippets/csound_score",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="csound_score"}); (function() {
ace.require(["ace/snippets/csound_score"], function(m) {
if (typeof module == "objec... | /content/code_sandbox/static/libs/ace/snippets/csound_score.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 94 |
```javascript
ace.define("ace/snippets/rst",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# rst\n\nsnippet :\n :${1:field name}: ${2:field body}\nsnippet *\n *${1:Emphasis}*\nsnippet **\n **${1:Strong emphasis}**\nsnippet _\n \\`${1:hyperlink-name}\\`_\n .. _\\`$1\\`: ${2:link-block}\nsnipp... | /content/code_sandbox/static/libs/ace/snippets/rst.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 234 |
```javascript
ace.define("ace/snippets/cobol",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="cobol"}); (function() {
ace.require(["ace/snippets/cobol"], function(m) {
if (typeof module == "object" && typeof exports ... | /content/code_sandbox/static/libs/ace/snippets/cobol.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/diff",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# DEP-3 (path_to_url style patch header\nsnippet header DEP-3 style header\n Description: ${1}\n Origin: ${2:vendor|upstream|other}, ${3:url of the original patch}\n Bug: ${4:url in upstream bugtracke... | /content/code_sandbox/static/libs/ace/snippets/diff.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 227 |
```javascript
ace.define("ace/snippets/abc",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='\nsnippet zupfnoter.print\n %%%%hn.print {"startpos": ${1:pos_y}, "t":"${2:title}", "v":[${3:voices}], "s":[[${4:syncvoices}1,2]], "f":[${5:flowlines}], "sf":[${6:subflowlines}], "j":[${7:jumplines}]}... | /content/code_sandbox/static/libs/ace/snippets/abc.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 409 |
```javascript
ace.define("ace/snippets/fsharp",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="fsharp"}); (function() {
ace.require(["ace/snippets/fsharp"], function(m) {
if (typeof module == "object" && typeof expor... | /content/code_sandbox/static/libs/ace/snippets/fsharp.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 91 |
```javascript
ace.define("ace/snippets/batchfile",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="batchfile"}); (function() {
ace.require(["ace/snippets/batchfile"], function(m) {
if (typeof module == "object" && typ... | /content/code_sandbox/static/libs/ace/snippets/batchfile.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/stylus",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="stylus"}); (function() {
ace.require(["ace/snippets/stylus"], function(m) {
if (typeof module == "object" && typeof expor... | /content/code_sandbox/static/libs/ace/snippets/stylus.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/visualforce",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="visualforce"}); (function() {
ace.require(["ace/snippets/visualforce"], function(m) {
if (typeof module == "object" ... | /content/code_sandbox/static/libs/ace/snippets/visualforce.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 93 |
```javascript
ace.define("ace/snippets/red",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=" ",t.scope="red"}); (function() {
ace.require(["ace/snippets/red"], function(m) {
if (typeof module == "object" && typeof exports == "object" ... | /content/code_sandbox/static/libs/ace/snippets/red.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 88 |
```javascript
ace.define("ace/snippets/sh",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Shebang. Executing bash via /usr/bin/env makes scripts more portable.\nsnippet #!\n #!/usr/bin/env bash\n \nsnippet if\n if [[ ${1:condition} ]]; then\n ${2:#statements}\n fi\nsnippet elif\n elif [[ ... | /content/code_sandbox/static/libs/ace/snippets/sh.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 677 |
```javascript
ace.define("ace/snippets/wollok",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='##\n## Basic Java packages and import\nsnippet im\n import\nsnippet w.l\n wollok.lang\nsnippet w.i\n wollok.lib\n\n## Class and object\nsnippet cl\n class ${1:`Filename("", "untitled")`} ${2}\nsnipp... | /content/code_sandbox/static/libs/ace/snippets/wollok.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 490 |
```javascript
ace.define("ace/snippets/graphqlschema",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# Type Snippet\ntrigger type\nsnippet type\n type ${1:type_name} {\n ${2:type_siblings}\n }\n\n# Input Snippet\ntrigger input\nsnippet input\n input ${1:input_name} {\n ${2:input_siblings}\... | /content/code_sandbox/static/libs/ace/snippets/graphqlschema.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 255 |
```javascript
ace.define("ace/snippets/java",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='## Access Modifiers\nsnippet po\n protected\nsnippet pu\n public\nsnippet pr\n private\n##\n## Annotations\nsnippet before\n @Before\n static void ${1:intercept}(${2:args}) { ${3} }\nsnippet mm\n @Man... | /content/code_sandbox/static/libs/ace/snippets/java.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,535 |
```javascript
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//js - layer
uglify: {
options: {
expand: true
},
'layer.js': {
op... | /content/code_sandbox/static/libs/layer/GruntFile.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 338 |
```javascript
;!function(a){"use strict";var b=document,c="querySelectorAll",d="getElementsByClassName",e=function(a){return b[c](a)},f={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:!0},g={extend:function(a){var b=JSON.parse(JSON.stringify(f));for(var c in a)b[c]=a[c];return b},timer:{},end:{}};g.touch=function(a,b){var... | /content/code_sandbox/static/libs/layer/mobile/layer.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,089 |
```css
.layermbox{position:relative;z-index:19891014}.layermmain,.laymshade{position:fixed;left:0;top:0;width:100%;height:100%}.layermbtn span,.layermchild{display:inline-block;position:relative}.laymshade{background-color:rgba(0,0,0,.5);pointer-events:auto}.layermmain{display:table;font-family:Helvetica,arial,sans-ser... | /content/code_sandbox/static/libs/layer/mobile/need/layer.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 991 |
```javascript
/*! layer */
;!function(){layer.use("skin/layer.ext.css",function(){layer.layui_layer_extendlayerextjs=!0});var a=layer.cache||{},b=function(b){return a.skin?" "+a.skin+" "+a.skin+"-"+b:""};layer.prompt=function(a,c){a=a||{},"function"==typeof a&&(c=a);var d,e=2==a.formType?'<textarea class="layui-layer-i... | /content/code_sandbox/static/libs/layer/extend/layer.ext.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,574 |
```javascript
;!function(a,b){"use strict";var c,d,e={getPath:function(){var a=document.scripts,b=a[a.length-1],c=b.src;if(!b.getAttribute("merge"))return c.substring(0,c.lastIndexOf("/")+1)}(),enter:function(a){13===a.keyCode&&a.preventDefault()},config:{},end:{},btn:["确定","取消"],type:["dial... | /content/code_sandbox/static/libs/layer/layer.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 5,002 |
```html
<!doctype html>
<html>
<head>
<title>layer-web</title>
<script src="path_to_url"></script>
<script src="../src/layer.js?v=1.9.0"></script>
<style>
html{background-color:#E3E3E3; font-size:14px; color:#000; font-family:''}
a,a:hover{ text-decoration:none;}
pre{font-family:''}
.box{padding:20px; background-color... | /content/code_sandbox/static/libs/layer/test/demo.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 742 |
```css
/*!
@Name: layer
@Date: 2012.12.13
@Author:
@blog: sentsin.com
*/.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span{text-overflow:ellipsis;white-space:nowrap}.layui-layer-iconext{background:url(default/icon-ext.png) no-repeat}html #layui_layer_skinlayerextcss{display:non... | /content/code_sandbox/static/libs/layer/skin/layer.ext.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 814 |
```css
/*!
@Name: layer's style
@Author:
@Blog sentsin.com
*/*html{background-image:url(about:blank);background-attachment:fixed}html #layui_layer_skinlayercss{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{to... | /content/code_sandbox/static/libs/layer/skin/layer.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 3,331 |
```javascript
/*!
@Namelayer mobile v1.7
@Author
@Date2015-11-25
@path_to_url
*/
;!function(win){
"use strict";
var doc = document, query = 'querySelectorAll', claname = 'getElementsByClassName', S = function(s){
return doc[query](s);
};
//
var config = {
type: 0,
shade: true,
... | /content/code_sandbox/static/libs/layer/src/mobile/layer.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,598 |
```css
/* layer */
.layermbox{position:relative; z-index:19891014;}
.laymshade,
.layermmain{position:fixed; left:0; top:0; width:100%; height:100%;}
.laymshade{background-color:rgba(0,0,0, .5); pointer-events:auto;}
.layermmain{display:table; font-family: Helvetica, arial, sans-serif; pointer-events: none;}
.layermmai... | /content/code_sandbox/static/libs/layer/src/mobile/need/layer.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,142 |
```javascript
/*!
@Name: layer v1.9.x-ext
@Author:
@Apipath_to_url
*/
;!function(){
layer.use('skin/layer.ext.css', function(){
layer.layui_layer_extendlayerextjs = true;
});
var cache = layer.cache||{}, skin = function(type){
return (cache.skin ? (' ' + cache.skin + ' ' + cache.skin + '-'+type) : ... | /content/code_sandbox/static/libs/layer/src/extend/layer.ext.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,126 |
```javascript
/*!
@Namelayer v2.1
@Author
@Sitepath_to_url
*/
;!function(window, undefined){
"use strict";
var $, win, ready = {
getPath: function(){
var js = document.scripts, script = js[js.length - 1], jsPath = script.src;
if(script.getAttribute('merge')) return;
return j... | /content/code_sandbox/static/libs/layer/src/layer.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 7,033 |
```css
/*!
@Name: layer
@Date: 2012.12.13
@Author:
@blog: sentsin.com
*/
.layui-layer-iconext{background:url(default/icon-ext.png) no-repeat;}
html #layui_layer_skinlayerextcss{display:none; position: absolute; width:1989px;}
/* prompt */
.layui-layer-prompt .layui-layer-input{display:block; width:220px; he... | /content/code_sandbox/static/libs/layer/src/skin/layer.ext.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 944 |
```css
/*!
@Name: layer's style
@Author:
@Blog sentsin.com
*/
*html{background-image:url(about:blank); background-attachment:fixed;}
html #layui_layer_skinlayercss{display:none; position: absolute; width:1989px;}
/* common */
.layui-layer-shade, .layui-layer{position:fixed; _position:absolute; pointer-events... | /content/code_sandbox/static/libs/layer/src/skin/layer.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 3,766 |
```css
/*
* This css file is part of jquery terminal
*
*
*/
.terminal .terminal-output .format, .cmd .format,
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
display: inline-block;
}
.cmd .clipboard {
position: absolute;
bottom: 0;
left: 0;
opacity: 0.01;
filter: alpha(op... | /content/code_sandbox/static/libs/terminal/css/jquery.terminal.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 845 |
```css
/*!
* __ _____ ________ __
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // ... | /content/code_sandbox/static/libs/terminal/css/jquery.terminal-1.1.1.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 4,237 |
```javascript
(function(ctx){var sprintf=function(){if(!sprintf.cache.hasOwnProperty(arguments[0])){sprintf.cache[arguments[0]]=sprintf.parse(arguments[0])}return sprintf.format.call(null,sprintf.cache[arguments[0]],arguments)};sprintf.format=function(parse_tree,argv){var cursor=1,tree_length=parse_tree.length,node_typ... | /content/code_sandbox/static/libs/terminal/js/jquery.terminal-min.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 12,072 |
```javascript
/**@license
* __ _____ ________ __
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / /
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / /... | /content/code_sandbox/static/libs/terminal/js/jquery.terminal-min-1.1.1.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 13,452 |
```javascript
/*
* Context.js
* bootstrap-contextmenu.js
*/
// require('./bmenu.css');
(function() {
// CSS
// $('head').append('<link href="/js/libs/bmenu/bmenu.css" rel="stylesheet">');
var context = context || (function () {
var options = {
fadeSpeed: 100,
filter: fu... | /content/code_sandbox/static/libs/bmenu/bmenu.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,666 |
```css
/**
* ContextJS Styles
* For use WITHOUT Twitters Bootstrap CSS
*/
._nav-header {
display: block;
padding: 3px 15px;
font-size: 11px;
font-weight: bold;
line-height: 20px;
color: #999;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-transform: uppercase;
}
._dropdown-menu {
position: absolute;
... | /content/code_sandbox/static/libs/bmenu/bmenu.css | css | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,038 |
```javascript
/**
* Shell
* 2016/06/28
*/
'use strict';
const fs = require('fs'),
dns = require('dns'),
path = require('path'),
CONF = require('./config'),
Datastore = require('nedb'),
qqwry = require("geoips").info(path.join(__dirname, '../static/libs/qqwry.dat'));
var logger;
class Database {
/**
... | /content/code_sandbox/modules/database.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 3,802 |
```javascript
/**
* ::
* : 2016/05/31
* : 2016/06/19
* : 2.0.0github->release
*/
const config = require('./config');
const superagent = require('superagent');
const fs = require("fs");
const path = require('path');
const through = require("through");
const tar = require('tar');
class Update {
constructor(elect... | /content/code_sandbox/modules/update.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,404 |
```javascript
/**
* HTTP
* : 2016/05/07
*/
'use strict';
const fs = require('fs'),
iconv = require('iconv-lite'),
jschardet = require('jschardet'),
through = require('through'),
CONF = require('./config'),
superagent = require('superagent'),
superagentProxy = require('superagent-proxy'),
ws = require... | /content/code_sandbox/modules/request.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 5,785 |
```javascript
/**
*
* 2016/05/02
*
* <path_to_url
*/
'use strict';
let mainWindow;
class Logger {
constructor(tag) {
this.tag = tag;
}
/**
*
* @param {String} type debug,warn,fatal,info
* @param {Object} logs
* @return {String}
*/
parseLog(type, logs) {
let tm = new ... | /content/code_sandbox/modules/logger.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 359 |
```javascript
/**
*
* -
* create at: 2016/05/25
*/
let logger;
const fs = require('fs');
const path = require('path');
const CONF = require('./config');
const UNZIP = require('extract-zip');
class PlugStore {
constructor(electron, app, mainWindow) {
logger = new electron.Logger('PlugStore');
this.lis... | /content/code_sandbox/modules/plugStore.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 886 |
```javascript
/**
*
* 2016/04/28
* <path_to_url
*/
'use strict';
const fs = require('fs'),
path = require('path'),
CONF = require('./config'),
Datastore = require('nedb');
var logger;
class Cache {
/**
*
* @param {Object} electron electron
* @return {[type]} [description]
*/
... | /content/code_sandbox/modules/cache.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 914 |
```javascript
/**
*
*/
'use strict';
class Menubar {
constructor(electron, app, mainWindow) {
const Menu = electron.Menu;
const Tray = electron.Tray;
const nativeImage = electron.nativeImage;
const path = require('path');
//
Menu.setApplicationMenu(Menu.buildFromTemplate([]));
// ... | /content/code_sandbox/modules/menubar.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,930 |
```javascript
/**
* ::
* ?
* 2016/04/26
* 2016/04/28
* <path_to_url
*/
'use strict';
const fs = require('fs'),
path = require('path');
class Conf {
constructor() {
//
let _oldPath = path.join(process.env.HOME || process.env.LOCALAPPPATH || process.cwd() || '.', '.antSword', 'shell.db');
// ... | /content/code_sandbox/modules/config.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 476 |
```javascript
module.exports = ForeverAgent
ForeverAgent.SSL = ForeverAgentSSL
var util = require('util')
, Agent = require('http').Agent
, net = require('net')
, tls = require('tls')
, AgentSSL = require('https').Agent
function getConnectionName(host, port) {
var name = ''
if (typeof host === 'string... | /content/code_sandbox/node_modules/forever-agent/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,077 |
```javascript
module.exports = function (args, opts) {
if (!opts) opts = {};
var flags = { bools : {}, strings : {}, unknownFn: null };
if (typeof opts['unknown'] === 'function') {
flags.unknownFn = opts['unknown'];
}
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
... | /content/code_sandbox/node_modules/minimist/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,888 |
```markdown
# minimist
parse argument options
This module is the guts of optimist's argument parser without all the
fanciful decoration.
# example
``` js
var argv = require('minimist')(process.argv.slice(2));
console.log(argv);
```
```
$ node example/parse.js -a beep -b boop
{ _: [], a: 'beep', b: 'boop' }
```
``... | /content/code_sandbox/node_modules/minimist/readme.markdown | markdown | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 696 |
```javascript
var argv = require('../')(process.argv.slice(2));
console.log(argv);
``` | /content/code_sandbox/node_modules/minimist/example/parse.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 17 |
```javascript
var parse = require('../');
var test = require('tape');
test('proto pollution', function (t) {
var argv = parse(['--__proto__.x','123']);
t.equal({}.x, undefined);
t.equal(argv.__proto__.x, undefined);
t.equal(argv.x, undefined);
t.end();
});
test('proto pollution (array)', function ... | /content/code_sandbox/node_modules/minimist/test/proto.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 482 |
```javascript
var parse = require('../');
var test = require('tape');
test('parse args', function (t) {
t.deepEqual(
parse([ '--no-moo' ]),
{ moo : false, _ : [] },
'no'
);
t.deepEqual(
parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]),
{ v : ['a','b','c'], _ : [] },
... | /content/code_sandbox/node_modules/minimist/test/parse.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,409 |
```javascript
var parse = require('../');
var test = require('tape');
test('parse with modifier functions' , function (t) {
t.plan(1);
var argv = parse([ '-b', '123' ], { boolean: 'b' });
t.deepEqual(argv, { b: true, _: [123] });
});
``` | /content/code_sandbox/node_modules/minimist/test/parse_modified.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 70 |
```javascript
var parse = require('../');
var test = require('tape');
test('stops parsing on the first non-option when stopEarly is set', function (t) {
var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
stopEarly: true
});
t.deepEqual(argv, {
aaa: 'bbb',
_: ['ccc', '--ddd']
... | /content/code_sandbox/node_modules/minimist/test/stop_early.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 88 |
```javascript
var parse = require('../');
var test = require('tape');
test('nums', function (t) {
var argv = parse([
'-x', '1234',
'-y', '5.67',
'-z', '1e7',
'-w', '10f',
'--hex', '0xdeadbeef',
'789'
]);
t.deepEqual(argv, {
x : 1234,
y : 5.67,... | /content/code_sandbox/node_modules/minimist/test/num.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 275 |
```javascript
var test = require('tape');
var parse = require('../');
test('long opts', function (t) {
t.deepEqual(
parse([ '--bool' ]),
{ bool : true, _ : [] },
'long boolean'
);
t.deepEqual(
parse([ '--pow', 'xixxle' ]),
{ pow : 'xixxle', _ : [] },
'long ca... | /content/code_sandbox/node_modules/minimist/test/long.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 218 |
```javascript
var parse = require('../');
var test = require('tape');
test('-', function (t) {
t.plan(5);
t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
t.deepEqual(
parse([ '-b', '-' ], { ... | /content/code_sandbox/node_modules/minimist/test/dash.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 311 |
```javascript
var parse = require('../');
var test = require('tape');
test('flag boolean default false', function (t) {
var argv = parse(['moo'], {
boolean: ['t', 'verbose'],
default: { verbose: false, t: false }
});
t.deepEqual(argv, {
verbose: false,
t: false,
... | /content/code_sandbox/node_modules/minimist/test/bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,192 |
```javascript
var test = require('tape');
var parse = require('../');
test('boolean default true', function (t) {
var argv = parse([], {
boolean: 'sometrue',
default: { sometrue: true }
});
t.equal(argv.sometrue, true);
t.end();
});
test('boolean default false', function (t) {
var ... | /content/code_sandbox/node_modules/minimist/test/default_bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 201 |
```javascript
var parse = require('../');
var test = require('tape');
test('flag boolean true (default all --args to boolean)', function (t) {
var argv = parse(['moo', '--honk', 'cow'], {
boolean: true
});
t.deepEqual(argv, {
honk: true,
_: ['moo', 'cow']
});
t.dee... | /content/code_sandbox/node_modules/minimist/test/all_bool.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 208 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.