id stringlengths 34 124 | type stringclasses 4
values | prompt stringlengths 0 4.95k | response stringlengths 21 4.89k | source_lang stringclasses 3
values | target_lang stringclasses 2
values | repo stringclasses 75
values | path stringlengths 10 88 | license stringclasses 1
value | commit stringlengths 40 40 | stars int64 431 18.7k | source_url stringlengths 86 176 | line_start int64 1 214 | line_end int64 3 253 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 01ca13ba1a43e8209f89156a8b72e103e6085c50 | 675 | https://github.com/elving/swag/blob/01ca13ba1a43e8209f89156a8b72e103e6085c50/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 01ca13ba1a43e8209f89156a8b72e103e6085c50 | 675 | https://github.com/elving/swag/blob/01ca13ba1a43e8209f89156a8b72e103e6085c50/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 01ca13ba1a43e8209f89156a8b72e103e6085c50 | 675 | https://github.com/elving/swag/blob/01ca13ba1a43e8209f89156a8b72e103e6085c50/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 01ca13ba1a43e8209f89156a8b72e103e6085c50 | 675 | https://github.com/elving/swag/blob/01ca13ba1a43e8209f89156a8b72e103e6085c50/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 5ccdc2b2a414ee957db147834456d9656077a31d | 675 | https://github.com/elving/swag/blob/5ccdc2b2a414ee957db147834456d9656077a31d/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 5ccdc2b2a414ee957db147834456d9656077a31d | 675 | https://github.com/elving/swag/blob/5ccdc2b2a414ee957db147834456d9656077a31d/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 5ccdc2b2a414ee957db147834456d9656077a31d | 675 | https://github.com/elving/swag/blob/5ccdc2b2a414ee957db147834456d9656077a31d/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 5ccdc2b2a414ee957db147834456d9656077a31d | 675 | https://github.com/elving/swag/blob/5ccdc2b2a414ee957db147834456d9656077a31d/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | ddfdb1abaa9505a033e48f8fe22856c37a32e8c9 | 675 | https://github.com/elving/swag/blob/ddfdb1abaa9505a033e48f8fe22856c37a32e8c9/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | ddfdb1abaa9505a033e48f8fe22856c37a32e8c9 | 675 | https://github.com/elving/swag/blob/ddfdb1abaa9505a033e48f8fe22856c37a32e8c9/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ddfdb1abaa9505a033e48f8fe22856c37a32e8c9 | 675 | https://github.com/elving/swag/blob/ddfdb1abaa9505a033e48f8fe22856c37a32e8c9/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ddfdb1abaa9505a033e48f8fe22856c37a32e8c9 | 675 | https://github.com/elving/swag/blob/ddfdb1abaa9505a033e48f8fe22856c37a32e8c9/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 9c9527822cab8bf26563d0437aad1b941c36b97e | 675 | https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 9c9527822cab8bf26563d0437aad1b941c36b97e | 675 | https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 9c9527822cab8bf26563d0437aad1b941c36b97e | 675 | https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.5 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 9c9527822cab8bf26563d0437aad1b941c36b97e | 675 | https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 946bf6d3fa12202c0fa612a50deef524225ea542 | 675 | https://github.com/elving/swag/blob/946bf6d3fa12202c0fa612a50deef524225ea542/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 946bf6d3fa12202c0fa612a50deef524225ea542 | 675 | https://github.com/elving/swag/blob/946bf6d3fa12202c0fa612a50deef524225ea542/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 946bf6d3fa12202c0fa612a50deef524225ea542 | 675 | https://github.com/elving/swag/blob/946bf6d3fa12202c0fa612a50deef524225ea542/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 946bf6d3fa12202c0fa612a50deef524225ea542 | 675 | https://github.com/elving/swag/blob/946bf6d3fa12202c0fa612a50deef524225ea542/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | ec99e1585bc96d513d3e6e77bd37a3738684836e | 675 | https://github.com/elving/swag/blob/ec99e1585bc96d513d3e6e77bd37a3738684836e/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | ec99e1585bc96d513d3e6e77bd37a3738684836e | 675 | https://github.com/elving/swag/blob/ec99e1585bc96d513d3e6e77bd37a3738684836e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ec99e1585bc96d513d3e6e77bd37a3738684836e | 675 | https://github.com/elving/swag/blob/ec99e1585bc96d513d3e6e77bd37a3738684836e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.2.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ec99e1585bc96d513d3e6e77bd37a3738684836e | 675 | https://github.com/elving/swag/blob/ec99e1585bc96d513d3e6e77bd37a3738684836e/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | b74033f61068855c91304cd8185ac5f7405c3169 | 675 | https://github.com/elving/swag/blob/b74033f61068855c91304cd8185ac5f7405c3169/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | b74033f61068855c91304cd8185ac5f7405c3169 | 675 | https://github.com/elving/swag/blob/b74033f61068855c91304cd8185ac5f7405c3169/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | b74033f61068855c91304cd8185ac5f7405c3169 | 675 | https://github.com/elving/swag/blob/b74033f61068855c91304cd8185ac5f7405c3169/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.9 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | b74033f61068855c91304cd8185ac5f7405c3169 | 675 | https://github.com/elving/swag/blob/b74033f61068855c91304cd8185ac5f7405c3169/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 7a54eca2cf759afeea28d5357526391d54d3b5e6 | 675 | https://github.com/elving/swag/blob/7a54eca2cf759afeea28d5357526391d54d3b5e6/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 7a54eca2cf759afeea28d5357526391d54d3b5e6 | 675 | https://github.com/elving/swag/blob/7a54eca2cf759afeea28d5357526391d54d3b5e6/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 7a54eca2cf759afeea28d5357526391d54d3b5e6 | 675 | https://github.com/elving/swag/blob/7a54eca2cf759afeea28d5357526391d54d3b5e6/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.8 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 7a54eca2cf759afeea28d5357526391d54d3b5e6 | 675 | https://github.com/elving/swag/blob/7a54eca2cf759afeea28d5357526391d54d3b5e6/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 6a92ab1bd9ccf2a95d75871611d020248d5976b2 | 675 | https://github.com/elving/swag/blob/6a92ab1bd9ccf2a95d75871611d020248d5976b2/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = S... | /*
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 6a92ab1bd9ccf2a95d75871611d020248d5976b2 | 675 | https://github.com/elving/swag/blob/6a92ab1bd9ccf2a95d75871611d020248d5976b2/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 6a92ab1bd9ccf2a95d75871611d020248d5976b2 | 675 | https://github.com/elving/swag/blob/6a92ab1bd9ccf2a95d75871611d020248d5976b2/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.7 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 6a92ab1bd9ccf2a95d75871611d020248d5976b2 | 675 | https://github.com/elving/swag/blob/6a92ab1bd9ccf2a95d75871611d020248d5976b2/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | elving/swag | src/swag.coffee | MIT | 56f187463cf99cb713986d1c97417b6fef2605f1 | 675 | https://github.com/elving/swag/blob/56f187463cf99cb713986d1c97417b6fef2605f1/src/swag.coffee | 1 | 11 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars ... | /*
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
window.Swag = Swag = {};
}
if (typeof modul... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 56f187463cf99cb713986d1c97417b6fef2605f1 | 675 | https://github.com/elving/swag/blob/56f187463cf99cb713986d1c97417b6fef2605f1/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 56f187463cf99cb713986d1c97417b6fef2605f1 | 675 | https://github.com/elving/swag/blob/56f187463cf99cb713986d1c97417b6fef2605f1/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 56f187463cf99cb713986d1c97417b6fef2605f1 | 675 | https://github.com/elving/swag/blob/56f187463cf99cb713986d1c97417b6fef2605f1/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
mod... | CoffeeScript | elving/swag | src/swag.coffee | MIT | 964a9ccacabc0447d0960ca59767f3d402e8a517 | 675 | https://github.com/elving/swag/blob/964a9ccacabc0447d0960ca59767f3d402e8a517/src/swag.coffee | 1 | 12 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag ... | /*
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
Handlebars = window.Handlebars;
window.Swa... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 964a9ccacabc0447d0960ca59767f3d402e8a517 | 675 | https://github.com/elving/swag/blob/964a9ccacabc0447d0960ca59767f3d402e8a517/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
mod... | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 964a9ccacabc0447d0960ca59767f3d402e8a517 | 675 | https://github.com/elving/swag/blob/964a9ccacabc0447d0960ca59767f3d402e8a517/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 964a9ccacabc0447d0960ca59767f3d402e8a517 | 675 | https://github.com/elving/swag/blob/964a9ccacabc0447d0960ca59767f3d402e8a517/src/swag.coffee | 1 | 12 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | elving/swag | src/swag.coffee | MIT | d34f8156bc720b8f3db562e819631fba838b037c | 675 | https://github.com/elving/swag/blob/d34f8156bc720b8f3db562e819631fba838b037c/src/swag.coffee | 1 | 11 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars = re... | /*
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !== null) {
window.Swag = Swag = {};
}
if (typeof modul... | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | d34f8156bc720b8f3db562e819631fba838b037c | 675 | https://github.com/elving/swag/blob/d34f8156bc720b8f3db562e819631fba838b037c/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Handlebars, Swag;
if (typeof window !== "undefined" && window !==... | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | d34f8156bc720b8f3db562e819631fba838b037c | 675 | https://github.com/elving/swag/blob/d34f8156bc720b8f3db562e819631fba838b037c/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.4 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
### | if window?
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
module.exports = Swag = {} | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | d34f8156bc720b8f3db562e819631fba838b037c | 675 | https://github.com/elving/swag/blob/d34f8156bc720b8f3db562e819631fba838b037c/src/swag.coffee | 1 | 11 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | elving/swag | src/swag.coffee | MIT | bfe98d27e401faaa884a8f6d6ef39c7a058a31db | 675 | https://github.com/elving/swag/blob/bfe98d27e401faaa884a8f6d6ef39c7a058a31db/src/swag.coffee | 1 | 8 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag
``` | /*
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" && module !== null) {
module.exports = Swag;
} | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | bfe98d27e401faaa884a8f6d6ef39c7a058a31db | 675 | https://github.com/elving/swag/blob/bfe98d27e401faaa884a8f6d6ef39c7a058a31db/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" &... | ###
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | bfe98d27e401faaa884a8f6d6ef39c7a058a31db | 675 | https://github.com/elving/swag/blob/bfe98d27e401faaa884a8f6d6ef39c7a058a31db/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE> | ###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | bfe98d27e401faaa884a8f6d6ef39c7a058a31db | 675 | https://github.com/elving/swag/blob/bfe98d27e401faaa884a8f6d6ef39c7a058a31db/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | elving/swag | src/swag.coffee | MIT | c92f077fdf191a0fe8bca38b52830186e3fb4964 | 675 | https://github.com/elving/swag/blob/c92f077fdf191a0fe8bca38b52830186e3fb4964/src/swag.coffee | 1 | 8 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag
``` | /*
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" && module !== null) {
module.exports = Swag;
} | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | c92f077fdf191a0fe8bca38b52830186e3fb4964 | 675 | https://github.com/elving/swag/blob/c92f077fdf191a0fe8bca38b52830186e3fb4964/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" &... | ###
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | c92f077fdf191a0fe8bca38b52830186e3fb4964 | 675 | https://github.com/elving/swag/blob/c92f077fdf191a0fe8bca38b52830186e3fb4964/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.2 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE> | ###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | c92f077fdf191a0fe8bca38b52830186e3fb4964 | 675 | https://github.com/elving/swag/blob/c92f077fdf191a0fe8bca38b52830186e3fb4964/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | elving/swag | src/swag.coffee | MIT | ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82 | 675 | https://github.com/elving/swag/blob/ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82/src/swag.coffee | 1 | 8 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag
``` | /*
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" && module !== null) {
module.exports = Swag;
} | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82 | 675 | https://github.com/elving/swag/blob/ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" &... | ###
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82 | 675 | https://github.com/elving/swag/blob/ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.1 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE> | ###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82 | 675 | https://github.com/elving/swag/blob/ecbca98ec4e40b0cf7ff41d2a67e8d000c9f8d82/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | elving/swag | src/swag.coffee | MIT | ad59f730b834d7f952888b159a64cf5ac2c4b5f2 | 675 | https://github.com/elving/swag/blob/ad59f730b834d7f952888b159a64cf5ac2c4b5f2/src/swag.coffee | 1 | 8 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag
``` | /*
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" && module !== null) {
module.exports = Swag;
} | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | ad59f730b834d7f952888b159a64cf5ac2c4b5f2 | 675 | https://github.com/elving/swag/blob/ad59f730b834d7f952888b159a64cf5ac2c4b5f2/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" &... | ###
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ad59f730b834d7f952888b159a64cf5ac2c4b5f2 | 675 | https://github.com/elving/swag/blob/ad59f730b834d7f952888b159a64cf5ac2c4b5f2/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.1.0 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE> | ###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | ad59f730b834d7f952888b159a64cf5ac2c4b5f2 | 675 | https://github.com/elving/swag/blob/ad59f730b834d7f952888b159a64cf5ac2c4b5f2/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:raw_corpus | raw_corpus | ###
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | elving/swag | src/swag.coffee | MIT | 163af3a070eefe79a32c8239884929e0cae1f589 | 675 | https://github.com/elving/swag/blob/163af3a070eefe79a32c8239884929e0cae1f589/src/swag.coffee | 1 | 8 | ||
elving/swag:src/swag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag
``` | /*
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" && module !== null) {
module.exports = Swag;
} | CoffeeScript | JavaScript | elving/swag | src/swag.coffee | MIT | 163af3a070eefe79a32c8239884929e0cae1f589 | 675 | https://github.com/elving/swag/blob/163af3a070eefe79a32c8239884929e0cae1f589/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
*/
var Swag;
Swag = this.Swag = {};
if (typeof module !== "undefined" &... | ###
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
Swag = @Swag = {}
module?.exports = Swag | JavaScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 163af3a070eefe79a32c8239884929e0cae1f589 | 675 | https://github.com/elving/swag/blob/163af3a070eefe79a32c8239884929e0cae1f589/src/swag.coffee | 1 | 8 |
elving/swag:src/swag.coffee:1:completion | completion | ###
Swag v0.0.3 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE> | ###
Swag = @Swag = {}
module?.exports = Swag | CoffeeScript | CoffeeScript | elving/swag | src/swag.coffee | MIT | 163af3a070eefe79a32c8239884929e0cae1f589 | 675 | https://github.com/elving/swag/blob/163af3a070eefe79a32c8239884929e0cae1f589/src/swag.coffee | 1 | 8 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:raw_corpus | raw_corpus | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 5 | 54 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a ... | var SFTP;
module.exports = SFTP = (function() {
class SFTP {
constructor() {
this.connected = new Signal();
this.failed = new Signal();
this.closed = new Signal();
this.closing = false;
// Create a new instance of the FTP
this.sftp = new ssh2();
this.sftp.on("error", () ... | CoffeeScript | JavaScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var SFTP;
module.exports = SFTP = (function() {
class SFTP {
constructor() {
this.connected = new Signal();
this.failed = new Signal();
this.closed = new Signal();
this.closing = false;
// Create a new instance of the FTP
... | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | JavaScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:completion | completion | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | return @failed.dispatch() if error
@connection = connection
@connected.dispatch()
###
Connect to the FTP
@param config <object> Configuration file for your connection
###
connect: (config) ->
@sftp.connect
host : config.host
port : config.port
username : config.user
password : config.pass... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:2:raw_corpus | raw_corpus | @sftp.on "end", => @closed.dispatch()
@sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path: <string> The pat... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 55 | 104 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:2:completion | completion | @sftp.on "end", => @closed.dispatch()
@sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path: <string> The pat... | get: (path, callback) ->
@connection.readFile path, "utf-8", callback
###
Upload a file to the server
@param local_path: <string> The local path of your file
@param remote_path: <string> The remote path where you want your file to be uploaded at
@param callback: <function> Callback method
###
upload: (local_... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 55 | 104 |
lucasmotta/dploy:src/scheme/sftp.coffee:3:raw_corpus | raw_corpus | paths.push content
i = content.lastIndexOf "/"
@connection.unlink remote_path, (error) =>
return callback.apply(this, [error]) if error
@_rdelete paths, callback
###
@private
Delete directories recursively
###
_rdelete: (paths, callback) ->
path = paths.shift()
@connection.opendir path, (error, ha... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 105 | 154 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:3:completion | completion | paths.push content
i = content.lastIndexOf "/"
@connection.unlink remote_path, (error) =>
return callback.apply(this, [error]) if error
@_rdelete paths, callback
###
@private
Delete directories recursively
###
_rdelete: (paths, callback) ->
path = paths.shift()
@connection.opendir path, (error, ha... | ###
Create a directory
@param path: <string> The path of the directory you want to create
@param callback: <function> Callback method
###
mkdir: (path, callback) ->
i = path.length
paths = []
while i > 0
content = path.slice 0, i
paths.push content
i = content.lastIndexOf "/"
@_rmkdir paths, cal... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 105 | 154 |
lucasmotta/dploy:src/scheme/sftp.coffee:4:raw_corpus | raw_corpus | @connection.mkdir path, (error) =>
return callback.apply(this, [error]) if error or paths.length == 0
@_rmkdir paths, callback
else
return callback.apply(this, [undefined]) if paths.length == 0
@_rmkdir paths, callback | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 155 | 160 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:4:completion | completion | @connection.mkdir path, (error) =>
return callback.apply(this, [error]) if error or paths.length == 0
@_rmkdir paths, callback | else
return callback.apply(this, [undefined]) if paths.length == 0
@_rmkdir paths, callback | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 00b02a4902db4650df865874ad52397d05a44638 | 973 | https://github.com/lucasmotta/dploy/blob/00b02a4902db4650df865874ad52397d05a44638/src/scheme/sftp.coffee | 155 | 160 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:raw_corpus | raw_corpus | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 5 | 54 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a ... | var SFTP;
module.exports = SFTP = (function() {
class SFTP {
constructor() {
this.connected = new Signal();
this.failed = new Signal();
this.closed = new Signal();
this.closing = false;
// Create a new instance of the FTP
this.sftp = new ssh2();
this.sftp.on("error", () ... | CoffeeScript | JavaScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var SFTP;
module.exports = SFTP = (function() {
class SFTP {
constructor() {
this.connected = new Signal();
this.failed = new Signal();
this.closed = new Signal();
this.closing = false;
// Create a new instance of the FTP
... | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | JavaScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:1:completion | completion | module.exports = class SFTP
sftp : null
connection : null
connected : null
failed : null
closed : null
closing : null
constructor: ->
@connected = new Signal()
@failed = new Signal()
@closed = new Signal()
@closing = false
# Create a new instance of the FTP
@sftp = new ssh2()
@sftp.on "... | @connection = connection
@connected.dispatch()
###
Connect to the FTP
@param config <object> Configuration file for your connection
###
connect: (config) ->
@sftp.connect
host : config.host
port : config.port
username : config.user
password : config.pass
privateKey : config.privateKey
pu... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 5 | 54 |
lucasmotta/dploy:src/scheme/sftp.coffee:2:raw_corpus | raw_corpus | @sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path: <string> The path of your file
@param callback: <functi... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 55 | 104 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
@sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path:... | this.sftp.end()({
/*
Dispose
*/
dispose: function() {
if (this.connected) {
this.connected.dispose();
this.connected = null;
}
if (this.failed) {
this.failed.dispose();
this.failed = null;
}
if (this.closed) {
this.closed.dispose();
return this.closed = nu... | CoffeeScript | JavaScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 55 | 104 |
lucasmotta/dploy:src/scheme/sftp.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
this.sftp.end()({
/*
Dispose
*/
dispose: function() {
if (this.connected) {
this.connected.dispose();
this.connected = null;
}
if (this.failed) {
this.failed.dispose();
this.failed = null;
}
if (this.closed) {
... | @sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path: <string> The path of your file
@param callback: <functi... | JavaScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 55 | 104 |
lucasmotta/dploy:src/scheme/sftp.coffee:2:completion | completion | @sftp.end()
###
Dispose
###
dispose: ->
if @connected
@connected.dispose()
@connected = null
if @failed
@failed.dispose()
@failed = null
if @closed
@closed.dispose()
@closed = null
###
Retrieve a file on the server
@param path: <string> The path of your file
@param callback: <functi... | @connection.readFile path, "utf-8", callback
###
Upload a file to the server
@param local_path: <string> The local path of your file
@param remote_path: <string> The remote path where you want your file to be uploaded at
@param callback: <function> Callback method
###
upload: (local_path, remote_path, callback... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 55 | 104 |
lucasmotta/dploy:src/scheme/sftp.coffee:3:raw_corpus | raw_corpus | i = content.lastIndexOf "/"
@connection.unlink remote_path, (error) =>
return callback.apply(this, [error]) if error
@_rdelete paths, callback
###
@private
Delete directories recursively
###
_rdelete: (paths, callback) ->
path = paths.shift()
@connection.opendir path, (error, handle) => # Open the di... | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 105 | 154 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:3:completion | completion | i = content.lastIndexOf "/"
@connection.unlink remote_path, (error) =>
return callback.apply(this, [error]) if error
@_rdelete paths, callback
###
@private
Delete directories recursively
###
_rdelete: (paths, callback) ->
path = paths.shift()
@connection.opendir path, (error, handle) => # Open the di... | ###
Create a directory
@param path: <string> The path of the directory you want to create
@param callback: <function> Callback method
###
mkdir: (path, callback) ->
i = path.length
paths = []
while i > 0
content = path.slice 0, i
paths.push content
i = content.lastIndexOf "/"
@_rmkdir paths, cal... | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 105 | 154 |
lucasmotta/dploy:src/scheme/sftp.coffee:4:raw_corpus | raw_corpus | return callback.apply(this, [error]) if error or paths.length == 0
@_rmkdir paths, callback
else
return callback.apply(this, [undefined]) if paths.length == 0
@_rmkdir paths, callback | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 155 | 159 | ||
lucasmotta/dploy:src/scheme/sftp.coffee:4:completion | completion | return callback.apply(this, [error]) if error or paths.length == 0
@_rmkdir paths, callback | else
return callback.apply(this, [undefined]) if paths.length == 0
@_rmkdir paths, callback | CoffeeScript | CoffeeScript | lucasmotta/dploy | src/scheme/sftp.coffee | MIT | 0577a799a8341656302ffb07fc779727cd6d63c6 | 973 | https://github.com/lucasmotta/dploy/blob/0577a799a8341656302ffb07fc779727cd6d63c6/src/scheme/sftp.coffee | 155 | 159 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:raw_corpus | raw_corpus | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this) | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | 2db4d38dcbafe42fc8431e21a5838513feaad7a0 | 717 | https://github.com/alekseykulikov/backbone-offline/blob/2db4d38dcbafe42fc8431e21a5838513feaad7a0/spec/support/test_classes.coffee | 1 | 10 | ||
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this)
``` | window.Dream = (function() {
class Dream extends Backbone.Model {};
Dream.prototype.defaults = {
name: 'Visit Iceland'
};
return Dream;
}).call(this);
window.Dreams = (function() {
class Dreams extends Backbone.Collection {
initialize() {
return this.storage = new Offline.Storage('dreams', t... | CoffeeScript | JavaScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | 2db4d38dcbafe42fc8431e21a5838513feaad7a0 | 717 | https://github.com/alekseykulikov/backbone-offline/blob/2db4d38dcbafe42fc8431e21a5838513feaad7a0/spec/support/test_classes.coffee | 1 | 10 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
window.Dream = (function() {
class Dream extends Backbone.Model {};
Dream.prototype.defaults = {
name: 'Visit Iceland'
};
return Dream;
}).call(this);
window.Dreams = (function() {
class Dreams extends Backbone.Collection {
initialize() {
... | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this) | JavaScript | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | 2db4d38dcbafe42fc8431e21a5838513feaad7a0 | 717 | https://github.com/alekseykulikov/backbone-offline/blob/2db4d38dcbafe42fc8431e21a5838513feaad7a0/spec/support/test_classes.coffee | 1 | 10 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:completion | completion | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection | model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this) | CoffeeScript | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | 2db4d38dcbafe42fc8431e21a5838513feaad7a0 | 717 | https://github.com/alekseykulikov/backbone-offline/blob/2db4d38dcbafe42fc8431e21a5838513feaad7a0/spec/support/test_classes.coffee | 1 | 10 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:raw_corpus | raw_corpus | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this, autoSync: false) | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | f2e71813562f46f3678104f4200d20e97b2eb07e | 717 | https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/support/test_classes.coffee | 1 | 10 | ||
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this, autoSync: false)
``` | window.Dream = (function() {
class Dream extends Backbone.Model {};
Dream.prototype.defaults = {
name: 'Visit Iceland'
};
return Dream;
}).call(this);
window.Dreams = (function() {
class Dreams extends Backbone.Collection {
initialize() {
return this.storage = new Offline.Storage('dreams', t... | CoffeeScript | JavaScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | f2e71813562f46f3678104f4200d20e97b2eb07e | 717 | https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/support/test_classes.coffee | 1 | 10 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
window.Dream = (function() {
class Dream extends Backbone.Model {};
Dream.prototype.defaults = {
name: 'Visit Iceland'
};
return Dream;
}).call(this);
window.Dreams = (function() {
class Dreams extends Backbone.Collection {
initialize() {
... | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection
model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this, autoSync: false) | JavaScript | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | f2e71813562f46f3678104f4200d20e97b2eb07e | 717 | https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/support/test_classes.coffee | 1 | 10 |
alekseykulikov/backbone-offline:spec/support/test_classes.coffee:1:completion | completion | class window.Dream extends Backbone.Model
defaults:
name : 'Visit Iceland'
class window.Dreams extends Backbone.Collection | model: Dream
url: '/api/dreams'
initialize: ->
@storage = new Offline.Storage('dreams', this, autoSync: false) | CoffeeScript | CoffeeScript | alekseykulikov/backbone-offline | spec/support/test_classes.coffee | MIT | f2e71813562f46f3678104f4200d20e97b2eb07e | 717 | https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/support/test_classes.coffee | 1 | 10 |
abe33/atom-pigments:spec/spec-helper.coffee:1:raw_corpus | raw_corpus | fs = require 'fs'
path = require 'path'
beforeEach ->
compare = (a,b,p) -> Math.abs(b - a) < (Math.pow(10, -p) / 2)
@addMatchers
toBeComponentArrayCloseTo: (arr, precision=0) ->
notText = if @isNot then " not" else ""
this.message = => "Expected #{jasmine.pp(@actual)} to#{notText} be an array whos... | CoffeeScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 1 | 50 | ||
abe33/atom-pigments:spec/spec-helper.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
fs = require 'fs'
path = require 'path'
beforeEach ->
compare = (a,b,p) -> Math.abs(b - a) < (Math.pow(10, -p) / 2)
@addMatchers
toBeComponentArrayCloseTo: (arr, precision=0) ->
notText = if @isNot then " not" else ""
this.message = => "Expe... | var fs, path;
fs = require('fs');
path = require('path');
beforeEach(function() {
var compare;
compare = function(a, b, p) {
return Math.abs(b - a) < (Math.pow(10, -p) / 2);
};
return this.addMatchers({
toBeComponentArrayCloseTo: function(arr, precision = 0) {
var notText;
notText = this.... | CoffeeScript | JavaScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.