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
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" async.waterfall [ (callback) -> # l...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
873425fbcf98345f676da41917088bc84d8632d4
3,484
https://github.com/jnordberg/wintersmith/blob/873425fbcf98345f676da41917088bc84d8632d4/src/cli/common.coffee
34
83
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" async.waterfall [ (callback) -> # l...
options[key] = argv[key] # pass along extra arguments from argv for key of argv # don't include optimist stuff if key[0] == '_' or key[0] == '$' continue options[key] ?= argv[key] # expand paths for key in ['output', 'config', 'contents', 'templates'] if...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
873425fbcf98345f676da41917088bc84d8632d4
3,484
https://github.com/jnordberg/wintersmith/blob/873425fbcf98345f676da41917088bc84d8632d4/src/cli/common.coffee
34
83
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' # resolve plugin paths if required as file async.map options.plugins, (item, callback) -> if item[...2] is './' item = path.resolve workDir, item callback null, it...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
873425fbcf98345f676da41917088bc84d8632d4
3,484
https://github.com/jnordberg/wintersmith/blob/873425fbcf98345f676da41917088bc84d8632d4/src/cli/common.coffee
84
107
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' # resolve plugin paths if required as file async.map options.plugins, (item, callback) -> if item[...2] is './' item = path.resolve workDir, item callback null, it...
logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ f...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
873425fbcf98345f676da41917088bc84d8632d4
3,484
https://github.com/jnordberg/wintersmith/blob/873425fbcf98345f676da41917088bc84d8632d4/src/cli/common.coffee
84
107
jnordberg/wintersmith:src/cli/common.coffee:3:raw_corpus
raw_corpus
exports.loadPlugins = (plugins, callback) -> wintersmith = require './../' async.forEach plugins, (plugin, callback) -> logger.verbose "loading plugin: #{ plugin }" try module = require plugin catch error return callback error module wintersmith, callback , callback
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
4ad8e3333d1196f02ca2b534385edf0f7cb5890e
3,484
https://github.com/jnordberg/wintersmith/blob/4ad8e3333d1196f02ca2b534385edf0f7cb5890e/src/cli/common.coffee
109
118
jnordberg/wintersmith:src/cli/common.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.loadPlugins = (plugins, callback) -> wintersmith = require './../' async.forEach plugins, (plugin, callback) -> logger.verbose "loading plugin: #{ plugin }" try module = require plugin catch error return callback error modu...
exports.loadPlugins = function(plugins, callback) { var wintersmith; wintersmith = require('./../'); return async.forEach(plugins, function(plugin, callback) { var error, module; logger.verbose(`loading plugin: ${plugin}`); try { module = require(plugin); } catch (error1) { error = err...
CoffeeScript
JavaScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
4ad8e3333d1196f02ca2b534385edf0f7cb5890e
3,484
https://github.com/jnordberg/wintersmith/blob/4ad8e3333d1196f02ca2b534385edf0f7cb5890e/src/cli/common.coffee
109
118
jnordberg/wintersmith:src/cli/common.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.loadPlugins = function(plugins, callback) { var wintersmith; wintersmith = require('./../'); return async.forEach(plugins, function(plugin, callback) { var error, module; logger.verbose(`loading plugin: ${plugin}`); try { module = re...
exports.loadPlugins = (plugins, callback) -> wintersmith = require './../' async.forEach plugins, (plugin, callback) -> logger.verbose "loading plugin: #{ plugin }" try module = require plugin catch error return callback error module wintersmith, callback , callback
JavaScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
4ad8e3333d1196f02ca2b534385edf0f7cb5890e
3,484
https://github.com/jnordberg/wintersmith/blob/4ad8e3333d1196f02ca2b534385edf0f7cb5890e/src/cli/common.coffee
109
118
jnordberg/wintersmith:src/cli/common.coffee:3:completion
completion
exports.loadPlugins = (plugins, callback) -> wintersmith = require './../' async.forEach plugins, (plugin, callback) -> logger.verbose "loading plugin: #{ plugin }" try
module = require plugin catch error return callback error module wintersmith, callback , callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
4ad8e3333d1196f02ca2b534385edf0f7cb5890e
3,484
https://github.com/jnordberg/wintersmith/blob/4ad8e3333d1196f02ca2b534385edf0f7cb5890e/src/cli/common.coffee
109
118
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" async.waterfall [ (callback) -> # l...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
22fb44b5b7401db9fb6e5178d05881d9995e1e51
3,484
https://github.com/jnordberg/wintersmith/blob/22fb44b5b7401db9fb6e5178d05881d9995e1e51/src/cli/common.coffee
34
83
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" async.waterfall [ (callback) -> # l...
options[key] = argv[key] # pass along extra arguments from argv for key of argv # don't include optimist stuff if key[0] == '_' or key[0] == '$' continue options[key] ?= argv[key] # expand paths for key in ['output', 'config', 'contents', 'templates'] if...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
22fb44b5b7401db9fb6e5178d05881d9995e1e51
3,484
https://github.com/jnordberg/wintersmith/blob/22fb44b5b7401db9fb6e5178d05881d9995e1e51/src/cli/common.coffee
34
83
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' # resolve plugin paths if required as file async.map options.plugins, (item, callback) -> if item[...2] is './' item = path.resolve path.join(workDir, item) callba...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
22fb44b5b7401db9fb6e5178d05881d9995e1e51
3,484
https://github.com/jnordberg/wintersmith/blob/22fb44b5b7401db9fb6e5178d05881d9995e1e51/src/cli/common.coffee
84
107
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' # resolve plugin paths if required as file async.map options.plugins, (item, callback) -> if item[...2] is './' item = path.resolve path.join(workDir, item) callba...
logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ f...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
22fb44b5b7401db9fb6e5178d05881d9995e1e51
3,484
https://github.com/jnordberg/wintersmith/blob/22fb44b5b7401db9fb6e5178d05881d9995e1e51/src/cli/common.coffee
84
107
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.for...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
f1697c648ff8a2d600ad8d2ce2aa61bb57c2f411
3,484
https://github.com/jnordberg/wintersmith/blob/f1697c648ff8a2d600ad8d2ce2aa61bb57c2f411/src/cli/common.coffee
84
100
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
(options, callback) -> if typeof options.plugins is 'string' options.plugins = options.plugins.split ',' callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates']
async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ filepath } path invalid (#{ options[filepath] })" , (error) -> callback error, options ], callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
f1697c648ff8a2d600ad8d2ce2aa61bb57c2f411
3,484
https://github.com/jnordberg/wintersmith/blob/f1697c648ff8a2d600ad8d2ce2aa61bb57c2f411/src/cli/common.coffee
84
100
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64
3,484
https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
# assing defaults to missing conf options options[key] ?= defaults[key].default # ovveride conf and default options with any command line options if argv[key]? and argv[key] != defaults[key].default options[key] = argv[key] # pass along extra arguments from argv for key of ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64
3,484
https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
options.locals = result callback null, options else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.forEach paths, (filepath, callback) -> pat...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64
3,484
https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/cli/common.coffee
80
96
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
options.locals = result callback null, options else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates']
async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ filepath } path invalid (#{ options[filepath] })" , (error) -> callback error, options ], callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64
3,484
https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/cli/common.coffee
80
96
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e60268e9bc9c859c58ccf2bd9691a9f8b0506c45
3,484
https://github.com/jnordberg/wintersmith/blob/e60268e9bc9c859c58ccf2bd9691a9f8b0506c45/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
# assing defaults to missing conf options options[key] ?= defaults[key].default # ovveride conf and default options with any command line options if argv[key]? options[key] = argv[key] # pass along extra arguments from argv for key of argv # don't include optimist s...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e60268e9bc9c859c58ccf2bd9691a9f8b0506c45
3,484
https://github.com/jnordberg/wintersmith/blob/e60268e9bc9c859c58ccf2bd9691a9f8b0506c45/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
8f2c6ac55db42b208ecc86286472db1df37b7ed6
3,484
https://github.com/jnordberg/wintersmith/blob/8f2c6ac55db42b208ecc86286472db1df37b7ed6/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### workDir = path.resolve (argv.chdir or process.cwd()) logger.verbose "resolving options - work directory: #{ workDir }" if argv.templateData? argv.locals = argv....
# assing defaults to missing conf options options[key] ?= defaults[key].default # ovveride conf and default options with any command line options if argv[key]? options[key] = argv[key] # expand paths if ['output', 'config', 'contents', 'templates'].indexOf(key) != -1 ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
8f2c6ac55db42b208ecc86286472db1df37b7ed6
3,484
https://github.com/jnordberg/wintersmith/blob/8f2c6ac55db42b208ecc86286472db1df37b7ed6/src/cli/common.coffee
30
79
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
callback null, options else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists)...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
8f2c6ac55db42b208ecc86286472db1df37b7ed6
3,484
https://github.com/jnordberg/wintersmith/blob/8f2c6ac55db42b208ecc86286472db1df37b7ed6/src/cli/common.coffee
80
95
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
callback null, options else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'validating paths' paths = ['contents', 'templates'] async.forEach paths, (filepath, callback) ->
path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ filepath } path invalid (#{ options[filepath] })" , (error) -> callback error, options ], callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
8f2c6ac55db42b208ecc86286472db1df37b7ed6
3,484
https://github.com/jnordberg/wintersmith/blob/8f2c6ac55db42b208ecc86286472db1df37b7ed6/src/cli/common.coffee
80
95
jnordberg/wintersmith:src/cli/common.coffee:1:raw_corpus
raw_corpus
exports.getOptions = (argv={}, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### # normalize argv for key, item of defaults if argv[item.alias]? argv[key] = argv[item.alias] workDir = path.resolve (argv.chdir or process.cwd()) log...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/cli/common.coffee
36
85
jnordberg/wintersmith:src/cli/common.coffee:1:completion
completion
exports.getOptions = (argv={}, callback) -> ### resolves options with the hierarchy: argv > configfile > defaults returns a options object ### # normalize argv for key, item of defaults if argv[item.alias]? argv[key] = argv[item.alias] workDir = path.resolve (argv.chdir or process.cwd()) log...
logger.verbose "no config file found" callback null, {} (options, callback) -> logger.verbose 'options:', options for key of defaults # assing defaults to missing conf options options[key] ?= defaults[key].default # ovveride conf and default options with any command lin...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/cli/common.coffee
36
85
jnordberg/wintersmith:src/cli/common.coffee:2:raw_corpus
raw_corpus
else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'checking that all paths are valid' paths = ['output', 'contents', 'templates'] async.forEach paths, (filepath, callback) -> path.exists options[filepath], (exists) -...
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/cli/common.coffee
86
100
jnordberg/wintersmith:src/cli/common.coffee:2:completion
completion
else callback null, options (options, callback) -> logger.verbose 'resolved options:', options logger.verbose 'checking that all paths are valid' paths = ['output', 'contents', 'templates'] async.forEach paths, (filepath, callback) ->
path.exists options[filepath], (exists) -> if exists callback() else callback new Error "#{ filepath } path invalid (#{ options[filepath] })" , (error) -> callback error, options ], callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/cli/common.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/cli/common.coffee
86
100
node-cache/node-cache:_src/test/mocha_test.coffee:1:raw_corpus
raw_corpus
should = require( "should" ) _clone = require( "lodash/clone" ) VCache = require( "../" ) localCache = new VCache({ stdTTL: 0 useClone: false checkperiod: 0 }) localCacheTTL = new VCache({ stdTTL: 0.3 checkperiod: 0 }) # test helper randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQR...
CoffeeScript
node-cache/node-cache
_src/test/mocha_test.coffee
MIT
1a7a21826753a2f7150e595e3b7febaa509b4016
2,372
https://github.com/node-cache/node-cache/blob/1a7a21826753a2f7150e595e3b7febaa509b4016/_src/test/mocha_test.coffee
1
31
node-cache/node-cache:_src/test/mocha_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript should = require( "should" ) _clone = require( "lodash/clone" ) VCache = require( "../" ) localCache = new VCache({ stdTTL: 0 useClone: false checkperiod: 0 }) localCacheTTL = new VCache({ stdTTL: 0.3 checkperiod: 0 }) # test helper randomString = ( len...
var VCache, _clone, localCache, localCacheTTL, randomString, should; should = require("should"); _clone = require("lodash/clone"); VCache = require("../"); localCache = new VCache({ stdTTL: 0, useClone: false, checkperiod: 0 }); localCacheTTL = new VCache({ stdTTL: 0.3, checkperiod: 0 }); // test helper...
CoffeeScript
JavaScript
node-cache/node-cache
_src/test/mocha_test.coffee
MIT
1a7a21826753a2f7150e595e3b7febaa509b4016
2,372
https://github.com/node-cache/node-cache/blob/1a7a21826753a2f7150e595e3b7febaa509b4016/_src/test/mocha_test.coffee
1
31
node-cache/node-cache:_src/test/mocha_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var VCache, _clone, localCache, localCacheTTL, randomString, should; should = require("should"); _clone = require("lodash/clone"); VCache = require("../"); localCache = new VCache({ stdTTL: 0, useClone: false, checkperiod: 0 }); localCacheTTL = new VCach...
should = require( "should" ) _clone = require( "lodash/clone" ) VCache = require( "../" ) localCache = new VCache({ stdTTL: 0 useClone: false checkperiod: 0 }) localCacheTTL = new VCache({ stdTTL: 0.3 checkperiod: 0 }) # test helper randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQR...
JavaScript
CoffeeScript
node-cache/node-cache
_src/test/mocha_test.coffee
MIT
1a7a21826753a2f7150e595e3b7febaa509b4016
2,372
https://github.com/node-cache/node-cache/blob/1a7a21826753a2f7150e595e3b7febaa509b4016/_src/test/mocha_test.coffee
1
31
node-cache/node-cache:_src/test/mocha_test.coffee:1:completion
completion
should = require( "should" ) _clone = require( "lodash/clone" ) VCache = require( "../" ) localCache = new VCache({ stdTTL: 0 useClone: false checkperiod: 0 }) localCacheTTL = new VCache({ stdTTL: 0.3 checkperiod: 0 })
# test helper randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "0123456789" if withnumbers string_length = length or 5 randomstring = "" i = 0 while i < string_length rnum = Math.floor(Math.random() * chars.length) randomstring += chars...
CoffeeScript
CoffeeScript
node-cache/node-cache
_src/test/mocha_test.coffee
MIT
1a7a21826753a2f7150e595e3b7febaa509b4016
2,372
https://github.com/node-cache/node-cache/blob/1a7a21826753a2f7150e595e3b7febaa509b4016/_src/test/mocha_test.coffee
1
31
jianliaoim/talk-os:talk-web/client/network/socket.coffee:1:raw_corpus
raw_corpus
eventChannel.connect = (cb = ->) -> return if primusInstance primusInstance = Primus.connect(sockHost) primusInstance .on 'open', -> dev.info 'Primus connection opened' .on 'data', (rawObject) -> handleData rawObject, cb .on 'error', (err) -> dev.error 'Primus error: ', err.stack...
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
24
62
jianliaoim/talk-os:talk-web/client/network/socket.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript eventChannel.connect = (cb = ->) -> return if primusInstance primusInstance = Primus.connect(sockHost) primusInstance .on 'open', -> dev.info 'Primus connection opened' .on 'data', (rawObject) -> handleData rawObject, cb .on 'err...
eventChannel.connect = function(cb = function() {}) { var primusInstance; if (primusInstance) { return; } primusInstance = Primus.connect(sockHost); primusInstance.on('open', function() { return dev.info('Primus connection opened'); }).on('data', function(rawObject) { return handleData(rawObject...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
24
62
jianliaoim/talk-os:talk-web/client/network/socket.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript eventChannel.connect = function(cb = function() {}) { var primusInstance; if (primusInstance) { return; } primusInstance = Primus.connect(sockHost); primusInstance.on('open', function() { return dev.info('Primus connection opened'); }).on('data'...
eventChannel.connect = (cb = ->) -> return if primusInstance primusInstance = Primus.connect(sockHost) primusInstance .on 'open', -> dev.info 'Primus connection opened' .on 'data', (rawObject) -> handleData rawObject, cb .on 'error', (err) -> dev.error 'Primus error: ', err.stack...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
24
62
jianliaoim/talk-os:talk-web/client/network/socket.coffee:1:completion
completion
eventChannel.connect = (cb = ->) -> return if primusInstance primusInstance = Primus.connect(sockHost) primusInstance .on 'open', -> dev.info 'Primus connection opened' .on 'data', (rawObject) -> handleData rawObject, cb .on 'error', (err) -> dev.error 'Primus error: ', err.stack...
dev.info 'Primus reconnecting in %d ms, this is attempt %d out of %d', opts.scheduled, opts.attempt, opts.retries .on 'reconnected', (opts) -> dev.info 'Primus reconnected, took %d ms', opts.duration .on 'reconnect timeout', (err) -> dev.warn 'Primus timeout expired: %s', err.message .on 'rec...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
24
62
jianliaoim/talk-os:talk-web/client/network/socket.coffee:2:raw_corpus
raw_corpus
handleData = (rawObject, cb) -> if type.isString(rawObject) try parsedObject = JSON.parse rawObject catch err return else parsedObject = rawObject if parsedObject.socketId newConnection(parsedObject.socketId, cb) else # a: action, d: data eventChannel.emit(parsedObject.a, pa...
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
64
79
jianliaoim/talk-os:talk-web/client/network/socket.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript handleData = (rawObject, cb) -> if type.isString(rawObject) try parsedObject = JSON.parse rawObject catch err return else parsedObject = rawObject if parsedObject.socketId newConnection(parsedObject.socketId, cb) else # a:...
var handleData, isFirstConnection; handleData = function(rawObject, cb) { var err, parsedObject; if (type.isString(rawObject)) { try { parsedObject = JSON.parse(rawObject); } catch (error) { err = error; return; } } else { parsedObject = rawObject; } if (parsedObject.socketI...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
64
79
jianliaoim/talk-os:talk-web/client/network/socket.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var handleData, isFirstConnection; handleData = function(rawObject, cb) { var err, parsedObject; if (type.isString(rawObject)) { try { parsedObject = JSON.parse(rawObject); } catch (error) { err = error; return; } } else { p...
handleData = (rawObject, cb) -> if type.isString(rawObject) try parsedObject = JSON.parse rawObject catch err return else parsedObject = rawObject if parsedObject.socketId newConnection(parsedObject.socketId, cb) else # a: action, d: data eventChannel.emit(parsedObject.a, pa...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
64
79
jianliaoim/talk-os:talk-web/client/network/socket.coffee:2:completion
completion
handleData = (rawObject, cb) -> if type.isString(rawObject) try parsedObject = JSON.parse rawObject catch err return else parsedObject = rawObject
if parsedObject.socketId newConnection(parsedObject.socketId, cb) else # a: action, d: data eventChannel.emit(parsedObject.a, parsedObject.d) isFirstConnection = true
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
64
79
jianliaoim/talk-os:talk-web/client/network/socket.coffee:3:raw_corpus
raw_corpus
newConnection = (socketId, cb) -> config['X-Socket-Id'] = socketId networkHandler.newConnection() if isFirstConnection cb() else notifyBannerActions.success lang.getText('connected') time.delay 5000, notifyBannerActions.clear if not config.isGuest networkHandler.longReconnection -> ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
80
95
jianliaoim/talk-os:talk-web/client/network/socket.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript newConnection = (socketId, cb) -> config['X-Socket-Id'] = socketId networkHandler.newConnection() if isFirstConnection cb() else notifyBannerActions.success lang.getText('connected') time.delay 5000, notifyBannerActions.clear if not conf...
var newConnection; newConnection = function(socketId, cb) { var isFirstConnection; config['X-Socket-Id'] = socketId; networkHandler.newConnection(); if (isFirstConnection) { cb(); } else { notifyBannerActions.success(lang.getText('connected')); time.delay(5000, notifyBannerActions.clear); if ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
80
95
jianliaoim/talk-os:talk-web/client/network/socket.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var newConnection; newConnection = function(socketId, cb) { var isFirstConnection; config['X-Socket-Id'] = socketId; networkHandler.newConnection(); if (isFirstConnection) { cb(); } else { notifyBannerActions.success(lang.getText('connected')); ...
newConnection = (socketId, cb) -> config['X-Socket-Id'] = socketId networkHandler.newConnection() if isFirstConnection cb() else notifyBannerActions.success lang.getText('connected') time.delay 5000, notifyBannerActions.clear if not config.isGuest networkHandler.longReconnection -> ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
80
95
jianliaoim/talk-os:talk-web/client/network/socket.coffee:3:completion
completion
newConnection = (socketId, cb) -> config['X-Socket-Id'] = socketId networkHandler.newConnection() if isFirstConnection cb() else notifyBannerActions.success lang.getText('connected')
time.delay 5000, notifyBannerActions.clear if not config.isGuest networkHandler.longReconnection -> unreadHandlers.simulateRead() deviceActions.networkReload() isFirstConnection = false
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/network/socket.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/network/socket.coffee
80
95
linemanjs/lineman:config/plugins/concat.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: concat: options: sourceMap: true js: options: separator: ";\n" src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ...
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/concat.coffee
1
34
linemanjs/lineman:config/plugins/concat.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: concat: options: sourceMap: true js: options: separator: ";\n" src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js...
module.exports = function(lineman) { return { config: { concat: { options: { sourceMap: true }, js: { options: { separator: ";\n" }, src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.js.app %>", "<%= file...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/concat.coffee
1
34
linemanjs/lineman:config/plugins/concat.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { concat: { options: { sourceMap: true }, js: { options: { separator: ";\n" }, src: ["<%= files.js.vendor %>", "<%= files.t...
module.exports = (lineman) -> config: concat: options: sourceMap: true js: options: separator: ";\n" src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/concat.coffee
1
34
linemanjs/lineman:config/plugins/concat.coffee:1:completion
completion
module.exports = (lineman) -> config: concat: options: sourceMap: true js: options: separator: ";\n" src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ...
spec: src: [ "<%= files.js.specHelpers %>" "<%= files.coffee.generatedSpecHelpers %>" "<%= files.js.spec %>" "<%= files.coffee.generatedSpec %>" ] dest: "<%= files.js.concatenatedSpec %>" css: src: [ "<%= files.sass.generatedVendor...
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/concat.coffee
1
34
linemanjs/lineman:config/plugins/concat.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: concat: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ...
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/concat.coffee
1
23
linemanjs/lineman:config/plugins/concat.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: concat: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: ...
module.exports = function(lineman) { return { config: { concat: { js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"], dest: "<%= files.js.concatenated %>", options: { banner: "<%= ...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/concat.coffee
1
23
linemanjs/lineman:config/plugins/concat.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { concat: { js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"], dest: "<%= files.js.concatena...
module.exports = (lineman) -> config: concat: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/concat.coffee
1
23
linemanjs/lineman:config/plugins/concat.coffee:1:completion
completion
module.exports = (lineman) -> config: concat: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ...
dest: "<%= files.js.concatenatedSpec %>" css: src: [ "<%= files.less.generatedVendor %>", "<%= files.sass.generatedVendor %>", "<%= files.css.vendor %>", "<%= files.less.generatedApp %>", "<%= files.sass.generatedApp %>", "<%= files.css.app %>" ...
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/concat.coffee
1
23
linemanjs/lineman:config/plugins/concat.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ["<%= files.js.specHelpers...
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/concat.coffee
1
22
linemanjs/lineman:config/plugins/concat.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.ba...
module.exports = function(lineman) { return { config: { js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"], dest: "<%= files.js.concatenated %>", options: { banner: "<%= meta.banner %>" } ...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/concat.coffee
1
22
linemanjs/lineman:config/plugins/concat.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"], dest: "<%= files.js.concatenated %>", optio...
module.exports = (lineman) -> config: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ["<%= files.js.specHelpers...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/concat.coffee
1
22
linemanjs/lineman:config/plugins/concat.coffee:1:completion
completion
module.exports = (lineman) -> config: js: src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.coffee.generated %>", "<%= files.js.app %>"] dest: "<%= files.js.concatenated %>" options: banner: "<%= meta.banner %>" spec: src: ["<%= files.js.specHelpers...
css: src: [ "<%= files.less.generatedVendor %>", "<%= files.sass.generatedVendor %>", "<%= files.css.vendor %>", "<%= files.less.generatedApp %>", "<%= files.sass.generatedApp %>", "<%= files.css.app %>" ] dest: "<%= files.css.concatenated %>"
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/concat.coffee
1
22
Atraci/Atraci:coffee/app.coffee:1:raw_corpus
raw_corpus
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:completion
completion
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
length: 5 # The length of each line width: 2 # The line thickness radius: 6 # The radius of the inner circle color: '#fff' # #rgb or #rrggbb or array of colors speed: 2 # Rounds per second ######################################################## $ -> window.l10n = new L10n window.theme = new Theme wind...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
width: 600, height: 300, frame: false, toolbar: false } windowManager.setWindowLocationOnScreen() setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:2:completion
completion
width: 600, height: 300, frame: false, toolbar: false } windowManager.setWindowLocationOnScreen() setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer...
$(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationchange', () -> $elements = $('[data-l10n-id]') $elements.each((i...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:3:raw_corpus
raw_corpus
window.tracklist.populate( window.tracklist.getCurrentTracklist(), null, true ) # create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> Histor...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
133
182
Atraci/Atraci:coffee/app.coffee:3:completion
completion
window.tracklist.populate( window.tracklist.getCurrentTracklist(), null, true ) # create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> Histor...
if error is null alertify.confirm l10n.get('confirm_update'), (e) -> if e alertify.log l10n.get('downloading') upgradeNow manifest, (filename) -> console.log "Done" if getOperatingSystem() is "windows" setTimeout -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
48357168b38652200d86525bf5b3a20473c8cba6
800
https://github.com/Atraci/Atraci/blob/48357168b38652200d86525bf5b3a20473c8cba6/coffee/app.coffee
133
182
Atraci/Atraci:coffee/app.coffee:1:raw_corpus
raw_corpus
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.pla...
var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEventListener("dragstart", preventDefault, false); // For m...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEvent...
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:completion
completion
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
length: 5 # The length of each line width: 2 # The line thickness radius: 6 # The radius of the inner circle color: '#fff' # #rgb or #rrggbb or array of colors speed: 2 # Rounds per second ######################################################## $ -> window.l10n = new L10n window.theme = new Theme wind...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
windowManager.setWindowLocationOnScreen() setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:2:completion
completion
windowManager.setWindowLocationOnScreen() setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition...
# Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationchange', () -> $elements = $('[data-l10n-id]') $elements.each((index, ele) -> $ele = $(ele) l10nId = $ele.data('l10n-id') params = $ele.data('l10n-params') if $ele.attr('title') i...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:3:raw_corpus
raw_corpus
# create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() # Che...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
133
181
Atraci/Atraci:coffee/app.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').cl...
// create sidebar related stuffs var upgradeNow; sidebar.populateFeaturedMusic(); Playlists.getAll(function(playlists) { return sidebar.populatePlaylists(playlists); }); // We will show top tracks when bootup setTimeout((function() { return History.countTracks(function() { return $('#SideBar li.top').click()...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
133
181
Atraci/Atraci:coffee/app.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // create sidebar related stuffs var upgradeNow; sidebar.populateFeaturedMusic(); Playlists.getAll(function(playlists) { return sidebar.populatePlaylists(playlists); }); // We will show top tracks when bootup setTimeout((function() { return History.countTrac...
# create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() # Che...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
133
181
Atraci/Atraci:coffee/app.coffee:3:completion
completion
# create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() # Che...
console.log "Done" if getOperatingSystem() is "windows" setTimeout -> upd.run(filename) , 400 if getOperatingSystem() is "linux" tarball = require('tarball-extract') tarball.extractTarball(filename, upd.getAppP...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
be9db14c4f32097d26444c840d84327900498c5b
800
https://github.com/Atraci/Atraci/blob/be9db14c4f32097d26444c840d84327900498c5b/coffee/app.coffee
133
181
Atraci/Atraci:coffee/app.coffee:1:raw_corpus
raw_corpus
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
3139f765b5c0951f8ae0b28ee188a65dc4496886
800
https://github.com/Atraci/Atraci/blob/3139f765b5c0951f8ae0b28ee188a65dc4496886/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.pla...
var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEventListener("dragstart", preventDefault, false); // For m...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
3139f765b5c0951f8ae0b28ee188a65dc4496886
800
https://github.com/Atraci/Atraci/blob/3139f765b5c0951f8ae0b28ee188a65dc4496886/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEvent...
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
3139f765b5c0951f8ae0b28ee188a65dc4496886
800
https://github.com/Atraci/Atraci/blob/3139f765b5c0951f8ae0b28ee188a65dc4496886/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:1:completion
completion
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
lines: 8 # The number of lines to draw length: 5 # The length of each line width: 2 # The line thickness radius: 6 # The radius of the inner circle color: '#fff' # #rgb or #rrggbb or array of colors speed: 2 # Rounds per second ######################################################## $ -> window.l10n = n...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
3139f765b5c0951f8ae0b28ee188a65dc4496886
800
https://github.com/Atraci/Atraci/blob/3139f765b5c0951f8ae0b28ee188a65dc4496886/coffee/app.coffee
33
82
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> ...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPane...
var timer; setTimeout(function() { $(".blackScreen").remove(); return splash.close(); }, 2000); //provide a resizeend event timer = window.setTimeout(function() {}, 0); $(window).on('resize', function() { window.clearTimeout(timer); return timer = window.setTimeout(function() { return settingsPanel.repos...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var timer; setTimeout(function() { $(".blackScreen").remove(); return splash.close(); }, 2000); //provide a resizeend event timer = window.setTimeout(function() {}, 0); $(window).on('resize', function() { window.clearTimeout(timer); return timer = window...
setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> ...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:2:completion
completion
setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> ...
$elements = $('[data-l10n-id]') $elements.each((index, ele) -> $ele = $(ele) l10nId = $ele.data('l10n-id') params = $ele.data('l10n-params') if $ele.attr('title') isnt undefined $ele.attr('title', l10n.get(l10nId, params)) else if $ele.attr('placeholder') isnt undefined ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
83
132
Atraci/Atraci:coffee/app.coffee:3:raw_corpus
raw_corpus
Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() # Check for version update # Linux and Windows only so far. Mac coming ...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
133
178
Atraci/Atraci:coffee/app.coffee:3:completion
completion
Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() # Check for version update # Linux and Windows only so far. Mac coming ...
if getOperatingSystem() is "windows" setTimeout -> upd.run(filename) , 400 if getOperatingSystem() is "linux" tarball = require('tarball-extract') tarball.extractTarball(filename, upd.getAppPath() + "/latest" ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
fbedf11e0480c01de6481c62c077790add9a64b2
800
https://github.com/Atraci/Atraci/blob/fbedf11e0480c01de6481c62c077790add9a64b2/coffee/app.coffee
133
178
Atraci/Atraci:coffee/app.coffee:3:raw_corpus
raw_corpus
Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() true
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
39addc2d4caa0a6a0e7e70046146930074eca6bd
800
https://github.com/Atraci/Atraci/blob/39addc2d4caa0a6a0e7e70046146930074eca6bd/coffee/app.coffee
128
141
Atraci/Atraci:coffee/app.coffee:3:completion
completion
Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() ->
$('#SideBar li.top').click() ) ), 1 $('#Search input').focus() true
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
39addc2d4caa0a6a0e7e70046146930074eca6bd
800
https://github.com/Atraci/Atraci/blob/39addc2d4caa0a6a0e7e70046146930074eca6bd/coffee/app.coffee
128
141
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> ...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
74d8a36173a0e08c3c9b852d1d920a87099f0c54
800
https://github.com/Atraci/Atraci/blob/74d8a36173a0e08c3c9b852d1d920a87099f0c54/coffee/app.coffee
78
127
Atraci/Atraci:coffee/app.coffee:2:completion
completion
setTimeout -> $(".blackScreen").remove() splash.close() , 2000 #provide a resizeend event timer = window.setTimeout -> , 0 $(window).on 'resize', -> window.clearTimeout(timer) timer = window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> ...
$elements = $('[data-l10n-id]') $elements.each((index, ele) -> $ele = $(ele) l10nId = $ele.data('l10n-id') params = $ele.data('l10n-params') if $ele.attr('title') isnt undefined $ele.attr('title', l10n.get(l10nId, params)) else $ele.text(l10n.get(l10nId, params)) )...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
74d8a36173a0e08c3c9b852d1d920a87099f0c54
800
https://github.com/Atraci/Atraci/blob/74d8a36173a0e08c3c9b852d1d920a87099f0c54/coffee/app.coffee
78
127
Atraci/Atraci:coffee/app.coffee:3:raw_corpus
raw_corpus
) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click() ) ), 1 $('#Search input').focus() true
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
74d8a36173a0e08c3c9b852d1d920a87099f0c54
800
https://github.com/Atraci/Atraci/blob/74d8a36173a0e08c3c9b852d1d920a87099f0c54/coffee/app.coffee
128
139
Atraci/Atraci:coffee/app.coffee:3:completion
completion
) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> $('#SideBar li.top').click()
) ), 1 $('#Search input').focus() true
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
74d8a36173a0e08c3c9b852d1d920a87099f0c54
800
https://github.com/Atraci/Atraci/blob/74d8a36173a0e08c3c9b852d1d920a87099f0c54/coffee/app.coffee
128
139
Atraci/Atraci:coffee/app.coffee:1:raw_corpus
raw_corpus
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:1:completion
completion
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
length: 5 # The length of each line width: 2 # The line thickness radius: 6 # The radius of the inner circle color: '#fff' # #rgb or #rrggbb or array of colors speed: 2 # Rounds per second ######################################################## $ -> window.l10n = new L10n window.theme = new Theme wind...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationch...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
78
126
Atraci/Atraci:coffee/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization...
window.setTimeout(function() { return settingsPanel.reposition(); }, 100); $(window).on('resize', function() { var addghost; clearTimeout(addghost); return addghost = setTimeout(function() { return window.tracklist.calculateDivsInRow(); }, 100); }); // Make sure we would update strings when localization...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
78
126
Atraci/Atraci:coffee/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.setTimeout(function() { return settingsPanel.reposition(); }, 100); $(window).on('resize', function() { var addghost; clearTimeout(addghost); return addghost = setTimeout(function() { return window.tracklist.calculateDivsInRow(); }, 100); }); ...
window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationch...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
78
126
Atraci/Atraci:coffee/app.coffee:2:completion
completion
window.setTimeout -> settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationch...
l10n.changeLang() $("#tracklistSorter").change -> window.tracklist.populate( window.tracklist.getCurrentTracklist(), null, true ) # create sidebar related stuffs sidebar.populateFeaturedMusic() Playlists.getAll((playlists) -> sidebar.populatePlaylists(playlists) ) # We will...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
eab2ed1f912a260332e8be584d06dc3d0ea25ab8
800
https://github.com/Atraci/Atraci/blob/eab2ed1f912a260332e8be584d06dc3d0ea25ab8/coffee/app.coffee
78
126
Atraci/Atraci:coffee/app.coffee:1:raw_corpus
raw_corpus
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.pla...
var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEventListener("dragstart", preventDefault, false); // For m...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var defaultMenu, preventDefault, spinner_cover_opts, spinner_opts; preventDefault = function(e) { return e.preventDefault(); }; window.addEventListener("dragover", preventDefault, false); window.addEventListener("drop", preventDefault, false); window.addEvent...
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:1:completion
completion
preventDefault = (e) -> e.preventDefault() window.addEventListener "dragover", preventDefault, false window.addEventListener "drop", preventDefault, false window.addEventListener "dragstart", preventDefault, false # For mac, add basic menu back if process.platform is 'darwin' defaultMenu = new gui.Menu({ type: 'm...
length: 5 # The length of each line width: 2 # The line thickness radius: 6 # The radius of the inner circle color: '#fff' # #rgb or #rrggbb or array of colors speed: 2 # Rounds per second ######################################################## $ -> window.l10n = new L10n window.theme = new Theme wind...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
28
77
Atraci/Atraci:coffee/app.coffee:2:raw_corpus
raw_corpus
settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationchange', () -> $elements = ...
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
78
123
Atraci/Atraci:coffee/app.coffee:2:completion
completion
settingsPanel.reposition() ,100 $(window).on 'resize', -> clearTimeout addghost addghost = setTimeout( -> window.tracklist.calculateDivsInRow() , 100) # Make sure we would update strings when localization event is emitted l10n.addEventListener 'localizationchange', () -> $elements = ...
l10n.changeLang() $("#tracklistSorter").change -> window.tracklist.populate( window.tracklist.getCurrentTracklist(), null, true ) Playlists.getAll((playlists) -> populateSidebar(playlists) ) # We will show top tracks when bootup setTimeout ( -> History.countTracks(() -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/app.coffee
MIT
c9e7bb599e5584d9698a79617de68843d30d3aed
800
https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/app.coffee
78
123