For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| <?php | |
| /** | |
| * Reference Links: | |
| * - https://mailchimp.com/help/find-your-list-id/ | |
| * - https://stackoverflow.com/a/48655086/5228251 | |
| * - https://thedebuggers.com/send-mailchimp-newsletter-via-php/ | |
| */ | |
| // Include Mailchimp API 3.0 |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases. | |
| # Much of this was originally copied from: | |
| # http://natelandau.com/my-mac-osx-bash_profile/ | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management |
| <script type="text/javascript"> | |
| // First let's create an array of JavaScript Date | |
| // objects. | |
| // More info about the Date class: | |
| // http://w3schools.com/js/js_obj_date.asp | |
| var dates = [ | |
| new Date(2010, 4, 10, 10, 07, 16), | |
| new Date(2010, 4, 8, 9, 16, 09), | |
| new Date(2010, 3, 30, 0, 15, 49), |
Reference: RFC 2616 - HTTP Status Code Definitions
| ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ | |
| ๐ค ๐ฅ ๐จ ๐ฉ ๐ช ๐ซ ๐ญ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ต ๐ท ๐ธ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ โ โ โ โ โ โ โ โ โ โ โ โจ โณ โด โ โ โ | |
| โ โ โ โ โ โค โ โ โ โก โฐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ข ๐ค ๐ฅ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ญ ๐ฒ ๐ถ ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ โ ๐ ฐ ๐ ฑ ๐ พ ๐ ฟ | |
| ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฉ๐ช ๐ฉ๐ช ๐ฉ๐ช ๐ฌ๐ง ๐ฌ๐ง ๐ฌ๐ง ๐จ๐ณ ๐จ๐ณ ๐จ๐ณ ๐ฏ | |
| ๐ต ๐ฏ๐ต ๐ฏ๐ต ๐ฐ๐ท ๐ฐ๐ท ๐ฐ๐ท ๐ซ๐ท ๐ซ๐ท ๐ซ๐ท ๐ช๐ธ ๐ช๐ธ ๐ช๐ธ ๐ฎ๐น ๐ฎ๐น ๐ฎ๐น ๐บ๐ธ ๐บ๐ธ | |
| ๐บ๐ธ ๐ท๐บ ๐ท๐บ ๐ท๐บ ๐ ๐ ๐ ๐ฏ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ ๐ ยฉ ยฎ โผ โ | |
| #โฃ #โฃ #โฃ โข โน โ โ โ โ โ โ โฉ โช โ โ โฉ โช โซ โฌ โฐ โณ โช โซ โถ | |
| โ โป โผ โฝ โพ โ โ โ โ โ โ โ โบ โ โ โ โ โ โ โ โ โ โ โ โ |
i.e., I have created this for my angular2 app. so this function is written in TypeScript
createDownloadLink(filename: string, data: string) {
var dataUri = 'data:application/octet-stream;charset=utf-8,' + encodeURIComponent(data);
var anchor = document.createElement('a');
anchor.setAttribute('href', dataUri);
| /** | |
| * Order Array of data based on single data... | |
| * IDEA: | |
| In Images Slider example we'd have collection of images data and one one image will be shown as default active (to be shown always). | |
| Now when we click on anyother image that will be active and other images will be ordered according. we will be order all images in a way that | |
| all images will be viewing in cycle (from both sides). | |
| **/ | |
| /** |
| function ordinalParse() { | |
| return /\d{1,2}(st|nd|rd|th)/; | |
| } | |
| function ordinal(number) { | |
| var b = number % 10, | |
| output = (~~(number % 100 / 10) === 1) ? 'th' : | |
| (b === 1) ? 'st' : | |
| (b === 2) ? 'nd' : | |
| (b === 3) ? 'rd' : 'th'; |