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
nicolaskruchten/pivottable:pivot.es.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
tooMany: "(demasiados valores)" filterResults: "Filtrar resultados" totals: "Totales" vs: "vs" by: "por" aggregators: "Cuenta": tpl.count(frFmtInt) "Cuenta de valores únicos": tpl.countUnique(frFm...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:raw_corpus
raw_corpus
(callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery ) (jQuery) -...
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript (callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain bro...
var callWithJQuery; (callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain b...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; (callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return def...
(callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery ) (jQuery) -...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:completion
completion
(callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery ) (jQuery) -...
tooMany: "(demasiados valores)" filterResults: "Filtrar resultados" totals: "Totales" vs: "vs" by: "por" aggregators: "Cuenta": tpl.count(frFmtInt) "Cuenta de valores únicos": tpl.countUnique(frFm...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.es.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/schemas/devicetoken.coffee:1:raw_corpus
raw_corpus
###* * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) ### {Schema} = require 'mongoose' module.exports = DeviceTokenSchema = new Schema user: type: Schema.Types.Obje...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/devicetoken.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/devicetoken.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/devicetoken.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###* * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) ### {Schema} = require 'mongoose' module.exports = Devic...
/** * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) */ var DeviceTokenSchema, Schema; ({Schema} = require('mongoose')); module.exports = DeviceTokenSchema = new Sche...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/devicetoken.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/devicetoken.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/devicetoken.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /** * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) */ var DeviceTokenSchema, Schema; ({Schema} = require('mong...
###* * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) ### {Schema} = require 'mongoose' module.exports = DeviceTokenSchema = new Schema user: type: Schema.Types.Obje...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/devicetoken.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/devicetoken.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/devicetoken.coffee:1:completion
completion
###* * Indexes: * - db.devicetokens.ensureIndex({token: 1, type: 1}, {unique: true, background: true}) * - db.devicetokens.ensureIndex({user: 1, clientId: 1, type: 1}, {unique: true, background: true}) ### {Schema} = require 'mongoose' module.exports = DeviceTokenSchema = new Schema user: type: Schema.Types.Obje...
createdAt: type: Date, default: Date.now updatedAt: type: Date, default: Date.now , read: 'secondaryPreferred' toObject: virtuals: true getters: true toJSON: virtuals: true getters: true DeviceTokenSchema.virtual('_userId').get -> @user?._id or @user DeviceTokenSchema.virtual('_userId').set (_i...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/devicetoken.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/devicetoken.coffee
1
26
jianliaoim/talk-os:talk-web/client/updater/guest.coffee:1:raw_corpus
raw_corpus
Immutable = require 'immutable' # room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = (store, roomData) -> # force set unread to zero, ignore data from server roomData = roomData.set 'unread', 0 _teamId = roomData.get('_teamId') _roomId = roomData.get('_id') membersData = roomData.g...
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/guest.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/guest.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/guest.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Immutable = require 'immutable' # room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = (store, roomData) -> # force set unread to zero, ignore data from server roomData = roomData.set 'unread', 0 _teamId = roomData.get('_teamId') ...
var Immutable; Immutable = require('immutable'); // room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = function(store, roomData) { var _roomId, _teamId, membersData, messagesData; // force set unread to zero, ignore data from server roomData = roomData.set('unread', 0); _teamId = roo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/guest.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/guest.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/guest.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable; Immutable = require('immutable'); // room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = function(store, roomData) { var _roomId, _teamId, membersData, messagesData; // force set unread to zero, ignore data from server ...
Immutable = require 'immutable' # room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = (store, roomData) -> # force set unread to zero, ignore data from server roomData = roomData.set 'unread', 0 _teamId = roomData.get('_teamId') _roomId = roomData.get('_id') membersData = roomData.g...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/guest.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/guest.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/guest.coffee:1:completion
completion
Immutable = require 'immutable' # room object: http://talk.ci/doc/restful/guest/room.join.html exports.reset = (store, roomData) -> # force set unread to zero, ignore data from server roomData = roomData.set 'unread', 0 _teamId = roomData.get('_teamId') _roomId = roomData.get('_id') membersData = roomData.g...
messagesEntry.setIn [_teamId, _roomId], sortedMessages else messagesEntry.set _teamId, (Immutable.Map().set _roomId, sortedMessages) # http://talk.ci/doc/restful/guest/room.readone.html exports.fetch = (store, roomData) -> _teamId = roomData.get('_teamId') _roomId = roomData.get('_id') topicsCollectio...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/guest.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/guest.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:raw_corpus
raw_corpus
module.exports = class EngineWebsocketApi extends EventEmitter @default_options: engine: { port: 6150 } query: { port: 6151 } constructor: (options={}) -> @options = _.extend(EngineWebsocketApi.default_options, options) @options.query.protocol ||= new InitiatorProtocol({}) @options.engine.proto...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
10
59
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:completion
completion
module.exports = class EngineWebsocketApi extends EventEmitter @default_options: engine: { port: 6150 } query: { port: 6151 } constructor: (options={}) -> @options = _.extend(EngineWebsocketApi.default_options, options) @options.query.protocol ||= new InitiatorProtocol({}) @options.engine.proto...
connect_to: (options) => ws_options = wsconfig: "ws://localhost:#{options.port}" protocol: options.protocol @info "CONNECTING TO", ws_options.wsconfig wsi = new Initiator( ws_options ) wsi.connect() handle_engine_data: (data) => filter = @event_filters[data?.operation?.kind] if f...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
10
59
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_id, order) => order...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
60
81
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: curren...
({ withdraw_funds: (account_id, currency, amount) => { this.info(`WITHDRAWING ${amount} ${currency} from account ${account_id}`); return this.engine.execute_operation({ kind: BC.operations.WITHDRAW_FUNDS, account: account_id, amount: amount, currency: currency }); }, place_limi...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
60
81
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ withdraw_funds: (account_id, currency, amount) => { this.info(`WITHDRAWING ${amount} ${currency} from account ${account_id}`); return this.engine.execute_operation({ kind: BC.operations.WITHDRAW_FUNDS, account: account_id, amount: amo...
withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_id, order) => order...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
60
81
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_id, order) => order...
order.kind = BC.operations.CREATE_LIMIT_ORDER @info "CREATING LIMIT ORDER #{JSON.stringify(order)}" @engine.execute_operation(order) get_balances: (account_id) => @info "SENDING GET_BALANCES" @query.execute_operation kind: BC.operations.GET_BALANCES args: [account_id] get_spread: =>
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_api.coffee
60
81
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:raw_corpus
raw_corpus
module.exports = class EngineWebsocketApi extends EventEmitter constructor: (options) -> @options = options || { query: port: 6151 protocol: new InitiatorProtocol({}) engine: port: 6150 protocol: new InitiatorP...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
10
59
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:completion
completion
module.exports = class EngineWebsocketApi extends EventEmitter constructor: (options) -> @options = options || { query: port: 6151 protocol: new InitiatorProtocol({}) engine: port: 6150 protocol: new InitiatorP...
@error "COULDN'T CONNECT:", error connect_to: (options) => ws_options = wsconfig: "ws://localhost:#{options.port}" protocol: options.protocol @info "CONNECTING TO", ws_options.wsconfig wsi = new Initiator( ws_options ) wsi.connect() handle_engine_data: (data) => filter = @event_fi...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
10
59
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
currency: currency withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_i...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
60
82
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript currency: currency withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount ...
({ currency: currency({ withdraw_funds: (account_id, currency, amount) => { this.info(`WITHDRAWING ${amount} ${currency} from account ${account_id}`); return this.engine.execute_operation({ kind: BC.operations.WITHDRAW_FUNDS, account: account_id, amount: amount, currenc...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
60
82
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ currency: currency({ withdraw_funds: (account_id, currency, amount) => { this.info(`WITHDRAWING ${amount} ${currency} from account ${account_id}`); return this.engine.execute_operation({ kind: BC.operations.WITHDRAW_FUNDS, accou...
currency: currency withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_i...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
60
82
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
currency: currency withdraw_funds: (account_id, currency, amount) => @info "WITHDRAWING #{amount} #{currency} from account #{account_id}" @engine.execute_operation kind: BC.operations.WITHDRAW_FUNDS account: account_id amount: amount currency: currency place_limit_order: (account_i...
order.account = account_id order.kind = BC.operations.CREATE_LIMIT_ORDER @info "CREATING LIMIT ORDER #{JSON.stringify(order)}" @engine.execute_operation(order) get_balances: (account_id) => @info "SENDING GET_BALANCES" @query.execute_operation kind: BC.operations.GET_BALANCES args: [a...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
77680a0a0b00fad96697ce82e6b88329a71e54f3
663
https://github.com/buttercoin/buttercoin/blob/77680a0a0b00fad96697ce82e6b88329a71e54f3/lib/ews/ew_api.coffee
60
82
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:raw_corpus
raw_corpus
_ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') EventEmitter = require('chained-emitter').EventEmitter module.exports = class EngineWebsocketApi extends EventEmitter constructor: (options) -> @options = options...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:completion
completion
_ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') EventEmitter = require('chained-emitter').EventEmitter module.exports = class EngineWebsocketApi extends EventEmitter constructor: (options) -> @options = options...
start: => Q.all([ @connect_to(@options.engine) @connect_to(@options.query) ]).then => @info "API READY" .fail (error) => @error "COULDN'T CONNECT:", error connect_to: (options) => ws_options = wsconfig: "ws://localhost:#{options.port}" protocol: options.protocol ...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount ...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
51
76
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEP...
this.emit('data', data({ process_data_event: (data) => { return this.warn("Ignoring data event:", data); }, deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engine.execute_operation({ kind: "ADD_DEPOSIT", ...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
51
76
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.emit('data', data({ process_data_event: (data) => { return this.warn("Ignoring data event:", data); }, deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engi...
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount ...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
51
76
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount ...
place_limit_order: (account_id, order) => order.account = account_id order.kind = "CREATE_LIMIT_ORDER" @info "CREATING LIMIT ORDER #{JSON.stringify(order)}" @engine.execute_operation(order) get_balances: (account_id) => @info "SENDING GET_BALANCES" @query.execute_operation kind: "GET_BA...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a228184468545788572eb7b74e37844562f84a78
663
https://github.com/buttercoin/buttercoin/blob/a228184468545788572eb7b74e37844562f84a78/lib/ews/ew_api.coffee
51
76
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount ...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f
663
https://github.com/buttercoin/buttercoin/blob/eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f/lib/ews/ew_api.coffee
51
70
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEP...
this.emit('data', data({ process_data_event: (data) => { return this.warn("Ignoring data event:", data); }, deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engine.execute_operation({ kind: "ADD_DEPOSIT", ...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f
663
https://github.com/buttercoin/buttercoin/blob/eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f/lib/ews/ew_api.coffee
51
70
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.emit('data', data({ process_data_event: (data) => { return this.warn("Ignoring data event:", data); }, deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engi...
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount ...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f
663
https://github.com/buttercoin/buttercoin/blob/eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f/lib/ews/ew_api.coffee
51
70
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
@emit 'data', data process_data_event: (data) => @warn "Ignoring data event:", data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id
amount: amount currency: currency get_balances: (account_id) => @info "SENDING GET_BALANCES" @query.execute_operation kind: "GET_BALANCES" args: [account_id] get_spread: =>
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f
663
https://github.com/buttercoin/buttercoin/blob/eb2f4e70f4c0b643b419f83157d9afd2c0d4fc4f/lib/ews/ew_api.coffee
51
70
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
@emit 'data', data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount currency: currency get_balances: (account_id) => @info "SENDING...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
169600a25a737c3f327e55fceb0ea5d45aaf19a8
663
https://github.com/buttercoin/buttercoin/blob/169600a25a737c3f327e55fceb0ea5d45aaf19a8/lib/ews/ew_api.coffee
51
67
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @emit 'data', data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount currency: cur...
this.emit('data', data({ deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engine.execute_operation({ kind: "ADD_DEPOSIT", account: account_id, amount: amount, currency: currency }); }, get_bal...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
169600a25a737c3f327e55fceb0ea5d45aaf19a8
663
https://github.com/buttercoin/buttercoin/blob/169600a25a737c3f327e55fceb0ea5d45aaf19a8/lib/ews/ew_api.coffee
51
67
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.emit('data', data({ deposit_funds: (account_id, currency, amount) => { this.info(`DEPOSITING ${amount} ${currency} to account ${account_id}`); return this.engine.execute_operation({ kind: "ADD_DEPOSIT", account: account_id, amount: ...
@emit 'data', data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount currency: currency get_balances: (account_id) => @info "SENDING...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
169600a25a737c3f327e55fceb0ea5d45aaf19a8
663
https://github.com/buttercoin/buttercoin/blob/169600a25a737c3f327e55fceb0ea5d45aaf19a8/lib/ews/ew_api.coffee
51
67
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
@emit 'data', data deposit_funds: (account_id, currency, amount) => @info "DEPOSITING #{amount} #{currency} to account #{account_id}" @engine.execute_operation kind: "ADD_DEPOSIT" account: account_id amount: amount
currency: currency get_balances: (account_id) => @info "SENDING GET_BALANCES" @query.execute_operation kind: "GET_BALANCES" args: [account_id] get_spread: =>
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
169600a25a737c3f327e55fceb0ea5d45aaf19a8
663
https://github.com/buttercoin/buttercoin/blob/169600a25a737c3f327e55fceb0ea5d45aaf19a8/lib/ews/ew_api.coffee
51
67
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:raw_corpus
raw_corpus
_ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') module.exports = class EngineWebsocketApi constructor: (options) -> @options = options || { query: port: 6151 ...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') module.exports = class EngineWebsocketApi constructor: (options) -> @options = options || { ...
var EngineWebsocketApi, Initiator, InitiatorProtocol, Q, _, stump; _ = require('underscore'); stump = require('stump'); Q = require('q'); Initiator = require('./ws_initiator'); InitiatorProtocol = require('./i_protocol'); module.exports = EngineWebsocketApi = class EngineWebsocketApi { constructor(options) { ...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var EngineWebsocketApi, Initiator, InitiatorProtocol, Q, _, stump; _ = require('underscore'); stump = require('stump'); Q = require('q'); Initiator = require('./ws_initiator'); InitiatorProtocol = require('./i_protocol'); module.exports = EngineWebsocketApi =...
_ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') module.exports = class EngineWebsocketApi constructor: (options) -> @options = options || { query: port: 6151 ...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:1:completion
completion
_ = require('underscore') stump = require('stump') Q = require('q') Initiator = require('./ws_initiator') InitiatorProtocol = require('./i_protocol') module.exports = class EngineWebsocketApi constructor: (options) -> @options = options || { query: port: 6151 ...
@connect_to(@options.engine) @connect_to(@options.query) ]).then => @info "API READY" .fail (error) => @error "COULDN'T CONNECT:", error connect_to: (options) => ws_options = wsconfig: "ws://localhost:#{options.port}" protocol: options.protocol @info "CONNECTING TO", ws_...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
1
50
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:raw_corpus
raw_corpus
@info "SENDING GET_BALANCES" @query.execute_operation kind: "GET_BALANCES" args: [account_id] get_spread: =>
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
51
56
buttercoin/buttercoin:lib/ews/ew_api.coffee:2:completion
completion
@info "SENDING GET_BALANCES" @query.execute_operation kind: "GET_BALANCES"
args: [account_id] get_spread: =>
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_api.coffee
MIT
a3d546dc9e3d772b25933baa2a61c94d54604724
663
https://github.com/buttercoin/buttercoin/blob/a3d546dc9e3d772b25933baa2a61c94d54604724/lib/ews/ew_api.coffee
51
56
octoblu/meshblu:lib/SocketIOThrottle.coffee:1:raw_corpus
raw_corpus
debug = require('debug')('meshblu:SocketIOThrottle') class SocketIOThrottle constructor: -> @queryThrottle = require('./getThrottles').query throttle: (socket, next=->) => @queryThrottle.rateLimit socket.id, (error, isLimited) => debug 'rateLimit', socket.id, isLimited return @errorAndClose s...
CoffeeScript
octoblu/meshblu
lib/SocketIOThrottle.coffee
MIT
edf1db3062b6872de5f1b418aced623e9dafa587
815
https://github.com/octoblu/meshblu/blob/edf1db3062b6872de5f1b418aced623e9dafa587/lib/SocketIOThrottle.coffee
1
20
octoblu/meshblu:lib/SocketIOThrottle.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript debug = require('debug')('meshblu:SocketIOThrottle') class SocketIOThrottle constructor: -> @queryThrottle = require('./getThrottles').query throttle: (socket, next=->) => @queryThrottle.rateLimit socket.id, (error, isLimited) => debug 'rateLi...
var SocketIOThrottle, debug; debug = require('debug')('meshblu:SocketIOThrottle'); SocketIOThrottle = class SocketIOThrottle { constructor() { this.throttle = this.throttle.bind(this); this.errorAndClose = this.errorAndClose.bind(this); this.queryThrottle = require('./getThrottles').query; } thrott...
CoffeeScript
JavaScript
octoblu/meshblu
lib/SocketIOThrottle.coffee
MIT
edf1db3062b6872de5f1b418aced623e9dafa587
815
https://github.com/octoblu/meshblu/blob/edf1db3062b6872de5f1b418aced623e9dafa587/lib/SocketIOThrottle.coffee
1
20
octoblu/meshblu:lib/SocketIOThrottle.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SocketIOThrottle, debug; debug = require('debug')('meshblu:SocketIOThrottle'); SocketIOThrottle = class SocketIOThrottle { constructor() { this.throttle = this.throttle.bind(this); this.errorAndClose = this.errorAndClose.bind(this); this.queryTh...
debug = require('debug')('meshblu:SocketIOThrottle') class SocketIOThrottle constructor: -> @queryThrottle = require('./getThrottles').query throttle: (socket, next=->) => @queryThrottle.rateLimit socket.id, (error, isLimited) => debug 'rateLimit', socket.id, isLimited return @errorAndClose s...
JavaScript
CoffeeScript
octoblu/meshblu
lib/SocketIOThrottle.coffee
MIT
edf1db3062b6872de5f1b418aced623e9dafa587
815
https://github.com/octoblu/meshblu/blob/edf1db3062b6872de5f1b418aced623e9dafa587/lib/SocketIOThrottle.coffee
1
20
octoblu/meshblu:lib/SocketIOThrottle.coffee:1:completion
completion
debug = require('debug')('meshblu:SocketIOThrottle') class SocketIOThrottle constructor: -> @queryThrottle = require('./getThrottles').query throttle: (socket, next=->) => @queryThrottle.rateLimit socket.id, (error, isLimited) => debug 'rateLimit', socket.id, isLimited
return @errorAndClose socket, error if error? return @errorAndClose socket, new Error('request exceeds rate limit') if isLimited next() errorAndClose: (socket, error) => socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}} socket.disconnect(true) module.exports = SocketIO...
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/SocketIOThrottle.coffee
MIT
edf1db3062b6872de5f1b418aced623e9dafa587
815
https://github.com/octoblu/meshblu/blob/edf1db3062b6872de5f1b418aced623e9dafa587/lib/SocketIOThrottle.coffee
1
20
gss/engine:src/concepts/Trigger.coffee:1:raw_corpus
raw_corpus
# Simple event trigger that yields `handleEvent` interface # and calls `on<event>` function on the object if defined CustomEvent = (event, params = {bubbles: false, cancelable: false, detail: undefined}) -> evt = document.createEvent("CustomEvent") evt.initCustomEvent(event, params.bubbles, params.cancelable, par...
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
1
50
gss/engine:src/concepts/Trigger.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Simple event trigger that yields `handleEvent` interface # and calls `on<event>` function on the object if defined CustomEvent = (event, params = {bubbles: false, cancelable: false, detail: undefined}) -> evt = document.createEvent("CustomEvent") evt.init...
// Simple event trigger that yields `handleEvent` interface // and calls `on<event>` function on the object if defined var CustomEvent, Trigger; CustomEvent = function(event, params = { bubbles: false, cancelable: false, detail: void 0 }) { var evt; evt = document.createEvent("CustomEvent"); evt.in...
CoffeeScript
JavaScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
1
50
gss/engine:src/concepts/Trigger.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Simple event trigger that yields `handleEvent` interface // and calls `on<event>` function on the object if defined var CustomEvent, Trigger; CustomEvent = function(event, params = { bubbles: false, cancelable: false, detail: void 0 }) { var evt...
# Simple event trigger that yields `handleEvent` interface # and calls `on<event>` function on the object if defined CustomEvent = (event, params = {bubbles: false, cancelable: false, detail: undefined}) -> evt = document.createEvent("CustomEvent") evt.initCustomEvent(event, params.bubbles, params.cancelable, par...
JavaScript
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
1
50
gss/engine:src/concepts/Trigger.coffee:1:completion
completion
# Simple event trigger that yields `handleEvent` interface # and calls `on<event>` function on the object if defined CustomEvent = (event, params = {bubbles: false, cancelable: false, detail: undefined}) -> evt = document.createEvent("CustomEvent") evt.initCustomEvent(event, params.bubbles, params.cancelable, par...
addListeners: (listeners) -> for name, callback of listeners @addEventListener name, callback removeListeners: (listeners) -> for name, callback of listeners @removeEventListener name, callback once: (type, fn) -> fn.once = true @addEventListener(type, fn) addEventListener: (type, f...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
1
50
gss/engine:src/concepts/Trigger.coffee:2:raw_corpus
raw_corpus
if @[method = 'on' + type] return @[method](a, b, c) dispatchEvent: (element, type, data, bubbles, cancelable) -> return unless @scope detail = {engine: @} for prop, value of data detail[prop] = value element.dispatchEvent new CustomEvent(type, {detail,bubbles,cancelable}) # Catch-all...
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
51
69
gss/engine:src/concepts/Trigger.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @[method = 'on' + type] return @[method](a, b, c) dispatchEvent: (element, type, data, bubbles, cancelable) -> return unless @scope detail = {engine: @} for prop, value of data detail[prop] = value element.dispatchEvent new Cust...
var method; if (this[method = 'on' + type]) { return this[method](a, b, c); } ({ dispatchEvent: function(element, type, data, bubbles, cancelable) { var detail, prop, value; if (!this.scope) { return; } detail = { engine: this }; for (prop in data) { value = data[prop]; ...
CoffeeScript
JavaScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
51
69
gss/engine:src/concepts/Trigger.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var method; if (this[method = 'on' + type]) { return this[method](a, b, c); } ({ dispatchEvent: function(element, type, data, bubbles, cancelable) { var detail, prop, value; if (!this.scope) { return; } detail = { engine: this ...
if @[method = 'on' + type] return @[method](a, b, c) dispatchEvent: (element, type, data, bubbles, cancelable) -> return unless @scope detail = {engine: @} for prop, value of data detail[prop] = value element.dispatchEvent new CustomEvent(type, {detail,bubbles,cancelable}) # Catch-all...
JavaScript
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
51
69
gss/engine:src/concepts/Trigger.coffee:2:completion
completion
if @[method = 'on' + type] return @[method](a, b, c) dispatchEvent: (element, type, data, bubbles, cancelable) -> return unless @scope detail = {engine: @} for prop, value of data detail[prop] = value
element.dispatchEvent new CustomEvent(type, {detail,bubbles,cancelable}) # Catch-all event listener handleEvent: (e) -> @triggerEvent(e.type, e) then: (callback) -> @once @DONE, callback module.exports = Trigger
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Trigger.coffee
MIT
d2ecef595659dc6c8a24220099857b7aa244709e
2,854
https://github.com/gss/engine/blob/d2ecef595659dc6c8a24220099857b7aa244709e/src/concepts/Trigger.coffee
51
69
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
unless Utils.isHandlebarsSpecific(arg) arg = Utils.result(arg) resultArgs.push(arg) helper.apply @, resultArgs Swag.registerHelpers = (localHandlebars) -> if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? ...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
7037ec09f6cfe91c575c57a0125c89f59b1b14aa
675
https://github.com/elving/swag/blob/7037ec09f6cfe91c575c57a0125c89f59b1b14aa/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
7037ec09f6cfe91c575c57a0125c89f59b1b14aa
675
https://github.com/elving/swag/blob/7037ec09f6cfe91c575c57a0125c89f59b1b14aa/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
7037ec09f6cfe91c575c57a0125c89f59b1b14aa
675
https://github.com/elving/swag/blob/7037ec09f6cfe91c575c57a0125c89f59b1b14aa/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
unless Utils.isHandlebarsSpecific(arg) arg = Utils.result(arg) resultArgs.push(arg) helper.apply @, args Swag.registerHelpers = (localHandlebars) -> if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? ...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
7037ec09f6cfe91c575c57a0125c89f59b1b14aa
675
https://github.com/elving/swag/blob/7037ec09f6cfe91c575c57a0125c89f59b1b14aa/src/swag.coffee
1
50
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
1dab7399e1ac6127c7b2cde8d518f46c85838801
675
https://github.com/elving/swag/blob/1dab7399e1ac6127c7b2cde8d518f46c85838801/src/swag.coffee
1
41
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
1dab7399e1ac6127c7b2cde8d518f46c85838801
675
https://github.com/elving/swag/blob/1dab7399e1ac6127c7b2cde8d518f46c85838801/src/swag.coffee
1
41
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
1dab7399e1ac6127c7b2cde8d518f46c85838801
675
https://github.com/elving/swag/blob/1dab7399e1ac6127c7b2cde8d518f46c85838801/src/swag.coffee
1
41
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
Swag.registerHelpers = (localHandlebars) -> if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? ...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
1dab7399e1ac6127c7b2cde8d518f46c85838801
675
https://github.com/elving/swag/blob/1dab7399e1ac6127c7b2cde8d518f46c85838801/src/swag.coffee
1
41
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
89bd95cab7b53bf81a1703508309877b3e81a7c4
675
https://github.com/elving/swag/blob/89bd95cab7b53bf81a1703508309877b3e81a7c4/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
89bd95cab7b53bf81a1703508309877b3e81a7c4
675
https://github.com/elving/swag/blob/89bd95cab7b53bf81a1703508309877b3e81a7c4/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
89bd95cab7b53bf81a1703508309877b3e81a7c4
675
https://github.com/elving/swag/blob/89bd95cab7b53bf81a1703508309877b3e81a7c4/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.6.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' Sw...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
89bd95cab7b53bf81a1703508309877b3e81a7c4
675
https://github.com/elving/swag/blob/89bd95cab7b53bf81a1703508309877b3e81a7c4/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.6.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
fd952d9ad2fc146e07f5b1c440dcd47f155c47c7
675
https://github.com/elving/swag/blob/fd952d9ad2fc146e07f5b1c440dcd47f155c47c7/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.6.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? window.Swag = Swag = {} else if module? modul...
/* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
fd952d9ad2fc146e07f5b1c440dcd47f155c47c7
675
https://github.com/elving/swag/blob/fd952d9ad2fc146e07f5b1c440dcd47f155c47c7/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.6.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.6.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
fd952d9ad2fc146e07f5b1c440dcd47f155c47c7
675
https://github.com/elving/swag/blob/fd952d9ad2fc146e07f5b1c440dcd47f155c47c7/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.6.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' Sw...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
fd952d9ad2fc146e07f5b1c440dcd47f155c47c7
675
https://github.com/elving/swag/blob/fd952d9ad2fc146e07f5b1c440dcd47f155c47c7/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.5.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
6be990206ff5543b0cfcaca2b58df626c6920350
675
https://github.com/elving/swag/blob/6be990206ff5543b0cfcaca2b58df626c6920350/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.5.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.5.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
6be990206ff5543b0cfcaca2b58df626c6920350
675
https://github.com/elving/swag/blob/6be990206ff5543b0cfcaca2b58df626c6920350/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.5.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.5.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
6be990206ff5543b0cfcaca2b58df626c6920350
675
https://github.com/elving/swag/blob/6be990206ff5543b0cfcaca2b58df626c6920350/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.5.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' Sw...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
6be990206ff5543b0cfcaca2b58df626c6920350
675
https://github.com/elving/swag/blob/6be990206ff5543b0cfcaca2b58df626c6920350/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.5.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
2ab475f42850cbf80208f43154d7868900910b04
675
https://github.com/elving/swag/blob/2ab475f42850cbf80208f43154d7868900910b04/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.5.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? window.Swag = Swag = {} else if module? modul...
/* Swag v0.5.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
2ab475f42850cbf80208f43154d7868900910b04
675
https://github.com/elving/swag/blob/2ab475f42850cbf80208f43154d7868900910b04/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.5.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.5.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
2ab475f42850cbf80208f43154d7868900910b04
675
https://github.com/elving/swag/blob/2ab475f42850cbf80208f43154d7868900910b04/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.5.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' Sw...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
2ab475f42850cbf80208f43154d7868900910b04
675
https://github.com/elving/swag/blob/2ab475f42850cbf80208f43154d7868900910b04/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.3.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
597220c34d0efd0309788e95bd0e0c3379a0b34b
675
https://github.com/elving/swag/blob/597220c34d0efd0309788e95bd0e0c3379a0b34b/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.3.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> ### if window? window.Swag = Swag = {} else if module? modul...
/* Swag v0.3.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
597220c34d0efd0309788e95bd0e0c3379a0b34b
675
https://github.com/elving/swag/blob/597220c34d0efd0309788e95bd0e0c3379a0b34b/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.3.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.3.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
597220c34d0efd0309788e95bd0e0c3379a0b34b
675
https://github.com/elving/swag/blob/597220c34d0efd0309788e95bd0e0c3379a0b34b/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.3.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> ### if window? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if localHandlebars Swag.Handlebars = localHandlebars else if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' Sw...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
597220c34d0efd0309788e95bd0e0c3379a0b34b
675
https://github.com/elving/swag/blob/597220c34d0efd0309788e95bd0e0c3379a0b34b/src/swag.coffee
1
37
elving/swag:src/swag.coffee:1:raw_corpus
raw_corpus
### Swag v0.3.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
CoffeeScript
elving/swag
src/swag.coffee
MIT
f17d2de491f4ec174ae77b59461eb8c9f823302c
675
https://github.com/elving/swag/blob/f17d2de491f4ec174ae77b59461eb8c9f823302c/src/swag.coffee
1
36
elving/swag:src/swag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Swag v0.3.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? window.Swag = Swag = {} else if module? modul...
/* Swag v0.3.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; if (typeof window !== "undefined" && window !== null) { window.Swag = Swag = {}; } else if (typeof module !== "u...
CoffeeScript
JavaScript
elving/swag
src/swag.coffee
MIT
f17d2de491f4ec174ae77b59461eb8c9f823302c
675
https://github.com/elving/swag/blob/f17d2de491f4ec174ae77b59461eb8c9f823302c/src/swag.coffee
1
36
elving/swag:src/swag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Swag v0.3.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; if (typeof window !== "undefined" && window !== null) { w...
### Swag v0.3.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
f17d2de491f4ec174ae77b59461eb8c9f823302c
675
https://github.com/elving/swag/blob/f17d2de491f4ec174ae77b59461eb8c9f823302c/src/swag.coffee
1
36
elving/swag:src/swag.coffee:1:completion
completion
### Swag v0.3.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? window.Swag = Swag = {} else if module? module.exports = Swag = {} Swag.helpers = {} Swag.addHelper ...
if window? if window.Ember? Swag.Handlebars = Ember.Handlebars else Swag.Handlebars = window.Handlebars else if module? Swag.Handlebars = require 'handlebars' else if localHandlebars Swag.Handlebars = localHandlebars Swag.registerHelper = (name, helpe...
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
f17d2de491f4ec174ae77b59461eb8c9f823302c
675
https://github.com/elving/swag/blob/f17d2de491f4ec174ae77b59461eb8c9f823302c/src/swag.coffee
1
36
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 = {} Swag.registerHelper = -> if window.E...
CoffeeScript
elving/swag
src/swag.coffee
MIT
65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17
675
https://github.com/elving/swag/blob/65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17/src/swag.coffee
1
20
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
65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17
675
https://github.com/elving/swag/blob/65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17/src/swag.coffee
1
20
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 = {} Swag.registerHelper = -> if window.E...
JavaScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17
675
https://github.com/elving/swag/blob/65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17/src/swag.coffee
1
20
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 = {} Swag.registerHelper = ->
if window.Ember Ember.Handlebars.helper arguments else Handlebars.registerHelper arguments if module? Handlebars = require 'handlebars' module.exports = Swag = {} Swag.registerHelper = -> Handlebars.registerHelper arguments
CoffeeScript
CoffeeScript
elving/swag
src/swag.coffee
MIT
65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17
675
https://github.com/elving/swag/blob/65fa361b1dbaa9c28ca8dbf5cad24d741f96ff17/src/swag.coffee
1
20