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
CaryLandholt/AngularFun:scripts/controllers/peopleController.coffee:1:raw_corpus
raw_corpus
###global define### define ['angular', 'controllers/controllers', 'services/peopleService'], (angular, controllers) -> 'use strict' controllers.controller 'peopleController', ['$scope', '$location', 'peopleService', ($scope, $location, peopleService) -> $scope.people = peopleService.get() $scope.insertPerson =...
CoffeeScript
CaryLandholt/AngularFun
scripts/controllers/peopleController.coffee
MIT
0a646d2281b057df758d819b5e9224a0ad3461d6
672
https://github.com/CaryLandholt/AngularFun/blob/0a646d2281b057df758d819b5e9224a0ad3461d6/scripts/controllers/peopleController.coffee
1
11
CaryLandholt/AngularFun:scripts/controllers/peopleController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['angular', 'controllers/controllers', 'services/peopleService'], (angular, controllers) -> 'use strict' controllers.controller 'peopleController', ['$scope', '$location', 'peopleService', ($scope, $location, peopleService) -> $sc...
/*global define*/ define(['angular', 'controllers/controllers', 'services/peopleService'], function(angular, controllers) { 'use strict'; return controllers.controller('peopleController', [ '$scope', '$location', 'peopleService', function($scope, $location, peopleService) { $scope.peop...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/controllers/peopleController.coffee
MIT
0a646d2281b057df758d819b5e9224a0ad3461d6
672
https://github.com/CaryLandholt/AngularFun/blob/0a646d2281b057df758d819b5e9224a0ad3461d6/scripts/controllers/peopleController.coffee
1
11
CaryLandholt/AngularFun:scripts/controllers/peopleController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['angular', 'controllers/controllers', 'services/peopleService'], function(angular, controllers) { 'use strict'; return controllers.controller('peopleController', [ '$scope', '$location', 'peopleService', function($scope...
###global define### define ['angular', 'controllers/controllers', 'services/peopleService'], (angular, controllers) -> 'use strict' controllers.controller 'peopleController', ['$scope', '$location', 'peopleService', ($scope, $location, peopleService) -> $scope.people = peopleService.get() $scope.insertPerson =...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/controllers/peopleController.coffee
MIT
0a646d2281b057df758d819b5e9224a0ad3461d6
672
https://github.com/CaryLandholt/AngularFun/blob/0a646d2281b057df758d819b5e9224a0ad3461d6/scripts/controllers/peopleController.coffee
1
11
CaryLandholt/AngularFun:scripts/controllers/peopleController.coffee:1:completion
completion
###global define### define ['angular', 'controllers/controllers', 'services/peopleService'], (angular, controllers) -> 'use strict'
controllers.controller 'peopleController', ['$scope', '$location', 'peopleService', ($scope, $location, peopleService) -> $scope.people = peopleService.get() $scope.insertPerson = -> $scope.people = peopleService.post() ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/controllers/peopleController.coffee
MIT
0a646d2281b057df758d819b5e9224a0ad3461d6
672
https://github.com/CaryLandholt/AngularFun/blob/0a646d2281b057df758d819b5e9224a0ad3461d6/scripts/controllers/peopleController.coffee
1
11
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:1:raw_corpus
raw_corpus
num: 10 result: switch num when 5 then false when 'a' true true false when 10 then true # Mid-switch comment with whitespace # and multi line when 11 then false else false ok result func: (num) -> switch num when 2, 4, 6 true when 1, 3, 5 false else false ok fu...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
1
50
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript num: 10 result: switch num when 5 then false when 'a' true true false when 10 then true # Mid-switch comment with whitespace # and multi line when 11 then false else false ok result func: (num) -> switch num when 2, 4, 6 ...
({ num: 10, result: (function() { switch (num) { case 5: return false; case 'a': true; true; return false; case 10: return true; // Mid-switch comment with whitespace // and multi line case 11: return false; default: ...
CoffeeScript
JavaScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
1
50
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ num: 10, result: (function() { switch (num) { case 5: return false; case 'a': true; true; return false; case 10: return true; // Mid-switch comment with whitespace // and multi line ...
num: 10 result: switch num when 5 then false when 'a' true true false when 10 then true # Mid-switch comment with whitespace # and multi line when 11 then false else false ok result func: (num) -> switch num when 2, 4, 6 true when 1, 3, 5 false else false ok fu...
JavaScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
1
50
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:1:completion
completion
num: 10 result: switch num when 5 then false when 'a' true true false when 10 then true # Mid-switch comment with whitespace # and multi line when 11 then false else false ok result func: (num) -> switch num when 2, 4, 6 true when 1, 3, 5 false
else false ok func(2) ok func(6) ok !func(3) ok !func(8) # Should cache the switch value, if anything fancier than a literal. num: 5 result: switch num: + 5 when 5 then false when 15 then false when 10 then true else false ok result # Ensure that trailing switch elses don't get rewritten. result: false sw...
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
1
50
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:2:raw_corpus
raw_corpus
result: true unless false ok result result: false switch "word" when "one thing" do_something() when "other thing" do_something() else result: true unless false ok result # Should be able to handle switches sans-condition. result: switch when null then 1 when 'truthful string' then 2 else 3...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
51
73
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript result: true unless false ok result result: false switch "word" when "one thing" do_something() when "other thing" do_something() else result: true unless false ok result # Should be able to handle switches sans-condition. result: switch ...
if (!false) { ({ result: true }); } ok(result); ({ result: false }); switch ("word") { case "one thing": do_something(); break; case "other thing": do_something(); break; default: if (!false) { ({ result: true }); } } ok(result); ({ // Should be able to...
CoffeeScript
JavaScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
51
73
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (!false) { ({ result: true }); } ok(result); ({ result: false }); switch ("word") { case "one thing": do_something(); break; case "other thing": do_something(); break; default: if (!false) { ({ result: true ...
result: true unless false ok result result: false switch "word" when "one thing" do_something() when "other thing" do_something() else result: true unless false ok result # Should be able to handle switches sans-condition. result: switch when null then 1 when 'truthful string' then 2 else 3...
JavaScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
51
73
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_switch.coffee:2:completion
completion
result: true unless false ok result result: false switch "word" when "one thing" do_something() when "other thing" do_something() else
result: true unless false ok result # Should be able to handle switches sans-condition. result: switch when null then 1 when 'truthful string' then 2 else 3 ok result is 2
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_switch.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_switch.coffee
51
73
jianliaoim/talk-os:talk-api2x/server/components/redis.coffee:1:raw_corpus
raw_corpus
redis = require 'redis' Promise = require 'bluebird' config = require 'config' Promise.promisifyAll redis.RedisClient.prototype Promise.promisifyAll redis.Multi.prototype host = config.redisHost or 'localhost' port = config.redisPort or 6379 client = redis.createClient(port, host) client.select(config.redisDb) if co...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/redis.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/redis.coffee
1
14
jianliaoim/talk-os:talk-api2x/server/components/redis.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript redis = require 'redis' Promise = require 'bluebird' config = require 'config' Promise.promisifyAll redis.RedisClient.prototype Promise.promisifyAll redis.Multi.prototype host = config.redisHost or 'localhost' port = config.redisPort or 6379 client = redis.cre...
var Promise, client, config, host, port, redis; redis = require('redis'); Promise = require('bluebird'); config = require('config'); Promise.promisifyAll(redis.RedisClient.prototype); Promise.promisifyAll(redis.Multi.prototype); host = config.redisHost || 'localhost'; port = config.redisPort || 6379; client = r...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/components/redis.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/redis.coffee
1
14
jianliaoim/talk-os:talk-api2x/server/components/redis.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Promise, client, config, host, port, redis; redis = require('redis'); Promise = require('bluebird'); config = require('config'); Promise.promisifyAll(redis.RedisClient.prototype); Promise.promisifyAll(redis.Multi.prototype); host = config.redisHost || 'lo...
redis = require 'redis' Promise = require 'bluebird' config = require 'config' Promise.promisifyAll redis.RedisClient.prototype Promise.promisifyAll redis.Multi.prototype host = config.redisHost or 'localhost' port = config.redisPort or 6379 client = redis.createClient(port, host) client.select(config.redisDb) if co...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/redis.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/redis.coffee
1
14
jianliaoim/talk-os:talk-api2x/server/components/redis.coffee:1:completion
completion
redis = require 'redis' Promise = require 'bluebird' config = require 'config' Promise.promisifyAll redis.RedisClient.prototype Promise.promisifyAll redis.Multi.prototype
host = config.redisHost or 'localhost' port = config.redisPort or 6379 client = redis.createClient(port, host) client.select(config.redisDb) if config.redisDb module.exports = client
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/redis.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/redis.coffee
1
14
jianliaoim/talk-os:talk-api2x/server/controllers/recommend.coffee:1:raw_corpus
raw_corpus
module.exports = recommendController = app.controller 'recommend', -> # Recommend friends by emails @action 'friends', (req, res, callback) -> {_sessionUserId} = req.get() user = {} # The user self domain = null # Email domain of user totalCount = 10 # Totally count number users = [] # Fina...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/recommend.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/recommend.coffee
55
84
jianliaoim/talk-os:talk-api2x/server/controllers/recommend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = recommendController = app.controller 'recommend', -> # Recommend friends by emails @action 'friends', (req, res, callback) -> {_sessionUserId} = req.get() user = {} # The user self domain = null # Email domain of user total...
var recommendController, indexOf = [].indexOf; module.exports = recommendController = app.controller('recommend', function() { // Recommend friends by emails return this.action('friends', function(req, res, callback) { var _sessionUserId, domain, totalCount, user, users; ({_sessionUserId} = req.get()); ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/controllers/recommend.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/recommend.coffee
55
84
jianliaoim/talk-os:talk-api2x/server/controllers/recommend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var recommendController, indexOf = [].indexOf; module.exports = recommendController = app.controller('recommend', function() { // Recommend friends by emails return this.action('friends', function(req, res, callback) { var _sessionUserId, domain, totalCo...
module.exports = recommendController = app.controller 'recommend', -> # Recommend friends by emails @action 'friends', (req, res, callback) -> {_sessionUserId} = req.get() user = {} # The user self domain = null # Email domain of user totalCount = 10 # Totally count number users = [] # Fina...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/recommend.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/recommend.coffee
55
84
jianliaoim/talk-os:talk-api2x/server/controllers/recommend.coffee:1:completion
completion
module.exports = recommendController = app.controller 'recommend', -> # Recommend friends by emails @action 'friends', (req, res, callback) -> {_sessionUserId} = req.get() user = {} # The user self domain = null # Email domain of user totalCount = 10 # Totally count number users = [] # Fina...
(_user, next) -> user = _user domain = user.email?.split('@')[1] return callback(null, []) unless domain? and domain not in emailDomains UserModel.find _id: $ne: _sessionUserId emailDomain: domain isRobot: false isGuest: false .limit totalC...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/recommend.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/recommend.coffee
55
84
oozcitak/xmlbuilder-js:test/issues/196.coffee:1:raw_corpus
raw_corpus
suite 'Tests specific to issues:', -> test 'Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', -> newAttribute = (att, options, level) -> r = @_attribute att, options, level if options.user.openflag then r = "BEGINATT:" + r if options.user...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/196.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/196.coffee
1
26
oozcitak/xmlbuilder-js:test/issues/196.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Tests specific to issues:', -> test 'Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', -> newAttribute = (att, options, level) -> r = @_attribute att, options, level if options.use...
suite('Tests specific to issues:', function() { return test('Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', function() { var newAttribute, newCloseAttribute, newOpenAttribute; newAttribute = function(att, options, level) { var r; r = this...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/196.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/196.coffee
1
26
oozcitak/xmlbuilder-js:test/issues/196.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Tests specific to issues:', function() { return test('Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', function() { var newAttribute, newCloseAttribute, newOpenAttribute; newAttribute = func...
suite 'Tests specific to issues:', -> test 'Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', -> newAttribute = (att, options, level) -> r = @_attribute att, options, level if options.user.openflag then r = "BEGINATT:" + r if options.user...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/196.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/196.coffee
1
26
oozcitak/xmlbuilder-js:test/issues/196.coffee:1:completion
completion
suite 'Tests specific to issues:', -> test 'Are attributes really nodes and should therefore invoke openNode() and closeNode() callbacks?. Issue 196', -> newAttribute = (att, options, level) -> r = @_attribute att, options, level if options.user.openflag then r = "BEGINATT:" + r if options.user...
options.user.closeflag = att.name is "att1" eq( xml('root', { headless: true }) .ele('item', { 'att1': 'val1', 'att2': 'val2' }) .end(builder.stringWriter({ writer: { attribute: newAttribute, openAttribute: newOpenAttribute, closeAttribute: newCloseAttribute }, pretty: true } )) """ ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/196.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/196.coffee
1
26
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:raw_corpus
raw_corpus
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Should forward everything after -- to testem as additional ...
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Sh...
/* * Since lineman delegates to grunt and testem and will someday to others, * when a user wants to send options directly to that downstream cli, they * ought to be able to with a -- ("double-tack"), like this: * * $ lineman spec-ci -- -f config/spec.json * * Should forward everything after -- to testem as addit...
CoffeeScript
JavaScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Since lineman delegates to grunt and testem and will someday to others, * when a user wants to send options directly to that downstream cli, they * ought to be able to with a -- ("double-tack"), like this: * * $ lineman spec-ci -- -f config/spec.json * ...
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Should forward everything after -- to testem as additional ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:completion
completion
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json #
# Should forward everything after -- to testem as additional args ### _ = require("lodash") module.exports = find: (args = process.argv) -> return [] unless _.includes(args, "--") _.drop(args, _.lastIndexOf(args, "--") + 1)
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:raw_corpus
raw_corpus
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Should forward everything after -- to testem as additional ...
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
359de83946173a230f44e34403046157ee1f7074
1,168
https://github.com/linemanjs/lineman/blob/359de83946173a230f44e34403046157ee1f7074/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Sh...
/* * Since lineman delegates to grunt and testem and will someday to others, * when a user wants to send options directly to that downstream cli, they * ought to be able to with a -- ("double-tack"), like this: * * $ lineman spec-ci -- -f config/spec.json * * Should forward everything after -- to testem as addit...
CoffeeScript
JavaScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
359de83946173a230f44e34403046157ee1f7074
1,168
https://github.com/linemanjs/lineman/blob/359de83946173a230f44e34403046157ee1f7074/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Since lineman delegates to grunt and testem and will someday to others, * when a user wants to send options directly to that downstream cli, they * ought to be able to with a -- ("double-tack"), like this: * * $ lineman spec-ci -- -f config/spec.json * ...
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json # # Should forward everything after -- to testem as additional ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
359de83946173a230f44e34403046157ee1f7074
1,168
https://github.com/linemanjs/lineman/blob/359de83946173a230f44e34403046157ee1f7074/lib/finds-forwarded-args.coffee
1
15
linemanjs/lineman:lib/finds-forwarded-args.coffee:1:completion
completion
### # Since lineman delegates to grunt and testem and will someday to others, # when a user wants to send options directly to that downstream cli, they # ought to be able to with a -- ("double-tack"), like this: # # $ lineman spec-ci -- -f config/spec.json #
# Should forward everything after -- to testem as additional args ### _ = require("lodash") module.exports = find: (args = process.argv) -> return [] unless _(args).include("--") _(args).rest(_(args).lastIndexOf("--") + 1)
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/finds-forwarded-args.coffee
MIT
359de83946173a230f44e34403046157ee1f7074
1,168
https://github.com/linemanjs/lineman/blob/359de83946173a230f44e34403046157ee1f7074/lib/finds-forwarded-args.coffee
1
15
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:raw_corpus
raw_corpus
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN...
var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, mod, pow, random, rgba, round, sin, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }; // =======================================================...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, mod, pow, random, rgba, round, sin, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }; // ...
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:completion
completion
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
exp = Math.exp floor = Math.floor log = Math.log max = Math.max min = Math.min pow = Math.pow round = Math.round sin = Math.sin sqrt = Math.sqrt tan = Math.tan mod = (a, b) -> ((a % b) + b) % b random = (seeds...) -> if seeds.length == 0 throw "`random` needs at least one seed argument" seed = seeds.map(JSON....
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:raw_corpus
raw_corpus
return "rgba(#{r}, #{g}, #{b}, #{a})" # Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = requir...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
51
75
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript return "rgba(#{r}, #{g}, #{b}, #{a})" # Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npm...
var _, d3, get, htmlToImageURL, jspmRequire, npmRequire, spread, timeInSecs; return `rgba(${r}, ${g}, ${b}, ${a})`; // Saved in other files: spread = require("./evaluateSpread"); htmlToImageURL = require("./evaluateHtmlToImageURL"); jspmRequire = (require("./evaluateJspmRequire")).jspmRequire; npmRequire = (requir...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
51
75
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, d3, get, htmlToImageURL, jspmRequire, npmRequire, spread, timeInSecs; return `rgba(${r}, ${g}, ${b}, ${a})`; // Saved in other files: spread = require("./evaluateSpread"); htmlToImageURL = require("./evaluateHtmlToImageURL"); jspmRequire = (require("./ev...
return "rgba(#{r}, #{g}, #{b}, #{a})" # Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = requir...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
51
75
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:completion
completion
return "rgba(#{r}, #{g}, #{b}, #{a})" # Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = requir...
# ============================================================================= # Library imports # ============================================================================= _ = require "underscore" _.mixin sum: (list) -> _.reduce(list, ((memo, num) -> memo + num), 0) avg: (list) -> _.sum(list) / _.size(list) ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluate.coffee
51
75
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:raw_corpus
raw_corpus
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN...
var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, pow, random, rgba, round, sin, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }; // ============================================================...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, pow, random, rgba, round, sin, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }; // =====...
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:completion
completion
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
cos = Math.cos exp = Math.exp floor = Math.floor log = Math.log max = Math.max min = Math.min pow = Math.pow round = Math.round sin = Math.sin sqrt = Math.sqrt tan = Math.tan random = (seeds...) -> if seeds.length == 0 throw "`random` needs at least one seed argument" seed = seeds.map(JSON.stringify).join("") ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
1
50
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:raw_corpus
raw_corpus
# Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = require "./evaluateTimeInSecs" # ==========...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
51
73
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" ti...
// Saved in other files: var _, d3, get, htmlToImageURL, jspmRequire, npmRequire, spread, timeInSecs; spread = require("./evaluateSpread"); htmlToImageURL = require("./evaluateHtmlToImageURL"); jspmRequire = (require("./evaluateJspmRequire")).jspmRequire; npmRequire = (require("./evaluateJspmRequire")).npmRequire; ...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
51
73
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Saved in other files: var _, d3, get, htmlToImageURL, jspmRequire, npmRequire, spread, timeInSecs; spread = require("./evaluateSpread"); htmlToImageURL = require("./evaluateHtmlToImageURL"); jspmRequire = (require("./evaluateJspmRequire")).jspmRequire; npmRe...
# Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = require "./evaluateTimeInSecs" # ==========...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
51
73
cdglabs/apparatus:src/Evaluator/evaluate.coffee:2:completion
completion
# Saved in other files: spread = require "./evaluateSpread" htmlToImageURL = require "./evaluateHtmlToImageURL" jspmRequire = (require "./evaluateJspmRequire").jspmRequire npmRequire = (require "./evaluateJspmRequire").npmRequire get = require "./evaluateGet" timeInSecs = require "./evaluateTimeInSecs"
# ============================================================================= # Library imports # ============================================================================= _ = require "underscore" _.mixin sum: (list) -> _.reduce(list, ((memo, num) -> memo + num), 0) avg: (list) -> _.sum(list) / _.size(list) ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
77e707eef993fad5bb3f6241b1c8fd631f0aebd7
1,052
https://github.com/cdglabs/apparatus/blob/77e707eef993fad5bb3f6241b1c8fd631f0aebd7/src/Evaluator/evaluate.coffee
51
73
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:raw_corpus
raw_corpus
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
af0ece70767f267268fc9618a0b3fd0cbeb4de75
1,052
https://github.com/cdglabs/apparatus/blob/af0ece70767f267268fc9618a0b3fd0cbeb4de75/src/Evaluator/evaluate.coffee
1
46
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN...
var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, _, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, pow, random, rgba, round, sin, spread, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }; // =================================================...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
af0ece70767f267268fc9618a0b3fd0cbeb4de75
1,052
https://github.com/cdglabs/apparatus/blob/af0ece70767f267268fc9618a0b3fd0cbeb4de75/src/Evaluator/evaluate.coffee
1
46
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var E, LN10, LN2, LOG10E, LOG2E, PI, SQRT1_2, SQRT2, TAU, _, abs, acos, asin, atan, atan2, ceil, cos, evaluate, exp, floor, log, max, min, pow, random, rgba, round, sin, spread, sqrt, tan; module.exports = evaluate = function(jsString) { return eval(jsString); }...
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
af0ece70767f267268fc9618a0b3fd0cbeb4de75
1,052
https://github.com/cdglabs/apparatus/blob/af0ece70767f267268fc9618a0b3fd0cbeb4de75/src/Evaluator/evaluate.coffee
1
46
cdglabs/apparatus:src/Evaluator/evaluate.coffee:1:completion
completion
module.exports = evaluate = (jsString) -> return eval(jsString) # ============================================================================= # Built-in Functions # ============================================================================= E = Math.E LN2 = Math.LN2 LN10 = Math.LN10 LOG2E = Math.LOG2E LOG10E =...
ceil = Math.ceil cos = Math.cos exp = Math.exp floor = Math.floor log = Math.log max = Math.max min = Math.min pow = Math.pow random = Math.random round = Math.round sin = Math.sin sqrt = Math.sqrt tan = Math.tan rgba = (r, g, b, a) -> r = Math.round(r * 255) g = Math.round(g * 255) b = Math.round(b * 255) ret...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluate.coffee
MIT
af0ece70767f267268fc9618a0b3fd0cbeb4de75
1,052
https://github.com/cdglabs/apparatus/blob/af0ece70767f267268fc9618a0b3fd0cbeb4de75/src/Evaluator/evaluate.coffee
1
46
jianliaoim/talk-os:talk-web/test/pages/message-rich/fixtures.coffee:2:raw_corpus
raw_corpus
thumbnailUrl: 'asdf' imageWidth: 200 imageHeight: 200 , ## quote ## category: 'quote' data: redirectUrl: 'http://jianliao.com' text: ''' Lorem   Ipsum   is   simply   dummy   text   of   the   printing   and   typesetting   industry.\n ...
CoffeeScript
jianliaoim/talk-os
talk-web/test/pages/message-rich/fixtures.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/pages/message-rich/fixtures.coffee
52
101
jianliaoim/talk-os:talk-web/test/pages/message-rich/fixtures.coffee:2:completion
completion
thumbnailUrl: 'asdf' imageWidth: 200 imageHeight: 200 , ## quote ## category: 'quote' data: redirectUrl: 'http://jianliao.com' text: ''' Lorem   Ipsum   is   simply   dummy   text   of   the   printing   and   typesetting   industry.\n ...
<br><br><p>newline2</p> <br >newline3<br />newline4 ''' title: 'A super long title that does not have any meaning at all.' , category: 'quote' data: text: ''' <table> <thead> <tr> <th>Metrics&nbsp;&nbsp;</th> <th>3 week ago&nbsp;&nbsp;</th> ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/pages/message-rich/fixtures.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/pages/message-rich/fixtures.coffee
52
101
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') url = encodeURIComponent($(el).parent().data("url") || '')...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
9c9534c0c568104396c9ac87c79f637a3b1ce2fe
581
https://github.com/huacnlee/social-share-button/blob/9c9534c0c568104396c9ac87c79f637a3b1ce2fe/lib/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') url = encodeURIComponent($(el).parent().data("url") || '')...
when "baidu" SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=") when "kaixin001" SocialShareButton.openUrl("http://www.kaixin001.com/rest/records.php?url=#{url}&content=#{title}&style=11&pic=#{img}") when "renren" SocialShareButton.open...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
9c9534c0c568104396c9ac87c79f637a3b1ce2fe
581
https://github.com/huacnlee/social-share-button/blob/9c9534c0c568104396c9ac87c79f637a3b1ce2fe/lib/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
title = get_tumblr_extra('caption') || title source = get_tumblr_extra('source') || img "caption=#{title}&source=#{source}" when 'quote' quote = get_tumblr_extra('quote') || title source = get_tumblr_extra('source') || '' "quote=#{quote}&...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
9c9534c0c568104396c9ac87c79f637a3b1ce2fe
581
https://github.com/huacnlee/social-share-button/blob/9c9534c0c568104396c9ac87c79f637a3b1ce2fe/lib/assets/javascripts/social-share-button.coffee
51
67
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:2:completion
completion
title = get_tumblr_extra('caption') || title source = get_tumblr_extra('source') || img "caption=#{title}&source=#{source}" when 'quote' quote = get_tumblr_extra('quote') || title source = get_tumblr_extra('source') || '' "quote=#{quote}&...
title = get_tumblr_extra('title') || title url = get_tumblr_extra('url') || url "name=#{title}&url=#{url}" "/#{path}?#{params}" SocialShareButton.openUrl("http://www.tumblr.com/share#{tumblr_params()}") false
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
9c9534c0c568104396c9ac87c79f637a3b1ce2fe
581
https://github.com/huacnlee/social-share-button/blob/9c9534c0c568104396c9ac87c79f637a3b1ce2fe/lib/assets/javascripts/social-share-button.coffee
51
67
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
ed42d70238d4575edfdea0c9776c48ef2bdc3aca
581
https://github.com/huacnlee/social-share-button/blob/ed42d70238d4575edfdea0c9776c48ef2bdc3aca/lib/assets/javascripts/social-share-button.coffee
1
38
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
ed42d70238d4575edfdea0c9776c48ef2bdc3aca
581
https://github.com/huacnlee/social-share-button/blob/ed42d70238d4575edfdea0c9776c48ef2bdc3aca/lib/assets/javascripts/social-share-button.coffee
1
38
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
ed42d70238d4575edfdea0c9776c48ef2bdc3aca
581
https://github.com/huacnlee/social-share-button/blob/ed42d70238d4575edfdea0c9776c48ef2bdc3aca/lib/assets/javascripts/social-share-button.coffee
1
38
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}") when "tqq" SocialShareButton.openUrl("http://sha...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
ed42d70238d4575edfdea0c9776c48ef2bdc3aca
581
https://github.com/huacnlee/social-share-button/blob/ed42d70238d4575edfdea0c9776c48ef2bdc3aca/lib/assets/javascripts/social-share-button.coffee
1
38
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
d39ce8e56067d0288e0f46c67c1dd87caf74e694
581
https://github.com/huacnlee/social-share-button/blob/d39ce8e56067d0288e0f46c67c1dd87caf74e694/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
d39ce8e56067d0288e0f46c67c1dd87caf74e694
581
https://github.com/huacnlee/social-share-button/blob/d39ce8e56067d0288e0f46c67c1dd87caf74e694/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
d39ce8e56067d0288e0f46c67c1dd87caf74e694
581
https://github.com/huacnlee/social-share-button/blob/d39ce8e56067d0288e0f46c67c1dd87caf74e694/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if url.length...
SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&image=#{img}") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_on...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
d39ce8e56067d0288e0f46c67c1dd87caf74e694
581
https://github.com/huacnlee/social-share-button/blob/d39ce8e56067d0288e0f46c67c1dd87caf74e694/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if !url ...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
cce4dcc2821a31868e5f497d2e84c58beb9f5f9b
581
https://github.com/huacnlee/social-share-button/blob/cce4dcc2821a31868e5f497d2e84c58beb9f5f9b/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
cce4dcc2821a31868e5f497d2e84c58beb9f5f9b
581
https://github.com/huacnlee/social-share-button/blob/cce4dcc2821a31868e5f497d2e84c58beb9f5f9b/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if !url ...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
cce4dcc2821a31868e5f497d2e84c58beb9f5f9b
581
https://github.com/huacnlee/social-share-button/blob/cce4dcc2821a31868e5f497d2e84c58beb9f5f9b/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent($(el).parent().data("url")) if !url ...
SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&image=#{img}") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_on...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
cce4dcc2821a31868e5f497d2e84c58beb9f5f9b
581
https://github.com/huacnlee/social-share-button/blob/cce4dcc2821a31868e5f497d2e84c58beb9f5f9b/lib/assets/javascripts/social-share-button.coffee
1
36
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
3d3ea15d2138f7ca049e822f87e0c1ae907c151f
581
https://github.com/huacnlee/social-share-button/blob/3d3ea15d2138f7ca049e822f87e0c1ae907c151f/lib/assets/javascripts/social-share-button.coffee
1
34
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
3d3ea15d2138f7ca049e822f87e0c1ae907c151f
581
https://github.com/huacnlee/social-share-button/blob/3d3ea15d2138f7ca049e822f87e0c1ae907c151f/lib/assets/javascripts/social-share-button.coffee
1
34
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
3d3ea15d2138f7ca049e822f87e0c1ae907c151f
581
https://github.com/huacnlee/social-share-button/blob/3d3ea15d2138f7ca049e822f87e0c1ae907c151f/lib/assets/javascripts/social-share-button.coffee
1
34
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}") when "tqq" SocialShareButton.openUrl("http://sha...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
3d3ea15d2138f7ca049e822f87e0c1ae907c151f
581
https://github.com/huacnlee/social-share-button/blob/3d3ea15d2138f7ca049e822f87e0c1ae907c151f/lib/assets/javascripts/social-share-button.coffee
1
34
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a0ebd03669b59ba9466e75c58fdd6587ce0da086
581
https://github.com/huacnlee/social-share-button/blob/a0ebd03669b59ba9466e75c58fdd6587ce0da086/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a0ebd03669b59ba9466e75c58fdd6587ce0da086
581
https://github.com/huacnlee/social-share-button/blob/a0ebd03669b59ba9466e75c58fdd6587ce0da086/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a0ebd03669b59ba9466e75c58fdd6587ce0da086
581
https://github.com/huacnlee/social-share-button/blob/a0ebd03669b59ba9466e75c58fdd6587ce0da086/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&image=#{img}") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_on...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a0ebd03669b59ba9466e75c58fdd6587ce0da086
581
https://github.com/huacnlee/social-share-button/blob/a0ebd03669b59ba9466e75c58fdd6587ce0da086/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
bfc7398a30cbab8e847a68f4630a96e701650d76
581
https://github.com/huacnlee/social-share-button/blob/bfc7398a30cbab8e847a68f4630a96e701650d76/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
bfc7398a30cbab8e847a68f4630a96e701650d76
581
https://github.com/huacnlee/social-share-button/blob/bfc7398a30cbab8e847a68f4630a96e701650d76/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
bfc7398a30cbab8e847a68f4630a96e701650d76
581
https://github.com/huacnlee/social-share-button/blob/bfc7398a30cbab8e847a68f4630a96e701650d76/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=#{title}&v=1&r=1") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?t=#{title}&u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
bfc7398a30cbab8e847a68f4630a96e701650d76
581
https://github.com/huacnlee/social-share-button/blob/bfc7398a30cbab8e847a68f4630a96e701650d76/lib/assets/javascripts/social-share-button.coffee
1
32
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
423677a812214836254fd3b1faef18e6f81687f9
581
https://github.com/huacnlee/social-share-button/blob/423677a812214836254fd3b1faef18e6f81687f9/lib/assets/javascripts/social-share-button.coffee
1
24
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
423677a812214836254fd3b1faef18e6f81687f9
581
https://github.com/huacnlee/social-share-button/blob/423677a812214836254fd3b1faef18e6f81687f9/lib/assets/javascripts/social-share-button.coffee
1
24
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
423677a812214836254fd3b1faef18e6f81687f9
581
https://github.com/huacnlee/social-share-button/blob/423677a812214836254fd3b1faef18e6f81687f9/lib/assets/javascripts/social-share-button.coffee
1
24
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&pic=#{img}&title=#{title}&content=utf-8") when "twitter" SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url}") when "douban" SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
423677a812214836254fd3b1faef18e6f81687f9
581
https://github.com/huacnlee/social-share-button/blob/423677a812214836254fd3b1faef18e6f81687f9/lib/assets/javascripts/social-share-button.coffee
1
24
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
c5c75af9a2c5250c9d14a5ae31520a71ceded633
581
https://github.com/huacnlee/social-share-button/blob/c5c75af9a2c5250c9d14a5ae31520a71ceded633/lib/assets/javascripts/social-share-button.coffee
1
22
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeU...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encodeURIComponent($(el).parent().data("img")); url = enc...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
c5c75af9a2c5250c9d14a5ae31520a71ceded633
581
https://github.com/huacnlee/social-share-button/blob/c5c75af9a2c5250c9d14a5ae31520a71ceded633/lib/assets/javascripts/social-share-button.coffee
1
22
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var img, site, title, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title')); img = encode...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site when "we...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
c5c75af9a2c5250c9d14a5ae31520a71ceded633
581
https://github.com/huacnlee/social-share-button/blob/c5c75af9a2c5250c9d14a5ae31520a71ceded633/lib/assets/javascripts/social-share-button.coffee
1
22
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title')) img = encodeURIComponent($(el).parent().data("img")) url = encodeURIComponent(location.href) switch site
when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&pic=#{img}&title=#{title}&content=utf-8") when "twitter" SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url}") when "douban" SocialShareButton.openUrl("http://www.douban....
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
c5c75af9a2c5250c9d14a5ae31520a71ceded633
581
https://github.com/huacnlee/social-share-button/blob/c5c75af9a2c5250c9d14a5ae31520a71ceded633/lib/assets/javascripts/social-share-button.coffee
1
22
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{tit...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a938db433920697d75e0d10b7dbf08803a99b4a6
581
https://github.com/huacnlee/social-share-button/blob/a938db433920697d75e0d10b7dbf08803a99b4a6/lib/assets/javascripts/social-share-button.coffee
1
20
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(site, title) { var url; url = encodeURIComponent(location.href); title = encodeURIComponent(title); switch (site) { case "weibo": SocialShareButton.openUrl(`http://v.t.sin...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a938db433920697d75e0d10b7dbf08803a99b4a6
581
https://github.com/huacnlee/social-share-button/blob/a938db433920697d75e0d10b7dbf08803a99b4a6/lib/assets/javascripts/social-share-button.coffee
1
20
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(site, title) { var url; url = encodeURIComponent(location.href); title = encodeURIComponent(title); switch (site) { case "we...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{tit...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a938db433920697d75e0d10b7dbf08803a99b4a6
581
https://github.com/huacnlee/social-share-button/blob/a938db433920697d75e0d10b7dbf08803a99b4a6/lib/assets/javascripts/social-share-button.coffee
1
20
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo"
SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{title}&content=utf-8") when "twitter" SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url}") when "douban" SocialShareButton.openUrl("http://www.douban.com/recommend/?url=#{url}&title=...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
a938db433920697d75e0d10b7dbf08803a99b4a6
581
https://github.com/huacnlee/social-share-button/blob/a938db433920697d75e0d10b7dbf08803a99b4a6/lib/assets/javascripts/social-share-button.coffee
1
20
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{tit...
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
18666ba01bfae83d1fce9322ef253704339fe2b6
581
https://github.com/huacnlee/social-share-button/blob/18666ba01bfae83d1fce9322ef253704339fe2b6/lib/assets/javascripts/social-share-button.coffee
1
18
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(site, title) { var url; url = encodeURIComponent(location.href); title = encodeURIComponent(title); switch (site) { case "weibo": SocialShareButton.openUrl(`http://v.t.sin...
CoffeeScript
JavaScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
18666ba01bfae83d1fce9322ef253704339fe2b6
581
https://github.com/huacnlee/social-share-button/blob/18666ba01bfae83d1fce9322ef253704339fe2b6/lib/assets/javascripts/social-share-button.coffee
1
18
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(site, title) { var url; url = encodeURIComponent(location.href); title = encodeURIComponent(title); switch (site) { case "we...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{tit...
JavaScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
18666ba01bfae83d1fce9322ef253704339fe2b6
581
https://github.com/huacnlee/social-share-button/blob/18666ba01bfae83d1fce9322ef253704339fe2b6/lib/assets/javascripts/social-share-button.coffee
1
18
huacnlee/social-share-button:lib/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (site, title) -> url = encodeURIComponent(location.href) title = encodeURIComponent(title) switch site
when "weibo" SocialShareButton.openUrl("http://v.t.sina.com.cn/share/share.php?url=#{url}&title=#{title}&source=ruby-china.org&content=utf-8") when "twitter" SocialShareButton.openUrl("https://twitter.com/home?status=#{title}: #{url} @ruby_china") when "douban" SocialShareButton.open...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
lib/assets/javascripts/social-share-button.coffee
MIT
18666ba01bfae83d1fce9322ef253704339fe2b6
581
https://github.com/huacnlee/social-share-button/blob/18666ba01bfae83d1fce9322ef253704339fe2b6/lib/assets/javascripts/social-share-button.coffee
1
18
dropbox/zxcvbn:zxcvbn.coffee:1:raw_corpus
raw_corpus
time = -> (new Date()).getTime() zxcvbn = (password) -> start = time() matches = omnimatch password result = minimum_entropy_match_sequence password, matches result.calc_time = time() - start result window?.zxcvbn = zxcvbn
CoffeeScript
dropbox/zxcvbn
zxcvbn.coffee
MIT
ffcf5aba63a686e63313cc55c5128b0e0974584f
15,961
https://github.com/dropbox/zxcvbn/blob/ffcf5aba63a686e63313cc55c5128b0e0974584f/zxcvbn.coffee
1
10
dropbox/zxcvbn:zxcvbn.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript time = -> (new Date()).getTime() zxcvbn = (password) -> start = time() matches = omnimatch password result = minimum_entropy_match_sequence password, matches result.calc_time = time() - start result window?.zxcvbn = zxcvbn ```
var time, zxcvbn; time = function() { return (new Date()).getTime(); }; zxcvbn = function(password) { var matches, result, start; start = time(); matches = omnimatch(password); result = minimum_entropy_match_sequence(password, matches); result.calc_time = time() - start; return result; }; if (typeof wi...
CoffeeScript
JavaScript
dropbox/zxcvbn
zxcvbn.coffee
MIT
ffcf5aba63a686e63313cc55c5128b0e0974584f
15,961
https://github.com/dropbox/zxcvbn/blob/ffcf5aba63a686e63313cc55c5128b0e0974584f/zxcvbn.coffee
1
10