math

Development/Common 2018. 5. 27. 07:57


Math.abs(x) : 절대값

Math.ceil(x) : 올림

Math.floor(x) : 버림

Math.round(x) : 반올림


source - https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math



'Development > Common' 카테고리의 다른 글

Using the OpenSSL toolkit  (0) 2017.09.17
First-class citizen, First-class function  (0) 2015.06.29
memory - Data segment, Code segment  (0) 2015.06.29
GUID(Globally Unique Identifier)  (0) 2014.04.02
MD 확장자  (0) 2013.03.27
Posted by linuxism
,


* Case 1

(function(window, $) {

var someVar = true;

var test = {

                some: 'test',

setValue: function() {

                    // some code

}

};

window.test = test;

})(window, jQuery);


* Case 2

var test = (function(test, $, undefined) {

    var someVar = true;

    test.some = 'test';

    test.setValue = function() {

        // some code

    }

    return test;

}(window.test || {}, jQuery));


Posted by linuxism
,

linux - plank.desktop

System/Linux 2017. 12. 15. 06:44


~/.config/autostart/plank.desktop


[Desktop Entry]

Type=Application

Exec=plank

#Hidden=false

#NoDisplay=false

Name[en_US]=plank

Name=plank

Comment[en_US]=plank

Comment=plank

X-GNOME-Autostart-Delay=2

X-GNOME-Autostart-enabled=true

'System > Linux' 카테고리의 다른 글

linux - reinstall GRUB2  (0) 2019.05.12
Fedora - locale: Cannot set LC_ALL to default locale: No such file or directory  (0) 2019.04.23
linux - dnf broken  (0) 2016.12.04
fedora - 한영전환키 등록 화면 in fedora 23  (0) 2015.12.30
linux - env  (0) 2015.07.09
Posted by linuxism
,