Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1006988 // youtubeLink - make YouTube link from video id [idempotent]

JavaX fragment (include)

static S youtubeLink(S videoID) {
  if (videoID.contains("/")) ret videoID; // be idempotent
  ret "https://www.youtube.com/watch?v=" + videoID;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006988
Snippet name: youtubeLink - make YouTube link from video id [idempotent]
Eternal ID of this version: #1006988/5
Text MD5: a08df0618f4f55fc07a5061f3e44cb7e
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-23 11:19:15
Source code size: 149 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 414 / 421
Version history: 4 change(s)
Referenced in: [show references]