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
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
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: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
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:2:raw_corpus
raw_corpus
return false opts = title: title link: url imgUrl: img wx.onMenuShareTimeline(opts) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -...
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
51
86
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
return false opts = title: title link: url imgUrl: img wx.onMenuShareTimeline(opts) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -...
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
db79abf1f2dbe7a77303085ae8e4fff0eb6aa976
581
https://github.com/huacnlee/social-share-button/blob/db79abf1f2dbe7a77303085ae8e4fff0eb6aa976/app/assets/javascripts/social-share-button.coffee
51
86
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
aadf366e999dcd0986747500217a640c75fc45ab
581
https://github.com/huacnlee/social-share-button/blob/aadf366e999dcd0986747500217a640c75fc45ab/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
aadf366e999dcd0986747500217a640c75fc45ab
581
https://github.com/huacnlee/social-share-button/blob/aadf366e999dcd0986747500217a640c75fc45ab/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
aadf366e999dcd0986747500217a640c75fc45ab
581
https://github.com/huacnlee/social-share-button/blob/aadf366e999dcd0986747500217a640c75fc45ab/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
aadf366e999dcd0986747500217a640c75fc45ab
581
https://github.com/huacnlee/social-share-button/blob/aadf366e999dcd0986747500217a640c75fc45ab/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
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/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
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/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
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/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
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/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?url=#{url}&title=#{title}") when "vkontakte" SocialShareButton.openU...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/app/assets/javascripts/social-share-button.coffee
51
95
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?url=#{url}&title=#{title}") when "vkontakte" SocialShareButton.openU...
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
0105f150637936b29823d39df47d124cf2feea51
581
https://github.com/huacnlee/social-share-button/blob/0105f150637936b29823d39df47d124cf2feea51/app/assets/javascripts/social-share-button.coffee
51
95
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
706dff2d97b4f55b593557ed1af8d7ab1d8b32e9
581
https://github.com/huacnlee/social-share-button/blob/706dff2d97b4f55b593557ed1af8d7ab1d8b32e9/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
706dff2d97b4f55b593557ed1af8d7ab1d8b32e9
581
https://github.com/huacnlee/social-share-button/blob/706dff2d97b4f55b593557ed1af8d7ab1d8b32e9/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
title: title link: url imgUrl: img wx.onMenuShareTimeline(opts) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('t...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
706dff2d97b4f55b593557ed1af8d7ab1d8b32e9
581
https://github.com/huacnlee/social-share-button/blob/706dff2d97b4f55b593557ed1af8d7ab1d8b32e9/app/assets/javascripts/social-share-button.coffee
51
84
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
title: title link: url imgUrl: img wx.onMenuShareTimeline(opts) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('t...
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
706dff2d97b4f55b593557ed1af8d7ab1d8b32e9
581
https://github.com/huacnlee/social-share-button/blob/706dff2d97b4f55b593557ed1af8d7ab1d8b32e9/app/assets/javascripts/social-share-button.coffee
51
84
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'popup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompon...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/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,popup) -> if popup == "true" window.open(url,'popup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || ''...
window.SocialShareButton = { openUrl: function(url, popup) { if (popup === "true") { return window.open(url, 'popup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, appkey, desc, img, popup, site, title, url, via, via_str...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/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, popup) { if (popup === "true") { return window.open(url, 'popup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, a...
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'popup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompon...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/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,popup) -> if popup == "true" window.open(url,'popup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompon...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/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 "plurk" SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "linkedin" SocialShareBut...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/app/assets/javascripts/social-share-button.coffee
51
86
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "plurk" SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "linkedin" SocialShareBut...
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
00ba4fed3af1986816a9c7d0211eac552ee35f1b
581
https://github.com/huacnlee/social-share-button/blob/00ba4fed3af1986816a9c7d0211eac552ee35f1b/app/assets/javascripts/social-share-button.coffee
51
86
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:raw_corpus
raw_corpus
when "plurk" SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "tumblr" get_tumblr_extra...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
a94c8ea64d8742ee6a3b79f5946bfd53961ba543
581
https://github.com/huacnlee/social-share-button/blob/a94c8ea64d8742ee6a3b79f5946bfd53961ba543/app/assets/javascripts/social-share-button.coffee
51
84
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
when "plurk" SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "tumblr" get_tumblr_extra...
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
a94c8ea64d8742ee6a3b79f5946bfd53961ba543
581
https://github.com/huacnlee/social-share-button/blob/a94c8ea64d8742ee6a3b79f5946bfd53961ba543/app/assets/javascripts/social-share-button.coffee
51
84
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:1:raw_corpus
raw_corpus
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7ac81764f80c86e6618a67461e6e51ae643bc20a
581
https://github.com/huacnlee/social-share-button/blob/7ac81764f80c86e6618a67461e6e51ae643bc20a/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' ...
window.SocialShareButton = { openUrl: function(url, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, appkey, desc, img, popup, site, title, url, via, via_str;...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7ac81764f80c86e6618a67461e6e51ae643bc20a
581
https://github.com/huacnlee/social-share-button/blob/7ac81764f80c86e6618a67461e6e51ae643bc20a/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, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, ap...
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7ac81764f80c86e6618a67461e6e51ae643bc20a
581
https://github.com/huacnlee/social-share-button/blob/7ac81764f80c86e6618a67461e6e51ae643bc20a/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7ac81764f80c86e6618a67461e6e51ae643bc20a
581
https://github.com/huacnlee/social-share-button/blob/7ac81764f80c86e6618a67461e6e51ae643bc20a/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20
581
https://github.com/huacnlee/social-share-button/blob/99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' ...
window.SocialShareButton = { openUrl: function(url, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, appkey, desc, img, popup, site, title, url, via, via_str;...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20
581
https://github.com/huacnlee/social-share-button/blob/99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20/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, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, ap...
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20
581
https://github.com/huacnlee/social-share-button/blob/99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" via_str = '' via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20
581
https://github.com/huacnlee/social-share-button/blob/99e0f9e49bc560bc5f33a6a04bd2a5edcfc8ee20/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
cc939b8b7dc4df3b49b5f94c582a609496c4b601
581
https://github.com/huacnlee/social-share-button/blob/cc939b8b7dc4df3b49b5f94c582a609496c4b601/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" via_str = "&via=#{via}" if via.length > 0 SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}",popup) ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
cc939b8b7dc4df3b49b5f94c582a609496c4b601
581
https://github.com/huacnlee/social-share-button/blob/cc939b8b7dc4df3b49b5f94c582a609496c4b601/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("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "tumblr" get_tumblr_extra = (param) -> ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
cc939b8b7dc4df3b49b5f94c582a609496c4b601
581
https://github.com/huacnlee/social-share-button/blob/cc939b8b7dc4df3b49b5f94c582a609496c4b601/app/assets/javascripts/social-share-button.coffee
51
83
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
SocialShareButton.openUrl("http://www.plurk.com/?status=#{title}: #{url}&qualifier=shares", popup) when "pinterest" SocialShareButton.openUrl("http://www.pinterest.com/pin/create/button/?url=#{url}&media=#{img}&description=#{title}", popup) when "tumblr" get_tumblr_extra = (param) -> ...
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
cc939b8b7dc4df3b49b5f94c582a609496c4b601
581
https://github.com/huacnlee/social-share-button/blob/cc939b8b7dc4df3b49b5f94c582a609496c4b601/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8241ed5d508abcf2fcc90fe8768a2d53a19ca538
581
https://github.com/huacnlee/social-share-button/blob/8241ed5d508abcf2fcc90fe8768a2d53a19ca538/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" via_str = via.length > 0 ? "&via=#{via}" : '' SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}#{via_str}",popu...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
8241ed5d508abcf2fcc90fe8768a2d53a19ca538
581
https://github.com/huacnlee/social-share-button/blob/8241ed5d508abcf2fcc90fe8768a2d53a19ca538/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' ...
window.SocialShareButton = { openUrl: function(url, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, appkey, desc, img, popup, site, title, url, via; site...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/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, popup) { if (popup === "true") { return window.open(url, 'poup', 'height=500,width=500'); } else { window.open(url); return false; } }, share: function(el) { var $parent, ap...
window.SocialShareButton = openUrl : (url,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/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,popup) -> if popup == "true" window.open(url,'poup','height=500,width=500') else window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURICompone...
SocialShareButton.openUrl("http://service.weibo.com/share/share.php?url=#{url}&type=3&pic=#{img}&title=#{title}&appkey=#{appkey}",popup) when "twitter" SocialShareButton.openUrl("https://twitter.com/intent/tweet?url=#{url}&text=#{title}&via=#{via}",popup) when "douban" SocialShareButton.open...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/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}", popup) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/app/assets/javascripts/social-share-button.coffee
51
82
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}", popup) when "tumblr" get_tumblr_extra = (param) -> cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data ...
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
7dd57ee5850581930be7d03ef7d64a3efb344e70
581
https://github.com/huacnlee/social-share-button/blob/7dd57ee5850581930be7d03ef7d64a3efb344e70/app/assets/javascripts/social-share-button.coffee
51
82
huacnlee/social-share-button:app/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') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/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) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') im...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var $parent, appkey, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); appkey = $(el).data('appkey') || ''; $parent = $(el).parent(); title = enco...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/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) { window.open(url); return false; }, share: function(el) { var $parent, appkey, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); appkey = $(el).data('appkey'...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/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) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzsh...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/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
cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/app/assets/javascripts/social-share-button.coffee
51
78
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
cutom_data = $(el).attr("data-#{param}") encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" ...
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') || title url = get_tumblr_extra('url...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b96581fda67d62318deb32a3dff9e9969f8ce495
581
https://github.com/huacnlee/social-share-button/blob/b96581fda67d62318deb32a3dff9e9969f8ce495/app/assets/javascripts/social-share-button.coffee
51
78
huacnlee/social-share-button:app/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') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
94aece678ecbc6e651676ea31178da19be399399
581
https://github.com/huacnlee/social-share-button/blob/94aece678ecbc6e651676ea31178da19be399399/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) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') im...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var $parent, appkey, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); appkey = $(el).data('appkey') || ''; $parent = $(el).parent(); title = enco...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
94aece678ecbc6e651676ea31178da19be399399
581
https://github.com/huacnlee/social-share-button/blob/94aece678ecbc6e651676ea31178da19be399399/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) { window.open(url); return false; }, share: function(el) { var $parent, appkey, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); appkey = $(el).data('appkey'...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
94aece678ecbc6e651676ea31178da19be399399
581
https://github.com/huacnlee/social-share-button/blob/94aece678ecbc6e651676ea31178da19be399399/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) -> window.open(url) false share : (el) -> site = $(el).data('site') appkey = $(el).data('appkey') || '' $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url...
SocialShareButton.openUrl("http://shuo.douban.com/!service/share?href=#{url}&name=#{title}&image=#{img}&sel=#{desc}") when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzsh...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
94aece678ecbc6e651676ea31178da19be399399
581
https://github.com/huacnlee/social-share-button/blob/94aece678ecbc6e651676ea31178da19be399399/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) -> window.open(url) false share : (el) -> site = $(el).data('site') $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url = encodeURIComponent($parent.data("url"...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/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) -> window.open(url) false share : (el) -> site = $(el).data('site') $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var $parent, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); $parent = $(el).parent(); title = encodeURIComponent($parent.data('title') || ''); ...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/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) { window.open(url); return false; }, share: function(el) { var $parent, desc, get_tumblr_extra, img, site, title, url, via; site = $(el).data('site'); $parent = $(el).parent(); title ...
window.SocialShareButton = openUrl : (url) -> window.open(url) false share : (el) -> site = $(el).data('site') $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url = encodeURIComponent($parent.data("url"...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/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) -> window.open(url) false share : (el) -> site = $(el).data('site') $parent = $(el).parent() title = encodeURIComponent($parent.data('title') || '') img = encodeURIComponent($parent.data("img") || '') url = encodeURIComponent($parent.data("url"...
when "facebook" SocialShareButton.openUrl("http://www.facebook.com/sharer.php?u=#{url}") when "qq" SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}&summary=#{desc}") when "tqq" SocialShareButton.openUrl("http:...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/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
encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" when 'photo' title = get_...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/app/assets/javascripts/social-share-button.coffee
51
77
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{ti...
var tumblr_params; encodeURIComponent(cutom_data)(cutom_data ? (tumblr_params = function() { var params, path, quote, source, title, url; path = get_tumblr_extra('type') || 'link'; params = (function() { switch (path) { case 'text': title = get_tumblr_extra('title') || title; return `ti...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/app/assets/javascripts/social-share-button.coffee
51
77
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var tumblr_params; encodeURIComponent(cutom_data)(cutom_data ? (tumblr_params = function() { var params, path, quote, source, title, url; path = get_tumblr_extra('type') || 'link'; params = (function() { switch (path) { case 'text': title =...
encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" when 'photo' title = get_...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/app/assets/javascripts/social-share-button.coffee
51
77
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
encodeURIComponent(cutom_data) if cutom_data tumblr_params = -> path = get_tumblr_extra('type') || 'link' params = switch path when 'text' title = get_tumblr_extra('title') || title "title=#{title}" when 'photo' title = get_...
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') || title url = get_tumblr_extra('url...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b073f2da797dca3dc3ebe7b25a35ca1385faa6d8
581
https://github.com/huacnlee/social-share-button/blob/b073f2da797dca3dc3ebe7b25a35ca1385faa6d8/app/assets/javascripts/social-share-button.coffee
51
77
huacnlee/social-share-button:app/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
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/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) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') u...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url, via; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title') || ''); img = encodeURIComponen...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/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) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url, via; site = $(el).data('site'); title = encodeURIComponent($(el).par...
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") || '')...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/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) -> 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") || '')...
SocialShareButton.openUrl("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=#{url}&title=#{title}&pics=#{img}") when "tqq" SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}") when "baidu" SocialShareButton.openUrl(...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/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
path = get_tumblr_extra('type') || 'link' 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') ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/app/assets/javascripts/social-share-button.coffee
51
74
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
path = get_tumblr_extra('type') || 'link' 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') ...
source = get_tumblr_extra('source') || '' "quote=#{quote}&source=#{source}" else # actually, it's a link clause title = get_tumblr_extra('title') || title url = get_tumblr_extra('url') || url "name=#{title}&url=#{url}" "/#{path}?#{params}" ...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
658f5a0579ce8c1eaca9537c5bd152430d4471ab
581
https://github.com/huacnlee/social-share-button/blob/658f5a0579ce8c1eaca9537c5bd152430d4471ab/app/assets/javascripts/social-share-button.coffee
51
74
huacnlee/social-share-button:app/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
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/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) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') u...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title') || ''); img = encodeURIComponent($(e...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/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) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent()...
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") || '')...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/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) -> 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 "tqq" SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}") when "baidu" SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=") when "kaixin001" SocialShareButton.openUrl("h...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/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
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
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/app/assets/javascripts/social-share-button.coffee
51
73
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript 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('sourc...
var params, quote, source, title, url; params = (function() { switch (path) { case 'text': title = get_tumblr_extra('title') || title; return `title=${title}`; case 'photo': title = get_tumblr_extra('caption') || title; source = get_tumblr_extra('source') || img; return `caption...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/app/assets/javascripts/social-share-button.coffee
51
73
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var params, quote, source, title, url; params = (function() { switch (path) { case 'text': title = get_tumblr_extra('title') || title; return `title=${title}`; case 'photo': title = get_tumblr_extra('caption') || title; source = g...
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...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/app/assets/javascripts/social-share-button.coffee
51
73
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
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...
"quote=#{quote}&source=#{source}" else # actually, it's a link clause title = get_tumblr_extra('title') || title url = get_tumblr_extra('url') || url "name=#{title}&url=#{url}" "/#{path}?#{params}" SocialShareButton.openUrl("http://www.tumblr.co...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
7b4afa3eb5c7db1d9ceed19a2108639e623f55da
581
https://github.com/huacnlee/social-share-button/blob/7b4afa3eb5c7db1d9ceed19a2108639e623f55da/app/assets/javascripts/social-share-button.coffee
51
73
huacnlee/social-share-button:app/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
app/assets/javascripts/social-share-button.coffee
MIT
f0f13ec62f655845eec318cd82c4fc078897f602
581
https://github.com/huacnlee/social-share-button/blob/f0f13ec62f655845eec318cd82c4fc078897f602/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) -> 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 "tqq" SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}") when "baidu" SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=") when "kaixin001" SocialShareButton.openUrl("h...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
f0f13ec62f655845eec318cd82c4fc078897f602
581
https://github.com/huacnlee/social-share-button/blob/f0f13ec62f655845eec318cd82c4fc078897f602/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 '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=#{source}" when 'quote' ...
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
f0f13ec62f655845eec318cd82c4fc078897f602
581
https://github.com/huacnlee/social-share-button/blob/f0f13ec62f655845eec318cd82c4fc078897f602/app/assets/javascripts/social-share-button.coffee
51
71
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
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=#{source}" when 'quote' ...
"quote=#{quote}&source=#{source}" else # actually, it's a link clause title = get_tumblr_extra('title') || title url = get_tumblr_extra('url') || url "name=#{title}&url=#{url}" "/#{path}?#{params}" SocialShareButton.openUrl("http://www.tumblr.co...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
f0f13ec62f655845eec318cd82c4fc078897f602
581
https://github.com/huacnlee/social-share-button/blob/f0f13ec62f655845eec318cd82c4fc078897f602/app/assets/javascripts/social-share-button.coffee
51
71
huacnlee/social-share-button:app/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
app/assets/javascripts/social-share-button.coffee
MIT
292e0c18b832e1abc0f415759d6bed8414cac01f
581
https://github.com/huacnlee/social-share-button/blob/292e0c18b832e1abc0f415759d6bed8414cac01f/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) -> 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 "tqq" SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}") when "baidu" SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=") when "kaixin001" SocialShareButton.openUrl("h...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
292e0c18b832e1abc0f415759d6bed8414cac01f
581
https://github.com/huacnlee/social-share-button/blob/292e0c18b832e1abc0f415759d6bed8414cac01f/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) -> 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
app/assets/javascripts/social-share-button.coffee
MIT
532873aec7da7e7a556e0466558cdf6ee3be610c
581
https://github.com/huacnlee/social-share-button/blob/532873aec7da7e7a556e0466558cdf6ee3be610c/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) -> 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 "tqq" SocialShareButton.openUrl("http://share.v.t.qq.com/index.php?c=share&a=index&url=#{url}&title=#{title}&pic=#{img}") when "baidu" SocialShareButton.openUrl("http://hi.baidu.com/pub/show/share?url=#{url}&title=#{title}&content=") when "kaixin001" SocialShareButton.openUrl("h...
CoffeeScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
532873aec7da7e7a556e0466558cdf6ee3be610c
581
https://github.com/huacnlee/social-share-button/blob/532873aec7da7e7a556e0466558cdf6ee3be610c/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) -> 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
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/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) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') u...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title') || ''); img = encodeURIComponent($(e...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/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) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent()...
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") || '')...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/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) -> 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
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/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
"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
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/app/assets/javascripts/social-share-button.coffee
51
69
huacnlee/social-share-button:app/assets/javascripts/social-share-button.coffee:2:completion
completion
"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...
else # actually, it's a link clause 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
app/assets/javascripts/social-share-button.coffee
MIT
b7cd12b0721b944e5984c76d5af4520a3b3011c7
581
https://github.com/huacnlee/social-share-button/blob/b7cd12b0721b944e5984c76d5af4520a3b3011c7/app/assets/javascripts/social-share-button.coffee
51
69
huacnlee/social-share-button:app/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
app/assets/javascripts/social-share-button.coffee
MIT
fda784af7fe171d5e6dee59e11934f7c71b5396a
581
https://github.com/huacnlee/social-share-button/blob/fda784af7fe171d5e6dee59e11934f7c71b5396a/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) -> window.open(url) false share : (el) -> site = $(el).data('site') title = encodeURIComponent($(el).parent().data('title') || '') img = encodeURIComponent($(el).parent().data("img") || '') u...
window.SocialShareButton = { openUrl: function(url) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent().data('title') || ''); img = encodeURIComponent($(e...
CoffeeScript
JavaScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
fda784af7fe171d5e6dee59e11934f7c71b5396a
581
https://github.com/huacnlee/social-share-button/blob/fda784af7fe171d5e6dee59e11934f7c71b5396a/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) { window.open(url); return false; }, share: function(el) { var get_tumblr_extra, img, site, title, tumblr_params, url; site = $(el).data('site'); title = encodeURIComponent($(el).parent()...
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") || '')...
JavaScript
CoffeeScript
huacnlee/social-share-button
app/assets/javascripts/social-share-button.coffee
MIT
fda784af7fe171d5e6dee59e11934f7c71b5396a
581
https://github.com/huacnlee/social-share-button/blob/fda784af7fe171d5e6dee59e11934f7c71b5396a/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) -> 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
app/assets/javascripts/social-share-button.coffee
MIT
fda784af7fe171d5e6dee59e11934f7c71b5396a
581
https://github.com/huacnlee/social-share-button/blob/fda784af7fe171d5e6dee59e11934f7c71b5396a/app/assets/javascripts/social-share-button.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/channel-header.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'channel-header' propTypes: _teamId: T.string.isRequired _userId: T.string.isRequired _channelId: T.string _channelType: T.string.isRequired prefs: T.instanceOf(Immutable.Map) channel: T.instanceOf(Immutable.Map).isRequired members: T.inst...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/channel-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/channel-header.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/channel-header.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'channel-header' propTypes: _teamId: T.string.isRequired _userId: T.string.isRequired _channelId: T.string _channelType: T.string.isRequired prefs: T.instanceOf(Immutable.Map) channel: T...
module.exports = React.createClass({ displayName: 'channel-header', propTypes: { _teamId: T.string.isRequired, _userId: T.string.isRequired, _channelId: T.string, _channelType: T.string.isRequired, prefs: T.instanceOf(Immutable.Map), channel: T.instanceOf(Immutable.Map).isRequired, membe...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/channel-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/channel-header.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/channel-header.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'channel-header', propTypes: { _teamId: T.string.isRequired, _userId: T.string.isRequired, _channelId: T.string, _channelType: T.string.isRequired, prefs: T.instanceOf(Immutable.Map), cha...
module.exports = React.createClass displayName: 'channel-header' propTypes: _teamId: T.string.isRequired _userId: T.string.isRequired _channelId: T.string _channelType: T.string.isRequired prefs: T.instanceOf(Immutable.Map) channel: T.instanceOf(Immutable.Map).isRequired members: T.inst...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/channel-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/channel-header.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/channel-header.coffee:1:completion
completion
module.exports = React.createClass displayName: 'channel-header' propTypes: _teamId: T.string.isRequired _userId: T.string.isRequired _channelId: T.string _channelType: T.string.isRequired prefs: T.instanceOf(Immutable.Map) channel: T.instanceOf(Immutable.Map).isRequired members: T.inst...
getPermission: -> (@props.channel.get('_creatorId') is @props._userId) onPinClick: (event) -> event.stopPropagation() data = isPinned: not @isPinned() notificationAction.update @props.notification.get('_id'), data onMuteClick: (event) -> event.stopPropagation() data = isMute:...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/channel-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/channel-header.coffee
21
70