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
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:1:raw_corpus
raw_corpus
Immutable = require 'immutable' describe 'util: orders', -> beforeEach -> @orders = require 'util/orders' describe 'function: byRoleThenPinyin', -> it 'should sort by role', -> contact1 = Immutable.Map {_id: '1', role: 'owner'} contact2 = Immutable.Map {_id: '2', role: 'admin'} contact3...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
1
50
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Immutable = require 'immutable' describe 'util: orders', -> beforeEach -> @orders = require 'util/orders' describe 'function: byRoleThenPinyin', -> it 'should sort by role', -> contact1 = Immutable.Map {_id: '1', role: 'owner'} contact2...
var Immutable; Immutable = require('immutable'); describe('util: orders', function() { beforeEach(function() { return this.orders = require('util/orders'); }); describe('function: byRoleThenPinyin', function() { return it('should sort by role', function() { var contact1, contact2, contact3; ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
1
50
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable; Immutable = require('immutable'); describe('util: orders', function() { beforeEach(function() { return this.orders = require('util/orders'); }); describe('function: byRoleThenPinyin', function() { return it('should sort by role', func...
Immutable = require 'immutable' describe 'util: orders', -> beforeEach -> @orders = require 'util/orders' describe 'function: byRoleThenPinyin', -> it 'should sort by role', -> contact1 = Immutable.Map {_id: '1', role: 'owner'} contact2 = Immutable.Map {_id: '2', role: 'admin'} contact3...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
1
50
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:1:completion
completion
Immutable = require 'immutable' describe 'util: orders', -> beforeEach -> @orders = require 'util/orders' describe 'function: byRoleThenPinyin', -> it 'should sort by role', -> contact1 = Immutable.Map {_id: '1', role: 'owner'} contact2 = Immutable.Map {_id: '2', role: 'admin'} contact3...
expect(@orders.byRoleThenPinyin(contact3, contact3)).toBe 0 it 'should sort by role then by pinyin', -> contact1 = Immutable.Map {_id: '1', role: 'owner', pinyin: 'a'} contact2 = Immutable.Map {_id: '2', role: 'owner', pinyin: 'b'} expect(@orders.byRoleThenPinyin(contact1, contact2)).toBe -1 ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
1
50
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:2:raw_corpus
raw_corpus
byMember = @orders.byCreatorIdThenPinyin(creatorId) member1 = Immutable.Map {_id: '1', pinyin: 'a'} member2 = Immutable.Map {_id: '2', pinyin: 'z'} expect(byMember(member1, member2)).toBe -1 expect(byMember(member2, member1)).toBe 1 expect(byMember(member1, member1)).toBe 0 expect(...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
51
69
jianliaoim/talk-os:talk-web/test/spec/util/orders.spec.coffee:2:completion
completion
byMember = @orders.byCreatorIdThenPinyin(creatorId) member1 = Immutable.Map {_id: '1', pinyin: 'a'} member2 = Immutable.Map {_id: '2', pinyin: 'z'} expect(byMember(member1, member2)).toBe -1 expect(byMember(member2, member1)).toBe 1 expect(byMember(member1, member1)).toBe 0 expect(...
describe 'function: byPinyin', -> it 'should compare pinyin', -> member1 = Immutable.Map {_id: '1', pinyin: 'a'} member2 = Immutable.Map {_id: '2', pinyin: 'z'} expect(@orders.byPinyin(member1, member2)).toBe -1 expect(@orders.byPinyin(member2, member1)).toBe 1 expect(@orders.byPinyin...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/orders.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/orders.spec.coffee
51
69
octoblu/meshblu:lib/getDeviceIfAuthorized.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' module.exports = (fromDevice, query, callback=_.noop, dependencies={})-> securityImpl = dependencies.securityImpl ? require('./getSecurityImpl') getDevice = dependencies.getDevice ? require('./getDevice') getDevice query.uuid, (error, toDevice) => securityImpl.canDiscover fromDevice, to...
CoffeeScript
octoblu/meshblu
lib/getDeviceIfAuthorized.coffee
MIT
3c3b617d35de4ce729923fcc3e6028b278bf6e86
815
https://github.com/octoblu/meshblu/blob/3c3b617d35de4ce729923fcc3e6028b278bf6e86/lib/getDeviceIfAuthorized.coffee
1
11
octoblu/meshblu:lib/getDeviceIfAuthorized.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' module.exports = (fromDevice, query, callback=_.noop, dependencies={})-> securityImpl = dependencies.securityImpl ? require('./getSecurityImpl') getDevice = dependencies.getDevice ? require('./getDevice') getDevice query.uuid, (error,...
var _; _ = require('lodash'); module.exports = function(fromDevice, query, callback = _.noop, dependencies = {}) { var getDevice, ref, ref1, securityImpl; securityImpl = (ref = dependencies.securityImpl) != null ? ref : require('./getSecurityImpl'); getDevice = (ref1 = dependencies.getDevice) != null ? ref1 : r...
CoffeeScript
JavaScript
octoblu/meshblu
lib/getDeviceIfAuthorized.coffee
MIT
3c3b617d35de4ce729923fcc3e6028b278bf6e86
815
https://github.com/octoblu/meshblu/blob/3c3b617d35de4ce729923fcc3e6028b278bf6e86/lib/getDeviceIfAuthorized.coffee
1
11
octoblu/meshblu:lib/getDeviceIfAuthorized.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require('lodash'); module.exports = function(fromDevice, query, callback = _.noop, dependencies = {}) { var getDevice, ref, ref1, securityImpl; securityImpl = (ref = dependencies.securityImpl) != null ? ref : require('./getSecurityImpl'); getDevi...
_ = require 'lodash' module.exports = (fromDevice, query, callback=_.noop, dependencies={})-> securityImpl = dependencies.securityImpl ? require('./getSecurityImpl') getDevice = dependencies.getDevice ? require('./getDevice') getDevice query.uuid, (error, toDevice) => securityImpl.canDiscover fromDevice, to...
JavaScript
CoffeeScript
octoblu/meshblu
lib/getDeviceIfAuthorized.coffee
MIT
3c3b617d35de4ce729923fcc3e6028b278bf6e86
815
https://github.com/octoblu/meshblu/blob/3c3b617d35de4ce729923fcc3e6028b278bf6e86/lib/getDeviceIfAuthorized.coffee
1
11
octoblu/meshblu:lib/getDeviceIfAuthorized.coffee:1:completion
completion
_ = require 'lodash' module.exports = (fromDevice, query, callback=_.noop, dependencies={})-> securityImpl = dependencies.securityImpl ? require('./getSecurityImpl') getDevice = dependencies.getDevice ? require('./getDevice')
getDevice query.uuid, (error, toDevice) => securityImpl.canDiscover fromDevice, toDevice, query, (error, permission) => return callback error if error? return callback new Error 'unauthorized' unless permission callback null, toDevice
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/getDeviceIfAuthorized.coffee
MIT
3c3b617d35de4ce729923fcc3e6028b278bf6e86
815
https://github.com/octoblu/meshblu/blob/3c3b617d35de4ce729923fcc3e6028b278bf6e86/lib/getDeviceIfAuthorized.coffee
1
11
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: { Haskell: false } beautify: (text, la...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false ...
/* Requires https://github.com/commercialhaskell/hindent */ "use strict"; var Beautifier, Hindent; Beautifier = require('./beautifier'); module.exports = Hindent = (function() { class Hindent extends Beautifier { beautify(text, language, options) { var tempFile; return this.run("hindent", [tempFile ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/commercialhaskell/hindent */ "use strict"; var Beautifier, Hindent; Beautifier = require('./beautifier'); module.exports = Hindent = (function() { class Hindent extends Beautifier { beautify(text, language, options) { va...
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: { Haskell: false } beautify: (text, la...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:completion
completion
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: {
Haskell: false } beautify: (text, language, options) -> @run("hindent", [ tempFile = @tempFile("temp", text) ], { help: { link: "https://github.com/commercialhaskell/hindent" } }) .then(=> @readFile(tempFile) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: { Haskell: true } beautify: (text, lan...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
0044fab6255ea90888df9c42b57a3b2b6fdab2ed
1,503
https://github.com/Glavin001/atom-beautify/blob/0044fab6255ea90888df9c42b57a3b2b6fdab2ed/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false ...
/* Requires https://github.com/commercialhaskell/hindent */ "use strict"; var Beautifier, Hindent; Beautifier = require('./beautifier'); module.exports = Hindent = (function() { class Hindent extends Beautifier { beautify(text, language, options) { var tempFile; return this.run("hindent", [tempFile ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
0044fab6255ea90888df9c42b57a3b2b6fdab2ed
1,503
https://github.com/Glavin001/atom-beautify/blob/0044fab6255ea90888df9c42b57a3b2b6fdab2ed/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/commercialhaskell/hindent */ "use strict"; var Beautifier, Hindent; Beautifier = require('./beautifier'); module.exports = Hindent = (function() { class Hindent extends Beautifier { beautify(text, language, options) { va...
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: { Haskell: true } beautify: (text, lan...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
0044fab6255ea90888df9c42b57a3b2b6fdab2ed
1,503
https://github.com/Glavin001/atom-beautify/blob/0044fab6255ea90888df9c42b57a3b2b6fdab2ed/src/beautifiers/hindent.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/hindent.coffee:1:completion
completion
### Requires https://github.com/commercialhaskell/hindent ### "use strict" Beautifier = require('./beautifier') module.exports = class Hindent extends Beautifier name: "hindent" link: "https://github.com/commercialhaskell/hindent" isPreInstalled: false options: {
Haskell: true } beautify: (text, language, options) -> @run("hindent", [ tempFile = @tempFile("temp", text) ], { help: { link: "https://github.com/commercialhaskell/hindent" } }) .then(=> @readFile(tempFile) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/hindent.coffee
MIT
0044fab6255ea90888df9c42b57a3b2b6fdab2ed
1,503
https://github.com/Glavin001/atom-beautify/blob/0044fab6255ea90888df9c42b57a3b2b6fdab2ed/src/beautifiers/hindent.coffee
1
27
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
if url.length == 0 url = encodeURIComponent(location.href) switch site when "email" location.href = "mailto:?subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "linkedin" SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/sha...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "linkedin" SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/sha...
title = get_tumblr_extra('title') || title "title=#{title}" when 'photo' title = get_tumblr_extra('caption') || title source = get_tumblr_extra('source') || img "caption=#{title}&source=#{source}" when 'quote' quote = get_tumb...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:raw_corpus
raw_corpus
SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}%0A#{url}" window.open(whatsapp_app_url, '_top') when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
101
107
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:completion
completion
SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}%0A#{url}"
window.open(whatsapp_app_url, '_top') when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}%0A#{url}") false
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0a7949f7f6883c81747a43d39f78122dd6b80dd2
581
https://github.com/huacnlee/social-share-button/blob/0a7949f7f6883c81747a43d39f78122dd6b80dd2/app/assets/javascripts/social-share-button.coffee
101
107
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8d301e7251abfd1bcf59745d6f195953de29b60b
581
https://github.com/huacnlee/social-share-button/blob/8d301e7251abfd1bcf59745d6f195953de29b60b/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8d301e7251abfd1bcf59745d6f195953de29b60b
581
https://github.com/huacnlee/social-share-button/blob/8d301e7251abfd1bcf59745d6f195953de29b60b/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8d301e7251abfd1bcf59745d6f195953de29b60b
581
https://github.com/huacnlee/social-share-button/blob/8d301e7251abfd1bcf59745d6f195953de29b60b/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
if url.length == 0 url = encodeURIComponent(location.href) switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appke...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8d301e7251abfd1bcf59745d6f195953de29b60b
581
https://github.com/huacnlee/social-share-button/blob/8d301e7251abfd1bcf59745d6f195953de29b60b/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
if url.length == 0 url = encodeURIComponent(location.href) switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appke...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}") when "linkedin" SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" So...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}") when "linkedin" SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" So...
params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" when 'photo' title = get_tumblr_extra('caption') || title source = get_tumblr_extra('source') || img "caption=#{title}&source=#{sourc...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:raw_corpus
raw_corpus
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500) when "telegram" SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}%0A#{url}" window...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
101
109
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:completion
completion
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500) when "telegram" SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app"
whatsapp_app_url = "whatsapp://send?text=#{title}%0A#{url}" window.open(whatsapp_app_url, '_top') when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}%0A#{url}") false
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
73c2684d68bf4eaa686210e1dac40945c0cfaa1e
581
https://github.com/huacnlee/social-share-button/blob/73c2684d68bf4eaa686210e1dac40945c0cfaa1e/app/assets/javascripts/social-share-button.coffee
101
109
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a503e77cf035b7a3808dd29f266e46c09712fc9e
581
https://github.com/huacnlee/social-share-button/blob/a503e77cf035b7a3808dd29f266e46c09712fc9e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a503e77cf035b7a3808dd29f266e46c09712fc9e
581
https://github.com/huacnlee/social-share-button/blob/a503e77cf035b7a3808dd29f266e46c09712fc9e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a503e77cf035b7a3808dd29f266e46c09712fc9e
581
https://github.com/huacnlee/social-share-button/blob/a503e77cf035b7a3808dd29f266e46c09712fc9e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
if url.length == 0 url = encodeURIComponent(location.href) switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appke...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a503e77cf035b7a3808dd29f266e46c09712fc9e
581
https://github.com/huacnlee/social-share-button/blob/a503e77cf035b7a3808dd29f266e46c09712fc9e/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:raw_corpus
raw_corpus
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500) when "telegram" SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}&url=#{url}" wind...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8bbb044eb1aa1113432daa7ac4584782888fb2c3
581
https://github.com/huacnlee/social-share-button/blob/8bbb044eb1aa1113432daa7ac4584782888fb2c3/app/assets/javascripts/social-share-button.coffee
101
109
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:completion
completion
SocialShareButton.openUrl("http://news.ycombinator.com/submitlink?u=#{url}&t=#{title}", 770, 500) when "telegram" SocialShareButton.openUrl("https://telegram.me/share/url?text=#{title}&url=#{url}") when "whatsapp_app"
whatsapp_app_url = "whatsapp://send?text=#{title}&url=#{url}" window.open(whatsapp_app_url, '_top') when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}&url=#{url}") false
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8bbb044eb1aa1113432daa7ac4584782888fb2c3
581
https://github.com/huacnlee/social-share-button/blob/8bbb044eb1aa1113432daa7ac4584782888fb2c3/app/assets/javascripts/social-share-button.coffee
101
109
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
"title=#{title}" when 'photo' 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_tum...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
51
100
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:raw_corpus
raw_corpus
when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}&url=#{url}" window.open(whatsapp_app_url, '_top') when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}&url=#{url}") false
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
101
106
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:3:completion
completion
when "whatsapp_app" whatsapp_app_url = "whatsapp://send?text=#{title}&url=#{url}" window.open(whatsapp_app_url, '_top')
when "whatsapp_web" SocialShareButton.openUrl("https://web.whatsapp.com/send?text=#{title}&url=#{url}") false
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e2e22f0350239fdd386f88765ebe6b203e4cd4bb
581
https://github.com/huacnlee/social-share-button/blob/e2e22f0350239fdd386f88765ebe6b203e4cd4bb/app/assets/javascripts/social-share-button.coffee
101
106
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
f7953206e37c717fb2ff2f2650bdd159d3b8ab9d
581
https://github.com/huacnlee/social-share-button/blob/f7953206e37c717fb2ff2f2650bdd159d3b8ab9d/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
f7953206e37c717fb2ff2f2650bdd159d3b8ab9d
581
https://github.com/huacnlee/social-share-button/blob/f7953206e37c717fb2ff2f2650bdd159d3b8ab9d/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
fa6a5404f6482b416d1d67bbe56edbe93f70021a
581
https://github.com/huacnlee/social-share-button/blob/fa6a5404f6482b416d1d67bbe56edbe93f70021a/app/assets/javascripts/social-share-button.coffee
51
99
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
when 'photo' 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') || '' ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
fa6a5404f6482b416d1d67bbe56edbe93f70021a
581
https://github.com/huacnlee/social-share-button/blob/fa6a5404f6482b416d1d67bbe56edbe93f70021a/app/assets/javascripts/social-share-button.coffee
51
99
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
d446ae03e8c54e48e268e7d1afe1b79ad66e59ce
581
https://github.com/huacnlee/social-share-button/blob/d446ae03e8c54e48e268e7d1afe1b79ad66e59ce/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
d446ae03e8c54e48e268e7d1afe1b79ad66e59ce
581
https://github.com/huacnlee/social-share-button/blob/d446ae03e8c54e48e268e7d1afe1b79ad66e59ce/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
5904201a30859138c79d83f09ddc46b565906ff8
581
https://github.com/huacnlee/social-share-button/blob/5904201a30859138c79d83f09ddc46b565906ff8/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
5904201a30859138c79d83f09ddc46b565906ff8
581
https://github.com/huacnlee/social-share-button/blob/5904201a30859138c79d83f09ddc46b565906ff8/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0c3c4b0b9a96acfea158cf5211a7541866371fad
581
https://github.com/huacnlee/social-share-button/blob/0c3c4b0b9a96acfea158cf5211a7541866371fad/app/assets/javascripts/social-share-button.coffee
51
97
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
SocialShareButton.openUrl("https://www.linkedin.com/shareArticle?mini=true&url=#{url}&title=#{title}&summary=#{desc}") when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=...
"title=#{title}" when 'photo' 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_tum...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0c3c4b0b9a96acfea158cf5211a7541866371fad
581
https://github.com/huacnlee/social-share-button/blob/0c3c4b0b9a96acfea158cf5211a7541866371fad/app/assets/javascripts/social-share-button.coffee
51
97
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7a7cf552dba8fd969d0cb0d187d966b1ae860cc4
581
https://github.com/huacnlee/social-share-button/blob/7a7cf552dba8fd969d0cb0d187d966b1ae860cc4/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7a7cf552dba8fd969d0cb0d187d966b1ae860cc4
581
https://github.com/huacnlee/social-share-button/blob/7a7cf552dba8fd969d0cb0d187d966b1ae860cc4/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e0bd05a450ef9bec36d00a742c52165ebcc8efa3
581
https://github.com/huacnlee/social-share-button/blob/e0bd05a450ef9bec36d00a742c52165ebcc8efa3/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" hashtags = encodeURICompo...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
e0bd05a450ef9bec36d00a742c52165ebcc8efa3
581
https://github.com/huacnlee/social-share-button/blob/e0bd05a450ef9bec36d00a742c52165ebcc8efa3/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
switch site when "email" location.href = "mailto:?to=&subject=#{title}&body=#{url}" when "weibo" SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}", 620, 370) when "twitter" via_str = '' via_...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
when 'photo' 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') || '' ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
67b8d5a3590fb662fb9a329ea36eebf3d40ac508
581
https://github.com/huacnlee/social-share-button/blob/67b8d5a3590fb662fb9a329ea36eebf3d40ac508/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
d8c64b7bfd7745aaf9b62d3cf573a1d3a40be1a7
581
https://github.com/huacnlee/social-share-button/blob/d8c64b7bfd7745aaf9b62d3cf573a1d3a40be1a7/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
when 'photo' 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') || '' ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
d8c64b7bfd7745aaf9b62d3cf573a1d3a40be1a7
581
https://github.com/huacnlee/social-share-button/blob/d8c64b7bfd7745aaf9b62d3cf573a1d3a40be1a7/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
cafa868678efa286777c4685b8b8a1e7a9f9c927
581
https://github.com/huacnlee/social-share-button/blob/cafa868678efa286777c4685b8b8a1e7a9f9c927/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "xing" SocialShareButton.openUrl("https://www.xing.com/spi/shares/new?url=#{url}") when "vkontakte" SocialShareButton.openUrl("http://vk.com/share.php?url=#{url}&title=#{title}&image=#{img}") when "wechat" throw new Error("You should require social-share-button/wechat to your ap...
when 'photo' 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') || '' ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
cafa868678efa286777c4685b8b8a1e7a9f9c927
581
https://github.com/huacnlee/social-share-button/blob/cafa868678efa286777c4685b8b8a1e7a9f9c927/app/assets/javascripts/social-share-button.coffee
51
96
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a84236515b0ba3f8233d1bcf2efc8065ce85fc92
581
https://github.com/huacnlee/social-share-button/blob/a84236515b0ba3f8233d1bcf2efc8065ce85fc92/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}", 650, 300) when "douban" SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a84236515b0ba3f8233d1bcf2efc8065ce85fc92
581
https://github.com/huacnlee/social-share-button/blob/a84236515b0ba3f8233d1bcf2efc8065ce85fc92/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode url: url header: title footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a84236515b0ba3f8233d1bcf2efc8065ce85fc92
581
https://github.com/huacnlee/social-share-button/blob/a84236515b0ba3f8233d1bcf2efc8065ce85fc92/app/assets/javascripts/social-share-button.coffee
51
91
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode url: url header: title footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
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}&source=#{source}" else # actually, it's a link ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a84236515b0ba3f8233d1bcf2efc8065ce85fc92
581
https://github.com/huacnlee/social-share-button/blob/a84236515b0ba3f8233d1bcf2efc8065ce85fc92/app/assets/javascripts/social-share-button.coffee
51
91
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') url: $parent.data("url") when "tumblr" ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a0c702f865cf7b28a8c66828155defc70695ad5a
581
https://github.com/huacnlee/social-share-button/blob/a0c702f865cf7b28a8c66828155defc70695ad5a/app/assets/javascripts/social-share-button.coffee
51
91
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') url: $parent.data("url") when "tumblr" ...
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}&source=#{source}" else # actually, it's a link ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a0c702f865cf7b28a8c66828155defc70695ad5a
581
https://github.com/huacnlee/social-share-button/blob/a0c702f865cf7b28a8c66828155defc70695ad5a/app/assets/javascripts/social-share-button.coffee
51
91
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
6077bef4fc70248ff9f0384daea5e387fde1870a
581
https://github.com/huacnlee/social-share-button/blob/6077bef4fc70248ff9f0384daea5e387fde1870a/app/assets/javascripts/social-share-button.coffee
51
90
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
"caption=#{title}&source=#{source}" when 'quote' quote = get_tumblr_extra('quote') || title source = get_tumblr_extra('source') || '' "quote=#{quote}&source=#{source}" else # actually, it's a link clause title = get_tumblr_extra('title') ||...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
6077bef4fc70248ff9f0384daea5e387fde1870a
581
https://github.com/huacnlee/social-share-button/blob/6077bef4fc70248ff9f0384daea5e387fde1870a/app/assets/javascripts/social-share-button.coffee
51
90
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
624fea0906e70429d61301a975b7abb25f090ce4
581
https://github.com/huacnlee/social-share-button/blob/624fea0906e70429d61301a975b7abb25f090ce4/app/assets/javascripts/social-share-button.coffee
51
88
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
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}&source=#{source}" else # actually, it's a link ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
624fea0906e70429d61301a975b7abb25f090ce4
581
https://github.com/huacnlee/social-share-button/blob/624fea0906e70429d61301a975b7abb25f090ce4/app/assets/javascripts/social-share-button.coffee
51
88
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
683a98e4dfa09e05a258286b222dd85917e43717
581
https://github.com/huacnlee/social-share-button/blob/683a98e4dfa09e05a258286b222dd85917e43717/app/assets/javascripts/social-share-button.coffee
51
85
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
throw new Error("You should require social-share-button/wechat to your application.js") unless window.SocialShareWeChatButton window.SocialShareWeChatButton.qrcode header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> ...
when 'photo' 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') || '' ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
683a98e4dfa09e05a258286b222dd85917e43717
581
https://github.com/huacnlee/social-share-button/blob/683a98e4dfa09e05a258286b222dd85917e43717/app/assets/javascripts/social-share-button.coffee
51
85
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}", 650, 300) when "douban" SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
51
83
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
header: $(el).attr('title') footer: $(el).data('wechat-footer') when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' ...
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
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0210e97355f99ac83df643652795961ecc4839b1
581
https://github.com/huacnlee/social-share-button/blob/0210e97355f99ac83df643652795961ecc4839b1/app/assets/javascripts/social-share-button.coffee
51
83
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top...
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:completion
completion
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}", 650, 300) when "douban" SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
header: $(el).attr('title') footer: $(el).data('weichat-footer') when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
51
83
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
header: $(el).attr('title') footer: $(el).data('weichat-footer') when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' ...
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
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
22857b4faede86f84728113ada09a02b3ffede00
581
https://github.com/huacnlee/social-share-button/blob/22857b4faede86f84728113ada09a02b3ffede00/app/assets/javascripts/social-share-button.coffee
51
83
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=no" window.open(url, 'popup', opt) false share...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
db79abf1f2dbe7a77303085ae8e4fff0eb6aa976
581
https://github.com/huacnlee/social-share-button/blob/db79abf1f2dbe7a77303085ae8e4fff0eb6aa976/app/assets/javascripts/social-share-button.coffee
1
50
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.SocialShareButton = openUrl : (url, width = 640, height = 480) -> left = (screen.width / 2) - (width / 2) top = (screen.height * 0.3) - (height / 2) opt = "width=#{width},height=#{height},left=#{left},top=#{top},menubar=no,status=no,location=...
window.SocialShareButton = { openUrl: function(url, width = 640, height = 480) { var left, opt, top; left = (screen.width / 2) - (width / 2); top = (screen.height * 0.3) - (height / 2); opt = `width=${width},height=${height},left=${left},top=${top},menubar=no,status=no,location=no`; window.open(ur...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
db79abf1f2dbe7a77303085ae8e4fff0eb6aa976
581
https://github.com/huacnlee/social-share-button/blob/db79abf1f2dbe7a77303085ae8e4fff0eb6aa976/app/assets/javascripts/social-share-button.coffee
1
50