burp_cms 1.3.13 → 1.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/burp/add-image-2.jpg +0 -0
- data/app/assets/images/burp/add-image-3.jpg +0 -0
- data/app/assets/images/burp/add-image-4.jpg +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-2.jpg +0 -0
- data/app/assets/images/burp/remove-image-3.jpg +0 -0
- data/app/assets/images/burp/remove-image-4.jpg +0 -0
- data/app/assets/images/burp/remove-image-5.jpg +0 -0
- data/app/views/burp/static/help.html.erb +8 -8
- data/lib/burp/version.rb +1 -1
- metadata +95 -234
- data/app/assets/images/burp/add-image-2.png +0 -0
- data/app/assets/images/burp/add-image-3.png +0 -0
- data/app/assets/images/burp/add-image-4.png +0 -0
- data/app/assets/images/burp/enter-page-edit-mode-4.png +0 -0
- data/app/assets/images/burp/remove-image-2.png +0 -0
- data/app/assets/images/burp/remove-image-3.png +0 -0
- data/app/assets/images/burp/remove-image-4.png +0 -0
- data/app/assets/images/burp/remove-image-5.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/README.md +0 -8
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/activeline.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/changemode.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/closetag.html +0 -65
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/complete.html +0 -70
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/emacs.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/folding.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/formatting.html +0 -80
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/fullscreen.html +0 -152
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/loadmode.html +0 -39
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/marker.html +0 -52
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/matchhighlighter.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/multiplex.html +0 -59
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/mustache.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/preview.html +0 -76
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/resize.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/runmode.html +0 -49
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/search.html +0 -83
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/theme.html +0 -78
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/vim.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/demo/visibletabs.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon.png +0 -0
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/baboon_vector.svg +0 -153
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/compress.html +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/docs.css +0 -154
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/internals.html +0 -494
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/manual.html +0 -1128
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/oldrelease.html +0 -267
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/reporting.html +0 -57
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/doc/upgrade_v2.2.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/index.html +0 -417
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/clike.js +0 -271
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/index.html +0 -101
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clike/scala.html +0 -765
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/clojure.js +0 -207
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/clojure/index.html +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/LICENSE +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/coffeescript.js +0 -347
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/coffeescript/index.html +0 -727
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/diff.js +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/diff/index.html +0 -104
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/ecl.js +0 -203
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ecl/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/erlang.js +0 -251
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/erlang/index.html +0 -61
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/gfm.js +0 -144
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/gfm/index.html +0 -47
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/go.js +0 -170
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/go/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/groovy.js +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/groovy/index.html +0 -71
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/haskell.js +0 -242
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/haskell/index.html +0 -60
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/index.html +0 -37
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/jinja2/jinja2.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/index.html +0 -618
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/less/less.js +0 -232
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/index.html +0 -72
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/lua/lua.js +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/index.html +0 -41
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/mysql/mysql.js +0 -188
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/index.html +0 -32
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ntriples/ntriples.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/LICENSE +0 -7
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pascal/pascal.js +0 -94
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/LICENSE +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/perl/perl.js +0 -816
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/php/php.js +0 -150
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/pig/pig.js +0 -172
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/index.html +0 -62
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/plsql/plsql.js +0 -217
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/properties/properties.js +0 -63
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/LICENSE.txt +0 -21
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/index.html +0 -122
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/python/python.js +0 -338
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/index.html +0 -73
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/r/r.js +0 -141
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/changes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/changes/index.html +0 -53
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/index.html +0 -99
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.css +0 -5
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rpm/spec/spec.js +0 -66
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/index.html +0 -525
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rst/rst.js +0 -326
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/LICENSE +0 -24
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/index.html +0 -171
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/ruby/ruby.js +0 -195
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/index.html +0 -48
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/rust/rust.js +0 -432
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/index.html +0 -64
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/scheme/scheme.js +0 -230
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/index.html +0 -50
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/shell/shell.js +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/index.html +0 -55
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smalltalk/smalltalk.js +0 -139
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/smarty/smarty.js +0 -148
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/index.html +0 -40
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/sparql/sparql.js +0 -143
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/index.html +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/stex.js +0 -182
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/stex/test.html +0 -263
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/index.html +0 -140
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.css +0 -14
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiddlywiki/tiddlywiki.js +0 -384
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/index.html +0 -82
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.css +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/tiki/tiki.js +0 -316
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/index.html +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/vbscript/vbscript.js +0 -26
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/index.html +0 -103
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/velocity/velocity.js +0 -146
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/index.html +0 -210
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/verilog/verilog.js +0 -194
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/LICENSE +0 -20
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/index.html +0 -222
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/index.html +0 -27
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testBase.js +0 -42
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testEmptySequenceKeyword.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testMultiAttr.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testNamespaces.js +0 -91
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testProcessingInstructions.js +0 -16
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/test/testQuotes.js +0 -19
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/xquery/xquery.js +0 -448
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/index.html +0 -67
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/mode/yaml/yaml.js +0 -95
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/index.html +0 -28
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.css +0 -22
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/mode_test.js +0 -164
- data/app/assets/packages/burp/editing/dep/CodeMirror-2.3/test/test.js +0 -344
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome-Vectors.pdf +11 -3176
- data/app/assets/packages/burp/editing/dep/FontAwesome/FontAwesome.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/README.md +0 -18
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome-ie7.css +0 -645
- data/app/assets/packages/burp/editing/dep/FontAwesome/css/font-awesome.less +0 -309
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome-ie7.css +0 -213
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/font-awesome.css +0 -303
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/prettify.css +0 -30
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/css/site.css +0 -4904
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.svg +0 -255
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/fontawesome-webfont.woff +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_300-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/museo_slab_500-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.eot +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/font/proximanova-webfont.ttf +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/ico/favicon.ico +0 -0
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/backbone.min.js +0 -37
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/index/index.js +0 -89
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/jquery-1.7.1.min.js +0 -4
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/prettify.min.js +0 -28
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-alert.js +0 -94
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-button.js +0 -98
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-carousel.js +0 -157
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-collapse.js +0 -136
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-dropdown.js +0 -92
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-modal.js +0 -210
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-popover.js +0 -95
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-scrollspy.js +0 -125
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tab.js +0 -130
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-tooltip.js +0 -270
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-transition.js +0 -51
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/tw-bs-201/bootstrap-typeahead.js +0 -271
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/js/underscore.min.js +0 -31
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome-ie7.less +0 -245
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-awesome.less +0 -327
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/font-site.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/mixins.less +0 -43
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/site.less +0 -300
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/accordion.less +0 -33
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/alerts.less +0 -58
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/bootstrap.less +0 -62
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/breadcrumbs.less +0 -24
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/button-groups.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/buttons.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/carousel.less +0 -121
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/close.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/code.less +0 -57
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/component-animations.less +0 -20
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/dropdowns.less +0 -143
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/forms.less +0 -584
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/grid.less +0 -5
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/hero-unit.less +0 -22
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/labels-badges.less +0 -55
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/layouts.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/mixins.less +0 -631
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/modals.less +0 -90
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navbar.less +0 -364
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/navs.less +0 -363
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pager.less +0 -36
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/pagination.less +0 -56
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/popovers.less +0 -49
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/progress-bars.less +0 -117
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/reset.less +0 -126
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-1200px-min.less +0 -26
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-767px-max.less +0 -149
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-768px-979px.less +0 -17
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-navbar.less +0 -146
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive-utilities.less +0 -41
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/responsive.less +0 -48
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/scaffolding.less +0 -29
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/sprites.less +0 -191
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tables.less +0 -176
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/thumbnails.less +0 -47
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/tooltip.less +0 -35
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/type.less +0 -235
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/utilities.less +0 -23
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/variables.less +0 -205
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/twbs-203/wells.less +0 -27
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/assets/less/variables.less +0 -206
- data/app/assets/packages/burp/editing/dep/FontAwesome/docs/index.html +0 -1087
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.sass +0 -712
- data/app/assets/packages/burp/editing/dep/FontAwesome/sass/font-awesome.scss +0 -329
@@ -1,61 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Erlang mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="erlang.js"></script>
|
8
|
-
<link rel="stylesheet" href="../../theme/erlang-dark.css">
|
9
|
-
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
10
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<h1>CodeMirror: Erlang mode</h1>
|
14
|
-
|
15
|
-
<form><textarea id="code" name="code">
|
16
|
-
%% -*- mode: erlang; erlang-indent-level: 2 -*-
|
17
|
-
%%% Created : 7 May 2012 by mats cronqvist <masse@klarna.com>
|
18
|
-
|
19
|
-
%% @doc
|
20
|
-
%% Demonstrates how to print a record.
|
21
|
-
%% @end
|
22
|
-
|
23
|
-
-module('ex').
|
24
|
-
-author('mats cronqvist').
|
25
|
-
-export([demo/0,
|
26
|
-
rec_info/1]).
|
27
|
-
|
28
|
-
-record(demo,{a="One",b="Two",c="Three",d="Four"}).
|
29
|
-
|
30
|
-
rec_info(demo) -> record_info(fields,demo).
|
31
|
-
|
32
|
-
demo() -> expand_recs(?MODULE,#demo{a="A",b="BB"}).
|
33
|
-
|
34
|
-
expand_recs(M,List) when is_list(List) ->
|
35
|
-
[expand_recs(M,L)||L<-List];
|
36
|
-
expand_recs(M,Tup) when is_tuple(Tup) ->
|
37
|
-
case tuple_size(Tup) of
|
38
|
-
L when L < 1 -> Tup;
|
39
|
-
L ->
|
40
|
-
try Fields = M:rec_info(element(1,Tup)),
|
41
|
-
L = length(Fields)+1,
|
42
|
-
lists:zip(Fields,expand_recs(M,tl(tuple_to_list(Tup))))
|
43
|
-
catch _:_ ->
|
44
|
-
list_to_tuple(expand_recs(M,tuple_to_list(Tup)))
|
45
|
-
end
|
46
|
-
end;
|
47
|
-
expand_recs(_,Term) ->
|
48
|
-
Term.
|
49
|
-
</textarea></form>
|
50
|
-
|
51
|
-
<script>
|
52
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
53
|
-
lineNumbers: true,
|
54
|
-
matchBrackets: true,
|
55
|
-
theme: "erlang-dark"
|
56
|
-
});
|
57
|
-
</script>
|
58
|
-
|
59
|
-
<p><strong>MIME types defined:</strong> <code>text/x-erlang</code>.</p>
|
60
|
-
</body>
|
61
|
-
</html>
|
@@ -1,144 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("gfm", function(config, parserConfig) {
|
2
|
-
var mdMode = CodeMirror.getMode(config, "markdown");
|
3
|
-
var aliases = {
|
4
|
-
html: "htmlmixed",
|
5
|
-
js: "javascript",
|
6
|
-
json: "application/json",
|
7
|
-
c: "text/x-csrc",
|
8
|
-
"c++": "text/x-c++src",
|
9
|
-
java: "text/x-java",
|
10
|
-
csharp: "text/x-csharp",
|
11
|
-
"c#": "text/x-csharp"
|
12
|
-
};
|
13
|
-
|
14
|
-
// make this lazy so that we don't need to load GFM last
|
15
|
-
var getMode = (function () {
|
16
|
-
var i, modes = {}, mimes = {}, mime;
|
17
|
-
|
18
|
-
var list = CodeMirror.listModes();
|
19
|
-
for (i = 0; i < list.length; i++) {
|
20
|
-
modes[list[i]] = list[i];
|
21
|
-
}
|
22
|
-
var mimesList = CodeMirror.listMIMEs();
|
23
|
-
for (i = 0; i < mimesList.length; i++) {
|
24
|
-
mime = mimesList[i].mime;
|
25
|
-
mimes[mime] = mimesList[i].mime;
|
26
|
-
}
|
27
|
-
|
28
|
-
for (var a in aliases) {
|
29
|
-
if (aliases[a] in modes || aliases[a] in mimes)
|
30
|
-
modes[a] = aliases[a];
|
31
|
-
}
|
32
|
-
|
33
|
-
return function (lang) {
|
34
|
-
return modes[lang] ? CodeMirror.getMode(config, modes[lang]) : null;
|
35
|
-
}
|
36
|
-
}());
|
37
|
-
|
38
|
-
function markdown(stream, state) {
|
39
|
-
// intercept fenced code blocks
|
40
|
-
if (stream.sol() && stream.match(/^```([\w+#]*)/)) {
|
41
|
-
// try switching mode
|
42
|
-
state.localMode = getMode(RegExp.$1)
|
43
|
-
if (state.localMode)
|
44
|
-
state.localState = state.localMode.startState();
|
45
|
-
|
46
|
-
state.token = local;
|
47
|
-
return 'code';
|
48
|
-
}
|
49
|
-
|
50
|
-
return mdMode.token(stream, state.mdState);
|
51
|
-
}
|
52
|
-
|
53
|
-
function local(stream, state) {
|
54
|
-
if (stream.sol() && stream.match(/^```/)) {
|
55
|
-
state.localMode = state.localState = null;
|
56
|
-
state.token = markdown;
|
57
|
-
return 'code';
|
58
|
-
}
|
59
|
-
else if (state.localMode) {
|
60
|
-
return state.localMode.token(stream, state.localState);
|
61
|
-
} else {
|
62
|
-
stream.skipToEnd();
|
63
|
-
return 'code';
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
|
-
// custom handleText to prevent emphasis in the middle of a word
|
68
|
-
// and add autolinking
|
69
|
-
function handleText(stream, mdState) {
|
70
|
-
var match;
|
71
|
-
if (stream.match(/^\w+:\/\/\S+/)) {
|
72
|
-
return 'link';
|
73
|
-
}
|
74
|
-
if (stream.match(/^[^\[*\\<>` _][^\[*\\<>` ]*[^\[*\\<>` _]/)) {
|
75
|
-
return mdMode.getType(mdState);
|
76
|
-
}
|
77
|
-
if (match = stream.match(/^[^\[*\\<>` ]+/)) {
|
78
|
-
var word = match[0];
|
79
|
-
if (word[0] === '_' && word[word.length-1] === '_') {
|
80
|
-
stream.backUp(word.length);
|
81
|
-
return undefined;
|
82
|
-
}
|
83
|
-
return mdMode.getType(mdState);
|
84
|
-
}
|
85
|
-
if (stream.eatSpace()) {
|
86
|
-
return null;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
return {
|
91
|
-
startState: function() {
|
92
|
-
var mdState = mdMode.startState();
|
93
|
-
mdState.text = handleText;
|
94
|
-
return {token: markdown, mode: "markdown", mdState: mdState,
|
95
|
-
localMode: null, localState: null};
|
96
|
-
},
|
97
|
-
|
98
|
-
copyState: function(state) {
|
99
|
-
return {token: state.token, mode: state.mode, mdState: CodeMirror.copyState(mdMode, state.mdState),
|
100
|
-
localMode: state.localMode,
|
101
|
-
localState: state.localMode ? CodeMirror.copyState(state.localMode, state.localState) : null};
|
102
|
-
},
|
103
|
-
|
104
|
-
token: function(stream, state) {
|
105
|
-
/* Parse GFM double bracket links */
|
106
|
-
if ((ch = stream.peek()) != undefined && ch == '[') {
|
107
|
-
stream.next(); // Advance the stream
|
108
|
-
|
109
|
-
/* Only handle double bracket links */
|
110
|
-
if ((ch = stream.peek()) == undefined || ch != '[') {
|
111
|
-
stream.backUp(1);
|
112
|
-
return state.token(stream, state);
|
113
|
-
}
|
114
|
-
|
115
|
-
while ((ch = stream.next()) != undefined && ch != ']') {}
|
116
|
-
|
117
|
-
if (ch == ']' && (ch = stream.next()) != undefined && ch == ']')
|
118
|
-
return 'link';
|
119
|
-
|
120
|
-
/* If we did not find the second ']' */
|
121
|
-
stream.backUp(1);
|
122
|
-
}
|
123
|
-
|
124
|
-
/* Match GFM latex formulas, as well as latex formulas within '$' */
|
125
|
-
if (stream.match(/^\$[^\$]+\$/)) {
|
126
|
-
return "string";
|
127
|
-
}
|
128
|
-
|
129
|
-
if (stream.match(/^\\\((.*?)\\\)/)) {
|
130
|
-
return "string";
|
131
|
-
}
|
132
|
-
|
133
|
-
if (stream.match(/^\$\$[^\$]+\$\$/)) {
|
134
|
-
return "string";
|
135
|
-
}
|
136
|
-
|
137
|
-
if (stream.match(/^\\\[(.*?)\\\]/)) {
|
138
|
-
return "string";
|
139
|
-
}
|
140
|
-
|
141
|
-
return state.token(stream, state);
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}, "markdown");
|
@@ -1,47 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: GFM mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
7
|
-
<script src="../xml/xml.js"></script>
|
8
|
-
<script src="../markdown/markdown.js"></script>
|
9
|
-
<script src="gfm.js"></script>
|
10
|
-
<script src="../javascript/javascript.js"></script>
|
11
|
-
<link rel="stylesheet" href="../markdown/markdown.css">
|
12
|
-
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
13
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
14
|
-
</head>
|
15
|
-
<body>
|
16
|
-
<h1>CodeMirror: GFM mode</h1>
|
17
|
-
|
18
|
-
<!-- source: http://daringfireball.net/projects/markdown/basics.text -->
|
19
|
-
<form><textarea id="code" name="code">
|
20
|
-
Github Flavored Markdown
|
21
|
-
========================
|
22
|
-
|
23
|
-
Everything from markdown plus GFM features:
|
24
|
-
|
25
|
-
## Fenced code blocks
|
26
|
-
|
27
|
-
```javascript
|
28
|
-
for (var i = 0; i < items.length; i++) {
|
29
|
-
console.log(items[i], i); // log them
|
30
|
-
}
|
31
|
-
```
|
32
|
-
|
33
|
-
See http://github.github.com/github-flavored-markdown/
|
34
|
-
|
35
|
-
</textarea></form>
|
36
|
-
|
37
|
-
<script>
|
38
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
39
|
-
mode: 'gfm',
|
40
|
-
lineNumbers: true,
|
41
|
-
matchBrackets: true,
|
42
|
-
theme: "default"
|
43
|
-
});
|
44
|
-
</script>
|
45
|
-
|
46
|
-
</body>
|
47
|
-
</html>
|
@@ -1,170 +0,0 @@
|
|
1
|
-
CodeMirror.defineMode("go", function(config, parserConfig) {
|
2
|
-
var indentUnit = config.indentUnit;
|
3
|
-
|
4
|
-
var keywords = {
|
5
|
-
"break":true, "case":true, "chan":true, "const":true, "continue":true,
|
6
|
-
"default":true, "defer":true, "else":true, "fallthrough":true, "for":true,
|
7
|
-
"func":true, "go":true, "goto":true, "if":true, "import":true,
|
8
|
-
"interface":true, "map":true, "package":true, "range":true, "return":true,
|
9
|
-
"select":true, "struct":true, "switch":true, "type":true, "var":true,
|
10
|
-
"bool":true, "byte":true, "complex64":true, "complex128":true,
|
11
|
-
"float32":true, "float64":true, "int8":true, "int16":true, "int32":true,
|
12
|
-
"int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true,
|
13
|
-
"uint64":true, "int":true, "uint":true, "uintptr":true
|
14
|
-
};
|
15
|
-
|
16
|
-
var atoms = {
|
17
|
-
"true":true, "false":true, "iota":true, "nil":true, "append":true,
|
18
|
-
"cap":true, "close":true, "complex":true, "copy":true, "imag":true,
|
19
|
-
"len":true, "make":true, "new":true, "panic":true, "print":true,
|
20
|
-
"println":true, "real":true, "recover":true
|
21
|
-
};
|
22
|
-
|
23
|
-
var blockKeywords = {
|
24
|
-
"else":true, "for":true, "func":true, "if":true, "interface":true,
|
25
|
-
"select":true, "struct":true, "switch":true
|
26
|
-
};
|
27
|
-
|
28
|
-
var isOperatorChar = /[+\-*&^%:=<>!|\/]/;
|
29
|
-
|
30
|
-
var curPunc;
|
31
|
-
|
32
|
-
function tokenBase(stream, state) {
|
33
|
-
var ch = stream.next();
|
34
|
-
if (ch == '"' || ch == "'" || ch == "`") {
|
35
|
-
state.tokenize = tokenString(ch);
|
36
|
-
return state.tokenize(stream, state);
|
37
|
-
}
|
38
|
-
if (/[\d\.]/.test(ch)) {
|
39
|
-
if (ch == ".") {
|
40
|
-
stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);
|
41
|
-
} else if (ch == "0") {
|
42
|
-
stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/);
|
43
|
-
} else {
|
44
|
-
stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);
|
45
|
-
}
|
46
|
-
return "number";
|
47
|
-
}
|
48
|
-
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
49
|
-
curPunc = ch;
|
50
|
-
return null
|
51
|
-
}
|
52
|
-
if (ch == "/") {
|
53
|
-
if (stream.eat("*")) {
|
54
|
-
state.tokenize = tokenComment;
|
55
|
-
return tokenComment(stream, state);
|
56
|
-
}
|
57
|
-
if (stream.eat("/")) {
|
58
|
-
stream.skipToEnd();
|
59
|
-
return "comment";
|
60
|
-
}
|
61
|
-
}
|
62
|
-
if (isOperatorChar.test(ch)) {
|
63
|
-
stream.eatWhile(isOperatorChar);
|
64
|
-
return "operator";
|
65
|
-
}
|
66
|
-
stream.eatWhile(/[\w\$_]/);
|
67
|
-
var cur = stream.current();
|
68
|
-
if (keywords.propertyIsEnumerable(cur)) {
|
69
|
-
if (cur == "case" || cur == "default") curPunc = "case";
|
70
|
-
return "keyword";
|
71
|
-
}
|
72
|
-
if (atoms.propertyIsEnumerable(cur)) return "atom";
|
73
|
-
return "word";
|
74
|
-
}
|
75
|
-
|
76
|
-
function tokenString(quote) {
|
77
|
-
return function(stream, state) {
|
78
|
-
var escaped = false, next, end = false;
|
79
|
-
while ((next = stream.next()) != null) {
|
80
|
-
if (next == quote && !escaped) {end = true; break;}
|
81
|
-
escaped = !escaped && next == "\\";
|
82
|
-
}
|
83
|
-
if (end || !(escaped || quote == "`"))
|
84
|
-
state.tokenize = tokenBase;
|
85
|
-
return "string";
|
86
|
-
};
|
87
|
-
}
|
88
|
-
|
89
|
-
function tokenComment(stream, state) {
|
90
|
-
var maybeEnd = false, ch;
|
91
|
-
while (ch = stream.next()) {
|
92
|
-
if (ch == "/" && maybeEnd) {
|
93
|
-
state.tokenize = tokenBase;
|
94
|
-
break;
|
95
|
-
}
|
96
|
-
maybeEnd = (ch == "*");
|
97
|
-
}
|
98
|
-
return "comment";
|
99
|
-
}
|
100
|
-
|
101
|
-
function Context(indented, column, type, align, prev) {
|
102
|
-
this.indented = indented;
|
103
|
-
this.column = column;
|
104
|
-
this.type = type;
|
105
|
-
this.align = align;
|
106
|
-
this.prev = prev;
|
107
|
-
}
|
108
|
-
function pushContext(state, col, type) {
|
109
|
-
return state.context = new Context(state.indented, col, type, null, state.context);
|
110
|
-
}
|
111
|
-
function popContext(state) {
|
112
|
-
var t = state.context.type;
|
113
|
-
if (t == ")" || t == "]" || t == "}")
|
114
|
-
state.indented = state.context.indented;
|
115
|
-
return state.context = state.context.prev;
|
116
|
-
}
|
117
|
-
|
118
|
-
// Interface
|
119
|
-
|
120
|
-
return {
|
121
|
-
startState: function(basecolumn) {
|
122
|
-
return {
|
123
|
-
tokenize: null,
|
124
|
-
context: new Context((basecolumn || 0) - indentUnit, 0, "top", false),
|
125
|
-
indented: 0,
|
126
|
-
startOfLine: true
|
127
|
-
};
|
128
|
-
},
|
129
|
-
|
130
|
-
token: function(stream, state) {
|
131
|
-
var ctx = state.context;
|
132
|
-
if (stream.sol()) {
|
133
|
-
if (ctx.align == null) ctx.align = false;
|
134
|
-
state.indented = stream.indentation();
|
135
|
-
state.startOfLine = true;
|
136
|
-
if (ctx.type == "case") ctx.type = "}";
|
137
|
-
}
|
138
|
-
if (stream.eatSpace()) return null;
|
139
|
-
curPunc = null;
|
140
|
-
var style = (state.tokenize || tokenBase)(stream, state);
|
141
|
-
if (style == "comment") return style;
|
142
|
-
if (ctx.align == null) ctx.align = true;
|
143
|
-
|
144
|
-
if (curPunc == "{") pushContext(state, stream.column(), "}");
|
145
|
-
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
146
|
-
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
147
|
-
else if (curPunc == "case") ctx.type = "case"
|
148
|
-
else if (curPunc == "}" && ctx.type == "}") ctx = popContext(state);
|
149
|
-
else if (curPunc == ctx.type) popContext(state);
|
150
|
-
state.startOfLine = false;
|
151
|
-
return style;
|
152
|
-
},
|
153
|
-
|
154
|
-
indent: function(state, textAfter) {
|
155
|
-
if (state.tokenize != tokenBase && state.tokenize != null) return 0;
|
156
|
-
var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);
|
157
|
-
if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter)) {
|
158
|
-
state.context.type = "}";
|
159
|
-
return ctx.indented;
|
160
|
-
}
|
161
|
-
var closing = firstChar == ctx.type;
|
162
|
-
if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
163
|
-
else return ctx.indented + (closing ? 0 : indentUnit);
|
164
|
-
},
|
165
|
-
|
166
|
-
electricChars: "{}:"
|
167
|
-
};
|
168
|
-
});
|
169
|
-
|
170
|
-
CodeMirror.defineMIME("text/x-go", "go");
|
@@ -1,72 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>CodeMirror: Go mode</title>
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
6
|
-
<link rel="stylesheet" href="../../theme/elegant.css">
|
7
|
-
<script src="../../lib/codemirror.js"></script>
|
8
|
-
<script src="go.js"></script>
|
9
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
10
|
-
<style>.CodeMirror {border:1px solid #999; background:#ffc}</style>
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<h1>CodeMirror: Go mode</h1>
|
14
|
-
|
15
|
-
<form><textarea id="code" name="code">
|
16
|
-
// Prime Sieve in Go.
|
17
|
-
// Taken from the Go specification.
|
18
|
-
// Copyright © The Go Authors.
|
19
|
-
|
20
|
-
package main
|
21
|
-
|
22
|
-
import "fmt"
|
23
|
-
|
24
|
-
// Send the sequence 2, 3, 4, ... to channel 'ch'.
|
25
|
-
func generate(ch chan<- int) {
|
26
|
-
for i := 2; ; i++ {
|
27
|
-
ch <- i // Send 'i' to channel 'ch'
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
// Copy the values from channel 'src' to channel 'dst',
|
32
|
-
// removing those divisible by 'prime'.
|
33
|
-
func filter(src <-chan int, dst chan<- int, prime int) {
|
34
|
-
for i := range src { // Loop over values received from 'src'.
|
35
|
-
if i%prime != 0 {
|
36
|
-
dst <- i // Send 'i' to channel 'dst'.
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
// The prime sieve: Daisy-chain filter processes together.
|
42
|
-
func sieve() {
|
43
|
-
ch := make(chan int) // Create a new channel.
|
44
|
-
go generate(ch) // Start generate() as a subprocess.
|
45
|
-
for {
|
46
|
-
prime := <-ch
|
47
|
-
fmt.Print(prime, "\n")
|
48
|
-
ch1 := make(chan int)
|
49
|
-
go filter(ch, ch1, prime)
|
50
|
-
ch = ch1
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
func main() {
|
55
|
-
sieve()
|
56
|
-
}
|
57
|
-
</textarea></form>
|
58
|
-
|
59
|
-
<script>
|
60
|
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
61
|
-
theme: "elegant",
|
62
|
-
matchBrackets: true,
|
63
|
-
indentUnit: 8,
|
64
|
-
tabSize: 8,
|
65
|
-
indentWithTabs: true,
|
66
|
-
mode: "text/x-go"
|
67
|
-
});
|
68
|
-
</script>
|
69
|
-
|
70
|
-
<p><strong>MIME type:</strong> <code>text/x-go</code></p>
|
71
|
-
</body>
|
72
|
-
</html>
|