* 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 - plank.desktop  (0) 2017.12.15
linux - dnf broken  (0) 2016.12.04
fedora - 한영전환키 등록 화면 in fedora 23  (0) 2015.12.30
linux - env  (0) 2015.07.09
Posted by linuxism

댓글을 달아 주세요

* Create and verify a private key

$ openssl genrsa -aes256 -out private_key.pem 2048

$ openssl rsa -noout -text - in private_key.pem


* Create a CSR

$ openssl req -new -key private_key.pem -out test.csr


* Create and verify a self-signed certificate

$ openssl x509 -in test.csr -out test.crt -req -signkey private_key.pem -days 3560

$ openssl x509 -noout -text -in test.crt


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

math  (0) 2018.05.27
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

댓글을 달아 주세요