Joined July 2014
· Posted to Switch off over 1 year ago
I prefer doing that way
var langs = { 'javascript': 'JS', 'ruby': 'RB', 'c#': 'CS', 'cpp': 'CPP', }; var out = langs[lang.toLowerCase()] || 'CPP'; Achievements
9 Karma
179 Total ProTip Views
Charity
Fork and commit to someone's open source project in need
I recently searched how to do that and I found an answer from the github help: https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository