{"id":4962,"date":"2013-12-13T09:00:33","date_gmt":"2013-12-13T14:00:33","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=4962"},"modified":"2013-12-12T17:07:15","modified_gmt":"2013-12-12T22:07:15","slug":"secret-santa","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2013\/12\/13\/secret-santa\/","title":{"rendered":"Secret Santa"},"content":{"rendered":"<div xmlns:mwsh=\"https:\/\/www.mathworks.com\/namespace\/mcode\/v1\/syntaxhighlight.dtd\" class=\"content\">\r\n   <introduction>\r\n      <p><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/answers\/contributors\/3208495\">Sean<\/a>'s pick this week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/43713-secret-santa\">Secret Santa<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/28039\">Edgar Guevara<\/a>.\r\n      <\/p>\r\n      <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/Sean\/main\/secretsanta.png\"> <\/p>\r\n   <\/introduction>\r\n   <h3>Gift Exchange Planning<a name=\"1\"><\/a><\/h3>\r\n   <p>It's that time of year again where I'm sure many of you are planning your organization's December festivities, which may include\r\n      a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Secret_Santa#Description\">gift exchange<\/a>. Lo and behold, Edgar has made this easy for us MATLABers.\r\n   <\/p>\r\n   <p>In order to set up our gift exchange, I needed to fill in some of the variables and the CSV file:<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/Sean\/main\/im1.PNG\"> <\/p>\r\n   <p>My neighbors and I will play with some of MathWorks' top dogs:<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/Sean\/main\/im2.PNG\"> <\/p>\r\n   <p>Who did I get?<\/p>\r\n   <p><img decoding=\"async\" vspace=\"5\" hspace=\"5\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/Sean\/main\/email.PNG\"> <\/p>\r\n   <p>So it looks like Brett is the one getting a used MathWorks T-shirt...<\/p>\r\n   <p><i>Have a great holiday season everyone!<\/i><\/p>\r\n   <h3>Comments<a name=\"2\"><\/a><\/h3>\r\n   <p>Are any of you lucky enough to be taking vacation over the next few weeks?  Will you be using MATLAB during the vacation?\r\n       I hear there are some great apps to keep you entertained at the in-laws.\r\n   <\/p>\r\n   <p>Let us know of anything exciting <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=4962#respond\">here<\/a>!\r\n\r\n\r\n<script language=\"JavaScript\">\r\n<!--\r\n\r\n    function grabCode_f3aeac0e00544188a2b93f39535ca0c9() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='f3aeac0e00544188a2b93f39535ca0c9 ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' f3aeac0e00544188a2b93f39535ca0c9';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Sean de Wolski';\r\n        copyright = 'Copyright 2013 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }   \r\n      \r\n-->\r\n<\/script><p style=\"text-align: right; font-size: xx-small; font-weight:lighter;   font-style: italic; color: gray\"><br><a href=\"javascript:grabCode_f3aeac0e00544188a2b93f39535ca0c9()\"><span style=\"font-size: x-small;        font-style: italic;\">Get \r\n            the MATLAB code \r\n            <noscript>(requires JavaScript)<\/noscript><\/span><\/a><br><br>\r\n      Published with MATLAB&reg; R2014a<br><\/p>\r\n<\/div>\r\n<!--\r\nf3aeac0e00544188a2b93f39535ca0c9 ##### SOURCE BEGIN #####\r\n%% Secret Santa\r\n%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/answers\/contributors\/3208495 Sean>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/43713-secret-santa Secret Santa> by\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/authors\/28039 Edgar Guevara>.\r\n% \r\n% \r\n% <<secretsanta.png>>\r\n% \r\n%\r\n\r\n%% Gift Exchange Planning\r\n% \r\n% It's that time of year again where I'm sure many of you are planning your\r\n% organization's December festivities, which may include a\r\n% <http:\/\/en.wikipedia.org\/wiki\/Secret_Santa#Description gift exchange>. Lo\r\n% and behold, Edgar has made this easy for us MATLABers.\r\n%\r\n% In order to set up our gift exchange, I needed to fill in some of the\r\n% variables and the CSV file:\r\n%\r\n% <<im1.PNG>>\r\n%\r\n% My neighbors and I will play with some of MathWorks' top dogs:\r\n%\r\n% <<im2.PNG>>\r\n%\r\n% Who did I get?\r\n%\r\n% <<email.PNG>>\r\n%\r\n% So it looks like Brett is the one getting a used MathWorks T-shirt...\r\n%\r\n% _Have a great holiday season everyone!_\r\n%\r\n \r\n##### SOURCE END ##### f3aeac0e00544188a2b93f39535ca0c9\r\n-->","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/Sean\/main\/secretsanta.png\" onError=\"this.style.display ='none';\" \/><\/div><p>\r\n   \r\n      Sean's pick this week is Secret Santa by Edgar Guevara.\r\n      \r\n       \r\n   \r\n   Gift Exchange Planning\r\n   It's that time of year again where... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2013\/12\/13\/secret-santa\/\">read more >><\/a><\/p>","protected":false},"author":87,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/4962"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=4962"}],"version-history":[{"count":6,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/4962\/revisions"}],"predecessor-version":[{"id":4967,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/4962\/revisions\/4967"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=4962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=4962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=4962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}