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
mojs/mojs:src/shapes/zigzag.coffee:2:completion
completion
@_prevRadiusY = radiusY
_getLength:-> @_length module.exports = Zigzag
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/zigzag.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/zigzag.coffee
51
55
mojs/mojs:src/shapes/zigzag.coffee:1:raw_corpus
raw_corpus
# ignore coffescript sudo code Bit = require('./bit').default class Zigzag extends Bit _declareDefaults:-> super @_defaults.tag = 'path' @_defaults.points = 3 # @_defaults.ratio = 1.43; _draw:-> super p = this._props return if !@_props.points radiusX = if @_props.radiusX? then ...
CoffeeScript
mojs/mojs
src/shapes/zigzag.coffee
MIT
7c34e766d9b361898a59adbc753862fa95de182a
18,698
https://github.com/mojs/mojs/blob/7c34e766d9b361898a59adbc753862fa95de182a/src/shapes/zigzag.coffee
1
50
mojs/mojs:src/shapes/zigzag.coffee:1:completion
completion
# ignore coffescript sudo code Bit = require('./bit').default class Zigzag extends Bit _declareDefaults:-> super @_defaults.tag = 'path' @_defaults.points = 3 # @_defaults.ratio = 1.43; _draw:-> super p = this._props return if !@_props.points radiusX = if @_props.radiusX? then ...
y = p.height/2 currentX = x-radiusX currentY = y stepX = (2*radiusX) / (p.points-1) yFlip = -1 delta = Math.sqrt(stepX*stepX + radiusY*radiusY) length = -delta points = "M#{currentX}, #{y} " for i in [0...p.points] points += "L#{currentX}, #{currentY} " currentX +=...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/zigzag.coffee
MIT
7c34e766d9b361898a59adbc753862fa95de182a
18,698
https://github.com/mojs/mojs/blob/7c34e766d9b361898a59adbc753862fa95de182a/src/shapes/zigzag.coffee
1
50
mojs/mojs:src/shapes/zigzag.coffee:1:raw_corpus
raw_corpus
# ignore coffescript sudo code Bit = require('./bit').default or require('./bit'); class Zigzag extends Bit _declareDefaults:-> super @_defaults.tag = 'path' @_defaults.points = 3 # @_defaults.ratio = 1.43; _draw:-> super p = this._props return if !@_props.points radiusX = if @...
CoffeeScript
mojs/mojs
src/shapes/zigzag.coffee
MIT
768850a20165488e3098a3003b153e905266dac8
18,698
https://github.com/mojs/mojs/blob/768850a20165488e3098a3003b153e905266dac8/src/shapes/zigzag.coffee
1
50
mojs/mojs:src/shapes/zigzag.coffee:1:completion
completion
# ignore coffescript sudo code Bit = require('./bit').default or require('./bit'); class Zigzag extends Bit _declareDefaults:-> super @_defaults.tag = 'path' @_defaults.points = 3 # @_defaults.ratio = 1.43; _draw:-> super p = this._props return if !@_props.points radiusX = if @...
y = p.height/2 currentX = x-radiusX currentY = y stepX = (2*radiusX) / (p.points-1) yFlip = -1 delta = Math.sqrt(stepX*stepX + radiusY*radiusY) length = -delta points = "M#{currentX}, #{y} " for i in [0...p.points] points += "L#{currentX}, #{currentY} " currentX +=...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/zigzag.coffee
MIT
768850a20165488e3098a3003b153e905266dac8
18,698
https://github.com/mojs/mojs/blob/768850a20165488e3098a3003b153e905266dac8/src/shapes/zigzag.coffee
1
50
soyjavi/QuoJS:spec/ajax.coffee:1:raw_corpus
raw_corpus
describe "Ajax", -> # User = undefined service_url = undefined beforeEach -> service_url = "http://quonasrv.appspot.com/api/" it "can configure ajax settings", -> $$.ajaxSettings = async: false success: {} error: {} timeout: 0 expect($$.ajaxSettings.async).toBeFalsy() it...
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
1
40
soyjavi/QuoJS:spec/ajax.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "Ajax", -> # User = undefined service_url = undefined beforeEach -> service_url = "http://quonasrv.appspot.com/api/" it "can configure ajax settings", -> $$.ajaxSettings = async: false success: {} error: {} timeo...
describe("Ajax", function() { var service_url; // User = undefined service_url = void 0; beforeEach(function() { return service_url = "http://quonasrv.appspot.com/api/"; }); it("can configure ajax settings", function() { $$.ajaxSettings = { async: false, success: {}, error: {}, ...
CoffeeScript
JavaScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
1
40
soyjavi/QuoJS:spec/ajax.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("Ajax", function() { var service_url; // User = undefined service_url = void 0; beforeEach(function() { return service_url = "http://quonasrv.appspot.com/api/"; }); it("can configure ajax settings", function() { $$.ajaxSettings = { ...
describe "Ajax", -> # User = undefined service_url = undefined beforeEach -> service_url = "http://quonasrv.appspot.com/api/" it "can configure ajax settings", -> $$.ajaxSettings = async: false success: {} error: {} timeout: 0 expect($$.ajaxSettings.async).toBeFalsy() it...
JavaScript
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
1
40
soyjavi/QuoJS:spec/ajax.coffee:1:completion
completion
describe "Ajax", -> # User = undefined service_url = undefined beforeEach -> service_url = "http://quonasrv.appspot.com/api/" it "can configure ajax settings", -> $$.ajaxSettings = async: false success: {} error: {} timeout: 0 expect($$.ajaxSettings.async).toBeFalsy() it...
it "should execute the callback function on success", -> spyOn($$, "ajax").andCallFake (options) -> options.success() _callback = jasmine.createSpy() $$.ajax url: "#{service_url}" success: _callback expect(_callback).toHaveBeenCalled(); # it "should make a real AJAX request", -> # ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
1
40
soyjavi/QuoJS:spec/ajax.coffee:3:raw_corpus
raw_corpus
it "can serialize parameters", -> parameters = format: 'json' key: '1980' page: 0 ordered: true serializedParameters = "format=json&key=1980&page=0&ordered=true" expect($$.serializeParameters parameters).toBe serializedParameters
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
82
90
soyjavi/QuoJS:spec/ajax.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it "can serialize parameters", -> parameters = format: 'json' key: '1980' page: 0 ordered: true serializedParameters = "format=json&key=1980&page=0&ordered=true" expect($$.serializeParameters parameters).toBe serializedParamet...
it("can serialize parameters", function() { var parameters, serializedParameters; parameters = { format: 'json', key: '1980', page: 0, ordered: true }; serializedParameters = "format=json&key=1980&page=0&ordered=true"; return expect($$.serializeParameters(parameters)).toBe(serializedParameters...
CoffeeScript
JavaScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
82
90
soyjavi/QuoJS:spec/ajax.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it("can serialize parameters", function() { var parameters, serializedParameters; parameters = { format: 'json', key: '1980', page: 0, ordered: true }; serializedParameters = "format=json&key=1980&page=0&ordered=true"; return expect($$.ser...
it "can serialize parameters", -> parameters = format: 'json' key: '1980' page: 0 ordered: true serializedParameters = "format=json&key=1980&page=0&ordered=true" expect($$.serializeParameters parameters).toBe serializedParameters
JavaScript
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
82
90
soyjavi/QuoJS:spec/ajax.coffee:3:completion
completion
it "can serialize parameters", -> parameters = format: 'json' key: '1980'
page: 0 ordered: true serializedParameters = "format=json&key=1980&page=0&ordered=true" expect($$.serializeParameters parameters).toBe serializedParameters
CoffeeScript
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
bc253e84b3d7b05c58f60d7fd39bf7d27294934e
2,055
https://github.com/soyjavi/QuoJS/blob/bc253e84b3d7b05c58f60d7fd39bf7d27294934e/spec/ajax.coffee
82
90
soyjavi/QuoJS:spec/ajax.coffee:1:raw_corpus
raw_corpus
describe "Ajax", -> # User = undefined beforeEach -> $$.ajaxSettings = async: true success: {} error: {} timeout: 0 # it "ajax with parameters in line", -> # $$.ajax # url: "http://www.panoramio.com/map/get_panoramas.php?set=public&from=0&to=3&minx=-180&miny=-90&maxx=180&...
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
9be6e3f2fe1072145236b0f111b4f6431ba2376b
2,055
https://github.com/soyjavi/QuoJS/blob/9be6e3f2fe1072145236b0f111b4f6431ba2376b/spec/ajax.coffee
1
16
soyjavi/QuoJS:spec/ajax.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "Ajax", -> # User = undefined beforeEach -> $$.ajaxSettings = async: true success: {} error: {} timeout: 0 # it "ajax with parameters in line", -> # $$.ajax # url: "http://www.panoramio.com/map/get_panorama...
describe("Ajax", function() { // User = undefined return beforeEach(function() { return $$.ajaxSettings = { async: true, success: {}, error: {}, timeout: 0 }; }); }); // it "ajax with parameters in line", -> // $$.ajax // url: "http://www.panoramio.com/map/get_panoramas.ph...
CoffeeScript
JavaScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
9be6e3f2fe1072145236b0f111b4f6431ba2376b
2,055
https://github.com/soyjavi/QuoJS/blob/9be6e3f2fe1072145236b0f111b4f6431ba2376b/spec/ajax.coffee
1
16
soyjavi/QuoJS:spec/ajax.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("Ajax", function() { // User = undefined return beforeEach(function() { return $$.ajaxSettings = { async: true, success: {}, error: {}, timeout: 0 }; }); }); // it "ajax with parameters in line", -> // $$.ajax // ...
describe "Ajax", -> # User = undefined beforeEach -> $$.ajaxSettings = async: true success: {} error: {} timeout: 0 # it "ajax with parameters in line", -> # $$.ajax # url: "http://www.panoramio.com/map/get_panoramas.php?set=public&from=0&to=3&minx=-180&miny=-90&maxx=180&...
JavaScript
CoffeeScript
soyjavi/QuoJS
spec/ajax.coffee
MIT
9be6e3f2fe1072145236b0f111b4f6431ba2376b
2,055
https://github.com/soyjavi/QuoJS/blob/9be6e3f2fe1072145236b0f111b4f6431ba2376b/spec/ajax.coffee
1
16
jianliaoim/talk-os:talk-web/client/module/unread-badge.coffee:1:raw_corpus
raw_corpus
cx = require 'classnames' React = require 'react' PureRenderMixin = require 'react-addons-pure-render-mixin' { i, noscript } = React.DOM T = React.PropTypes module.exports = React.createClass displayName: 'UnreadBadge' mixins: [ PureRenderMixin ] propTypes: size: T.number round: T.bool oval: T.boo...
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/unread-badge.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/unread-badge.coffee
1
50
jianliaoim/talk-os:talk-web/client/module/unread-badge.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cx = require 'classnames' React = require 'react' PureRenderMixin = require 'react-addons-pure-render-mixin' { i, noscript } = React.DOM T = React.PropTypes module.exports = React.createClass displayName: 'UnreadBadge' mixins: [ PureRenderMixin ] propTy...
var PureRenderMixin, React, T, cx, i, noscript; cx = require('classnames'); React = require('react'); PureRenderMixin = require('react-addons-pure-render-mixin'); ({i, noscript} = React.DOM); T = React.PropTypes; module.exports = React.createClass({ displayName: 'UnreadBadge', mixins: [PureRenderMixin], pro...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/module/unread-badge.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/unread-badge.coffee
1
50
jianliaoim/talk-os:talk-web/client/module/unread-badge.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PureRenderMixin, React, T, cx, i, noscript; cx = require('classnames'); React = require('react'); PureRenderMixin = require('react-addons-pure-render-mixin'); ({i, noscript} = React.DOM); T = React.PropTypes; module.exports = React.createClass({ display...
cx = require 'classnames' React = require 'react' PureRenderMixin = require 'react-addons-pure-render-mixin' { i, noscript } = React.DOM T = React.PropTypes module.exports = React.createClass displayName: 'UnreadBadge' mixins: [ PureRenderMixin ] propTypes: size: T.number round: T.bool oval: T.boo...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/unread-badge.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/unread-badge.coffee
1
50
jianliaoim/talk-os:talk-web/client/module/unread-badge.coffee:1:completion
completion
cx = require 'classnames' React = require 'react' PureRenderMixin = require 'react-addons-pure-render-mixin' { i, noscript } = React.DOM T = React.PropTypes module.exports = React.createClass displayName: 'UnreadBadge' mixins: [ PureRenderMixin ] propTypes: size: T.number round: T.bool oval: T.boo...
render: -> if @props.number > 0 className = cx 'unread-badge', round: @props.round if @props.oval style = height: @props.size minWidth: @props.size borderRadius: @props.size / 2 else style = width: @props.size height: @prop...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/unread-badge.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/unread-badge.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/speech.coffee:1:raw_corpus
raw_corpus
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = SpeechSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String duration: Number # Duration of speech SpeechS...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/speech.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/speech.coffee
1
19
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/speech.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = SpeechSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory:...
// File attachment schema var Schema, SpeechSchema, striker, util; ({Schema} = require('mongoose')); striker = require('../../components/striker'); util = require('../../util'); module.exports = SpeechSchema = new Schema({ fileKey: String, fileName: String, fileType: String, fileSize: Number, fileCategory...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/speech.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/speech.coffee
1
19
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/speech.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // File attachment schema var Schema, SpeechSchema, striker, util; ({Schema} = require('mongoose')); striker = require('../../components/striker'); util = require('../../util'); module.exports = SpeechSchema = new Schema({ fileKey: String, fileName: String,...
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = SpeechSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String duration: Number # Duration of speech SpeechS...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/speech.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/speech.coffee
1
19
jianliaoim/talk-os:talk-api2x/server/schemas/attachments/speech.coffee:1:completion
completion
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = SpeechSchema = new Schema fileKey: String fileName: String
fileType: String fileSize: Number fileCategory: String duration: Number # Duration of speech SpeechSchema.virtual 'downloadUrl' .get -> striker.downloadUrl this SpeechSchema.virtual 'previewUrl' .get -> striker.previewUrl this
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/attachments/speech.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/attachments/speech.coffee
1
19
jianliaoim/talk-os:talk-web/client/util/refine.coffee:1:raw_corpus
raw_corpus
# only accept filter or filterNot func. # # exports.byId = (id) -> (item, index) -> if item.has '_id' item.get('_id') is id exports.byService = (service) -> (item, index) -> if item.has 'service' item.get('service') is service exports.byNullTarget = (item, index) -> item.get('target')? exp...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/refine.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/refine.coffee
1
22
jianliaoim/talk-os:talk-web/client/util/refine.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # only accept filter or filterNot func. # # exports.byId = (id) -> (item, index) -> if item.has '_id' item.get('_id') is id exports.byService = (service) -> (item, index) -> if item.has 'service' item.get('service') is service exports.b...
// only accept filter or filterNot func. exports.byId = function(id) { return function(item, index) { if (item.has('_id')) { return item.get('_id') === id; } }; }; exports.byService = function(service) { return function(item, index) { if (item.has('service')) { return item.get('service')...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/refine.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/refine.coffee
1
22
jianliaoim/talk-os:talk-web/client/util/refine.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // only accept filter or filterNot func. exports.byId = function(id) { return function(item, index) { if (item.has('_id')) { return item.get('_id') === id; } }; }; exports.byService = function(service) { return function(item, index) { if (...
# only accept filter or filterNot func. # # exports.byId = (id) -> (item, index) -> if item.has '_id' item.get('_id') is id exports.byService = (service) -> (item, index) -> if item.has 'service' item.get('service') is service exports.byNullTarget = (item, index) -> item.get('target')? exp...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/refine.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/refine.coffee
1
22
jianliaoim/talk-os:talk-web/client/util/refine.coffee:1:completion
completion
# only accept filter or filterNot func. # # exports.byId = (id) -> (item, index) -> if item.has '_id' item.get('_id') is id exports.byService = (service) -> (item, index) ->
if item.has 'service' item.get('service') is service exports.byNullTarget = (item, index) -> item.get('target')? exports.isHidden = (item) -> item.get 'isHidden' exports.isRobot = (item) -> item.has('isRobot') and item.get('isRobot')
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/refine.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/refine.coffee
1
22
gss/engine:src/commands/Type.coffee:1:raw_corpus
raw_corpus
class Type @define: (property, value)-> if value @[property] = value else for prop, value of property @define prop, value Type.define # Decimal value (e.g. line-height: 1.0) Float: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed # Integer value (e.g....
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
3
52
gss/engine:src/commands/Type.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Type @define: (property, value)-> if value @[property] = value else for prop, value of property @define prop, value Type.define # Decimal value (e.g. line-height: 1.0) Float: (obj) -> parsed = parseFloat(obj) if p...
var Type; Type = class Type { static define(property, value) { var prop, results; if (value) { return this[property] = value; } else { results = []; for (prop in property) { value = property[prop]; results.push(this.define(prop, value)); } return results; ...
CoffeeScript
JavaScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
3
52
gss/engine:src/commands/Type.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Type; Type = class Type { static define(property, value) { var prop, results; if (value) { return this[property] = value; } else { results = []; for (prop in property) { value = property[prop]; results.push(this....
class Type @define: (property, value)-> if value @[property] = value else for prop, value of property @define prop, value Type.define # Decimal value (e.g. line-height: 1.0) Float: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed # Integer value (e.g....
JavaScript
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
3
52
gss/engine:src/commands/Type.coffee:1:completion
completion
class Type @define: (property, value)-> if value @[property] = value else for prop, value of property @define prop, value Type.define # Decimal value (e.g. line-height: 1.0) Float: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed # Integer value (e.g....
return obj # Array of strings (e.g. font-family) Strings: (obj) -> if typeof obj == 'string' || obj instanceof Array return obj Timings: 'ease': ['cubic-bezier', .42, 0, 1, 1] 'ease-in': ['cubic-bezier', .42, 0, 1, 1] 'ease-out': ['cubic-bezier', 0, 0, .58, 1] 'ease...
CoffeeScript
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
3
52
gss/engine:src/commands/Type.coffee:2:raw_corpus
raw_corpus
if @Unit[obj[0]] if obj[1] == 0 return 0 return obj # Length with % unit Percentage: (obj) -> if obj[0] == '%' return obj # Keywords for background-position and alike Positions: {"top", "bottom", "left", "right"} Position: (obj) -> if @Type.Positions[obj] return obj ...
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
53
102
gss/engine:src/commands/Type.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @Unit[obj[0]] if obj[1] == 0 return 0 return obj # Length with % unit Percentage: (obj) -> if obj[0] == '%' return obj # Keywords for background-position and alike Positions: {"top", "bottom", "left", "right"} Position...
if (this.Unit[obj[0]]) { if (obj[1] === 0) { return 0; } return obj; } ({ // Length with % unit Percentage: function(obj) { if (obj[0] === '%') { return obj; } }, // Keywords for background-position and alike Positions: {"top": "top", "bottom": "bottom", "left": "left", "right": "righ...
CoffeeScript
JavaScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
53
102
gss/engine:src/commands/Type.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (this.Unit[obj[0]]) { if (obj[1] === 0) { return 0; } return obj; } ({ // Length with % unit Percentage: function(obj) { if (obj[0] === '%') { return obj; } }, // Keywords for background-position and alike Positions: {"top": "t...
if @Unit[obj[0]] if obj[1] == 0 return 0 return obj # Length with % unit Percentage: (obj) -> if obj[0] == '%' return obj # Keywords for background-position and alike Positions: {"top", "bottom", "left", "right"} Position: (obj) -> if @Type.Positions[obj] return obj ...
JavaScript
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
53
102
gss/engine:src/commands/Type.coffee:2:completion
completion
if @Unit[obj[0]] if obj[1] == 0 return 0 return obj # Length with % unit Percentage: (obj) -> if obj[0] == '%' return obj # Keywords for background-position and alike Positions: {"top", "bottom", "left", "right"} Position: (obj) -> if @Type.Positions[obj] return obj ...
if typeof obj == 'string' if @Type.Pseudocolors[obj] return obj else if @Type.Colors[obj[0]] return obj Sizes: {'medium', 'xx-small', 'x-small', 'small', 'large', 'x-large', 'xx-large', 'smaller', 'larger' } Size: (obj) -> if @Type.Sizes[obj] return obj Gradients: {'lin...
CoffeeScript
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
53
102
gss/engine:src/commands/Type.coffee:3:raw_corpus
raw_corpus
Matrix: (obj) -> if typeof obj == 'object' && object.length != undefined return obj
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
103
106
gss/engine:src/commands/Type.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Matrix: (obj) -> if typeof obj == 'object' && object.length != undefined return obj ```
({ Matrix: function(obj) { if (typeof obj === 'object' && object.length !== void 0) { return obj; } } });
CoffeeScript
JavaScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
103
106
gss/engine:src/commands/Type.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ Matrix: function(obj) { if (typeof obj === 'object' && object.length !== void 0) { return obj; } } }); ```
Matrix: (obj) -> if typeof obj == 'object' && object.length != undefined return obj
JavaScript
CoffeeScript
gss/engine
src/commands/Type.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Type.coffee
103
106
Atraci/Atraci:coffee/_requestor.coffee:1:raw_corpus
raw_corpus
( -> request = require('request') ytdl = require('ytdl') class Requestor @get: (options, cb) -> # We have to put it under node's context first global.setTimeout( -> request options, cb , 0) @getYoutubeInfo: (link, options, cb) -> # We have to put it under node's context f...
CoffeeScript
Atraci/Atraci
coffee/_requestor.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_requestor.coffee
1
19
Atraci/Atraci:coffee/_requestor.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ( -> request = require('request') ytdl = require('ytdl') class Requestor @get: (options, cb) -> # We have to put it under node's context first global.setTimeout( -> request options, cb , 0) @getYoutubeInfo: (link, options...
(function() { var Requestor, request, ytdl; request = require('request'); ytdl = require('ytdl'); Requestor = class Requestor { static get(options, cb) { // We have to put it under node's context first return global.setTimeout(function() { return request(options, cb); }, 0); } ...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_requestor.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_requestor.coffee
1
19
Atraci/Atraci:coffee/_requestor.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function() { var Requestor, request, ytdl; request = require('request'); ytdl = require('ytdl'); Requestor = class Requestor { static get(options, cb) { // We have to put it under node's context first return global.setTimeout(function() { ...
( -> request = require('request') ytdl = require('ytdl') class Requestor @get: (options, cb) -> # We have to put it under node's context first global.setTimeout( -> request options, cb , 0) @getYoutubeInfo: (link, options, cb) -> # We have to put it under node's context f...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_requestor.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_requestor.coffee
1
19
Atraci/Atraci:coffee/_requestor.coffee:1:completion
completion
( -> request = require('request') ytdl = require('ytdl') class Requestor @get: (options, cb) -> # We have to put it under node's context first global.setTimeout( -> request options, cb
, 0) @getYoutubeInfo: (link, options, cb) -> # We have to put it under node's context first global.setTimeout( -> ytdl.getInfo link, options, cb , 0) window.Requestor = Requestor )()
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_requestor.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_requestor.coffee
1
19
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.s...
//!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../s...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log;...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.s...
//!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../s...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log;...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:completion
completion
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
vfwebqq } ### test_api = -> # log "长轮训" api.long_poll auth_opts , (ret)-> log ret ### api.get_buddy_list auth_opts , (ret,e)-> log 'friend',jsons ret log '' api.get_group_list auth_opts, (ret , e)-> log 'group',ret log '' ### # api.get_group_member 8678431...
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
892369b05169ede69a4a7702bf380561abce5110
1,435
https://github.com/xhan/qqbot/blob/892369b05169ede69a4a7702bf380561abce5110/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.s...
//!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../s...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
892369b05169ede69a4a7702bf380561abce5110
1,435
https://github.com/xhan/qqbot/blob/892369b05169ede69a4a7702bf380561abce5110/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 /* auth_opts ={ psessionid clientid ptwebqq uin vfwebqq } */ var api, auth, auth_opts, config, defaults, int, jsons, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log;...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
892369b05169ede69a4a7702bf380561abce5110
1,435
https://github.com/xhan/qqbot/blob/892369b05169ede69a4a7702bf380561abce5110/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:completion
completion
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" defaults = require '../src/defaults' config = require '../config' qq = config.account pass = config.password jsons = JSON.stringify # 设置登录信息 api.cookies defaults.data 'cookie' au...
vfwebqq } ### test_api = -> api.get_buddy_list auth_opts , (ret,e)-> log 'friend',jsons ret log '' api.get_group_list auth_opts, (ret , e)-> log 'group',ret log '' # api.get_group_member 86784314, vfwebqq , (ret,e)-> # log 'group_member' , ret # log '' ...
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
892369b05169ede69a4a7702bf380561abce5110
1,435
https://github.com/xhan/qqbot/blob/892369b05169ede69a4a7702bf380561abce5110/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797
1,435
https://github.com/xhan/qqbot/blob/4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessio...
//!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = config.account; pass = config.password; test_api = functi...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797
1,435
https://github.com/xhan/qqbot/blob/4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = conf...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797
1,435
https://github.com/xhan/qqbot/blob/4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:completion
completion
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
ptwebqq uin vfwebqq } api.get_friend_list uin, ptwebqq, vfwebqq, (ret,e)-> log 'friend',ret log '' api.get_group_list vfwebqq, (ret , e)-> log 'group',ret log '' # api.get_group_member 86784314, vfwebqq , (ret,e)-> # log 'group_member' , ret ...
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797
1,435
https://github.com/xhan/qqbot/blob/4a4a4d2cc4c50d0a8236abfac2eb7228eaac4797/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
97befc696bc2ffd95dfe72a5a1bbb15951975e5b
1,435
https://github.com/xhan/qqbot/blob/97befc696bc2ffd95dfe72a5a1bbb15951975e5b/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessio...
//!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = config.account; pass = config.password; test_api = functi...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
97befc696bc2ffd95dfe72a5a1bbb15951975e5b
1,435
https://github.com/xhan/qqbot/blob/97befc696bc2ffd95dfe72a5a1bbb15951975e5b/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = conf...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
97befc696bc2ffd95dfe72a5a1bbb15951975e5b
1,435
https://github.com/xhan/qqbot/blob/97befc696bc2ffd95dfe72a5a1bbb15951975e5b/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:2:raw_corpus
raw_corpus
# log '' # api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "系统提示:hahha" , auth_opts, (ret,e)-> log "group send ret:",ret log "长轮训" api.long_poll auth_opts , (ret)-> log ret test_api()
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
97befc696bc2ffd95dfe72a5a1bbb15951975e5b
1,435
https://github.com/xhan/qqbot/blob/97befc696bc2ffd95dfe72a5a1bbb15951975e5b/tests/api.coffee
51
63
xhan/qqbot:tests/api.coffee:2:completion
completion
# log '' # api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "系统提示:hahha" , auth_opts, (ret,e)->
log "group send ret:",ret log "长轮训" api.long_poll auth_opts , (ret)-> log ret test_api()
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
97befc696bc2ffd95dfe72a5a1bbb15951975e5b
1,435
https://github.com/xhan/qqbot/blob/97befc696bc2ffd95dfe72a5a1bbb15951975e5b/tests/api.coffee
51
63
xhan/qqbot:tests/api.coffee:2:raw_corpus
raw_corpus
# log '' # api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "系统提示:xxx" , auth_opts, (ret,e)-> log "group send ret:",ret # log "长轮训" # api.long_poll client_id , psessionid , (ret)-> # log ret test_api(...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
226ecf198b7d166cd304c34d2f122ee9aac013b1
1,435
https://github.com/xhan/qqbot/blob/226ecf198b7d166cd304c34d2f122ee9aac013b1/tests/api.coffee
51
63
xhan/qqbot:tests/api.coffee:2:completion
completion
# log '' # api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "系统提示:xxx" , auth_opts, (ret,e)->
log "group send ret:",ret # log "长轮训" # api.long_poll client_id , psessionid , (ret)-> # log ret test_api()
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
226ecf198b7d166cd304c34d2f122ee9aac013b1
1,435
https://github.com/xhan/qqbot/blob/226ecf198b7d166cd304c34d2f122ee9aac013b1/tests/api.coffee
51
63
xhan/qqbot:tests/api.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f4add3f58c7f68bb5e02049c3f1635332f95cdb5
1,435
https://github.com/xhan/qqbot/blob/f4add3f58c7f68bb5e02049c3f1635332f95cdb5/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessio...
//!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = config.account; pass = config.password; test_api = functi...
CoffeeScript
JavaScript
xhan/qqbot
tests/api.coffee
MIT
f4add3f58c7f68bb5e02049c3f1635332f95cdb5
1,435
https://github.com/xhan/qqbot/blob/f4add3f58c7f68bb5e02049c3f1635332f95cdb5/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //!/usr/bin/env coffee // api相关的测试代码 var api, auth, config, int, log, pass, qq, test_api; int = function(v) { return parseInt(v); }; log = console.log; auth = require("../src/qqauth"); api = require("../src/qqapi"); config = require('../config'); qq = conf...
#!/usr/bin/env coffee # api相关的测试代码 int = (v) -> parseInt v log = console.log auth = require "../src/qqauth" api = require "../src/qqapi" config = require '../config' qq = config.account pass = config.password test_api = -> api.defaults_read() psessionid = api.defaults 'psessionid' clientid = api.defau...
JavaScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f4add3f58c7f68bb5e02049c3f1635332f95cdb5
1,435
https://github.com/xhan/qqbot/blob/f4add3f58c7f68bb5e02049c3f1635332f95cdb5/tests/api.coffee
1
50
xhan/qqbot:tests/api.coffee:2:raw_corpus
raw_corpus
# api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "哈哈哈哈 没错啊" , auth_opts, (ret,e)-> log "group send ret:",ret # log "长轮训" # api.long_poll client_id , psessionid , (ret)-> # log ret test_api()
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f4add3f58c7f68bb5e02049c3f1635332f95cdb5
1,435
https://github.com/xhan/qqbot/blob/f4add3f58c7f68bb5e02049c3f1635332f95cdb5/tests/api.coffee
51
61
xhan/qqbot:tests/api.coffee:2:completion
completion
# api.send_msg_2buddy 2440652742, "你好啊" , auth_opts, (ret,e)-> # log "buddy send ret:",ret api.send_msg_2group 2559225925, "哈哈哈哈 没错啊" , auth_opts, (ret,e)-> log "group send ret:",ret
# log "长轮训" # api.long_poll client_id , psessionid , (ret)-> # log ret test_api()
CoffeeScript
CoffeeScript
xhan/qqbot
tests/api.coffee
MIT
f4add3f58c7f68bb5e02049c3f1635332f95cdb5
1,435
https://github.com/xhan/qqbot/blob/f4add3f58c7f68bb5e02049c3f1635332f95cdb5/tests/api.coffee
51
61
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" apply: "Appliquer" cancel: "Annuler" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.cou...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.fr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
1582380498d732d52b7490e35a29dd9939cb0119
4,440
https://github.com/nicolaskruchten/pivottable/blob/1582380498d732d52b7490e35a29dd9939cb0119/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
1582380498d732d52b7490e35a29dd9939cb0119
4,440
https://github.com/nicolaskruchten/pivottable/blob/1582380498d732d52b7490e35a29dd9939cb0119/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
1582380498d732d52b7490e35a29dd9939cb0119
4,440
https://github.com/nicolaskruchten/pivottable/blob/1582380498d732d52b7490e35a29dd9939cb0119/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" apply: "Appliquer" cancel: "Annuler" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.cou...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.fr.coffee
MIT
1582380498d732d52b7490e35a29dd9939cb0119
4,440
https://github.com/nicolaskruchten/pivottable/blob/1582380498d732d52b7490e35a29dd9939cb0119/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea
4,440
https://github.com/nicolaskruchten/pivottable/blob/d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea
4,440
https://github.com/nicolaskruchten/pivottable/blob/d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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
locales/pivot.fr.coffee
MIT
d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea
4,440
https://github.com/nicolaskruchten/pivottable/blob/d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea/locales/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.fr.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...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" apply: "Appliquer" cancel: "Annuler" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.cou...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.fr.coffee
MIT
d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea
4,440
https://github.com/nicolaskruchten/pivottable/blob/d3f766a27ea3fb5aabb3ba5fe65e94ac5cf842ea/locales/pivot.fr.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:raw_corpus
raw_corpus
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" options: { Terraform: false } executables: [ { name: "Terraform" cm...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/terraformfmt.coffee
1
38
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" options: { Terraform: false }...
/* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile; return this.exe("terraform").run(["fmt", tempFi...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/terraformfmt.coffee
1
38
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile...
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" options: { Terraform: false } executables: [ { name: "Terraform" cm...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/terraformfmt.coffee
1
38
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:completion
completion
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" options: { Terraform: false } executables: [ { name: "Terraform" cm...
homepage: "https://www.terraform.io" installation: "https://www.terraform.io" version: { parse: (text) -> text.match(/Terraform v(\d+\.\d+\.\d+)/)[1] } docker: { image: "hashicorp/terraform" } } ] beautify: (text, language, options) -> @exe("terraform").run([ ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/terraformfmt.coffee
1
38
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:raw_corpus
raw_corpus
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: false } executables: [ { na...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
cf74a9821203b3e636cf307e47712d58b8bf9a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/cf74a9821203b3e636cf307e47712d58b8bf9a9f/src/beautifiers/terraformfmt.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { ...
/* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile; return this.exe("terraform").run(["fmt", tempFi...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
cf74a9821203b3e636cf307e47712d58b8bf9a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/cf74a9821203b3e636cf307e47712d58b8bf9a9f/src/beautifiers/terraformfmt.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile...
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: false } executables: [ { na...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
cf74a9821203b3e636cf307e47712d58b8bf9a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/cf74a9821203b3e636cf307e47712d58b8bf9a9f/src/beautifiers/terraformfmt.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:completion
completion
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: false } executables: [ { na...
cmd: "terraform" homepage: "https://www.terraform.io" installation: "https://www.terraform.io" version: { parse: (text) -> text.match(/Terraform v(\d+\.\d+\.\d+)/)[1] } docker: { image: "hashicorp/terraform" } } ] beautify: (text, language, options) -> @e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
cf74a9821203b3e636cf307e47712d58b8bf9a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/cf74a9821203b3e636cf307e47712d58b8bf9a9f/src/beautifiers/terraformfmt.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:raw_corpus
raw_corpus
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: false } beautify: (text, language, op...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
34b09fdd69491fc3b1960279e8f6622b71284cce
1,503
https://github.com/Glavin001/atom-beautify/blob/34b09fdd69491fc3b1960279e8f6622b71284cce/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { ...
/* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile; return this.run("terraform", ["fmt", tempFile =...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
34b09fdd69491fc3b1960279e8f6622b71284cce
1,503
https://github.com/Glavin001/atom-beautify/blob/34b09fdd69491fc3b1960279e8f6622b71284cce/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile...
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: false } beautify: (text, language, op...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
34b09fdd69491fc3b1960279e8f6622b71284cce
1,503
https://github.com/Glavin001/atom-beautify/blob/34b09fdd69491fc3b1960279e8f6622b71284cce/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:completion
completion
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false
options: { Terraform: false } beautify: (text, language, options) -> @run("terraform", [ "fmt" tempFile = @tempFile("input", text) ]) .then(=> @readFile(tempFile) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
34b09fdd69491fc3b1960279e8f6622b71284cce
1,503
https://github.com/Glavin001/atom-beautify/blob/34b09fdd69491fc3b1960279e8f6622b71284cce/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:raw_corpus
raw_corpus
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: true } beautify: (text, language, opt...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
30d2264229e3325c8bcedff968560e5459ef5d79
1,503
https://github.com/Glavin001/atom-beautify/blob/30d2264229e3325c8bcedff968560e5459ef5d79/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { ...
/* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile; return this.run("terraform", ["fmt", tempFile =...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
30d2264229e3325c8bcedff968560e5459ef5d79
1,503
https://github.com/Glavin001/atom-beautify/blob/30d2264229e3325c8bcedff968560e5459ef5d79/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires terraform installed */ "use strict"; var Beautifier, Terraformfmt; Beautifier = require('./beautifier'); module.exports = Terraformfmt = (function() { class Terraformfmt extends Beautifier { beautify(text, language, options) { var tempFile...
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false options: { Terraform: true } beautify: (text, language, opt...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
30d2264229e3325c8bcedff968560e5459ef5d79
1,503
https://github.com/Glavin001/atom-beautify/blob/30d2264229e3325c8bcedff968560e5459ef5d79/src/beautifiers/terraformfmt.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/terraformfmt.coffee:1:completion
completion
### Requires terraform installed ### "use strict" Beautifier = require('./beautifier') module.exports = class Terraformfmt extends Beautifier name: "terraformfmt" link: "https://www.terraform.io/docs/commands/fmt.html" isPreInstalled: false
options: { Terraform: true } beautify: (text, language, options) -> @run("terraform", [ "fmt" tempFile = @tempFile("input", text) ]) .then(=> @readFile(tempFile) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/terraformfmt.coffee
MIT
30d2264229e3325c8bcedff968560e5459ef5d79
1,503
https://github.com/Glavin001/atom-beautify/blob/30d2264229e3325c8bcedff968560e5459ef5d79/src/beautifiers/terraformfmt.coffee
1
24
meltingice/psd.js:lib/psd/path_record.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' # A path record describes a single point in a vector path. This is used # in a couple of different places, but most notably in vector shapes. module.exports = class PathRecord constructor: (@file) -> @recordType = null parse: -> @recordType = @file.readShort() switch @recordType ...
CoffeeScript
meltingice/psd.js
lib/psd/path_record.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/path_record.coffee
1
50
meltingice/psd.js:lib/psd/path_record.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' # A path record describes a single point in a vector path. This is used # in a couple of different places, but most notably in vector shapes. module.exports = class PathRecord constructor: (@file) -> @recordType = null parse: -> ...
var PathRecord, _; _ = require('lodash'); // A path record describes a single point in a vector path. This is used // in a couple of different places, but most notably in vector shapes. module.exports = PathRecord = class PathRecord { constructor(file) { this.file = file; this.recordType = null; } pars...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/path_record.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/path_record.coffee
1
50