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
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' ...
var File, Util, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); Util = require('./util.coffee'); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
8e965273dce597723ea1d151740c53c4d9cde8e9
2,846
https://github.com/meltingice/psd.js/blob/8e965273dce597723ea1d151740c53c4d9cde8e9/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Util, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); Util = require('./util.coffee'); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; thi...
{jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
8e965273dce597723ea1d151740c53c4d9cde8e9
2,846
https://github.com/meltingice/psd.js/blob/8e965273dce597723ea1d151740c53c4d9cde8e9/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 ...
length: 8 for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, len = null) -> js...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
8e965273dce597723ea1d151740c53c4d9cde8e9
2,846
https://github.com/meltingice/psd.js/blob/8e965273dce597723ea1d151740c53c4d9cde8e9/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:2:raw_corpus
raw_corpus
.replace(/\u0000/g, '') readByte: -> @read(1)[0] readBoolean: -> readByte() isnt 0
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
8e965273dce597723ea1d151740c53c4d9cde8e9
2,846
https://github.com/meltingice/psd.js/blob/8e965273dce597723ea1d151740c53c4d9cde8e9/lib/psd/file.coffee
51
54
meltingice/psd.js:lib/psd/file.coffee:2:completion
completion
.replace(/\u0000/g, '')
readByte: -> @read(1)[0] readBoolean: -> readByte() isnt 0
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
8e965273dce597723ea1d151740c53c4d9cde8e9
2,846
https://github.com/meltingice/psd.js/blob/8e965273dce597723ea1d151740c53c4d9cde8e9/lib/psd/file.coffee
51
54
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 ...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
1bd1167c249ee8402f56c540910e27e68450e78e
2,846
https://github.com/meltingice/psd.js/blob/1bd1167c249ee8402f56c540910e27e68450e78e/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' ...
var File, Util, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); Util = require('./util.coffee'); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
1bd1167c249ee8402f56c540910e27e68450e78e
2,846
https://github.com/meltingice/psd.js/blob/1bd1167c249ee8402f56c540910e27e68450e78e/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Util, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); Util = require('./util.coffee'); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; thi...
{jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
1bd1167c249ee8402f56c540910e27e68450e78e
2,846
https://github.com/meltingice/psd.js/blob/1bd1167c249ee8402f56c540910e27e68450e78e/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require 'jspack' Util = require './util.coffee' module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 ...
@::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, len = null) -> jspack.Unpack format, @read(len or jspack.CalcLength(format)) seek: (amt, ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
1bd1167c249ee8402f56c540910e27e68450e78e
2,846
https://github.com/meltingice/psd.js/blob/1bd1167c249ee8402f56c540910e27e68450e78e/lib/psd/file.coffee
1
50
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: co...
var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data;...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { ret...
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double:
code: '>d' length: 8 for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: co...
var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data;...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { ret...
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double:
code: '>d' length: 8 for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/file.coffee
1
41
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/file.coffee
1
47
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: co...
var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data;...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/file.coffee
1
47
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { ret...
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/file.coffee
1
47
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, len = null) -> jspack.Unpack f...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/file.coffee
1
47
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
a3d17b37ef1838bbd35f84e4aae9e804f42626f4
2,846
https://github.com/meltingice/psd.js/blob/a3d17b37ef1838bbd35f84e4aae9e804f42626f4/lib/psd/file.coffee
1
40
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: co...
var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data;...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
a3d17b37ef1838bbd35f84e4aae9e804f42626f4
2,846
https://github.com/meltingice/psd.js/blob/a3d17b37ef1838bbd35f84e4aae9e804f42626f4/lib/psd/file.coffee
1
40
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { ret...
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double: code: '>d' ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
a3d17b37ef1838bbd35f84e4aae9e804f42626f4
2,846
https://github.com/meltingice/psd.js/blob/a3d17b37ef1838bbd35f84e4aae9e804f42626f4/lib/psd/file.coffee
1
40
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 Float: code: '>f' length: 4 Double:
code: '>d' length: 8 for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
a3d17b37ef1838bbd35f84e4aae9e804f42626f4
2,846
https://github.com/meltingice/psd.js/blob/a3d17b37ef1838bbd35f84e4aae9e804f42626f4/lib/psd/file.coffee
1
40
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 for own format, info of FORMATS then do (format, info) => @::["read#{...
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
75a950281d82da3d0eda25fcdaa9dd09a495691c
2,846
https://github.com/meltingice/psd.js/blob/75a950281d82da3d0eda25fcdaa9dd09a495691c/lib/psd/file.coffee
1
34
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 for own format, ...
var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data;...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
75a950281d82da3d0eda25fcdaa9dd09a495691c
2,846
https://github.com/meltingice/psd.js/blob/75a950281d82da3d0eda25fcdaa9dd09a495691c/lib/psd/file.coffee
1
34
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, jspack, hasProp = {}.hasOwnProperty; ({jspack} = require('jspack')); module.exports = File = (function() { var FORMATS, format, info; class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { ret...
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2 for own format, info of FORMATS then do (format, info) => @::["read#{...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
75a950281d82da3d0eda25fcdaa9dd09a495691c
2,846
https://github.com/meltingice/psd.js/blob/75a950281d82da3d0eda25fcdaa9dd09a495691c/lib/psd/file.coffee
1
34
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
{jspack} = require('jspack') module.exports = class File FORMATS = Int: code: '>i' length: 4 UInt: code: '>I' length: 4 Short: code: '>h' length: 2 UShort: code: '>H' length: 2
for own format, info of FORMATS then do (format, info) => @::["read#{format}"] = -> @readf(info.code, info.length)[0] constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data readf: (format, len = null) -> jspack.Unpack f...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
75a950281d82da3d0eda25fcdaa9dd09a495691c
2,846
https://github.com/meltingice/psd.js/blob/75a950281d82da3d0eda25fcdaa9dd09a495691c/lib/psd/file.coffee
1
34
meltingice/psd.js:lib/psd/file.coffee:1:raw_corpus
raw_corpus
module.exports = class File constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data seek: (amt, rel = false) -> if rel then @pos += amt else @pos = amt readString: (length) -> @read(length).toString()
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd/file.coffee
1
13
meltingice/psd.js:lib/psd/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class File constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data seek: (amt, rel = false) -> if rel then @pos += amt else @pos = amt readString: (...
var File; module.exports = File = class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data; data = this.data.slice(this.pos, this.pos + length); this.pos += length; return data; } seek(amt, rel = false) { i...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/file.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd/file.coffee
1
13
meltingice/psd.js:lib/psd/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File; module.exports = File = class File { constructor(data1) { this.data = data1; this.pos = 0; } tell() { return this.pos; } read(length) { var data; data = this.data.slice(this.pos, this.pos + length); this.pos += length;...
module.exports = class File constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) -> data = @data[@pos...@pos+length] @pos += length return data seek: (amt, rel = false) -> if rel then @pos += amt else @pos = amt readString: (length) -> @read(length).toString()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd/file.coffee
1
13
meltingice/psd.js:lib/psd/file.coffee:1:completion
completion
module.exports = class File constructor: (@data) -> @pos = 0 tell: -> @pos read: (length) ->
data = @data[@pos...@pos+length] @pos += length return data seek: (amt, rel = false) -> if rel then @pos += amt else @pos = amt readString: (length) -> @read(length).toString()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/file.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd/file.coffee
1
13
jianliaoim/talk-os:talk-web/client/util/format.coffee:1:raw_corpus
raw_corpus
trimLeft = (text) -> return text if text.length is 0 return text if text[0] isnt ' ' trimLeft text[1..]
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
6
9
jianliaoim/talk-os:talk-web/client/util/format.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript trimLeft = (text) -> return text if text.length is 0 return text if text[0] isnt ' ' trimLeft text[1..] ```
var trimLeft; trimLeft = function(text) { if (text.length === 0) { return text; } if (text[0] !== ' ') { return text; } return trimLeft(text.slice(1)); };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
6
9
jianliaoim/talk-os:talk-web/client/util/format.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var trimLeft; trimLeft = function(text) { if (text.length === 0) { return text; } if (text[0] !== ' ') { return text; } return trimLeft(text.slice(1)); }; ```
trimLeft = (text) -> return text if text.length is 0 return text if text[0] isnt ' ' trimLeft text[1..]
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
6
9
jianliaoim/talk-os:talk-web/client/util/format.coffee:1:completion
completion
trimLeft = (text) -> return text if text.length is 0
return text if text[0] isnt ' ' trimLeft text[1..]
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
6
9
jianliaoim/talk-os:talk-web/client/util/format.coffee:2:raw_corpus
raw_corpus
exports.markLink = (content) -> content .replace /(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>'
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
11
14
jianliaoim/talk-os:talk-web/client/util/format.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.markLink = (content) -> content .replace /(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>' ```
exports.markLink = function(content) { return content.replace(/(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>'); };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
11
14
jianliaoim/talk-os:talk-web/client/util/format.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.markLink = function(content) { return content.replace(/(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>'); }; ```
exports.markLink = (content) -> content .replace /(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>'
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
11
14
jianliaoim/talk-os:talk-web/client/util/format.coffee:2:completion
completion
exports.markLink = (content) -> content
.replace /(http(s)?:\/\/[\d\w\/\.\%\&\?\=\-\#\:\+\@]+)/g, '<a href="$1" target="_blank">$1</a>'
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
11
14
jianliaoim/talk-os:talk-web/client/util/format.coffee:4:raw_corpus
raw_corpus
exports.escape100 = (number) -> switch when number > 100 then '99+' when number is 0 then '' else "#{number}"
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
19
23
jianliaoim/talk-os:talk-web/client/util/format.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.escape100 = (number) -> switch when number > 100 then '99+' when number is 0 then '' else "#{number}" ```
exports.escape100 = function(number) { switch (false) { case !(number > 100): return '99+'; case number !== 0: return ''; default: return `${number}`; } };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
19
23
jianliaoim/talk-os:talk-web/client/util/format.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.escape100 = function(number) { switch (false) { case !(number > 100): return '99+'; case number !== 0: return ''; default: return `${number}`; } }; ```
exports.escape100 = (number) -> switch when number > 100 then '99+' when number is 0 then '' else "#{number}"
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
19
23
jianliaoim/talk-os:talk-web/client/util/format.coffee:5:raw_corpus
raw_corpus
exports.htmlAsText = (html) -> # https://github.com/leizongmin/js-xss/blob/master/example/strip_tag.js xss html, whiteList: [] stripIgnoreTag: true stripIgnoreTagBody: ['script']
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
25
30
jianliaoim/talk-os:talk-web/client/util/format.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.htmlAsText = (html) -> # https://github.com/leizongmin/js-xss/blob/master/example/strip_tag.js xss html, whiteList: [] stripIgnoreTag: true stripIgnoreTagBody: ['script'] ```
exports.htmlAsText = function(html) { // https://github.com/leizongmin/js-xss/blob/master/example/strip_tag.js return xss(html, { whiteList: [], stripIgnoreTag: true, stripIgnoreTagBody: ['script'] }); };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
25
30
jianliaoim/talk-os:talk-web/client/util/format.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.htmlAsText = function(html) { // https://github.com/leizongmin/js-xss/blob/master/example/strip_tag.js return xss(html, { whiteList: [], stripIgnoreTag: true, stripIgnoreTagBody: ['script'] }); }; ```
exports.htmlAsText = (html) -> # https://github.com/leizongmin/js-xss/blob/master/example/strip_tag.js xss html, whiteList: [] stripIgnoreTag: true stripIgnoreTagBody: ['script']
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
25
30
jianliaoim/talk-os:talk-web/client/util/format.coffee:6:raw_corpus
raw_corpus
exports.textAsAbbr = (str) -> length = str.trim().length str = if length > 140 then "#{str.substr 0, 140}..." else str return str exports.trimLeft = trimLeft
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
32
37
jianliaoim/talk-os:talk-web/client/util/format.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.textAsAbbr = (str) -> length = str.trim().length str = if length > 140 then "#{str.substr 0, 140}..." else str return str exports.trimLeft = trimLeft ```
exports.textAsAbbr = function(str) { var length; length = str.trim().length; str = length > 140 ? `${str.substr(0, 140)}...` : str; return str; }; exports.trimLeft = trimLeft;
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
32
37
jianliaoim/talk-os:talk-web/client/util/format.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.textAsAbbr = function(str) { var length; length = str.trim().length; str = length > 140 ? `${str.substr(0, 140)}...` : str; return str; }; exports.trimLeft = trimLeft; ```
exports.textAsAbbr = (str) -> length = str.trim().length str = if length > 140 then "#{str.substr 0, 140}..." else str return str exports.trimLeft = trimLeft
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
32
37
jianliaoim/talk-os:talk-web/client/util/format.coffee:6:completion
completion
exports.textAsAbbr = (str) -> length = str.trim().length str = if length > 140 then "#{str.substr 0, 140}..." else str
return str exports.trimLeft = trimLeft
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
32
37
jianliaoim/talk-os:talk-web/client/util/format.coffee:7:raw_corpus
raw_corpus
exports.fileName = (text, length) -> if text.length < length return text pieces = text.split('.') if pieces.length is 2 basename = pieces[0] extension = pieces[1] else basename = pieces[...-1].join('.') extension = pieces[pieces.length - 1] prefix = basename.substr 0, length - (extension.l...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
39
51
jianliaoim/talk-os:talk-web/client/util/format.coffee:7:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.fileName = (text, length) -> if text.length < length return text pieces = text.split('.') if pieces.length is 2 basename = pieces[0] extension = pieces[1] else basename = pieces[...-1].join('.') extension = pieces[pieces.length...
exports.fileName = function(text, length) { var basename, extension, pieces, prefix, suffix; if (text.length < length) { return text; } pieces = text.split('.'); if (pieces.length === 2) { basename = pieces[0]; extension = pieces[1]; } else { basename = pieces.slice(0, -1).join('.'); ext...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
39
51
jianliaoim/talk-os:talk-web/client/util/format.coffee:7:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.fileName = function(text, length) { var basename, extension, pieces, prefix, suffix; if (text.length < length) { return text; } pieces = text.split('.'); if (pieces.length === 2) { basename = pieces[0]; extension = pieces[1]; } else ...
exports.fileName = (text, length) -> if text.length < length return text pieces = text.split('.') if pieces.length is 2 basename = pieces[0] extension = pieces[1] else basename = pieces[...-1].join('.') extension = pieces[pieces.length - 1] prefix = basename.substr 0, length - (extension.l...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
39
51
jianliaoim/talk-os:talk-web/client/util/format.coffee:7:completion
completion
exports.fileName = (text, length) -> if text.length < length return text pieces = text.split('.') if pieces.length is 2 basename = pieces[0]
extension = pieces[1] else basename = pieces[...-1].join('.') extension = pieces[pieces.length - 1] prefix = basename.substr 0, length - (extension.length + 4 + 3 + 1) suffix = basename.substr -4 "#{prefix}...#{suffix}.#{extension}"
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
39
51
jianliaoim/talk-os:talk-web/client/util/format.coffee:8:raw_corpus
raw_corpus
exports.mockFileInfo = (file) -> fileCategory = file.type.split('/')[0] fileInfo = downloadUrl: null fileCategory: fileCategory fileKey: null fileName: file.name fileSize: file.size fileState: undefined fileType: file.type imageWidth: null imageHeight: null source: 'local' ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
53
81
jianliaoim/talk-os:talk-web/client/util/format.coffee:8:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.mockFileInfo = (file) -> fileCategory = file.type.split('/')[0] fileInfo = downloadUrl: null fileCategory: fileCategory fileKey: null fileName: file.name fileSize: file.size fileState: undefined fileType: file.type imag...
var htmlxss, rtfxss; exports.mockFileInfo = function(file) { var fileCategory, fileInfo; fileCategory = file.type.split('/')[0]; fileInfo = { downloadUrl: null, fileCategory: fileCategory, fileKey: null, fileName: file.name, fileSize: file.size, fileState: void 0, fileType: file.type,...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
53
81
jianliaoim/talk-os:talk-web/client/util/format.coffee:8:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var htmlxss, rtfxss; exports.mockFileInfo = function(file) { var fileCategory, fileInfo; fileCategory = file.type.split('/')[0]; fileInfo = { downloadUrl: null, fileCategory: fileCategory, fileKey: null, fileName: file.name, fileSize: fil...
exports.mockFileInfo = (file) -> fileCategory = file.type.split('/')[0] fileInfo = downloadUrl: null fileCategory: fileCategory fileKey: null fileName: file.name fileSize: file.size fileState: undefined fileType: file.type imageWidth: null imageHeight: null source: 'local' ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
53
81
jianliaoim/talk-os:talk-web/client/util/format.coffee:8:completion
completion
exports.mockFileInfo = (file) -> fileCategory = file.type.split('/')[0] fileInfo = downloadUrl: null fileCategory: fileCategory fileKey: null fileName: file.name fileSize: file.size fileState: undefined fileType: file.type imageWidth: null imageHeight: null source: 'local' ...
return fileInfo htmlxss = new xss.FilterXSS whiteList: [] stripIgnoreTag: true stripIgnoreTagBody: ['script'] onTag: (tag, html, options) -> isP = tag is 'p' and options.isClosing isBR = tag is 'br' if isP or isBR '\n' rtfxss = new xss.FilterXSS onTag: (tag, html, options) -> return '[...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
53
81
jianliaoim/talk-os:talk-web/client/util/format.coffee:9:raw_corpus
raw_corpus
exports.parseHtml = (html) -> htmlxss.process(html) .replace(/^[^\S\n]+/gm, '') # remove all leading white space .replace(/\n{2,}/g, '\n\n') # shrink newlines .trim() .split('\n').slice(0, 10).join('\n') # keep only first 10 lines to improve rendering
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
83
88
jianliaoim/talk-os:talk-web/client/util/format.coffee:9:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.parseHtml = (html) -> htmlxss.process(html) .replace(/^[^\S\n]+/gm, '') # remove all leading white space .replace(/\n{2,}/g, '\n\n') # shrink newlines .trim() .split('\n').slice(0, 10).join('\n') # keep only first 10 lines to improve ren...
exports.parseHtml = function(html) { return htmlxss.process(html).replace(/^[^\S\n]+/gm, '').replace(/\n{2,}/g, '\n\n').trim().split('\n').slice(0, 10).join('\n'); // remove all leading white space // shrink newlines // keep only first 10 lines to improve rendering };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
83
88
jianliaoim/talk-os:talk-web/client/util/format.coffee:9:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.parseHtml = function(html) { return htmlxss.process(html).replace(/^[^\S\n]+/gm, '').replace(/\n{2,}/g, '\n\n').trim().split('\n').slice(0, 10).join('\n'); // remove all leading white space // shrink newlines // keep only first 10 lines to improve renderi...
exports.parseHtml = (html) -> htmlxss.process(html) .replace(/^[^\S\n]+/gm, '') # remove all leading white space .replace(/\n{2,}/g, '\n\n') # shrink newlines .trim() .split('\n').slice(0, 10).join('\n') # keep only first 10 lines to improve rendering
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
83
88
jianliaoim/talk-os:talk-web/client/util/format.coffee:9:completion
completion
exports.parseHtml = (html) -> htmlxss.process(html) .replace(/^[^\S\n]+/gm, '') # remove all leading white space
.replace(/\n{2,}/g, '\n\n') # shrink newlines .trim() .split('\n').slice(0, 10).join('\n') # keep only first 10 lines to improve rendering
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
83
88
jianliaoim/talk-os:talk-web/client/util/format.coffee:10:raw_corpus
raw_corpus
exports.parseRTF = (html) -> div = document.createElement 'div' # use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html) html = div.innerHTML div = null html
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
90
95
jianliaoim/talk-os:talk-web/client/util/format.coffee:10:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.parseRTF = (html) -> div = document.createElement 'div' # use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html) html = div.innerHTML div = null html ```
exports.parseRTF = function(html) { var div; div = document.createElement('div'); // use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html); html = div.innerHTML; div = null; return html; };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
90
95
jianliaoim/talk-os:talk-web/client/util/format.coffee:10:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.parseRTF = function(html) { var div; div = document.createElement('div'); // use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html); html = div.innerHTML; div = null; return html; }; ```
exports.parseRTF = (html) -> div = document.createElement 'div' # use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html) html = div.innerHTML div = null html
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
90
95
jianliaoim/talk-os:talk-web/client/util/format.coffee:10:completion
completion
exports.parseRTF = (html) -> div = document.createElement 'div' # use the browser to clean up invalid dom content div.innerHTML = rtfxss.process(html)
html = div.innerHTML div = null html
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/format.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/format.coffee
90
95
jianliaoim/talk-os:talk-web/client/module/light-popover.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'light-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obj...
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/light-popover.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/light-popover.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/light-popover.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'light-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T...
module.exports = React.createClass({ displayName: 'light-popover', mixins: [mixinLayered], propTypes: { // this component accepts children title: T.string, name: T.string, onPopoverClose: T.func, positionAlgorithm: T.func, // could be customized baseArea: T.object.isRequired, // top, right...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/module/light-popover.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/light-popover.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/light-popover.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'light-popover', mixins: [mixinLayered], propTypes: { // this component accepts children title: T.string, name: T.string, onPopoverClose: T.func, positionAlgorithm: T.func, // could be cust...
module.exports = React.createClass displayName: 'light-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obj...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/light-popover.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/light-popover.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/light-popover.coffee:1:completion
completion
module.exports = React.createClass displayName: 'light-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obj...
if (left + width + 20) > window.innerWidth left = window.innerWidth - width - 20 # return as style top: "#{top}px" left: "#{left}px" onPopoverClose: -> @props.onPopoverClose() renderLayer: (afterTransition) -> decorator = "is-#{@props.name or 'default'}" div null, if @props.sho...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/light-popover.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/light-popover.coffee
35
84
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key in ['lfx2', 'lmfx'] parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key in ['lfx2', 'lmfx'] parse: -> @file.seek 8, true @data = new Descriptor(@file).p...
var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' || key === 'lmfx'; } parse() { this.file.seek(8,...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' ||...
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key in ['lfx2', 'lmfx'] parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo
@shouldParse: (key) -> key in ['lfx2', 'lmfx'] parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' || key is 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
78e0489ead58ac7b89bfab742e3c420fa67598ba
2,846
https://github.com/meltingice/psd.js/blob/78e0489ead58ac7b89bfab742e3c420fa67598ba/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' || key is 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@...
var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' || key === 'lmfx'; } parse() { this.file.seek(8,...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
78e0489ead58ac7b89bfab742e3c420fa67598ba
2,846
https://github.com/meltingice/psd.js/blob/78e0489ead58ac7b89bfab742e3c420fa67598ba/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' ||...
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' || key is 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
78e0489ead58ac7b89bfab742e3c420fa67598ba
2,846
https://github.com/meltingice/psd.js/blob/78e0489ead58ac7b89bfab742e3c420fa67598ba/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo
@shouldParse: (key) -> key is 'lfx2' || key is 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
78e0489ead58ac7b89bfab742e3c420fa67598ba
2,846
https://github.com/meltingice/psd.js/blob/78e0489ead58ac7b89bfab742e3c420fa67598ba/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' or 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
372251b96c634aa6461d66dbdb6284b6058738a6
2,846
https://github.com/meltingice/psd.js/blob/372251b96c634aa6461d66dbdb6284b6058738a6/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' or 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).p...
var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' || 'lmfx'; } parse() { this.file.seek(8, true); ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
372251b96c634aa6461d66dbdb6284b6058738a6
2,846
https://github.com/meltingice/psd.js/blob/372251b96c634aa6461d66dbdb6284b6058738a6/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2' ||...
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' or 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
372251b96c634aa6461d66dbdb6284b6058738a6
2,846
https://github.com/meltingice/psd.js/blob/372251b96c634aa6461d66dbdb6284b6058738a6/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo
@shouldParse: (key) -> key is 'lfx2' or 'lmfx' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
372251b96c634aa6461d66dbdb6284b6058738a6
2,846
https://github.com/meltingice/psd.js/blob/372251b96c634aa6461d66dbdb6284b6058738a6/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
fea6075926c79459369ea163181de20a388b75c0
2,846
https://github.com/meltingice/psd.js/blob/fea6075926c79459369ea163181de20a388b75c0/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse() ```
var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2'; } parse() { this.file.seek(8, true); return...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
fea6075926c79459369ea163181de20a388b75c0
2,846
https://github.com/meltingice/psd.js/blob/fea6075926c79459369ea163181de20a388b75c0/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Descriptor, LayerInfo, ObjectEffects; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = ObjectEffects = class ObjectEffects extends LayerInfo { static shouldParse(key) { return key === 'lfx2'; ...
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo @shouldParse: (key) -> key is 'lfx2' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
fea6075926c79459369ea163181de20a388b75c0
2,846
https://github.com/meltingice/psd.js/blob/fea6075926c79459369ea163181de20a388b75c0/lib/psd/layer_info/object_effects.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/object_effects.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class ObjectEffects extends LayerInfo
@shouldParse: (key) -> key is 'lfx2' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/object_effects.coffee
MIT
fea6075926c79459369ea163181de20a388b75c0
2,846
https://github.com/meltingice/psd.js/blob/fea6075926c79459369ea163181de20a388b75c0/lib/psd/layer_info/object_effects.coffee
1
9
kelp404/angular-form-builder:test/karma-min.config.coffee:1:raw_corpus
raw_corpus
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/jquery/dist/jquery.min.js' 'test/lib/angu...
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af
600
https://github.com/kelp404/angular-form-builder/blob/bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/...
module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/jquery/dist/jquery.min.js', 'test/lib/angular/angular.min.js', 'test/l...
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af
600
https://github.com/kelp404/angular-form-builder/blob/bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/jquery/dist/jqu...
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/jquery/dist/jquery.min.js' 'test/lib/angu...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af
600
https://github.com/kelp404/angular-form-builder/blob/bd9ea86ecfd2b0d2ab29723a330ca0f976b4f9af/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:raw_corpus
raw_corpus
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'bower_components/jquery/dist/jquery.min.js' 'bower...
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
428525347e7d60c119a374157a658c016adb2e44
600
https://github.com/kelp404/angular-form-builder/blob/428525347e7d60c119a374157a658c016adb2e44/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'bower...
module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['bower_components/jquery/dist/jquery.min.js', 'bower_components/angular/angular....
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
428525347e7d60c119a374157a658c016adb2e44
600
https://github.com/kelp404/angular-form-builder/blob/428525347e7d60c119a374157a658c016adb2e44/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['bower_components/jquery/...
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'bower_components/jquery/dist/jquery.min.js' 'bower...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
428525347e7d60c119a374157a658c016adb2e44
600
https://github.com/kelp404/angular-form-builder/blob/428525347e7d60c119a374157a658c016adb2e44/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:raw_corpus
raw_corpus
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/angularjs/angular.min.js' 'test/lib/angul...
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
c9351ddb9464fe548cee4dabae4596df2a7af5a1
600
https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/...
module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/angularjs/angular.min.js', 'test/lib/angularjs/angular-mocks.js', 'tes...
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
c9351ddb9464fe548cee4dabae4596df2a7af5a1
600
https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/angularjs/angul...
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/angularjs/angular.min.js' 'test/lib/angul...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
c9351ddb9464fe548cee4dabae4596df2a7af5a1
600
https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:raw_corpus
raw_corpus
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/angularjs/angular.1.2.12.min.js' 'test/li...
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
13ce5d1a821f1632e600aefad8b2a37587726a57
600
https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/...
module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/angularjs/angular.1.2.12.min.js', 'test/lib/angularjs/angular-mocks.1....
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
13ce5d1a821f1632e600aefad8b2a37587726a57
600
https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(config) { return config.set({ // base path, that will be used to resolve files and exclude basePath: '../', frameworks: ['jasmine'], // list of files / patterns to load in the browser files: ['test/lib/angularjs/angul...
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/angularjs/angular.1.2.12.min.js' 'test/li...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
13ce5d1a821f1632e600aefad8b2a37587726a57
600
https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-min.config.coffee
1
50
kelp404/angular-form-builder:test/karma-min.config.coffee:1:raw_corpus
raw_corpus
module.exports = (config) -> config.set # base path, that will be used to resolve files and exclude basePath: '../' frameworks: ['jasmine'] # list of files / patterns to load in the browser files: [ 'test/lib/angularjs/angular.1.2.11.min.js' 'test/li...
CoffeeScript
kelp404/angular-form-builder
test/karma-min.config.coffee
MIT
6076ed551d4903244a8a3910a3d957c2291a227f
600
https://github.com/kelp404/angular-form-builder/blob/6076ed551d4903244a8a3910a3d957c2291a227f/test/karma-min.config.coffee
1
50