Skip to content

Instantly share code, notes, and snippets.

View xexi's full-sized avatar

synth xexi

  • mock
View GitHub Profile
@xexi
xexi / WTFPL License
Created February 2, 2017 06:42
Do What the Fuck You Want to Public License
About the WTFPL
WTFPL – Do What the Fuck You Want to Public License
Posted December 26th, 2012 by Sam Hocevar.
The Do What The Fuck You Want To Public License (WTFPL) is a free software license.
There is a long ongoing battle between GPL zealots and BSD fanatics, about which license type is the most free of the two. In fact, both license types have unacceptable obnoxious clauses (such as reproducing a huge disclaimer that is written in all caps) that severely restrain our freedoms. The WTFPL can solve this problem.
var korean = [ "다", "나", "가" ];
function ascending ( a , b ) {
return a.localeCompare ( b );
}
function descending ( a , b ) {
return b.localeCompare ( a );
}
function textbraceTrim(text){
let trimed = text;
if(text !== null && text !== '') {
let start_index = text.indexOf('(');
let end_index = text.indexOf(')') + 1;
trimed = text.substring(0, start_index) + text.substring(end_index, text.length);
trimed = trimed.trim();
}
return trimed;
}